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


PHP ModuleFrontController::setMedia方法代碼示例

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


在下文中一共展示了ModuleFrontController::setMedia方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setMedia

 /**
  * Add CSS and JS files here
  */
 public function setMedia()
 {
     parent::setMedia();
     // @TODO Queue .js scripts and .css files here
     // $this->context->controller->addJS($this->module->getLocalPath().'views/js/fo.js');
     // $this->context->controller->addCSS($this->module->getLocalPath().'views/css/fo.css');
 }
開發者ID:PrestaShop,項目名稱:community-theme-16,代碼行數:10,代碼來源:components.php

示例2: setMedia

 public function setMedia()
 {
     if (Tools::getValue("ajax") != "true") {
         parent::setMedia();
     }
     $this->addJqueryPlugin(array("idTabs"));
 }
開發者ID:sho5kubota,項目名稱:guidingyou2,代碼行數:7,代碼來源:AgileModuleFrontController.php

示例3: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addCSS($this->module->getPathUri() . 'myvideo.css');
     $this->addCSS($this->module->getPathUri() . 'jquery/jRating.jquery.css');
     $this->addJs($this->module->getPathUri() . 'jquery/jRating.jquery.min.js');
 }
開發者ID:rongandat,項目名稱:vatfairfoot,代碼行數:7,代碼來源:post.php

示例4: setMedia

 /**
  * Set the Media (CSS / JS) of the page
  */
 public function setMedia()
 {
     parent::setMedia();
     $this->addCSS(array(_THEME_CSS_DIR_ . 'product_list.css' => 'all'));
     if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) {
         $this->addJS(_THEME_JS_DIR_ . 'products-comparison.js');
     }
 }
開發者ID:ventsiwad,項目名稱:presta_addons,代碼行數:11,代碼來源:search.php

示例5: setMedia

 public function setMedia()
 {
     if (method_exists($this->context->controller, 'addJquery')) {
         $this->context->controller->addJquery();
         //            $this->context->controller->addJqueryPlugin('fancybox');
         //            $this->context->controller->addJqueryUI('ui.sortable');
     }
     $this->context->controller->addCSS(_MODULE_DIR_ . $this->module->name . '/css/moduleclassname.css');
     $this->context->controller->addJS(_MODULE_DIR_ . $this->module->name . '/js/moduleclassname.js');
     return parent::setMedia();
 }
開發者ID:AngelTroya,項目名稱:psmgen,代碼行數:11,代碼來源:ModuleFrontClass.php

示例6: setMedia

 public function setMedia()
 {
     // We call the parent method
     parent::setMedia();
     // Save the module path in a variable
     $this->path = __PS_BASE_URI__ . 'modules/mymodcomments/';
     // Include the module CSS and JS files needed
     $this->context->controller->addCSS($this->path . 'views/css/star-rating.css', 'all');
     $this->context->controller->addJS($this->path . 'views/js/star-rating.js');
     $this->context->controller->addCSS($this->path . 'views/css/mymodcomments.css', 'all');
     $this->context->controller->addJS($this->path . 'views/js/mymodcomments.js');
 }
開發者ID:elperi,項目名稱:mymodcomments,代碼行數:12,代碼來源:comments.php

示例7: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->context->controller->addJS($this->module->getLocalPath() . 'js/back.js');
     $this->context->controller->addCSS($this->module->getLocalPath() . 'css/back.css');
     $this->context->controller->addJS($this->module->getLocalPath() . 'js/fontawesome-iconpicker.min.js');
     $this->context->controller->addCSS($this->module->getLocalPath() . 'css/fontawesome-iconpicker.min.css');
     $this->context->controller->addJS($this->module->getLocalPath() . 'js/spectrum.js');
     $this->context->controller->addCSS($this->module->getLocalPath() . 'css/spectrum.css');
     $this->context->controller->addCSS($this->module->getLocalPath() . 'css/fronteditor.css');
     $this->context->controller->addJS($this->module->getLocalPath() . 'js/fronteditor.js');
     Media::addJsDef(array('iqit_frontcreator' => true));
     $this->context->controller->addJqueryUI('ui.sortable');
     $this->context->controller->addJqueryPlugin('autocomplete');
 }
