* @copyright PrestaShop * @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0 * @version 1.3 * */ include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php'); class AdminCMS extends AdminTab { public function __construct() { $this->table = 'cms'; $this->className = 'CMS'; $this->lang = true; $this->edit = true; $this->view = true; $this->delete = true; $this->fieldsDisplay = array( 'id_cms' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'link_rewrite' => array('title' => $this->l('URL'), 'width' => 200), 'meta_title' => array('title' => $this->l('Title'), 'width' => 300) ); parent::__construct(); } public function displayForm($isMainTab = true) { global $currentIndex, $cookie; parent::displayForm(); $obj = $this->loadObject(true); $iso = Language::getIsoById(intval($cookie->id_lang)); $divLangName = 'meta_title¤meta_description¤meta_keywords¤ccontent¤link_rewrite'; echo '
'; // TinyMCE echo ' '; } function postProcess() { global $cookie, $link; if (Tools::isSubmit('viewcms') AND ($id_cms = intval(Tools::getValue('id_cms'))) AND $cms = new CMS($id_cms, intval($cookie->id_lang)) AND Validate::isLoadedObject($cms)) Tools::redirectLink($link->getCMSLink($cms)); return parent::postProcess(); } } ?>