foreach ($items as $item) {
$item = explode('{:}', $item);
$emoticons[$item[0]] = $item[1];
- $output .= '<li><a href="###" onclick="inserttext(\''.$item[0].'\')"><img src="'.$CFG->pixpath.'/s/'.$item[1].'.gif" alt="'.$item[0].'" /></a>'.' <code>'.$item[0].'</code>';
+ $output .= '<li><a href="javascript:inserttext(\''.$item[0].'\')"><img src="'.
+ $CFG->pixpath.'/s/'.$item[1].'.gif" alt="'.$item[0].'" /></a>'.' <code>'.$item[0].
+ '</code></li>';
}
}
-<html><head>
-<meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body><h1>Using Smilies (emoticons)</h1>
+<h1>Using Smilies (emoticons)</h1>
<div id="emoticons">##emoticons_html##</div>
<div style="clear: both;"></div>
<p>To insert these icons in your text: just click the icon above, or type the associated text code directly in your text.</p>
<p>Note that the codes themselves are like little pictures - just turn your head to the left when looking at them</p>
-
-</body></html>