開發者ID:evgrishin,項目名稱:se1614,代碼行數:15,代碼來源:Editor.php

示例8: setMedia

 public function setMedia()
 {
     parent::setMedia();
     if (version_compare(_PS_VERSION_, '1.5.0.0', '>=') && (method_exists($this->context, 'getMobileDevice') && $this->context->getMobileDevice() == false || !method_exists($this->context, 'getMobileDevice'))) {
         $this->addCSS(array(_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) {
             $this->addJS(_THEME_JS_DIR_ . 'products-comparison.js');
         }
     } else {
         if (version_compare(_PS_VERSION_, '1.4.0.0', '>=')) {
             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:acreno,項目名稱:pm-ps,代碼行數:17,代碼來源:advancedsearch4.php

示例9: setMedia

 public function setMedia()
 {
     parent::setMedia();
     // Add CSS files //
     $this->addCSS(_THEME_CSS_DIR_ . 'addresses.css');
     if (class_exists('Tools') && method_exists('Tools', 'version_compare') && Tools::version_compare(_PS_VERSION_, '1.6', '>=') === true) {
         $this->addCSS(__PS_BASE_URI__ . 'modules/' . $this->module->name . '/views/css/shiptomyid-16.css', 'all');
     } else {
         $this->addCSS(__PS_BASE_URI__ . 'modules/' . $this->module->name . '/views/css/shiptomyid.css', 'all');
     }
     // Add JS files //
     $this->addJS(_THEME_JS_DIR_ . 'tools.js');
     if (class_exists('Tools') && method_exists('Tools', 'version_compare') && Tools::version_compare(_PS_VERSION_, '1.6', '>=') === true) {
         $this->addJS(__PS_BASE_URI__ . 'modules/' . $this->module->name . '/views/js/shipto-address-16.js');
     } else {
         $this->addJS(__PS_BASE_URI__ . 'modules/' . $this->module->name . '/views/js/shipto-address.js');
     }
 }
開發者ID:ship2myidpresta,項目名稱:shiptomyid-1,代碼行數:18,代碼來源:front.php

示例10: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->context->controller->addJS(_MODULE_DIR_ . $this->module->name . '/js/' . $this->module->name . '.js');
     $this->addJqueryPlugin(array('thickbox', 'idTabs'));
 }
開發者ID:pankajshoffex,項目名稱:shoffex_prestashop,代碼行數:6,代碼來源:program.php

示例11: setMedia

 public function setMedia()
 {
     parent::setMedia();
 }
開發者ID:victorlr7,項目名稱:pagamastarde-prestashop,代碼行數:4,代碼來源:confirmation.php

示例12: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryPlugin(array('thickbox', 'idTabs'));
 }
開發者ID:FAVHYAN,項目名稱:a3workout,代碼行數:5,代碼來源:program.php

示例13: setMedia

 public function setMedia()
 {
     parent::setMedia();
     if (!$this->instant_search && !$this->ajax_search) {
         $this->addCSS(_THEME_CSS_DIR_ . 'product_list.css');
     }
 }
開發者ID:habypk,項目名稱:zocart,代碼行數:7,代碼來源:catesearch.php

示例14: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addCSS(__PS_BASE_URI__ . MP_DIR . 'views/css/gateway.css');
 }
開發者ID:pedalracer,項目名稱:free_modules_1.5,代碼行數:5,代碼來源:submit.php

示例15: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addCSS($this->module->getPathUri() . 'myvideo.css');
 }
開發者ID:rongandat,項目名稱:vatfairfoot,代碼行數:5,代碼來源:post.php


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