本文整理汇总了PHP中Helper_Include::addColorbox方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper_Include::addColorbox方法的具体用法?PHP Helper_Include::addColorbox怎么用?PHP Helper_Include::addColorbox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Helper_Include
的用法示例。
在下文中一共展示了Helper_Include::addColorbox方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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;
}
}