[*] FO : Merge of https://github.com/PrestaShop/PrestaShop/pull/854 again
This commit is contained in:
@@ -112,7 +112,8 @@ class CmsControllerCore extends FrontController
|
||||
$this->context->smarty->assign(array(
|
||||
'cms' => $this->cms,
|
||||
'content_only' => (int)(Tools::getValue('content_only')),
|
||||
'path' => $path
|
||||
'path' => $path,
|
||||
'body_classes' => array($this->php_self.'-'.$this->cms->id, $this->php_self.'-'.$this->cms->link_rewrite)
|
||||
));
|
||||
|
||||
if ($this->cms->indexation == 0)
|
||||
@@ -126,6 +127,7 @@ class CmsControllerCore extends FrontController
|
||||
'sub_category' => $this->cms_category->getSubCategories($this->context->language->id),
|
||||
'cms_pages' => CMS::getCMSPages($this->context->language->id, (int)($this->cms_category->id), true, (int)$this->context->shop->id),
|
||||
'path' => ($this->cms_category->id !== 1) ? Tools::getPath($this->cms_category->id, $this->cms_category->name, false, 'CMS') : '',
|
||||
'body_classes' => array($this->php_self.'-'.$this->cms_category->id, $this->php_self.'-'.$this->cms_category->link_rewrite)
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
@@ -106,7 +106,8 @@ class ManufacturerControllerCore extends FrontController
|
||||
'products' => $products,
|
||||
'path' => ($this->manufacturer->active ? Tools::safeOutput($this->manufacturer->name) : ''),
|
||||
'manufacturer' => $this->manufacturer,
|
||||
'comparator_max_item' => Configuration::get('PS_COMPARATOR_MAX_ITEM')
|
||||
'comparator_max_item' => Configuration::get('PS_COMPARATOR_MAX_ITEM'),
|
||||
'body_classes' => array($this->php_self.'-'.$this->manufacturer->id, $this->php_self.'-'.$this->manufacturer->link_rewrite)
|
||||
));
|
||||
}
|
||||
|
||||
@@ -132,7 +133,7 @@ class ManufacturerControllerCore extends FrontController
|
||||
'nbManufacturers' => $nbProducts,
|
||||
'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')),
|
||||
'manufacturers' => $data,
|
||||
'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'),
|
||||
'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY')
|
||||
));
|
||||
}
|
||||
else
|
||||
|
||||
@@ -108,7 +108,8 @@ class SupplierControllerCore extends FrontController
|
||||
'products' => $products,
|
||||
'path' => ($this->supplier->active ? Tools::safeOutput($this->supplier->name) : ''),
|
||||
'supplier' => $this->supplier,
|
||||
'comparator_max_item' => Configuration::get('PS_COMPARATOR_MAX_ITEM')
|
||||
'comparator_max_item' => Configuration::get('PS_COMPARATOR_MAX_ITEM'),
|
||||
'body_classes' => array($this->php_self.'-'.$this->supplier->id, $this->php_self.'-'.$this->supplier->link_rewrite)
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user