public function initContent() { parent::initContent(); include_once dirname(__FILE__) . '/../../../modules/eicmslinks/eicmslinks.php'; //Module EiCmsLinks : On récupère les liens dynamiques des catégories $this->category->description = EiCmsLinks::updateCmsLinksDisplay($this->category->description); $this->context->smarty->assign(array('description_short' => Tools::truncateString(EiCmsLinks::updateCmsLinksDisplay($this->category->description), 350), 'category' => $this->category)); }
public function initContent() { parent::initContent(); if (method_exists('Product', 'getProductsImgs')) { $image_array = array(); for ($i = 0; $i < count($this->cat_products); $i++) { if (isset($this->cat_products[$i]['id_product'])) { $image_array[$this->cat_products[$i]['id_product']] = Product::getProductsImgs($this->cat_products[$i]['id_product']); } } $this->context->smarty->assign('productimg', (isset($image_array) and $image_array) ? $image_array : NULL); } }
public function initContent() { parent::initContent(); Context::getContext()->cookie->categoryOrderBy = $this->orderBy; Context::getContext()->cookie->categoryOrderWay = $this->orderWay; }