コード例 #1
0
ファイル: CartController.php プロジェクト: M03G/PrestaShop
 public function getTemplateVarPage()
 {
     $page = parent::getTemplateVarPage();
     $presenter = new CartPresenter();
     $presented_cart = $presenter->present($this->context->cart);
     if (count($presented_cart['products']) == 0) {
         $page['body_classes']['cart-empty'] = true;
     }
     return $page;
 }
コード例 #2
0
ファイル: CmsController.php プロジェクト: M03G/PrestaShop
 public function getTemplateVarPage()
 {
     $page = parent::getTemplateVarPage();
     if ($this->assignCase == 2) {
         $page['body_classes']['cms-id-' . $this->cms_category->id] = true;
     } else {
         $page['body_classes']['cms-id-' . $this->cms->id] = true;
         if (!$this->cms->indexation) {
             $page['meta']['robots'] = 'noindex';
         }
     }
     return $page;
 }
コード例 #3
0
 public function getTemplateVarPage()
 {
     $page = parent::getTemplateVarPage();
     $page['title'] = $this->trans('The page you are looking for was not found.', array(), 'Shop.Theme');
     return $page;
 }