{extends file='layout.tpl'} {block name="init"} {$category_id={category attr="id"}} {/block} {* Body Class *} {block name="body-class"}page-category{/block} {* Page Title *} {block name='no-return-functions' append} {if $category_id} {loop name="category.seo.title" type="category" id=$category_id limit="1"} {$page_title = $META_TITLE} {/loop} {/if} {/block} {* Meta *} {block name="meta"} {if $category_id} {loop name="category.seo.meta" type="category" id=$category_id limit="1"} {include file="includes/meta-seo.html"} {/loop} {/if} {/block} {* Feeds *} {block name="feeds"} {if $category_id} {/if} {/block} {* Breadcrumb *} {block name='no-return-functions' append} {if $category_id} {$breadcrumbs = []} {loop name="category_path" type="category-path" category=$category_id} {$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]} {/loop} {/if} {/block} {* Content *} {block name="main-content"} {$limit={$smarty.get.limit|default:8}} {$product_page={$smarty.get.page|default:1}} {$product_order={$smarty.get.order|default:'alpha'}} {hook name="category.top" category="$category_id"}
{hook name="category.main-top" category="$category_id"}
{hook name="category.content-top" category="$category_id"} {if #category_display_detail# && $category_id}
{loop name="category.description" type="category" id={$category_id} limit="1" }

# {category attr="title"}

{loop name="category.image" type="image" source="category" source_id={$ID} width=218 height=146 resize_mode="borders"}

{/loop} {if $DESCRIPTION}
{$DESCRIPTION nofilter}
{/if} {if $POSTSCRIPTUM} {$POSTSCRIPTUM} {/if} {/loop}

{/if} {if #category_display_subcategories#} {ifloop rel="subcategories"}

{loop name="subcategories" type="category" parent=$category_id}
- {$TITLE}
{/loop}

{/ifloop} {/if} {ifloop rel="product_list"} {$amount={count type="product" category=$category_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" category=$category_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 category"}
{/elseloop} {hook name="category.content-bottom" category="$category_id"}
{include file="includes/menu.html"}
{hook name="category.main-bottom" category="$category_id"}
{hook name="category.bottom" category="$category_id"} {/block} {block name="stylesheet"} {hook name="category.stylesheet"} {/block} {block name="after-javascript-include"} {hook name="category.after-javascript-include"} {/block} {block name="javascript-initialization"} {hook name="category.javascript-initialization"} {/block}