本文整理匯總了PHP中WFModelEditor::getStyleSheets方法的典型用法代碼示例。如果您正苦於以下問題:PHP WFModelEditor::getStyleSheets方法的具體用法?PHP WFModelEditor::getStyleSheets怎麽用?PHP WFModelEditor::getStyleSheets使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WFModelEditor
的用法示例。
在下文中一共展示了WFModelEditor::getStyleSheets方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: display
function display($tpl = null)
{
$db = JFactory::getDBO();
$lang = JFactory::getLanguage();
$lang->load('plg_system_jcemediabox');
$client = JRequest::getWord('client', 'site');
$model = $this->getModel();
$plugin = JPluginHelper::getPlugin('system', 'jcemediabox');
$params = $this->getParams($plugin->params);
$this->assign('params', $params);
$this->assign('client', $client);
wfimport('admin.models.editor');
$options = array('stylesheets' => (array) WFModelEditor::getStyleSheets(), 'labels' => array('picker' => WFText::_('WF_COLORPICKER_PICKER'), 'palette' => WFText::_('WF_COLORPICKER_PALETTE'), 'named' => WFText::_('WF_COLORPICKER_NAMED'), 'template' => WFText::_('WF_COLORPICKER_TEMPLATE'), 'color' => WFText::_('WF_COLORPICKER_COLOR'), 'apply' => WFText::_('WF_COLORPICKER_APPLY'), 'name' => WFText::_('WF_COLORPICKER_NAME')), 'parent' => '#jce');
$this->addScriptDeclaration('jQuery(document).ready(function($){$("input.color").colorpicker(' . json_encode($options) . ');});');
WFToolbarHelper::apply();
WFToolbarHelper::save();
WFToolbarHelper::help('mediabox.config');
parent::display($tpl);
}
示例2: getOptions
private function getOptions($params)
{
wfimport('admin.models.editor');
$options = array('editableselects' => array('label' => WFText::_('WF_TOOLS_EDITABLESELECT_LABEL')), 'extensions' => array('labels' => array('type_new' => WFText::_('WF_EXTENSION_MAPPER_TYPE_NEW'), 'group_new' => WFText::_('WF_EXTENSION_MAPPER_GROUP_NEW'), 'acrobat' => WFText::_('WF_FILEGROUP_ACROBAT'), 'office' => WFText::_('WF_FILEGROUP_OFFICE'), 'flash' => WFText::_('WF_FILEGROUP_FLASH'), 'shockwave' => WFText::_('WF_FILEGROUP_SHOCKWAVE'), 'quicktime' => WFText::_('WF_FILEGROUP_QUICKTIME'), 'windowsmedia' => WFText::_('WF_FILEGROUP_WINDOWSMEDIA'), 'silverlight' => WFText::_('WF_FILEGROUP_SILVERLIGHT'), 'openoffice' => WFText::_('WF_FILEGROUP_OPENOFFICE'), 'divx' => WFText::_('WF_FILEGROUP_DIVX'), 'real' => WFText::_('WF_FILEGROUP_REAL'), 'video' => WFText::_('WF_FILEGROUP_VIDEO'), 'audio' => WFText::_('WF_FILEGROUP_AUDIO'))), 'colorpicker' => array('stylesheets' => (array) WFModelEditor::getStyleSheets(), 'labels' => array('title' => WFText::_('WF_COLORPICKER_TITLE'), 'picker' => WFText::_('WF_COLORPICKER_PICKER'), 'palette' => WFText::_('WF_COLORPICKER_PALETTE'), 'named' => WFText::_('WF_COLORPICKER_NAMED'), 'template' => WFText::_('WF_COLORPICKER_TEMPLATE'), 'custom' => WFText::_('WF_COLORPICKER_CUSTOM'), 'color' => WFText::_('WF_COLORPICKER_COLOR'), 'apply' => WFText::_('WF_COLORPICKER_APPLY'), 'name' => WFText::_('WF_COLORPICKER_NAME'))), 'browser' => array('title' => WFText::_('WF_BROWSER_TITLE')));
return $options;
}