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


PHP FrontController::displayHeader方法代碼示例

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


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

示例1: displayHeader

 public function displayHeader()
 {
     if (!$this->instantSearch and !$this->ajaxSearch) {
         parent::displayHeader();
     } else {
         self::$smarty->assign('static_token', Tools::getToken(false));
     }
 }
開發者ID:greench,項目名稱:prestashop,代碼行數:8,代碼來源:SearchController.php

示例2: displayHeader

 public function displayHeader()
 {
     if (Tools::getValue('orderby', false)) {
         self::$smarty->assign('nobots', 1);
     }
     $rewrited_url = self::$link->getCategoryLink((int) $this->category->id, $this->category->link_rewrite);
     self::$smarty->assign('paginationBaseUrl', $rewrited_url);
     parent::displayHeader();
 }
開發者ID:priyankajsr19,項目名稱:indusdiva2,代碼行數:9,代碼來源:CategoryController.php

示例3: displayHeader

 public function displayHeader()
 {
     global $link;
     $pageNo = Tools::getValue('p', '');
     self::$smarty->assign('meta_title', 'Recent searches on IndusDiva.com');
     self::$smarty->assign('meta_description', 'Popular products searhes ' . $pageNo);
     self::$smarty->assign('nobots', 1);
     parent::displayHeader();
 }
開發者ID:priyankajsr19,項目名稱:indusdiva2,代碼行數:9,代碼來源:RecentSearchesController.php

示例4: displayHeader

 public function displayHeader()
 {
     self::$smarty->assign('nobots', 1);
     parent::displayHeader();
 }
開發者ID:priyankajsr19,項目名稱:indusdiva2,代碼行數:5,代碼來源:PasswordController.php

示例5: displayHeader

 public function displayHeader()
 {
     global $link;
     $images = $this->product->getImages((int) self::$cookie->id_lang);
     foreach ($images as $k => $image) {
         if ($image['cover']) {
             $cover = $image;
             $cover['id_image'] = Configuration::get('PS_LEGACY_IMAGES') ? $this->product->id . '-' . $image['id_image'] : $image['id_image'];
         }
     }
     $pageTitle = 'Buy ' . $this->product->name . ' (CODE:' . $this->product->reference . ') online from India - IndusDiva.com';
     $pageDescription = 'Shop for original ' . $this->product->name . ' (CODE:' . $this->product->reference . ') online. 100% authentic. Free Shipping in India and across world (over $300)';
     $og_description = $pageDescription;
     $og_page_url = $this->product->getLink();
     $og_image_url = $link->getImageLink($this->product->link_rewrite, $cover['id_image'], 'large');
     $og_title = $this->product->name;
     self::$smarty->assign(array('og_meta' => 1, 'og_description' => $og_description, 'og_page_url' => $og_page_url, 'canonical_url' => $og_page_url, 'og_image_url' => $og_image_url, 'og_title' => $og_title, 'og_type' => 'indusdiva:product'));
     self::$smarty->assign('meta_title', $pageTitle);
     self::$smarty->assign('meta_description', $pageDescription);
     parent::displayHeader();
 }
開發者ID:priyankajsr19,項目名稱:indusdiva2,代碼行數:21,代碼來源:ProductController_20aug_bkp.php

示例6: displayHeader

 public function displayHeader()
 {
     if (!$this->instantSearch and !$this->ajaxSearch) {
         parent::displayHeader();
     }
 }
開發者ID:hecbuma,項目名稱:quali-fisioterapia,代碼行數:6,代碼來源:SearchController.php

示例7: displayHeader

 public function displayHeader()
 {
     parent::displayHeader();
 }
開發者ID:priyankajsr19,項目名稱:indusdiva2,代碼行數:4,代碼來源:GiftCardController.php

示例8: displayHeader

 public function displayHeader($display = true)
 {
     if (!$this->instant_search && !$this->ajax_search) {
         parent::displayHeader();
     } else {
         $this->context->smarty->assign('static_token', Tools::getToken(false));
     }
 }
開發者ID:toufikadfab,項目名稱:PrestaShop-1.5,代碼行數:8,代碼來源:SearchController.php

示例9: displayHeader

 public function displayHeader()
 {
     if (Tools::getValue('ajax') != 'true') {
         parent::displayHeader();
     }
 }
開發者ID:Evil1991,項目名稱:PrestaShop-1.4,代碼行數:6,代碼來源:OrderDetailController.php

示例10: displayHeader

 public function displayHeader()
 {
     if ($this->display_header) {
         parent::displayHeader();
     }
 }
開發者ID:acreno,項目名稱:pm-ps,代碼行數:6,代碼來源:advancedsearch4.php

示例11: displayHeader

 public function displayHeader()
 {
     self::$smarty->assign('nobots', 1);
     if (Tools::getValue('ajax') != 'true') {
         parent::displayHeader();
     }
 }
開發者ID:priyankajsr19,項目名稱:indusdiva2,代碼行數:7,代碼來源:AddressController.php

示例12: displayHeader

 public function displayHeader()
 {
     self::$smarty->assign('canonical_url', _PS_BASE_URL_ . __PS_BASE_URI__);
     parent::displayHeader();
 }
開發者ID:priyankajsr19,項目名稱:indusdiva2,代碼行數:5,代碼來源:IndexController.php

示例13: displayHeader

 public function displayHeader()
 {
     global $link;
     //self::$smarty->assign('show_banner', 1);
     if (Tools::getValue('orderby', false)) {
         self::$smarty->assign('nobots', 1);
     }
     if ($id_manufacturer = Tools::getValue('id_manufacturer')) {
         $this->manufacturer = new Manufacturer((int) $id_manufacturer, self::$cookie->id_lang);
         if (Validate::isLoadedObject($this->manufacturer) and $this->manufacturer->active) {
             $pageTitle = $this->manufacturer->name . ' | Buy ' . $this->manufacturer->name . ' products online in India - IndusDiva.com';
             $pageDescription = 'Shop for 100% authentic ' . $this->manufacturer->name . ' products online at discounted rates! Free Shipping & Cash on Delivery anywhere in India.';
             self::$smarty->assign('meta_title', $pageTitle);
             self::$smarty->assign('meta_description', $pageDescription);
             //$bannername = str_replace(" ", "-", strtolower($this->manufacturer->name));
             //$bannername = str_replace("'", "", $bannername);
             $bannername = $this->manufacturer->banner_img;
             if ($bannername) {
                 self::$smarty->assign('bannername', $bannername);
             }
             $paginationBaseUrl = $link->getmanufacturerLink($id_manufacturer, $this->manufacturer->link_rewrite);
             self::$smarty->assign('paginationBaseUrl', $paginationBaseUrl);
         }
     }
     parent::displayHeader();
 }
開發者ID:priyankajsr19,項目名稱:indusdiva2,代碼行數:26,代碼來源:ManufacturerController.php

示例14: displayHeader

 public function displayHeader()
 {
     parent::displayHeader();
     $this->productSort();
 }
開發者ID:hecbuma,項目名稱:quali-fisioterapia,代碼行數:5,代碼來源:CategoryController.php

示例15: displayHeader

 private function displayHeader()
 {
     if (isset(Context::getContext()->controller)) {
         $controller = Context::getContext()->controller;
     } else {
         $controller = new FrontController();
         $controller->init();
         $controller->setMedia();
     }
     Tools::displayFileAsDeprecated();
     $controller->displayHeader();
 }
開發者ID:paymentwall,項目名稱:module-prestashop,代碼行數:12,代碼來源:paymentwall.php


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