/** * Enter description here... * * @param string $text * @return string */ function BBCode($text) { $bbcode =& plugin_bbcode_init(); return $bbcode->parse($text); }
function plugin_bbcode_sharethis_tags() { $bbcode =& plugin_bbcode_init(); $bbcode->addCode('sharethis', 'callback_replace', 'plugin_custombbcode_sharethis', array('usecontent_param' => array('default')), 'inline', array('listitem', 'block', 'inline', 'link'), array()); $bbcode->setCodeFlag('sharethis', 'closetag', BBCODE_CLOSETAG_FORBIDDEN); }