diff --git a/controllers/front/CategoryController.php b/controllers/front/CategoryController.php index 3b8fd070e..78eb76b2d 100644 --- a/controllers/front/CategoryController.php +++ b/controllers/front/CategoryController.php @@ -129,7 +129,8 @@ class CategoryControllerCore extends FrontController 'homeSize' => Image::getSize(ImageType::getFormatedName('home')), 'allow_oosp' => (int)Configuration::get('PS_ORDER_OUT_OF_STOCK'), 'comparator_max_item' => (int)Configuration::get('PS_COMPARATOR_MAX_ITEM'), - 'suppliers' => Supplier::getSuppliers() + 'suppliers' => Supplier::getSuppliers(), + 'body_classes' => array($this->php_self.'-'.$this->category->id, $this->php_self.'-'.$this->category->link_rewrite) )); } diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index f934091ae..97c3bd5ac 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -263,11 +263,16 @@ class ProductControllerCore extends FrontController 'currencyBlank' => $this->context->currency->blank, 'jqZoomEnabled' => Configuration::get('PS_DISPLAY_JQZOOM'), 'ENT_NOQUOTES' => ENT_NOQUOTES, - 'outOfStockAllowed' => (int)Configuration::get('PS_ORDER_OUT_OF_STOCK') + 'outOfStockAllowed' => (int)Configuration::get('PS_ORDER_OUT_OF_STOCK'), + 'errors' => $this->errors, + 'body_classes' => array( + $this->php_self.'-'.$this->product->id, + $this->php_self.'-'.$this->product->link_rewrite, + 'category-'.$this->category->id, + 'category-'.$this->category->link_rewrite + ) )); } - - $this->context->smarty->assign('errors', $this->errors); $this->setTemplate(_PS_THEME_DIR_.'product.tpl'); } diff --git a/themes/default-bootstrap/header.tpl b/themes/default-bootstrap/header.tpl index e7a305004..b1c1e8f60 100644 --- a/themes/default-bootstrap/header.tpl +++ b/themes/default-bootstrap/header.tpl @@ -94,7 +94,7 @@ {$HOOK_HEADER} -
+ {if !$content_only} {if isset($restricted_country_mode) && $restricted_country_mode}