{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"} {$limit=32} {$product_page={$page|default:{$smarty.get.page|default:1}}} {hook name="brand.top" brand="$brand_id"} {if $brand_id} {loop name="brand.info" type="brand" id=$brand_id limit="1"} {include file="components/smarty/PageHeader/PageHeader.html"} {/loop}
{hook name="brand.main-top" brand="$brand_id"} {loop name="brand.info" type="brand" id=$brand_id limit="1"} {hook name="brand.content-top" brand="$brand_id"}
{$DESCRIPTION nofilter}
{ifloop rel="product_list"} {assign var="amount" value={count type="product" brand=$ID}}
{loop type="product" name="product_list" brand=$ID limit=$limit page=$product_page order=$product_order} {include file="components/smarty/SingleProduct/SingleProduct.html"} {/loop}
{if $amount > $limit} {include file="components/smarty/Pagination/Pagination.html" current_page=$product_page loop_name="product_list"} {/if} {/ifloop} {elseloop rel="product_list"}
{include file="components/smarty/Alert/Alert.html" message={intl l="No products available in this brand"} type="warning"}
{/elseloop} {hook name="brand.content-bottom" brand="$brand_id"} {/loop} {hook name="brand.main-bottom" brand="$brand_id"}
{/if} {hook name="brand.bottom" brand="$brand_id"} {/block} {block name="css" append} {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}