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


PHP FrontController::setMedia方法代碼示例

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


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

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

示例2: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addCSS(_THEME_CSS_DIR_ . 'product_list.css');
     $this->addJS(_THEME_JS_DIR_ . 'header.js');
     $this->addJS(_THEME_JS_DIR_ . 'product_list.js');
 }
開發者ID:yewed,項目名稱:share,代碼行數:7,代碼來源:SupplierController.php

示例3: setMedia

 /**
  * Set default medias for this controller
  */
 public function setMedia()
 {
     parent::setMedia();
     $this->addJS(_PS_JS_DIR_ . 'validate.js');
     $this->addJS(_THEME_JS_DIR_ . 'tools/statesManagement.js');
     $this->addJS(_THEME_JS_DIR_ . 'validate_fields.js');
 }
開發者ID:dev-lav,項目名稱:htdocs,代碼行數:10,代碼來源:AddressController.php

示例4: setMedia

 /**
  * Set default medias for this controller
  */
 public function setMedia()
 {
     parent::setMedia();
     $this->addCSS(_THEME_CSS_DIR_ . 'addresses.css');
     $this->addJS(_THEME_JS_DIR_ . 'tools.js');
     // retro compat themes 1.5
 }
開發者ID:zangles,項目名稱:lennyba,代碼行數:10,代碼來源:AddressesController.php

示例5: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addCSS(array(_THEME_CSS_DIR_ . 'history.css', _THEME_CSS_DIR_ . 'addresses.css'));
     $this->addJqueryPlugin('scrollTo');
     $this->addJS(array(_THEME_JS_DIR_ . 'history.js', _THEME_JS_DIR_ . 'tools.js'));
 }
開發者ID:rrameshsat,項目名稱:Prestashop,代碼行數:7,代碼來源:OrderSlipController.php

示例6: 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:priyankajsr19,項目名稱:indusdiva2,代碼行數:7,代碼來源:CMSController.php

示例7: setMedia

 /**
  * Set default medias for this controller
  * @see FrontController::setMedia()
  */
 public function setMedia()
 {
     parent::setMedia();
     $this->addCSS(_THEME_CSS_DIR_ . 'authentication.css');
     $this->addJqueryPlugin('typewatch');
     $this->addJS(_THEME_JS_DIR_ . 'tools/statesManagement.js');
 }
開發者ID:jicheng17,項目名稱:pengwine,代碼行數:11,代碼來源:AuthController.php

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

示例9: setMedia

 public function setMedia()
 {
     parent::setMedia();
     Context::getContext()->controller->addCSS(array(_PS_CSS_DIR_ . 'jquery.cluetip.css' => 'all', _MODULE_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');
     }
 }
開發者ID:evilscripts,項目名稱:gy,代碼行數:8,代碼來源:SellerLocationController.php

示例10: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addCSS(_THEME_CSS_DIR_ . '/comparator.css');
     if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) {
         $this->addJS(_THEME_JS_DIR_ . 'products-comparison.js');
     }
 }
開發者ID:FAVHYAN,項目名稱:a3workout,代碼行數:8,代碼來源:CompareController.php

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

示例12: setMedia

 /**
  * Set default medias for this controller
  */
 public function setMedia()
 {
     parent::setMedia();
     //TODO : check why cluetip css is include without js file
     $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');
     }
 }
開發者ID:jicheng17,項目名稱:vipinsg,代碼行數:12,代碼來源:CategoryController.php

示例13: setMedia

 /**
  * Set default medias for this controller
  * @see FrontController::setMedia()
  */
 public function setMedia()
 {
     parent::setMedia();
     if (Context::getContext()->getMobileDevice() === false) {
         $this->addCSS(_THEME_CSS_DIR_ . 'authentication.css');
     }
     $this->addJqueryPlugin('typewatch');
     $this->addJS(_THEME_JS_DIR_ . 'tools/statesManagement.js');
 }
開發者ID:toufikadfab,項目名稱:PrestaShop-1.5,代碼行數:13,代碼來源:AuthController.php

示例14: setMedia

 /**
  * Set default medias for this controller
  * @see FrontController::setMedia()
  */
 public function setMedia()
 {
     parent::setMedia();
     if (!$this->useMobileTheme()) {
         $this->addCSS(_THEME_CSS_DIR_ . 'authentication.css');
     }
     $this->addJqueryPlugin('typewatch');
     $this->addJS(array(_THEME_JS_DIR_ . 'tools/vatManagement.js', _THEME_JS_DIR_ . 'tools/statesManagement.js', _THEME_JS_DIR_ . 'authentication.js', _PS_JS_DIR_ . 'validate.js'));
 }
開發者ID:prestanesia,項目名稱:PrestaShop,代碼行數:13,代碼來源:AuthController.php

示例15: setMedia

 /**
  * Set default medias for this controller
  */
 public function setMedia()
 {
     parent::setMedia();
     if ($this->context->getMobileDevice() == false) {
         //TODO : check why cluetip css is include without js file
         $this->addCSS(array(_THEME_CSS_DIR_ . 'scenes.css' => 'all', _THEME_CSS_DIR_ . 'category.css' => 'all', _THEME_CSS_DIR_ . 'product_list.css' => 'all'));
     }
     $this->addJS(_THEME_JS_DIR_ . 'category.js');
 }
開發者ID:dev-lav,項目名稱:htdocs,代碼行數:12,代碼來源:CategoryController.php


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