public function setHead() { global $smarty, $view; $this->_meta['title'] = isset($this->entity->meta_title) ? $this->entity->meta_title . ' ' . Configuration::get('TM_SHOP_NAME') : Configuration::get('TM_SHOP_NAME'); $this->_meta['keywords'] = isset($this->entity->meta_keywords) ? $this->entity->meta_keywords . ' ' . Configuration::get('TM_SHOP_NAME') : Configuration::get('TM_SHOP_NAME'); $this->_meta['description'] = isset($this->entity->meta_description) ? $this->entity->meta_description . ' ' . Configuration::get('TM_SHOP_NAME') : Configuration::get('TM_SHOP_NAME'); $smarty->assign(array('view_name' => str_replace("view", "", strtolower(get_class($view))), 'allow_cn' => AllowCN::getInstance()->AA(), 'meta' => $this->_meta, 'js_file' => $this->_js_file, 'css_file' => $this->_css_file)); }