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


PHP KSSystem::loadPlugins方法代码示例

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


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

示例1: onLoadKsen

 public function onLoadKsen($ext_name_local, array $hFolders = array(), array $ignoreHelpers = array(), array $config = array())
 {
     global $ext_name, $ext_name_com, $ext_prefix;
     $ext_name = $ext_name_local;
     if (strripos($ext_name_local, '.') !== false) {
         list($ext_name, $ext_prefix) = explode('.', $ext_name_local);
     }
     $ext_name_com = 'com_' . $ext_name;
     $document = JFactory::getDocument();
     $version = new JVersion();
     $this->input = JFactory::getApplication()->input;
     $option = $this->input->get('option', null, 'string');
     $extension = $this->input->get('extension', $ext_name_com, 'string');
     include_once dirname(__FILE__) . '/core/defines.php';
     include_once KSC_ADMIN_PATH_CORE_HELPERS . 'helper.php';
     KSLoader::loadCoreHelpers($hFolders, $ignoreHelpers);
     if (!isset($config['admin'])) {
         $config['admin'] = false;
     }
     JHtml::_('behavior.keepalive');
     if ($version->RELEASE < 3.0) {
     } else {
         JHtml::_('jquery.framework');
         JHtml::_('jquery.ui');
         JHtml::_('bootstrap.framework');
     }
     if ($config['admin']) {
         KSSystem::addCSS(array('style', 'prog-style', 'nprogress', 'ui-lightness/jquery-ui-1.8.20.custom'));
         if ($version->RELEASE >= 3.0) {
             JHtml::_('jquery.ui', array('sortable'));
             JHtml::_('bootstrap.framework');
             JHtml::_('behavior.framework');
         } else {
             $document->addScript('http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js');
         }
         KSSystem::addJS(array('common', 'style', 'nprogress', 'list', 'listmodule'));
     }
     if ($this->params->get('angularJS', 1) && $config['angularJS']) {
     }
     $script = '
         var KS = {
             extension: \'' . $extension . '\',
             option: \'' . $ext_name_com . '\'
         };
     ';
     $document->addScriptDeclaration($script);
     KSSystem::loadPlugins();
     KSSystem::import('libraries.ksdb');
 }
开发者ID:JexyRu,项目名称:Ksenmart,代码行数:49,代码来源:ksencore.php

示例2: AddHeadTags

 public static function AddHeadTags()
 {
     if (self::$_headAdded == true) {
         return;
     }
     $session = JFactory::getSession();
     $document = JFactory::getDocument();
     JDispatcher::getInstance()->trigger('onLoadKsen', array('ksenmart.KSM', array('common'), array(), array('angularJS' => 0)));
     KSLoader::loadLocalHelpers(array('common'));
     $params = JComponentHelper::getParams('com_ksenmart');
     $document->addScript(JURI::base() . 'administrator/components/com_ksenmart/js/jquery.custom.min.js');
     $document->addScript(JURI::base() . 'components/com_ksenmart/js/common.js');
     $document->addStyleSheet(JURI::base() . 'components/com_ksenmart/css/common.css');
     if ($params->get('include_css', 1)) {
         $document->addStyleSheet(JURI::base() . 'components/com_ksenmart/css/template.css');
     }
     $js = "\n        var URI_ROOT='" . JURI::root() . "';\n        var km_cart_link='" . JRoute::_('index.php?option=com_ksenmart&view=cart&Itemid=' . KSSystem::getShopItemid()) . "';\n        var shopItemid='" . KSSystem::getShopItemid() . "';\n        var order_type='ordering';\n        var order_dir='asc';    \n        var limit=" . $params->get('site_product_limit', 30) . ";\n        var limitstart=0;   \n        var use_pagination=" . $params->get('site_use_pagination', 0) . ";\n        var order_process=" . $params->get('order_process', 0) . ";\n        var cat_id=" . JRequest::getInt('id', 0) . ";\n        var user_id=" . JFactory::getUser()->id . ";\n        var page=1;\n        var session_id='" . $session->getId() . "';\n        ";
     $document->addScriptDeclaration($js);
     self::$_headAdded = true;
     KSSystem::loadPlugins();
 }
开发者ID:JexyRu,项目名称:Ksenmart,代码行数:21,代码来源:head.php


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