В файл
/modules/blockmanufacturer/blockmanufacturer.php добавьте подобный код:
Код:
public function hookFooter($params)
{
if (!$this->isCached('blockmanufacturer_footer.tpl', $this->getCacheId()))
{
$manufacturers = Manufacturer::getManufacturers();
$this->smarty->assign(array(
'manufacturers' => $manufacturers,
'text_list' => Configuration::get('MANUFACTURER_DISPLAY_TEXT'),
'text_list_nb' => Configuration::get('MANUFACTURER_DISPLAY_TEXT_NB'),
));
}
return $this->display(__FILE__, 'blockmanufacturer_footer.tpl', $this->getCacheId());
}
2. В директории модуля добавьте файл
blockmanufacturer_footer.tpl с подобным кодом:
Код:
{if $manufacturers}
<ul class="bullet">
{foreach from=$manufacturers item=manufacturer name=manufacturer_list}
{if $smarty.foreach.manufacturer_list.iteration <= $text_list_nb}
<li class="{if $smarty.foreach.manufacturer_list.last}last_item{elseif $smarty.foreach.manufacturer_list.first}first_item{else}item{/if}"><a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'html'}" title="{l s='More about %s' sprintf=[$manufacturer.name] mod='blockmanufacturer'}">{$manufacturer.name|escape:'html':'UTF-8'}</a></li>
{/if}
{/foreach}
</ul>
{/if}
3. Добавьте модуль
blockmanufacturer в хук
Footer.