{extends file='layout.tpl'} {block name="init"} {$category_id={category attr="id"}} {$product_count = {count type="product" category=$category_id depth=100}} {$product_page={$smarty.get.page|default:1}} {$product_order={$smarty.get.order|default:'manual'}} {/block} {* Body Class *} {block name="body-class"}page-category{/block} {block name="css" append} {encore_entry_link_tags entry="category"} {/block} {block name="javascript" append} {encore_entry_script_tags entry="category"} {/block} {* Page Title *} {block name='no-return-functions' append} {loop name="category.seo.title" type="category" current="yes"} {$page_title = $META_TITLE} {/loop} {if $product_page neq 1} {$page_info = " - "|cat:{intl l ="Page %p" p=$product_page}} {/if} {/block} {* Meta *} {block name="meta"} {loop name="category.seo.meta" type="category" current="yes"} {include file="includes/meta-seo.html" page_info=$page_info|default:null} {/loop} {/block} {* Breadcrumb *} {block name='no-return-functions' append} {$breadcrumbs = []} {loop name="category_path" type="category-path" category={category attr="id"}} {$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]} {/loop} {/block} {* Content *} {block name="main-content"} {loop type="category" name="home.cat" limit=1 id=$category_id need_count_child=true} {include file="components/smarty/BreadCrumb/BreadCrumb.html"}
{include file="components/smarty/Title/Title.html" type="h1" title=$TITLE class="text-center" nofilter=true}
{if $CHILD_COUNT > 0}
{loop type="category" parent=$ID name="cat.gateway"} {include file="components/smarty/SingleCategory/SingleCategory.html" class="SingleCategory--small"} {/loop}
{/if} {ifloop rel="category.blocks"}
{loop type="block_group" name="category.blocks" item_type="category" item_id=$category_id } {$RENDER nofilter} {/loop}
{/ifloop} {if $CHAPO && $product_page eq 1}
{$CHAPO nofilter}
{/if} {if !isset($showFilters)} {$showFilters = false} {/if} {$typesFilters = []} {loop name="choice_filter" type="choice_filter" category_id=$category_id visible=true} {$typesFilters[] = $TYPE} {$showFilters = true} {/loop} {if $typesFilters|count == 1 && $typesFilters[0] === 'category'} {if {count type="category" name="hasChildCategories" parent=$category_id visible=true} == 0} {$showFilters = false} {/if} {/if}
{$product_count} {if $product_count <= 1}{intl l="Item"}{else}{intl l="Items"}{/if}
{if $showFilters}
{include file="components/smarty/FilterBtn/FilterBtn.html" count=4}
{/if} {if $product_count >= 1} {/if}
{include file="components/smarty/CategoryProducts/CategoryProducts.html"}
{if $showFilters} {include file="components/smarty/CategoryMenu/CategoryMenu.html"} {/if}
{if $DESCRIPTION && $product_page eq 1}
{$DESCRIPTION nofilter}
{/if} {if $POSTSCRIPTUM && $product_page eq 1}
{$POSTSCRIPTUM nofilter}
{/if}
{/loop} {hook name="category.bottom" category=$category_id} {/block}