Files
kupshop/web/templates/elnino/category.root.tpl
2025-08-02 16:30:27 +02:00

94 lines
4.2 KiB
Smarty

<main class="main main-home">
{if $body.category.id_slider}
<div class="container container-slider">
{insert_slider id=$body.category.id_slider template="block.slider.home.tpl"}
</div>
{/if}
<div class="container container-padded">
<div class="usp-small owl-carousel" id="usp-carousel">
<p>{t}Bleskové dodání kamkoliv si budete přát{/t}</p>
{if $cheapest_delivery > 0}
<p>{t escape=false cena=$cheapest_delivery|format_price}Poštovné od {cena} nebo zdarma{/t}</p>
{else}
<p>{t}Poštovné zdarma{/t}</p>
{/if}
<p>{t}Garantovaná záruka originálu{/t}</p>
</div>
<div class="home-products" data-filter="products">
<div class="lead">
<h1>{$body.category.plural}</h1>
</div>
<div class="home-products-header">
<p class="h1">{t}Novinky{/t}</p>
{* href=... je hack, není to flag sekce ale virtualni sekce se stejnou URL *}
<a href="{url s=category IDcat=$body.category.id campaign=N}" class="btn btn-link">{t}Zobrazit další novinky{/t}</a>
</div>
{insert_cached key=['newest_product', 'home', $body.category.id, $ctrl.active_currency]}
{insert_products type="newest_product" in_store=1 image=2 count=12 section=[$body.category.id] template="block.products.tpl"
row_class="products-carousel products-carousel-new owl-carousel" show_more_banner_link={url s=category IDcat=$body.category.id campaign=N} listType="homepage_newest" listId=$body.category.id}
{/insert_cached}
{block 'bestselling_product'}
<p class="lead">{t}Tipy a trendy{/t}</p>
<div class="home-products-header">
<p class="h1">{t}Aktuálně frčí{/t}</p>
<a href="{url s=category IDcat=$body.category.id campaign=B}" class="btn btn-link">{t}Zobrazit další trendy{/t}</a>
</div>
{insert_cached key=['bestselling_product', 'home', $body.category.id, $ctrl.active_currency]}
{insert_products type="campaign_product" price_min=$tpl_vars.bestseller_price_min|default:0 campaign='B' in_store=1 image=2 count=12 section=[$body.category.id] template="block.products.tpl"
fallback=[['type'=>'bestselling_product', in_store=>1, section=>[$body.category.id], campaign=>null]]
row_class="products-carousel products-carousel-trending owl-carousel" show_more_banner_link={url s=category IDcat=$body.category.id campaign=B} listType="homepage_bestsellers" listId=$body.category.id}
{/insert_cached}
{/block}
{if $body.category.data.additional_slider}
{insert_slider id=$body.category.data.additional_slider template="block.slider.bestof.tpl"}
{/if}
<div class="home-selection">
{foreach $body.category.blocks as $block}
{$block|inline_edit nofilter}
{/foreach}
</div>
{*<div class="home-selection">
<p class="lead">vybrali jsme pro vás</p>
<p class="h1">Dostupný domácí welness</p>
<div class="row">
<div class="col-md-3 col-xs-6 col-xxs-12">
<a href="">
Úžasná tělová kosmetika
<strong>Victoria's Secret</strong>
</a>
</div>
<div class="col-md-3 col-xs-6 col-xxs-12">
<a href="">
Úžasná tělová kosmetika
<strong>Victoria's Secret</strong>
</a>
</div>
<div class="col-md-3 col-xs-6 col-xxs-12">
<a href="">
Úžasná tělová kosmetika
<strong>Victoria's Secret</strong>
</a>
</div>
<div class="col-md-3 col-xs-6 col-xxs-12">
<a href="">
Úžasná tělová kosmetika
<strong>Victoria's Secret</strong>
</a>
</div>
</div>
</div>*}
</div>
{include "components/home.news.tpl"}
</div>
{include "components/home.social.tpl"}
</main>