name = 'blockmanufacturer'; $this->tab = 'Blocks'; $this->version = 1.0; parent::__construct(); $this->displayName = $this->l('Manufacturers block'); $this->description = $this->l('Displays a block of manufacturers/brands'); } function install() { parent::install(); $this->registerHook('leftColumn'); Configuration::updateValue('MANUFACTURER_DISPLAY_TEXT', true); Configuration::updateValue('MANUFACTURER_DISPLAY_TEXT_NB', 5); Configuration::updateValue('MANUFACTURER_DISPLAY_FORM', true); } function hookLeftColumn($params) { global $smarty, $link; $smarty->assign(array( 'manufacturers' => Manufacturer::getManufacturers(), 'link' => $link, 'text_list' => Configuration::get('MANUFACTURER_DISPLAY_TEXT'), 'text_list_nb' => Configuration::get('MANUFACTURER_DISPLAY_TEXT_NB'), 'form_list' => Configuration::get('MANUFACTURER_DISPLAY_FORM'), )); return $this->display(__FILE__, 'blockmanufacturer.tpl'); } function hookRightColumn($params) { return $this->hookLeftColumn($params); } function getContent() { $output = '