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


PHP JSFactory::loadCssFiles方法代码示例

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


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

示例1: getList

 public static function getList(&$params)
 {
     $db = JFactory::getDBO();
     $jshopConfig = JSFactory::getConfig();
     $jshopConfig->cur_lang = $jshopConfig->frontend_lang;
     JSFactory::loadCssFiles();
     JSFactory::loadLanguageFile();
     $lang = JSFactory::getLang();
     $jshopConfig = JSFactory::getConfig();
     $field_sort = $params->get('sort', 'id');
     $ordering = $params->get('ordering', 'asc');
     $_limit = (int) $params->get('count_cat', 10);
     $catids = $params->get('catids', 0);
     $_catids = array();
     $list = array();
     settype($catids, 'array');
     if (!empty($catids)) {
         $catid = implode(", ", $catids);
         $list = self::getCategory($catid, $field_sort, $ordering, $_limit, 1);
     }
     if (!empty($list)) {
         foreach ($list as $i => $item) {
             $item->_short_desc = self::_cleanText($item->short_description);
             $item->_description = self::_cleanText($item->description);
             $item->_description = $item->_description != '' ? $item->_description : $item->_short_desc;
             self::getJSCImages($item, $params, 'imgcfgcat');
         }
     }
     return $list;
 }
开发者ID:ngogiangthanh,项目名称:damtvnewversion,代码行数:30,代码来源:helper.php

示例2: error_reporting

error_reporting(error_reporting() & ~E_NOTICE);
if (!file_exists(JPATH_SITE . '/components/com_jshopping/jshopping.php')) {
    JError::raiseError(500, "Please install component \"joomshopping\"");
}
$layout = $params->get('layout', 'default');
$display_fileters = 0;
if (JRequest::getVar("controller") == "category" && JRequest::getInt("category_id")) {
    $display_fileters = 1;
}
if (JRequest::getVar("controller") == "manufacturer" && JRequest::getInt("manufacturer_id")) {
    $display_fileters = 1;
}
//if (!$display_fileters) return "";
require_once JPATH_SITE . '/components/com_jshopping/lib/factory.php';
require_once JPATH_SITE . '/components/com_jshopping/lib/functions.php';
JSFactory::loadCssFiles();
JSFactory::loadLanguageFile();
$jshopConfig = JSFactory::getConfig();
$mainframe = JFactory::getApplication();
$show_manufacturers = $params->get('show_manufacturers');
$show_categorys = $params->get('show_categorys');
$show_prices = $params->get('show_prices');
$show_characteristics = $params->get('show_characteristics');
$category_id = JRequest::getInt('category_id');
$manufacturer_id = JRequest::getInt('manufacturer_id');
//$contextfilter = "";
$contextfilter = "jshoping.list.front.product.cat.1";
if (JRequest::getVar("controller") == "category") {
    $contextfilter = "jshoping.list.front.product.cat." . $category_id;
}
if (JRequest::getVar("controller") == "manufacturer") {
开发者ID:aldegtyarev,项目名称:vip-kvartira,代码行数:31,代码来源:mod_jshopping_filters.php


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