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


PHP Tools::addCSS方法代码示例

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


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

示例1: hookHeader

 public function hookHeader($params)
 {
     Tools::addJS($this->_path . 'blocklayered.js');
     Tools::addJS(_PS_JS_DIR_ . 'jquery/jquery-ui-1.8.10.custom.min.js');
     Tools::addCSS($this->_path . 'blocklayered.css', 'all');
     Tools::addCSS(_PS_CSS_DIR_ . 'jquery-ui-1.8.10.custom.css', 'all');
 }
开发者ID:hecbuma,项目名称:quali-fisioterapia,代码行数:7,代码来源:blocklayered.php

示例2: hookHeader

 public function hookHeader($params)
 {
     if (Configuration::get('PS_CATALOG_MODE')) {
         return;
     }
     Tools::addCSS($this->_path . 'blockcurrencies.css', 'all');
 }
开发者ID:hecbuma,项目名称:quali-fisioterapia,代码行数:7,代码来源:blockcurrencies.php

示例3: setMedia

 public function setMedia()
 {
     parent::setMedia();
     Tools::addCSS(_THEME_CSS_DIR_ . 'history.css');
     Tools::addCSS(_THEME_CSS_DIR_ . 'addresses.css');
     Tools::addJS(array(_PS_JS_DIR_ . 'jquery/jquery.scrollTo-1.4.2-min.js', _THEME_JS_DIR_ . 'history.js'));
 }
开发者ID:greench,项目名称:prestashop,代码行数:7,代码来源:OrderSlipController.php

示例4: setMedia

 public function setMedia()
 {
     parent::setMedia();
     if ($this->assignCase == 1) {
         Tools::addJS(_THEME_JS_DIR_ . 'cms.js');
     }
     Tools::addCSS(_THEME_CSS_DIR_ . 'cms.css');
 }
开发者ID:srikanthash09,项目名称:codetestdatld,代码行数:8,代码来源:CMSController.php

示例5: setMedia

 public function setMedia()
 {
     parent::setMedia();
     Tools::addCSS(_THEME_CSS_DIR_ . '/comparator.css');
     if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) {
         Tools::addJS(_THEME_JS_DIR_ . 'products-comparison.js');
     }
 }
开发者ID:nicolasjeol,项目名称:hec-ecommerce,代码行数:8,代码来源:CompareController.php

示例6: hookHeader

 public function hookHeader($params)
 {
     if (!$this->isModuleAvailable()) {
         return;
     }
     Tools::addCSS($this->_path . 'style.css', 'all');
     Tools::addJS($this->_path . 'carriercompare.js');
 }
开发者ID:srikanthash09,项目名称:codetestdatld,代码行数:8,代码来源:carriercompare.php

示例7: setMedia

 public function setMedia()
 {
     parent::setMedia();
     Tools::addCSS(array(_PS_CSS_DIR_ . 'jquery.cluetip.css' => 'all', _THEME_CSS_DIR_ . 'scenes.css' => 'all', _THEME_CSS_DIR_ . 'category.css' => 'all', _THEME_CSS_DIR_ . 'product_list.css' => 'all'));
     if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) {
         Tools::addJS(_THEME_JS_DIR_ . 'products-comparison.js');
     }
 }
开发者ID:hecbuma,项目名称:quali-fisioterapia,代码行数:8,代码来源:CategoryController.php

示例8: hookHeader

 public function hookHeader($params)
 {
     if ($this->psversion() == 5) {
         $this->context->controller->addCSS($this->_path . 'poscategorythumb.css', 'all');
     } else {
         Tools::addCSS($this->_path . 'poscategorythumb.css');
     }
 }
开发者ID:IngenioContenidoDigital,项目名称:serta,代码行数:8,代码来源:poscategorythumb.php

示例9: hookHeader

 public function hookHeader($params)
 {
     if (Configuration::get('PS_SEARCH_AJAX')) {
         Tools::addCSS(_PS_CSS_DIR_ . 'jquery.autocomplete.css');
         Tools::addJS(_PS_JS_DIR_ . 'jquery/jquery.autocomplete.js');
     }
     Tools::addCSS(_THEME_CSS_DIR_ . 'product_list.css');
     Tools::addCSS($this->_path . 'blocksearch.css', 'all');
 }
开发者ID:Evil1991,项目名称:PrestaShop-1.4,代码行数:9,代码来源:blocksearch.php

示例10: hookHeader

 public function hookHeader($params)
 {
     $fileName = explode(DIRECTORY_SEPARATOR, $_SERVER['PHP_SELF']);
     if ($fileName[sizeof($fileName) - 1] != 'order.php') {
         return;
     }
     Tools::addCSS($this->_path . 'style.css', 'all');
     Tools::addJS($this->_path . 'carriercompare.js');
 }
