{extends_parent}

{block fonts}
   {* todo font preload *}
   {*<link rel="preload" href="/web/build/fonts/Hauora-Regular.woff2" as="font" type="font/woff2" crossorigin>*}
{/block}

{block "og-image"}
   <meta property="og:image" content="{static_url url="/templates/images/share/fb-share-image.png" absolute=1}">
{/block}

{block "favicons"}
   <link rel="shortcut icon" href="{static_url url="/templates/images/favicon.ico" absolute=1}">
   <link rel="apple-touch-icon" sizes="144x144" href="{static_url url="/templates/images/share/apple-touch-icon.png" absolute=1}">
   <link rel="icon" type="image/png" sizes="32x32" href="{static_url url="/templates/images/share/favicon-32x32.png" absolute=1}">
   <link rel="icon" type="image/png" sizes="16x16" href="{static_url url="/templates/images/share/favicon-16x16.png" absolute=1}">
   <link rel="manifest" href="/templates/images/share/site.webmanifest" crossorigin="use-credentials">
   <meta name="msapplication-TileColor" content="#da532c">
   <meta name="theme-color" content="#ffffff">
{/block}

{block "body"}
    {block "header"}
        {include "components/header.tpl"}
    {/block}

    {block "main"}
       <main class="main {block "main-class"}{/block}">
          <div class="container">
              {block "breadcrumbs-container"}
                  {include "components/breadcrumbs.tpl"}
              {/block}

              {block "content"}

              {/block}
          </div>
       </main>
    {/block}

    {include 'components/block.newsletter-subscribe.tpl'}

    <div class="footer">
        <div class="container">
           <div class="row">
              <div class="col-xl-10 col-xl-offset-1 col-xxs-12">
                 <div class="footer-inner">
                     <div class="footer-content">
                        {insert_page code="footer"}
                     </div>
                     {insert_menu label="menu_footer" level_max=1 template="block.menu.footer.tpl"}
                    {include 'components/block.social.tpl' social_class='social-links'}
                 </div>

                 {block "footer-logos"}{/block}

                 <div class="copyright">
                    <div>
                       © {$smarty.now|date_format:"%Y"} {$dbcfg.shop_firm_name}
                    </div>

                     {insert_menu label="menu_copyright" level_max=0 template="block.menu.copyright.tpl"}

                    {if $ctrl.active_language|in_array:['cs', 'sk']}
                       <div>
                          Shop by&nbsp;<a href="https://www.wpj.cz">wpj.cz</a>
                       </div>
                    {/if}
                 </div>
              </div>
           </div>
        </div>
    </div>

    {if $cfg.tpl.language_currency_switcher}
        {include "focus/focus.language-switcher.tpl" class="language-switcher"}
        {include "focus/focus.currency-switcher.tpl" class="currency-switcher"}
    {/if}
{/block}

