本文整理汇总了PHP中JSNHtmlAsset::addScriptLibrary方法的典型用法代码示例。如果您正苦于以下问题:PHP JSNHtmlAsset::addScriptLibrary方法的具体用法?PHP JSNHtmlAsset::addScriptLibrary怎么用?PHP JSNHtmlAsset::addScriptLibrary使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSNHtmlAsset
的用法示例。
在下文中一共展示了JSNHtmlAsset::addScriptLibrary方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _addAssets
/**
* Add the libraries css and javascript
*
* @return void
*
* @since 1.6
*/
private function _addAssets()
{
JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery-ui-1.9.0.custom.css');
JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/bootstrap/css/bootstrap.min.css');
JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/joomlashine/css/jsn-gui.css');
JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/joomlashine/css/jsn-view-launchpad.css');
JSNHtmlAsset::addStyle(JURI::base(true) . '/components/com_uniform/assets/css/uniform.css');
if (preg_match('/msie/i', $_SERVER['HTTP_USER_AGENT'])) {
JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery-ui-1.8.16.ie.css');
}
JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery-ui-1.9.0.custom.css');
$arrayTranslated = array('JSN_UNIFORM_UPGRADE_EDITION_TITLE', 'JSN_UNIFORM_LAUNCHPAD_PLUGIN_SYNTAX', 'JSN_UNIFORM_YOU_MUST_SELECT_SOME_FORM', 'JSN_UNIFORM_EDIT_SELECTED_FORM', 'JSN_UNIFORM_LAUNCHPAD_PLUGIN_SYNTAX_DES', 'JSN_UNIFORM_YOU_HAVE_REACHED_THE_LIMITATION_OF_3_FORM_IN_FREE_EDITION', 'JSN_UNIFORM_UPGRADE_EDITION');
$edition = defined('JSN_UNIFORM_EDITION') ? JSN_UNIFORM_EDITION : "free";
JSNHtmlAsset::addScript(JSN_URL_ASSETS . '/3rd-party/jquery/jquery-1.8.2.js');
JSNHtmlAsset::addScriptLibrary('jquery.ui', '3rd-party/jquery-ui/js/jquery-ui-1.9.0.custom.min', array('jquery'));
echo JSNHtmlAsset::loadScript('uniform/launchpad', array('baseZeroClipBoard' => JSN_URL_ASSETS . '/3rd-party/jquery-zeroclipboard/ZeroClipboard.swf', 'edition' => $edition, 'language' => JSNUtilsLanguage::getTranslated($arrayTranslated)), true);
}
示例2: array
JSNHtmlAsset::addScriptLibrary('jquery.topzindex', '3rd-party/jquery-topzindex/jquery.topzindex', array('jquery'));
JSNHtmlAsset::addScriptLibrary('jquery.contextMenu', '3rd-party/jquery-contextMenu/jquery.contextMenu', array('jquery', 'jquery.ui'));
JSNHtmlAsset::addScriptLibrary('jquery.daterangepicker', '3rd-party/jquery-daterangepicker/js/daterangepicker.jQuery.compressed', array('jquery', 'jquery.ui'));
JSNHtmlAsset::addScriptLibrary('jquery.scrollto', '3rd-party/jquery-scrollto/jquery.scrollTo', array('jquery'));
JSNHtmlAsset::addScriptLibrary('jquery.stickyfloat', '3rd-party/jquery-stickyfloat/stickyFloat', array('jquery'));
JSNHtmlAsset::addScriptLibrary('jquery.zeroclipboard', '3rd-party/jquery-zeroclipboard/ZeroClipboard', array('jquery'));
JSNHtmlAsset::addScriptLibrary('jquery.json', '3rd-party/jquery-json/jquery.json-2.3.min', array('jquery'));
JSNHtmlAsset::addScriptLibrary('jquery.tipsy', '3rd-party/jquery-tipsy/jquery.tipsy', array('jquery'));
JSNHtmlAsset::addScriptLibrary('jquery.jwysiwyg', '3rd-party/jquery-jwysiwyg/jquery.wysiwyg', array('jquery'));
JSNHtmlAsset::addScriptLibrary('jquery.jwysiwyg09', '3rd-party/jquery-jwysiwyg/jquery.wysiwyg-0.9', array('jquery'));
JSNHtmlAsset::addScriptLibrary('jquery.wysiwyg.colorpicker', '3rd-party/jquery-jwysiwyg/controls/wysiwyg.colorpicker', array('jquery', 'jquery.jwysiwyg09'));
JSNHtmlAsset::addScriptLibrary('jquery.wysiwyg.table', '3rd-party/jquery-jwysiwyg/controls/wysiwyg.table', array('jquery', 'jquery.jwysiwyg09'));
JSNHtmlAsset::addScriptLibrary('jquery.wysiwyg.cssWrap', '3rd-party/jquery-jwysiwyg/controls/wysiwyg.cssWrap', array('jquery', 'jquery.jwysiwyg09'));
JSNHtmlAsset::addScriptLibrary('jquery.wysiwyg.image', '3rd-party/jquery-jwysiwyg/controls/wysiwyg.image', array('jquery', 'jquery.jwysiwyg09'));
JSNHtmlAsset::addScriptLibrary('jquery.wysiwyg.link', '3rd-party/jquery-jwysiwyg/controls/wysiwyg.link', array('jquery', 'jquery.jwysiwyg09'));
JSNHtmlAsset::addScriptLibrary('jquery.select2', '3rd-party/jquery-select2/select2.min', array('jquery'));
JSNHtmlAsset::addScriptLibrary('jquery.tmpl', '3rd-party/jquery.tmpl/jquery.tmpl.min', array('jquery'));
JSNHtmlAsset::addScriptLibrary('jquery.colorpicker', '3rd-party/jquery-colorpicker/js/colorpicker', array('jquery'));
JSNHtmlAsset::addScriptLibrary('jquery.gradientPicker', '3rd-party/jquery-gradientpicker/jquery.gradientPicker', array('jquery', 'jquery.ui'));
JSNHtmlAsset::addScriptLibrary('jquery.te', '3rd-party/jquery-te/js/jquery-te-1.4.0.min', array('jquery'));
JSNHtmlAsset::addScriptLibrary('codemirror', '3rd-party/codemirror/lib/codemirror', array('jquery'));
JSNHtmlAsset::addScriptLibrary('codemirror.edit.matchbrackets', '3rd-party/codemirror/addon/edit/matchbrackets', array('codemirror'));
JSNHtmlAsset::addScriptLibrary('codemirror.hint.html', '3rd-party/codemirror/addon/hint/html-hint', array('codemirror'));
JSNHtmlAsset::addScriptLibrary('codemirror.hint.javascript', '3rd-party/codemirror/addon/hint/javascript-hint', array('codemirror'));
JSNHtmlAsset::addScriptLibrary('codemirror.hint.show', '3rd-party/codemirror/addon/hint/show-hint', array('codemirror'));
JSNHtmlAsset::addScriptLibrary('codemirror.selection.activeline', '3rd-party/codemirror/addon/selection/active-line', array('codemirror'));
JSNHtmlAsset::addScriptLibrary('codemirror.selection.markselection', '3rd-party/codemirror/addon/selection/mark-selection', array('codemirror'));
JSNHtmlAsset::addScriptLibrary('codemirror.mode.css', '3rd-party/codemirror/mode/css/css', array('codemirror'));
JSNHtmlAsset::addScriptLibrary('codemirror.mode.htmlmixed', '3rd-party/codemirror/mode/htmlmixed/htmlmixed', array('codemirror'));
JSNHtmlAsset::addScriptLibrary('codemirror.mode.javascript', '3rd-party/codemirror/mode/javascript/javascript', array('codemirror'));