当前位置: 首页>>代码示例>>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;未经允许,请勿转载。