171 lines
5.8 KiB
Smarty
171 lines
5.8 KiB
Smarty
<!DOCTYPE html>
|
|
|
|
{block utils}
|
|
{$isDealer = $ctrl.dealer == "Y"}
|
|
{get_stats type='free_delivery' assign='free_delivery'}
|
|
{load_active_category assign='activeCategoryId'}
|
|
|
|
{if isset($body.returnNav)}
|
|
{get_active_category returnNav=$body.returnNav assign='activeCategory'}
|
|
{$breadcrumbs = $activeCategory.breadcrumb|default:$body.returnNav.0}
|
|
{/if}
|
|
{/block}
|
|
|
|
<html class="no-js lang-{$ctrl.active_language}" {block "html-lang"}lang="{$ctrl.active_language}"{/block}>
|
|
<head>
|
|
{block "head"}
|
|
<meta charset="utf-8">
|
|
{block "meta-author"}
|
|
<meta name="author" content="{$dbcfg.shop_firm_name}">
|
|
{/block}
|
|
|
|
<meta name="web_author" content="wpj.cz">
|
|
|
|
{block "meta-description"}
|
|
<meta name="description" content="{$header.meta_description|default:$dbcfg.shop_description}">
|
|
{/block}
|
|
|
|
{block "meta-robots"}
|
|
{if $cfg.Addr.full|strstr:".wpj.biz" or $cfg.Addr.full|strstr:".wpj.cloud"}
|
|
<meta name="robots" content="noindex, nofollow">
|
|
{elseif $body.pager.number > 1 or $smarty.get.full_version}
|
|
{* neindexovat ale povolit prochazeni 2. a dalsi stranky kategorie, full verze webu *}
|
|
<meta name="robots" content="noindex, follow">
|
|
{else}
|
|
<meta name="robots" content="{$header.robots}">
|
|
{/if}
|
|
{/block}
|
|
|
|
{if {web_version} == 'desktop'}
|
|
<meta name="viewport" content="width=1280">
|
|
{else}
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
{/if}
|
|
|
|
<meta property="og:title" content="{$header.pageTitle}">
|
|
{block "og-image"}
|
|
<meta property="og:image" content="{static_url url="/templates/images/logo.png" absolute=1}">
|
|
{/block}
|
|
<meta property="og:url" content="{$ctrl.currUrl.Abs}">
|
|
<meta property="og:type" content="website">
|
|
|
|
{block "header-title"}<title>{$header.pageTitle}</title>{/block}
|
|
|
|
{block css}
|
|
{block fonts}
|
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;1,400;1,600&display=swap" rel="stylesheet">
|
|
{/block}
|
|
{block "css-entry"}
|
|
{encore_entry_link_tags entry='app'}
|
|
{encore_entry_link_tags entry='js-menu'}
|
|
{/block}
|
|
{/block}
|
|
|
|
{block "canonical"} {* musi byt na strance jen jednou! *}
|
|
{if $smarty.get}
|
|
<link rel="canonical" href="{get_canonical_url}">
|
|
{/if}
|
|
{/block}
|
|
|
|
{* rekne Googlu, ze se jedna o sekvenci, aby to nebral jako duplicitu *}
|
|
{if $body.pager.count > 1}
|
|
{if $smarty.get.page > 1}
|
|
<link rel="prev" href="{$body.pager->getUrl(["page" => {{$smarty.get.page}-1} ])}">
|
|
{/if}
|
|
{if $smarty.get.page < $body.pager.count}
|
|
<link rel="next" href="{$body.pager->getUrl(["page" => {{$smarty.get.page|default:"1"}+1}])}">
|
|
{/if}
|
|
{/if}
|
|
|
|
{block favicon}
|
|
<link rel="shortcut icon" href="/templates/images/favicon.ico?v=1">
|
|
<link rel="apple-touch-icon" sizes="144x144" href="/templates/images/share/apple-touch-icon.png">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/templates/images/share/favicon-32x32.png">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/templates/images/share/favicon-16x16.png">
|
|
<link rel="manifest" href="/templates/images/share/site.webmanifest">
|
|
<meta name="msapplication-TileColor" content="#da532c">
|
|
<meta name="theme-color" content="#ffffff">
|
|
{/block}
|
|
|
|
{include "block.sentry.tpl"}
|
|
{include "components/js_init.tpl"}
|
|
|
|
{foreach $dbcfg.analytics.google_site_verifications as $row}
|
|
<meta name="google-site-verification" content="{$row.value}">
|
|
{/foreach}
|
|
|
|
{foreach $dbcfg.analytics.facebook_site_verifications as $row}
|
|
<meta name="facebook-domain-verification" content="{$row.value}">
|
|
{/foreach}
|
|
|
|
{foreach $dbcfg.analytics.pinterest_site_verifications as $row}
|
|
<meta name="p:domain_verify" content="{$row.value}"/>
|
|
{/foreach}
|
|
|
|
{if $dbcfg.analytics.seznam_webmaster.id}
|
|
<meta name="seznam-wmt" content="{$dbcfg.analytics.seznam_webmaster.id}">
|
|
{/if}
|
|
|
|
{include "block.gtm.tpl" gtm_type="gtm"}
|
|
{if !$gtm}
|
|
{include "block.gtm.script.tpl"}
|
|
{/if}
|
|
{/block}
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{function responsiveSwitch}
|
|
{if {web_version} == 'desktop'}
|
|
<a href="{path('kupshop_content_version_switchversion', ['type' => 'default'])}">{t}Mobilní zobrazení{/t}</a>
|
|
{else}
|
|
<a href="{path('kupshop_content_version_switchversion', ['type' => 'desktop'])}">{t}Klasické zobrazení{/t}</a>
|
|
{/if}
|
|
{/function}
|
|
|
|
{if !$gtm}
|
|
{include "block.gtm.noscript.tpl"}
|
|
{/if}
|
|
|
|
{block "google_tag_manager"}{/block}
|
|
|
|
{block body}{/block}
|
|
|
|
{include "components/block.photoswipe.tpl"}
|
|
|
|
{block "js-end"}
|
|
{block "js-polyfills"}
|
|
<script crossorigin="anonymous"
|
|
src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=default%2Cfetch%2CIntersectionObserver"></script>
|
|
{/block}
|
|
{block "js-entry"}
|
|
{encore_entry_script_tags entry='app'}
|
|
{encore_entry_script_tags entry='js-menu'}
|
|
{/block}
|
|
{block "js-dynamic-load"}
|
|
{* veci co se nedaji includovat do webpacku, protoze se `if`uji v sablone. Napr. preklady bootsrap validator, skript pro zasilkovnu, ... *}
|
|
{/block}
|
|
<script>
|
|
wpj.onReady.processAll();
|
|
{block onready}
|
|
{/block}
|
|
</script>
|
|
{/block}
|
|
|
|
{*{if $dbcfg.cookie_bar.enable == "Y"}
|
|
{include "block.cookie_bar.tpl"}
|
|
{/if}*}
|
|
|
|
{if $header.wpjToolbar and !$smarty.get.no_toolbar}
|
|
{include "block.wpj_toolbar.tpl"}
|
|
{/if}
|
|
|
|
{block analytics}
|
|
{if !isDebug()}
|
|
{include "block.analytics.tpl" inline}
|
|
{/if}
|
|
{/block}
|
|
</body>
|
|
</html>
|