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