本文整理汇总了PHP中CMS::resourcesURL方法的典型用法代码示例。如果您正苦于以下问题:PHP CMS::resourcesURL方法的具体用法?PHP CMS::resourcesURL怎么用?PHP CMS::resourcesURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMS
的用法示例。
在下文中一共展示了CMS::resourcesURL方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: resources_url
function resources_url()
{
return CMS::resourcesURL();
}
示例2:
<?php
use KodiCMS\CMS\Assets\Package;
use KodiCMS\CMS\Helpers\WYSIWYG;
Package::add('libraries')->js(NULL, CMS::resourcesURL() . '/js/libraries.js');
Package::add('core')->css('global', CMS::resourcesURL() . '/css/common.css')->js(NULL, CMS::resourcesURL() . '/js/backend.js', 'libraries');
Package::add('jquery')->js(NULL, CMS::resourcesURL() . '/libs/jquery.min.js');
Package::add('bootstrap')->js(NULL, CMS::resourcesURL() . '/libs/bootstrap-3.3.1/dist/js/bootstrap.min.js', ['jquery', 'libraries']);
Package::add('underscore')->js(NULL, CMS::resourcesURL() . '/libs/underscore-min.js', ['jquery', 'libraries']);
Package::add('backbone')->js(NULL, CMS::resourcesURL() . '/libs/backbone-min.js', ['underscore', 'libraries']);
Package::add('jquery-ui')->js(NULL, CMS::resourcesURL() . '/libs/jquery-ui/js/jquery-ui.min.js', ['jquery', 'libraries'])->css(NULL, CMS::resourcesURL() . '/libs/jquery-ui/css/jquery-ui.min.css');
Package::add('notify')->js(NULL, CMS::resourcesURL() . '/libs/pnotify/jquery.pnotify.min.js', 'jquery')->css(NULL, CMS::resourcesURL() . '/libs/pnotify/jquery.pnotify.default.css');
Package::add('dropzone')->js(NULL, CMS::resourcesURL() . '/libs/dropzone/min/dropzone.min.js', ['jquery', 'libraries'])->css(NULL, CMS::resourcesURL() . '/libs/dropzone/min/basic.min.css', 'jquery')->css(NULL, CMS::resourcesURL() . '/libs/dropzone/min/dropzone.min.css', 'jquery');
Package::add('fancybox')->js(NULL, CMS::resourcesURL() . '/libs/fancybox/jquery.fancybox.pack.js', 'jquery')->css(NULL, CMS::resourcesURL() . '/libs/fancybox/jquery.fancybox.css', 'jquery');
Package::add('datepicker')->js(NULL, CMS::resourcesURL() . '/libs/datepicker/jquery.datetimepicker.min.js', 'jquery')->css(NULL, CMS::resourcesURL() . '/libs/datepicker/jquery.datetimepicker.css', 'jquery');
Package::add('prism')->js(NULL, CMS::resourcesURL() . '/libs/prismjs/prism.js', 'jquery')->css(NULL, CMS::resourcesURL() . '/libs/prismjs/prism.css', 'jquery');
Package::add('colorpicker')->css(NULL, CMS::resourcesURL() . '/libs/colorpicker/css/colorpicker.css', 'jquery')->js(NULL, CMS::resourcesURL() . '/libs/colorpicker/js/colorpicker.js', 'jquery');
Package::add('editable')->js(NULL, CMS::resourcesURL() . '/libs/bootstrap-editable-1.5.1/js/bootstrap-editable.min.js', 'bootstrap');
Package::add('nestable')->js(NULL, CMS::resourcesURL() . '/libs/nestable/jquery.nestable.min.js', 'bootstrap');
Package::add('steps')->js(NULL, CMS::resourcesURL() . '/libs/steps/jquery.steps.min.js', 'jquery');
Package::add('chart')->js(NULL, CMS::resourcesURL() . '/libs/highcharts/highcharts.js', 'jquery');
Package::add('select2')->js(NULL, CMS::resourcesURL() . '/libs/select2/select2.min.js', 'jquery')->js('select2' . Lang::getLocale(), CMS::resourcesURL() . '/libs/select2/select2_locale_' . Lang::getLocale() . '.js', ['select2', 'libraries']);
Package::add('validate')->js(NULL, CMS::resourcesURL() . '/libs/validation/jquery.validate.min.js', 'jquery')->js('validate' . Lang::getLocale(), CMS::resourcesURL() . '/libs/validation/localization/messages_' . Lang::getLocale() . '.min.js', 'validate');
Package::add('ckeditor')->js('ckeditor-library', CMS::resourcesURL() . '/libs/ckeditor/ckeditor.js', 'jquery')->js(NULL, CMS::backendResourcesURL() . '/js/ckeditor.js', 'jquery');
Package::add('ace')->js('ace-library', CMS::resourcesURL() . '/libs/ace/src-min/ace.js', 'jquery')->js(NULL, CMS::backendResourcesURL() . '/js/ace.js', 'jquery');
WYSIWYG::add('ace', 'Ace', NULL, NULL, WYSIWYG::TYPE_CODE);
WYSIWYG::add('ckeditor', 'CKEditor');
示例3:
<?php
use KodiCMS\CMS\Assets\Package;
Package::add('elfinder')->js('elfinder.lib', CMS::resourcesURL() . '/libs/elfinder/js/elfinder.min.js', 'global')->js('elfinder.' . Lang::getLocale(), CMS::resourcesURL() . '/libs/elfinder/js/i18n/elfinder.' . Lang::getLocale() . '.js', 'elfinder.lib')->css('elfinder.lib', CMS::resourcesURL() . '/libs/elfinder/css/elfinder.min.css');