first commit
This commit is contained in:
77
web/templates/koza/components/footer.tpl
Normal file
77
web/templates/koza/components/footer.tpl
Normal file
@@ -0,0 +1,77 @@
|
||||
{* @compiler:inline-only *}
|
||||
<div class="container">
|
||||
<div class="footer">
|
||||
<div class="footer-row">
|
||||
<div class="footer-column col-xs-12 col-md-6 col-xl-3 logo hidden-xs-down">
|
||||
<a href="{url s=index}" title="{$dbcfg.index_title}">
|
||||
<img src="/templates/images/footer_logo.svg?v2" alt="{$dbcfg.shop_title}" class="img-responsive">
|
||||
</a>
|
||||
</div>
|
||||
<div class="footer-column col-xs-12 col-md-6 col-xl-3 footer-contact">
|
||||
<h3 class="hidden-xs-down">Kontakt</h3>
|
||||
<div>
|
||||
<p class="fc icons_phone">
|
||||
tel.: <a href="tel:{$dbcfg.shop_phone|strip:''}">{$dbcfg.shop_phone}</a>
|
||||
</p>
|
||||
<p class="fc icons_envelope"><a href="mailto:{$dbcfg.shop_email}">{$dbcfg.shop_email}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{insert_menu menu_id=1 template="block.menu.footer.tpl" column_class="footer-column col-xs-12 col-md-4 col-xl-2" skip_cache=1}
|
||||
|
||||
<div class="footer-column col-xs-12 col-md-4 col-xl-2 footer-menu" data-footer-menu="0">
|
||||
<h3 class="hidden-md-up">Ohodnocení
|
||||
<i class="fc icons_arrow_down"></i>
|
||||
</h3>
|
||||
|
||||
<div class="footer-content text-center" data-footer-content="0">
|
||||
<a href="https://www.apek.cz/seznam-clenu/kosmetika-zdravicz-sro">
|
||||
<img src="/templates/images/logo_apek.png" alt="Obchod s certifikací APEK"
|
||||
class="m-x-auto m-b-1 img-responsive">
|
||||
</a>
|
||||
<div class="col-xs-6 heureka-badge">
|
||||
<a href="http://obchody.heureka.cz/kosmetika-zdravi-cz/" target="_blank" rel="noreferrer">
|
||||
<img src="/templates/images/overeno_cz.png?v1" alt="Heureka - Ověřeno zákazníky"
|
||||
class="m-x-auto img-responsive">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-xs-6 heureka-badge">
|
||||
{if !isDebug()}
|
||||
<div id="showHeurekaBadgeHere-1"></div>
|
||||
<script>
|
||||
//<![CDATA[
|
||||
var _hwq = _hwq || [];
|
||||
_hwq.push(["setKey", "644154E33DBA1936A77CA154188D89D2"]);
|
||||
_hwq.push(["showWidget", "1", "5127", "Kosmetika-Zdraví.cz", "kosmetika-zdravi-cz"]);
|
||||
(function() {
|
||||
var ho = document.createElement("script");
|
||||
ho.type = "text/javascript";
|
||||
ho.async = true;
|
||||
ho.src = "https://ssl.heureka.sk/direct/i/gjs.php?n=wdgt&sak=644154E33DBA1936A77CA154188D89D2";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(ho, s);
|
||||
})();
|
||||
//]]>
|
||||
</script>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if $cfg.flags_menu_id}
|
||||
{insert_menu menu_id=$cfg.flags_menu_id template="components/menu.flags.tpl"}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="copyright">
|
||||
<div class="hidden-md-up version">{responsiveSwitch}</div>
|
||||
<p>© {$smarty.now|date_format:"%Y"} Kosmetika-Zdravi, s.r.o. | <a href="http://www.kosmetika-zdravi.cz">www.kosmetika-zdravi.cz</a> |
|
||||
<span class="hidden-sm-down {if {web_version} != 'desktop'}hidden-sm-up{/if}" data-responsive-switch>{responsiveSwitch} | </span>
|
||||
{if $dbcfg.cookie_bar.enable == "Y"}<a href="" data-cc-init>{t}nastavení cookies{/t}</a> | {/if}
|
||||
<a href="" data-wpj-focus="{path('kupshop_content_contactform_sendform', ['type'=>'report-inappropriate-content'])}" data-wpj-focus-ajax="1">
|
||||
{t}Nahlásit závadný obsah{/t}
|
||||
</a> |
|
||||
vyrobilo <a href="http://www.wpj.cz" target="_blank" rel="noopener">studio WPJ</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
24
web/templates/koza/components/menu.flags.tpl
Normal file
24
web/templates/koza/components/menu.flags.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
{if $menu}
|
||||
<div class="footer-flags closed">
|
||||
<ul>
|
||||
{foreach $menu as $item}
|
||||
{if $item.data.flag}
|
||||
<li {if $item@first}class="active"{/if}>
|
||||
<a href="{$item.url}" {if $item.target != ''}target="{$item.target}"{/if}>
|
||||
<img src="/common/static/images/flags/{$item.data.flag}.svg?v1" alt="{$item.title}" width="30" height="20">
|
||||
{$item.title}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
wpj.onReady.push(function() {
|
||||
$('.footer-flags .active').click(function() {
|
||||
$('.footer-flags').toggleClass('closed');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
67
web/templates/koza/components/sections.responsive.links.tpl
Normal file
67
web/templates/koza/components/sections.responsive.links.tpl
Normal file
@@ -0,0 +1,67 @@
|
||||
{function sectionsRespTree}
|
||||
{foreach $sectionList as $item}
|
||||
{if $item.flags['HL']}{continue}{/if}
|
||||
{if !$hide_virtual or $item.virtual != "Y"}
|
||||
<li class="nav-item nav-item-{$item.id}" data-level="{$item.level}">
|
||||
{if $item.submenu}
|
||||
<span class="toggle-sub">{$item.title_short}</span>
|
||||
<ul class="sub-nav">
|
||||
<li class="sub-heading toggle-back">{t}zpět{/t}</li>
|
||||
|
||||
<li class="sub-heading nav-item nav-item-{$item.id}">
|
||||
<a href="{url s=category IDcat=$item.id}">
|
||||
{t}Vše v kategorii{/t} {$item.title_short}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{sectionsRespTree sectionList=$item.submenu}
|
||||
</ul>
|
||||
{else}
|
||||
<a href="{url s=category IDcat=$item.id}">
|
||||
{$item.title_short}
|
||||
</a>
|
||||
{/if}
|
||||
</li>
|
||||
{/if}
|
||||
{* TODO: FORLOOP_INCLUDE *}{$tmp=$item@last}
|
||||
{block "respsections-navitem-append"}
|
||||
{/block}
|
||||
{/foreach}
|
||||
{/function}
|
||||
|
||||
{if not $fromCache}
|
||||
{block "tpl_vars"}{/block}
|
||||
{$topMenuLimit = $cfg.topMenuLimit|default:4}
|
||||
{sectionsRespTree sectionList=$categories|array_slice:0:$topMenuLimit}
|
||||
{else}
|
||||
{if $selection}
|
||||
<script>
|
||||
wpj.onReady.push(function() {
|
||||
var hasChildSelection = false;
|
||||
{foreach $selection as $item}
|
||||
{if $item@last}
|
||||
var $currentItem = $("[data-sections-responsive] .nav-item-{$item}");
|
||||
|
||||
if ($currentItem.closest('.sub-nav').length) {
|
||||
hasChildSelection = true;
|
||||
}
|
||||
|
||||
$currentItem.addClass('active');
|
||||
|
||||
if (!$currentItem.children('ul').length) {
|
||||
$currentItem.closest(".active-parent").removeClass("active-parent").addClass("active");
|
||||
}
|
||||
{else}
|
||||
$("[data-sections-responsive] .nav-item-{$item}").addClass("active-parent");
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
if (hasChildSelection) {
|
||||
$("[data-sections-responsive]").addClass("has-child-selection");
|
||||
} else {
|
||||
$("[data-sections-responsive]").removeClass("has-child-selection");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
{/if}
|
||||
28
web/templates/koza/components/sections.responsive.tpl
Normal file
28
web/templates/koza/components/sections.responsive.tpl
Normal file
@@ -0,0 +1,28 @@
|
||||
<div class="sections-responsive" data-sections-responsive>
|
||||
|
||||
<div class="sections-responsive-header">
|
||||
<a href="{url s=index}" title="{t}Domů{/t}" class="nav-link"><i class="fc icons_home"></i></a>
|
||||
|
||||
<a href="{url s=user act=edit}" data-login-link>
|
||||
<i class="fc icons_user"></i>
|
||||
</a>
|
||||
|
||||
{if $cfg.Currencies|count > 1}
|
||||
<div class="currencies">
|
||||
{foreach $cfg.Currencies as $id => $currency}
|
||||
<a href="{url s='currency' change={$id}}" title="{$currency.name}" {if $ctrl.currency == $id}class="active"{/if}>{$id}</a>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<button class="offcanvas-close" data-toggle="burger">
|
||||
<span class="fc lightbox_close"></span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<ul class="nav list-unstyled">
|
||||
{insert_sections template="components/sections.responsive.links.tpl"}
|
||||
{insert_menu label="menu_header" template="block.menu.top.tpl"}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="menu-focus"></div>
|
||||
Reference in New Issue
Block a user