{extends file="layout.tpl"} {block name="init"} {$brand_id={brand attr="id"}} {/block} {* Body Class *} {block name="body-class"}page-brand{/block} {* Page Title *} {block name='no-return-functions' append} {if $brand_id} {loop name="brand.seo.title" type="brand" id=$brand_id limit="1"} {$page_title = $META_TITLE} {/loop} {/if} {/block} {* Meta *} {block name="meta"} {if $brand_id} {loop name="brand.seo.meta" type="brand" id=$brand_id limit="1"} {include file="includes/meta-seo.html"} {/loop} {/if} {/block} {* Feeds *} {block name="feeds"} {if $brand_id} {/if} {/block} {* Breadcrumb *} {block name='no-return-functions' append} {if $brand_id} {$breadcrumbs = []} {if $brand_id} {loop type="brand" name="brand-breadcrumb" id=$brand_id limit="1"} {$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]} {/loop} {else} {$breadcrumbs[] = ['title' => {intl l="All brands"}, 'url'=> '']} {/if} {/if} {/block} {block name="main-content"} {hook name="brand.top" brand="$brand_id"} {if $brand_id}
{$limit={$smarty.get.limit|default:8}} {$product_page={$smarty.get.page|default:1}} {$product_order={$smarty.get.order|default:'alpha'}} {$mode=$smarty.get.mode|default:'grid'} {hook name="brand.main-top" brand="$brand_id"}
{hook name="brand.content-top" brand="$brand_id"} {loop name="brand.info" type="brand" id=$brand_id limit="1"}

{$TITLE}

{loop name="brand.image" type="image" source="brand" id={$LOGO_IMAGE_ID} width=218 height=146 resize_mode="borders"}

{$TITLE}

{/loop} {if $CHAPO}
{$CHAPO}
{/if} {if $DESCRIPTION}
{$DESCRIPTION nofilter}
{/if} {if $POSTSCRIPTUM} {$POSTSCRIPTUM} {/if}
{ifloop rel="product_list"}
{assign var="amount" value={count type="product" brand=$ID}} {include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order amount={$amount}}
    {loop type="product" name="product_list" brand=$ID limit=$limit page=$product_page order=$product_order} {include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true hasQuickView=true width="218" height="146"} {/loop}
{include file="includes/toolbar.html" toolbar="bottom" amount={$amount}} {/ifloop} {elseloop rel="product_list"}
{intl l="No products available in this brand"}
{/elseloop} {hook name="brand.content-bottom" brand="$brand_id"} {/loop}
{hook name="brand.main-bottom" brand="$brand_id"}
{else}
{hook name="brand.main-top"}
{hook name="brand.content-top"} {ifloop rel="brands"} {/ifloop} {elseloop rel="brand_logo"} {/elseloop} {hook name="brand.content-bottom"}
{hook name="brand.main-bottom"}
{/if} {hook name="brand.bottom" brand="$brand_id"} {/block} {block name="stylesheet"} {hook name="brand.stylesheet"} {/block} {block name="after-javascript-include"} {hook name="brand.after-javascript-include"} {/block} {block name="javascript-initialization"} {hook name="brand.javascript-initialization"} {/block}