Beispiel #1
0
 public function __construct($id_category = null, $id_lang = null, $id_shop = null)
 {
     parent::__construct($id_category, $id_lang, $id_shop);
     $this->id_image = $this->id && file_exists(_PS_CAT_IMG_DIR_ . (int) $this->id . '.jpg') ? (int) $this->id : false;
     $this->image_dir = _PS_CAT_IMG_DIR_;
     $row = Meta::getEgCEOWords('category', $id_category);
     $this->meta_title = isset($row['meta_title']) ? $row['meta_title'] : $this->meta_title;
     $this->meta_title = Meta::replaceCity($this->meta_title);
     $this->meta_keywords = Meta::replaceCity($this->meta_keywords);
     $this->meta_description = Meta::replaceCity($this->meta_description);
     $this->description = isset($row['description']) ? $row['description'] : $this->description;
     $this->description = Meta::replaceCity($this->description);
 }
Beispiel #2
0
 public function hookDisplayHome($params)
 {
     $row = Meta::getEgCEOWords('home');
     $page = $row['description'];
     $this->smarty->assign(array('title' => $row['meta_title'], 'page' => $page));
     return $this->display(__FILE__, 'egmultishop_home.tpl');
 }