本文整理汇总了PHP中FSS_Helper::sceditor方法的典型用法代码示例。如果您正苦于以下问题:PHP FSS_Helper::sceditor方法的具体用法?PHP FSS_Helper::sceditor怎么用?PHP FSS_Helper::sceditor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FSS_Helper
的用法示例。
在下文中一共展示了FSS_Helper::sceditor方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AddSCEditor
static function AddSCEditor()
{
if (!FSS_Helper::$sceditor) {
if (FSS_Settings::Get('support_sceditor')) {
$document = JFactory::getDocument();
$document->addScript(JURI::root(true) . '/components/com_fss/assets/js/sceditor/jquery.sceditor.bbcode.js');
$document->addScript(JURI::root(true) . '/components/com_fss/assets/js/sceditor/include.sceditor.js');
$document->addScriptDeclaration("var sceditor_emoticons_root = '" . JURI::root(true) . "/components/com_fss/assets/';");
$document->addScriptDeclaration("var sceditor_style_root = '" . JURI::root(true) . "/components/com_fss/assets/js/sceditor/';");
$document->addScriptDeclaration("var sceditor_style_type = '" . FSS_Settings::get('sceditor_content') . "';");
$button_exclude = array();
if (!FSS_Settings::get('sceditor_emoticons')) {
$button_exclude[] = "emoticon";
}
if (FSS_Settings::get('sceditor_buttonhide')) {
$button_exclude[] = str_replace(" ", "", FSS_Settings::get('sceditor_buttonhide'));
}
$document->addScriptDeclaration("var sceditor_toolbar_exclude = '" . implode(",", $button_exclude) . "';");
$document->addStyleSheet(JURI::root(true) . '/components/com_fss/assets/js/sceditor/themes/' . FSS_Settings::get('sceditor_theme') . '.css');
//$document->addStyleSheet(JURI::root(true).'/components/com_fss/assets/js/sceditor/themes/square.css');
}
FSS_Helper::$sceditor = true;
}
}