當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Tools::addJS方法代碼示例

本文整理匯總了PHP中Tools::addJS方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tools::addJS方法的具體用法?PHP Tools::addJS怎麽用?PHP Tools::addJS使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Tools的用法示例。


在下文中一共展示了Tools::addJS方法的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: 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

示例3: 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

示例4: 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

示例5: 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

示例6: 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

示例7: setMedia

 public function setMedia()
 {
     parent::setMedia();
     Tools::addJS(_THEME_JS_DIR_ . 'slider.js');
     Tools::addJS(_THEME_JS_DIR_ . 'slides.min.jquery.js');
     Tools::addJS(_THEME_JS_DIR_ . 'jquery.slide.js');
     Tools::addJS(_THEME_JS_DIR_ . 'jquery.form.js');
 }
開發者ID:khuyennd,項目名稱:dev-tasagent,代碼行數:8,代碼來源:RoomPlanSummaryController.php

示例8: 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

示例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)
 {
     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

示例11: 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

示例12: hookheader

 public function hookheader($params)
 {
     global $smarty, $cookie;
     $vars = array('search_ssl' => (int) (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off'), 'path' => $this->_path, 'searchable_active' => Configuration::get('MENU_SEARCH'), 'searchable_button' => Configuration::get('MENU_BUTTON'), 'searchable_autocomplete' => Configuration::get('MENU_COMPLETION'), 'id_lang' => $cookie->id_lang, 'id' => $this->_getId(), 'category_id' => $this->_getCategoryId($cookie->id_lang), 'categories_num' => intVal(Configuration::get('MENU_CATEGORIES_NUM')), 'categories_zero' => Configuration::get('MENU_CATEGORIES_ZERO') ? true : false, 'icons' => Configuration::get('MENU_ICONS'), 'icons_path' => dirname(__FILE__) . '/gfx/icons/', 'icons_url' => $this->_path . 'gfx/icons/', 'items' => Menu::getItemsForView($cookie->id_lang), 'logged' => isset($cookie->id_customer) && $cookie->isLogged() ? true : false, 'hook' => isset($parameters['preview']) ? 'menu' : Configuration::get('MENU_HOOK'));
     // CSS Files
     if (Configuration::get('MENU_STYLES_ENABLE')) {
         Tools::addCss(array($this->_path . 'css/superfish-modified.css' => 'screen', $this->_path . 'cache/menu.css' => 'screen', __PS_BASE_URI__ . 'css/jquery.autocomplete.css' => 'screen'));
     }
     // JS Files
     Tools::addJS(array($this->_path . 'js/hoverIntent.js', $this->_path . 'js/superfish-modified.js', __PS_BASE_URI__ . 'js/jquery/jquery.autocomplete.js'));
     $smarty->assign('menu', $vars);
     return $this->display(__FILE__, 'header.tpl');
 }
開發者ID:WhisperingTree,項目名稱:etagerca,代碼行數:13,代碼來源:jbx_menu.php

示例13: 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

示例14: hookHeader

 public function hookHeader()
 {
     global $cookie;
     $shopUrl = __PS_BASE_URI__;
     $themeUrl = $shopUrl . 'themes/' . _THEME_NAME_ . '/';
     if (in_array(Configuration::get('BLANK_FONT'), array("almelo", "jura", "gabo"))) {
         Tools::addJS($themeUrl . 'js/cufon-yui.js');
         Tools::addCSS($themeUrl . 'css/blank/themes/' . Configuration::get('BLANK_COLOUR') . '/style.css', 'all');
         Tools::addJS($themeUrl . 'js/fonts/' . Configuration::get('BLANK_FONT') . '/font.js');
     } else {
         Tools::addCSS($themeUrl . 'css/blank/themes/' . Configuration::get('BLANK_COLOUR') . '/style.css', 'all');
         Tools::addCSS($themeUrl . 'css/blank/themes/' . Configuration::get('BLANK_COLOUR') . '/' . Configuration::get('BLANK_FONT') . '/style.css', 'all');
     }
 }
開發者ID:prayasjain,項目名稱:MyCollegeStore,代碼行數:14,代碼來源:blank_theamer.php

示例15: _hookCommon

 /**
  * _hookAll has to be called in each hookXXX methods. This is made to avoid code duplication.
  * 
  * @param mixed $params 
  * @return void
  */
 private function _hookCommon($params)
 {
     global $smarty;
     Tools::addJS($this->_path . 'ajax-solr/core/Core.js');
     Tools::addJS($this->_path . 'ajax-solr/core/AbstractManager.js');
     Tools::addJS($this->_path . 'ajax-solr/core/AbstractWidget.js');
     Tools::addJS($this->_path . 'ajax-solr/core/Parameter.js');
     Tools::addJS($this->_path . 'ajax-solr/core/ParameterStore.js');
     Tools::addJS($this->_path . 'ajax-solr/managers/Manager.jquery.js');
     Tools::addJS($this->_path . 'ajax-solr/autocompleteWidget.js');
     Tools::addCSS(_PS_CSS_DIR_ . 'jquery.autocomplete.css');
     Tools::addCSS(_THEME_CSS_DIR_ . 'product_list.css');
     Tools::addCSS($this->_path . 'solrbridge.css', 'all');
     return true;
 }
開發者ID:91Abdullah,項目名稱:solr-bridge-prestashop,代碼行數:21,代碼來源:solrbridge.php


注:本文中的Tools::addJS方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。