Quicktags -- %s Show buttons above comment form to add html tags such as <strong> and <code>','awp');?>]]> Clickable Smilies -- %s Show all available smilies above comment form, and automatically add them to comments when clicked.','awp');?>]]> ]]>

"; // The following code is based upon wp-grins by Alex King, http://alexking.org/projects/wordpress foreach ($wpsmiliestrans as $tag => $grin) { if(!$smiled[$grin] || strlen($tag) < strlen($smiled[$grin])) $smiled[$grin] = $tag; } // So other plugins can modify where smilies are held. We pick a random smilie and get its URL. preg_match('/(http.*?\/\/.*\/).+\.(gif|png|jpg)\'/',$wp_smiliesreplace[1],$urls); $url = $urls[1]; foreach ($smiled as $grin => $tag) { $tag = str_replace(' ', '', $tag); $smiley_masked = htmlspecialchars(trim($tag), ENT_QUOTES); ?> <?php echo $smiley_masked;?> '; } } } ?>