name = 'skinstatic'; $this->tab = 'front_office_features'; $this->version = '1.0'; $this->author = 'Antadis'; parent::__construct(); $this->displayName = $this->l('Static skin items'); $this->description = $this->l('Allows to display static parts as a skin on the website.'); } public function getContent() { $this->_html = '

'.$this->displayName.'

'; if (Tools::isSubmit('btnSubmit')) { Configuration::updateValue('SKINSTATIC_VERSION', (int) Configuration::get('SKINSTATIC_VERSION') + 1); file_put_contents(_PS_ROOT_DIR_.'/themes/site/skinstatic_cache/columns.html', str_replace(array('{left_link}', '{right_link}', '{version}'), array(Tools::getValue('left_link'), Tools::getValue('right_link'), Configuration::get('SKINSTATIC_VERSION')), ''.(Tools::getValue('fixed')? ' ': '').' ')); $this->_html .= '

'.$this->l('Links updated successfully.').'



'; } $this->_html .= '
'.$this->l('Links').'

'; return $this->_html; } }