function returnSmileyBar() { require_once BASE_DIR_CMS . "Smileys.php"; $smileys = new Smileys(BASE_DIR_CMS . "smileys"); $content = ""; foreach ($smileys->getSmileysArray() as $icon => $emoticon) { $icon = trim($icon); $content .= '<img class="ed-smileys-icon ed-icon-border" alt=":' . $icon . ':" title=":' . $icon . ':" src="' . URL_BASE . CMS_DIR_NAME . '/smileys/' . $icon . '.gif" onclick="insert_ace(\' :' . $icon . ': \', \'\',false)" />'; } return $content; }
/** * format an introduction * * @param string raw introduction * @return string finalized title */ public static function beautify_introduction($text) { // render codes $output = Codes::render($text); // render smileys after codes, else it will break escaped strings if (is_callable(array('Smileys', 'render_smileys'))) { $output = Smileys::render_smileys($output); } // return by reference return $output; }