public function __construct() { $this->name = 'blockhtml'; $this->tab = 'front_office_features'; $this->version = '1.0'; $this->author = 'OvicSoft'; parent::__construct(); $this->displayName = $this->l('Supershop - Banner Block HTML'); $this->description = $this->l('With this module you can put the HTML/JavaScript/CSS code anywhere you want'); $this->bootstrap = true; $this->confirmUninstall = $this->l('Are you sure you want to uninstall?'); if (!isset(BlockHtml::$hookArr)) { BlockHtml::$hookArr = array('displayHome', 'displayTop', 'displayLeftColumn', 'displayRightColumn', 'displayFooter', 'displayNav', 'displayTopColumn', 'CustomHtml', 'Contactform'); } }
<?php include dirname(__FILE__) . '/../../config/config.inc.php'; include dirname(__FILE__) . '/../../init.php'; include_once dirname(__FILE__) . '/blockhtml.php'; $blockhtml = new BlockHtml(); $id_position = (int) Tools::getValue('id_position'); if ($id_position > 0) { echo $blockhtml->AjaxCall($id_position); }