本文整理汇总了PHP中Helper_Include::addStyleSheets方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper_Include::addStyleSheets方法的具体用法?PHP Helper_Include::addStyleSheets怎么用?PHP Helper_Include::addStyleSheets使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Helper_Include
的用法示例。
在下文中一共展示了Helper_Include::addStyleSheets方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addDependencies
public static function addDependencies($view, $layout, $tmpl = '')
{
$doc = JFactory::getDocument();
$script = $tmpl == 'ajax' ? false : true;
if ($script !== false) {
if (JCck::on()) {
JHtml::_('behavior.framework', false);
JHtml::_('bootstrap.tooltip');
}
JCck::loadjQuery(true, true, true);
}
Helper_Include::addStyleSheets(true);
}
示例2: display
public function display($tpl = NULL)
{
$app = JFactory::getApplication();
if ($this->getlayout() != 'select') {
$preconfig = array();
$preconfig['action'] = '';
$preconfig['client'] = 'admin';
$preconfig['formId'] = 'seblod_form';
$preconfig['submit'] = 'JCck.Core.submit';
$preconfig['task'] = $app->input->get('task', '');
$preconfig['type'] = $app->input->get('type', '');
$preconfig['url'] = JFactory::getURI()->toString();
JCck::loadjQuery();
Helper_Include::addStyleSheets(false);
$this->prepareDisplay($preconfig);
}
parent::display($tpl);
}
示例3: addDependencies
public static function addDependencies($view, $layout, $tmpl = '')
{
$doc = JFactory::getDocument();
$script = $tmpl == 'ajax' ? false : true;
Helper_Include::addStyleSheets(true);
// Additional
switch ($view) {
case 'box':
JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js', 'jquery.ui.effects.min.js', 'jquery.json.min.js'));
Helper_Include::addSmoothScrool(500);
break;
case 'folder':
JCck::loadjQuery(true, true, true);
break;
case 'template':
JCck::loadjQuery(true, true, true);
Helper_Include::addJSTree('cck_tree', $script);
break;
case 'site':
JCck::loadjQuery(true, true, true);
break;
case 'field':
if ($script === true) {
JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js'));
JCck::loadjQueryUI();
}
Helper_Include::addTooltip('span[title].qtip_cck', 'left center', 'right center', 'ui-tooltip-cck-indigo_dye ui-tooltip-shadow', $script, $tmpl);
Helper_Include::addTooltip('img[title].qtip_cck', 'right center', 'left center', 'ui-tooltip-cck-indigo_dye ui-tooltip-shadow', false, $tmpl);
break;
case 'type':
case 'search':
if ($script === true) {
JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js', 'jquery.biscuit.min.js'));
JCck::loadjQueryUI();
$doc->addStyleSheet(JROOT_CCK . '/administrator/components/com_' . CCK_NAME . '/assets/css/ui-construction.css');
$doc->addStyleSheet(JROOT_CCK . '/administrator/components/com_' . CCK_NAME . '/assets/styles/seblod/ui-construction.css');
}
Helper_Include::addColorbox_Live('930', '550', $script, 'cbox', ', onLoad: function(){ $("#cboxClose").remove();}');
Helper_Include::addColorpicker($script);
Helper_Include::addTooltip('', '', '', '', $script);
break;
case 'version':
JCck::loadjQuery(true, true, true);
break;
// --------
// --------
case 'templates':
case 'types':
case 'fields':
case 'searchs':
case 'folders':
case 'sites':
case 'variations':
case 'versions':
if ($view == 'folders') {
JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js'));
} else {
JCck::loadjQuery();
}
if (JCck::on()) {
JHtml::_('bootstrap.tooltip');
JHtml::_('formbehavior.chosen', 'select:not(.no-chosen)');
}
Helper_Include::addLavalamp('#submenu');
Helper_Include::addSmoothScrool();
if ($view == 'fields') {
Helper_Include::addColorbox('500', '300', $script, 'cbox', ', onLoad: function(){ $("#cboxClose").remove();}');
} elseif ($view == 'templates') {
Helper_Include::addColorbox('850', '585', $script);
} elseif ($view == 'types' || $view == 'searchs') {
Helper_Include::addColorbox('850', '430', true, 'cbox_button', ', scrolling:false');
} elseif ($view == 'variations') {
JHtml::_('behavior.framework', false);
}
if ($view == 'searchs' || $view == 'sites') {
$doc->addStyleSheet(JROOT_MEDIA_CCK . '/css/jquery.sly.css');
$doc->addScript(JROOT_MEDIA_CCK . '/js/jquery.sly.min.js');
}
break;
case 'cck':
$doc->addStyleSheet(JROOT_CCK . '/administrator/components/com_' . CCK_NAME . '/assets/css/cpanel.css');
JCck::loadjQuery();
Helper_Include::addColorbox('930', '430', true, 'cbox_button');
Helper_Include::addLavalamp('#submenu');
break;
default:
break;
}
}
示例4: elseif
$legacy = $options->get('add_alt', 2);
}
}
if ($legacy == 1) {
$legend = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND', '<a id="standard-content" href="javascript:void(0);" style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_CLICK_HERE')) . '</a>', '<span style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM')) . '</span>');
$legend2 = '';
} elseif ($legacy == 2) {
$legend = JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM');
$legend2 = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND2', '<a id="standard-content" href="javascript:void(0);" style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_CLICK_HERE')) . '</a>');
} else {
$legend = JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM');
$legend2 = '';
}
// Set
JCck::loadjQuery();
Helper_Include::addStyleSheets(true);
if (JCck::on()) {
JHtml::_('stylesheet', 'administrator/components/com_cck/assets/css/cpanel.css', array(), false);
}
$doc = JFactory::getDocument();
$js = 'jQuery(document).ready(function($){ $("#standard-content").attr("onclick","parent."+parent.jQuery("#toolbar-new a").attr("onclick2")); });';
$doc->addScriptDeclaration($js);
?>
<form action="<?php
echo JRoute::_('index.php');
?>
" method="post" id="adminForm" name="adminForm">
<div class="seblod">
<?php