{extends "index.tpl"} {block "css" append} {encore_entry_link_tags entry='category'} {/block} {block "header-title"} {if $body.category.plural and !$body.category.meta_title and !$body.producer} {$body.category.plural} - {$dbcfg.shop_title} {elseif !$body.category.id and $body.category.campaign == "N" and !$body.producer} {t}Novinky parfémů a kosmetiky{/t} - {$dbcfg.shop_title} {else} {$header.pageTitle} {/if} {/block} {block "body-container-data"}data-filter_form{/block} {block "google_tag_manager"} {if $body.category.id} {insert_products type="bestsellingProductsInSection" id_section=$body.category.id id_producer=$body.producer.id count=5 offset=NULL image=11 instore=true template=null assign='bestsellingproducts'} {/if} {include 'block.analytics.gtm.tpl' pageType='category' bestsellingproducts=$bestsellingproducts} {/block} {block "body-container-class"}{if $body.category.id == $cfg.special.catId}xmas-root{/if}{/block} {block "body-content"} {if $body.category.flags['TT']} {include "category.top_ten.tpl"} {else} {* root specalni kategorie, napr. vanocni rozcestnik, zobrazi se jen pokud je admin nebo zapnuty v cfg *} {if $body.category.id == $cfg.special.catId} {$xmasRoot = true} {elseif $ctrl.currUrl.Rel|strstr:$cfg.special.catId} {$xmasChild = true} {/if} {if $dbcfg.valentine == true and $body.category.id == $cfg.special.valentine.catId} {$valentineRoot = true} {/if} {if $dbcfg.valentine == true and $ctrl.currUrl.Rel|strstr:$cfg.special.valentine.catId} {$valentineChild = true} {/if} {* Specialni akce (vanoce, atd) skryje filtr + leve menu *} {if $xmasChild or $xmasRoot or $valentineRoot} {$fullWidth = true} {/if} {if $body.category.flags.C and $body.category.flags.P} {$fullWidth = true} {/if} {block 'categoryName'} {function categoryName} {if $responsive} {if $body.category.name == "Kazety"} {* nazev kategorie kazety + filtr kazety -> nazev "kazety - kazety" *} {* je potreba ve "specialni akci" a v kazetach muzi + zeny dohromay *}

Kazety

{elseif !$body.category.id and $body.category.campaign == "N"}

{t}Novinky parfémů a kosmetiky{/t}

{else}

{$view->getTitle()}

{/if} {else} {if $body.category.name == "Kazety"}

Kazety

{elseif !$body.category.id and $body.category.campaign == "N"}

{t}Novinky parfémů a kosmetiky{/t}

{else}

{$view->getTitle()}

{/if} {/if} {/function} {/block}
{if !$fullWidth}
{categoryName responsive=true} {* kategorie se nezobrazi pri zobrazeni vyrobce, kampane + kategorie muzi nebo zeny, oblibenych, wolfovi, sleve a kampnani "skryt sekce" *} {if !$body.producer and !($body.category.campaign && $body.category.id <= 2 ) and $body.category.campaign != 'F' and !$body.category.is_watchdog and !$body.isDiscountCategory and !$body.category.flags.C}
{insert_sections level=1}
{/if} {block "category-filter"} {if !$body.category.flags.P} {include "filter.tpl"} {/if} {if !$body.producer and !$body.category.campaign and !$body.isDiscountCategory}

{t}Zobrazit kategorie{/t}

{/if} {/block}
{/if} {if $fullWidth or $body.category.flags.P}
{* potrebuji JS ale nepotrebuji inputy *} {include "filter.tpl"}
{/if}
{categoryName} {if $body.category.flags.S}

  Jak vybrat nejvhodnější vůni?

{/if} {if $body.category.virtual == "Y"}
{foreach $body.category.blocks as $block} {$block|inline_edit nofilter} {/foreach}
{elseif $body.producer.blocks|count > 1}
{foreach $body.producer.blocks->slice(1) as $block} {$block|inline_edit nofilter} {/foreach}
{/if} {block 'category-slider'} {if $body.category.id_slider}
{insert_slider id=$body.category.id_slider sliderClass="slider"}
{/if} {/block} {if $xmasRoot} {insert_subsections template="block.subsections.christmas.tpl" category=$body.category root=true} {elseif $valentineRoot} {insert_subsections template="block.subsections.valentine.tpl" category=$body.category root=true} {elseif $xmasChild} {insert_subsections template="block.subsections.christmas.tpl" category=$body.category} {elseif $valentineChild} {insert_subsections template="block.subsections.valentine.tpl" category=$body.category} {elseif $body.category.parents|count < 2 and $body.category.id and !$body.category.campaign} {* jen v prvni urovni *} {insert_subsections category=$body.category up=false} {/if} {if $body.productsList|count and !($xmasRoot or $valentineRoot)} {if $body.category.id and $body.returnNav[0][1].ID <= 4 and $body.productsList|count > 5 and !$body.category.campaign and $body.category.virtual != "Y"} {include "block.products.top.tpl" products=$bestsellingproducts.products} {/if}
{$body.pager.total} {t plural="produkty" plural5="produktů" count=$body.pager.total}produkt{/t}
{if $body.pager.count > 1 || isAjax()}
{include "block.pager.tpl" pager=$body.pager}
{/if}

{t}Seznam je omezen{/t}

{t}Seznam je omezen na:{/t}

{t}Zrušit filtry{/t}
{if $fullWidth} {include "block.products.catalog.tpl" products=$body.productsList catalog_class='col-xl-5ths col-lg-3 col-sm-6 col-xs-12'} {else} {include "block.products.catalog.tpl" products=$body.productsList} {/if}
{if $body.pager.count > 1}
{include "block.pager.tpl" pager=$body.pager}
{/if}
{elseif !$xmasRoot and !$valentineRoot}
{/if} {if $body.category.virtual != "Y"} {if $body.category.descr and !$body.producer}
{$body.category.descr|markdown2html nofilter}
{/if} {if $body.producer.descr and !$body.category.id}
{if $cfg.Lang.language == "czech" or $cfg.Lang.language == "cs"}

{t znacka=$body.producer.name}Popis značky {znacka}{/t}

{/if} {foreach $body.producer.blocks->slice(0,1) as $block} {$block.content|markdown2html nofilter} {/foreach}
{/if} {/if} {block "how-to-choose"} {/block}
{/if} {/block} {block "js-entry" append} {encore_entry_script_tags entry='category'} {/block} {block "js-dynamic-load" append} {asset_compile} {if $body.category.flags['TT']} {/if} {/asset_compile} {/block}