本文整理汇总了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;
}
示例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") {