开发者ID:hecbuma,项目名称:quali-fisioterapia,代码行数:9,代码来源:carriercompare.php

示例11: hookHeader

 public function hookHeader($params)
 {
     if ($this->psversion() == 5) {
         //$this->context->controller->addCSS(($this->_path).'scrolltop.css', 'all');
         $this->context->controller->addJS($this->_path . 'scrolltop.js', 'all');
     } else {
         Tools::addCSS($this->_path . 'scrolltop.css');
         Tools::addJS($this->_path . 'scrolltop.js');
     }
 }
开发者ID:IngenioContenidoDigital,项目名称:serta,代码行数:10,代码来源:posscroll.php

示例12: hookBackOfficeHeader

 public function hookBackOfficeHeader()
 {
     /* Add the css on feedaty backend page */
     if (version_compare(_PS_VERSION_, '1.5', '<')) {
         return '<link rel="stylesheet" type="text/css" href="' . _MODULE_DIR_ . $this->name . '/css/ps_style.css" />';
     } elseif (method_exists($this->context->controller, 'addCSS')) {
         $this->context->controller->addCSS(_MODULE_DIR_ . $this->name . '/css/ps_style.css');
     } else {
         Tools::addCSS(_MODULE_DIR_ . $this->name . '/css/ps_style.css');
     }
 }
开发者ID:ventsiwad,项目名称:presta_addons,代码行数:11,代码来源:feedaty.php

示例13: setMedia

 public function setMedia()
 {
     parent::setMedia();
     Tools::addCSS(_THEME_CSS_DIR_ . 'product.css');
     Tools::addCSS(_PS_CSS_DIR_ . 'jquery.fancybox-1.3.4.css', 'screen');
     Tools::addJS(array(_PS_JS_DIR_ . 'jquery/jquery.fancybox-1.3.4.js', _PS_JS_DIR_ . 'jquery/jquery.idTabs.modified.js', _PS_JS_DIR_ . 'jquery/jquery.scrollTo-1.4.2-min.js', _PS_JS_DIR_ . 'jquery/jquery.serialScroll-1.2.2-min.js', _THEME_JS_DIR_ . 'tools.js', _THEME_JS_DIR_ . 'product.js'));
     if (Configuration::get('PS_DISPLAY_JQZOOM') == 1) {
         Tools::addCSS(_PS_CSS_DIR_ . 'jqzoom.css', 'screen');
         Tools::addJS(_PS_JS_DIR_ . 'jquery/jquery.jqzoom.js');
     }
 }
开发者ID:srikanthash09,项目名称:codetestdatld,代码行数:11,代码来源:ProductController.php

示例14: setMedia

 public function setMedia()
 {
     global $cookie;
     Tools::addCSS(_THEME_CSS_DIR_ . 'global.css', 'all');
     Tools::addJS(array(_PS_JS_DIR_ . 'jquery/jquery.min.js', _PS_JS_DIR_ . 'jquery/jquery.easing.1.3.js', _PS_JS_DIR_ . 'tools.js', _PS_JS_DIR_ . 'cookies.js', _PS_JS_DIR_ . 'carousel.js'));
     if (Tools::isSubmit('live_edit') && Tools::getValue('ad') && Tools::getValue('liveToken') == sha1(Tools::getValue('ad') . _COOKIE_KEY_)) {
         Tools::addJS(array(_PS_JS_DIR_ . 'jquery/jquery-ui-1.8.10.custom.min.js', _PS_JS_DIR_ . 'jquery/jquery.fancybox-1.3.4.js', _PS_JS_DIR_ . 'hookLiveEdit.js'));
         Tools::addCSS(_PS_CSS_DIR_ . 'jquery.fancybox-1.3.4.css');
     }
     $language = new Language($cookie->id_lang);
     if ($language->is_rtl) {
         Tools::addCSS(_THEME_CSS_DIR_ . 'rtl.css');
     }
 }
开发者ID:bubujie,项目名称:xixia,代码行数:14,代码来源:FrontController.php

示例15: hookHeader

 public function hookHeader()
 {
     global $cookie;
     if ($cookie->__isset('cookieAccepted')) {
         return;
     }
     if (version_compare(_PS_VERSION_, '1.5', '>')) {
         $this->context->controller->addCSS($this->_path . 'imp_cookies.css', 'all');
     } elseif (version_compare(_PS_VERSION_, '1.4', '>')) {
         Tools::addCSS($this->_path . 'imp_cookies.css', 'all');
     } else {
         return;
     }
 }
开发者ID:Webelys,项目名称:imp_cookies,代码行数:14,代码来源:imp_cookies.php


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