当前位置: 首页>>代码示例>>PHP>>正文


PHP CMS::backendResourcesURL方法代码示例

本文整理汇总了PHP中CMS::backendResourcesURL方法的典型用法代码示例。如果您正苦于以下问题:PHP CMS::backendResourcesURL方法的具体用法?PHP CMS::backendResourcesURL怎么用?PHP CMS::backendResourcesURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CMS的用法示例。


在下文中一共展示了CMS::backendResourcesURL方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: registerMedia

 public function registerMedia()
 {
     parent::registerMedia();
     $this->templateScripts['ACE_THEME'] = config('cms.default_ace_theme', 'textmate');
     $this->templateScripts['DEFAULT_HTML_EDITOR'] = config('cms.default_html_editor', '');
     $this->templateScripts['DEFAULT_CODE_EDITOR'] = config('cms.default_code_editor', '');
     Assets::package(['libraries', 'core']);
     $file = $this->getRouterController();
     if (app('module.loader')->findFile('resources/js', $file, 'js')) {
         Assets::js('controller.' . $file, \CMS::backendResourcesURL() . '/js/' . $file . '.js', 'global', FALSE, 999);
     }
     // TODO: разобраться с подключением событий и локалей в контроллер
     //Assets::group('global', 'events', '<script type="text/javascript">' . Assets::merge_files('js/events', 'js') . '</script>', 'global');
 }
开发者ID:BlueCatTAT,项目名称:kodicms-laravel,代码行数:14,代码来源:BackendController.php

示例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');
开发者ID:BlueCatTAT,项目名称:kodicms-laravel,代码行数:27,代码来源:packages.php

示例3: registerMedia

 public function registerMedia()
 {
     $this->templateScripts = ['CURRENT_URL' => $this->request->url(), 'SITE_URL' => url(), 'BASE_URL' => url(\CMS::backendPath()), 'BACKEND_PATH' => \CMS::backendPath(), 'BACKEND_RESOURCES' => \CMS::backendResourcesURL(), 'PUBLIC_URL' => url(), 'LOCALE' => \Lang::getLocale(), 'ROUTE' => $this->getRouter()->currentRouteAction(), 'ROUTE_PATH' => $this->getRouterPath(), 'USER_ID' => \Auth::id(), 'MESSAGE_ERRORS' => view()->shared('errors')->getBag('default'), 'MESSAGE_SUCCESS' => (array) $this->session->get('success', [])];
 }
开发者ID:BlueCatTAT,项目名称:kodicms-laravel,代码行数:4,代码来源:TemplateController.php


注:本文中的CMS::backendResourcesURL方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。