<!-- Block manufacturers module -->
{capture name=id}
	id="manufacturers_block_left"
{/capture}

{capture name=class}
	block blockmanufacturer
{/capture}

{capture name=title}
	{l s='Manufacturers' mod='blockmanufacturer'}
{/capture}

{capture name=content}
	{if $manufacturers}
		{if $text_list}
		<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)}" title="{l s='More about' mod='blockmanufacturer'} {$manufacturer.name}">{$manufacturer.name|escape:'htmlall':'UTF-8'}</a></li>
			{/if}
		{/foreach}
		</ul>
		{/if}
		{if $form_list}
			<form action="{$smarty.server.SCRIPT_NAME|escape:'htmlall':'UTF-8'}" method="get">
				<p>
					<select id="manufacturer_list" onchange="autoUrl('manufacturer_list', '');">
						<option value="0">{l s='All manufacturers' mod='blockmanufacturer'}</option>
					{foreach from=$manufacturers item=manufacturer}
						<option value="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}">{$manufacturer.name|escape:'htmlall':'UTF-8'}</option>
					{/foreach}
					</select>
				</p>
			</form>
		{/if}
	{else}
		<p>{l s='No manufacturer' mod='blockmanufacturer'}</p>
	{/if}
{/capture}

{if isset($blockId)}
	{include file='../block.tpl' id=$smarty.capture.id class=$smarty.capture.class title=$smarty.capture.title content=$smarty.capture.content blockId=$blockId}
{/if}
<!-- /Block manufacturers module -->
