{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"}

{/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}}
{if ($amount > 1)}{intl l="%nb Items" nb=$amount}{else}{intl l="%nb Item" nb=$amount}{/if} {intl l="Show"}
{intl l="per page"} {intl l="Sort By"}
{intl l="View as"}:

{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}

{if $amount > $limit}
{intl l="Pagination"}

{if $product_page le 1}
{else}
{/if} {pageloop rel="product_list"} {$PAGE} {if $PAGE eq $LAST} {if $CURRENT eq $LAST}
{else}
{/if} {/if} {/pageloop}

{/if}
{/ifloop} {elseloop rel="product_list"}
{intl l="No products available in this brand"}
{/elseloop} {hook name="brand.content-bottom" brand="$brand_id"} {/loop}
{include file="includes/brand-menu.html"}
{hook name="brand.main-bottom" brand="$brand_id"}
{else}
{hook name="brand.main-top"}
{hook name="brand.content-top"} {ifloop rel="brands"}

{loop name="brands" type="brand" with_prev_next_info="true"}
- {ifloop rel="brand_logo"} {loop name="brand_logo" type="image" source="brand" id={$LOGO_IMAGE_ID} width=218 height=146 resize_mode="borders" limit="1"} {/loop} {/ifloop}

  ## {$TITLE}

  {if $CHAPO}
  {$CHAPO}
  {/if}
{/loop}

{/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}