Files
interblue.pl/themes/InterBlue/templates/layouts/layout-both-columns.tpl

164 lines
5.5 KiB
Smarty

{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<!doctype html>
<html lang="{$language.iso_code}">
<head>
{block name='head'}
{include file='_partials/head.tpl'}
{/block}
<meta name="google-site-verification" content="K2nI0KcRd21Wzx9smvEQu_Gj56Qi-8JWAmOXn1IzNy8" />
</head>
<body id="{$page.page_name}" class="{$page.body_classes|classnames}">
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KBZR63W" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<div id="fb-root"></div>
{literal}
<script>
setTimeout(function() {
window.fbAsyncInit = function() {
FB.init({
xfbml: true,
version: 'v8.0'
});
};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = 'https://connect.facebook.net/pl_PL/sdk/xfbml.customerchat.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
}, 4500);
</script>
{/literal}
<div class="fb-customerchat" attribution="page_inbox" page_id="1962168613996327"></div>
{block name='hook_after_body_opening_tag'}
{hook h='displayAfterBodyOpeningTag'}
{/block}
<main>
{block name='product_activation'}
{include file='catalog/_partials/product-activation.tpl'}
{/block}
<header id="header">
{block name='header'}
{include file='_partials/header.tpl'}
{/block}
</header>
{if $page.page_name != 'index'}
<section id="banner-wszystkie-podstrony">
<div class="container">
{hook h="banner_wszystkie_podstrony"}
</div>
</section>
{/if}
<section id="wrapper">
{hook h="displayWrapperTop"}
<div class="container">
{block name='notifications'}
{include file='_partials/notifications.tpl'}
{/block}
{block name='breadcrumb'}
{include file='_partials/breadcrumb.tpl'}
{/block}
{block name="left_column"}
<div id="left-column" class="col-xs-12 col-12 col-md-3">
{if $page.page_name == 'product'}
{hook h='displayLeftColumnProduct'}
{else}
{hook h="displayLeftColumn"}
{/if}
</div>
{/block}
{block name="content_wrapper"}
<div id="content-wrapper" class="left-column right-column col-sm-4 col-md-6">
{hook h="displayContentWrapperTop"}
{block name="content"}
<p>Hello world! This is HTML5 Boilerplate.</p>
{/block}
{hook h="displayContentWrapperBottom"}
</div>
{/block}
{block name="right_column"}
<div id="right-column" class="col-xs-12 col-sm-4 col-md-3">
{if $page.page_name == 'product'}
{hook h='displayRightColumnProduct'}
{else}
{hook h="displayRightColumn"}
{/if}
</div>
{/block}
</div>
{hook h="displayWrapperBottom"}
</section>
<footer id="footer">
{block name="footer"}
{include file="_partials/footer.tpl"}
{/block}
</footer>
</main>
{block name='javascript_bottom'}
{include file="_partials/javascript.tpl" javascript=$javascript.bottom}
{if $page.page_name == 'order-confirmation'}
<script>
ga('require', 'ecommerce');
ga('ecommerce:addTransaction', {literal}{{/literal}
'id': '{$smarty.get.id_order}',
'affiliation': 'interBlue',
'revenue': '{$order.totals.total.amount|string_format:"%.2f"}',
'shipping': '{$order.details.shipping[0].shipping_cost_tax_incl|string_format:"%.2f"}'
{literal}}{/literal});
{foreach from=$order.products item=product}
ga('ecommerce:addItem', {literal}{{/literal}
'id': '{$smarty.get.id_order}',
'name': '{$product.name}',
'price': '{$product.total_price_tax_incl|string_format:"%.2f"}',
'quantity': '{$product.quantity}',
'currency': 'PLN'
{literal}}{/literal});
{/foreach}
ga('ecommerce:send');
</script>
{/if}
{/block}
{block name='hook_before_body_closing_tag'}
{hook h='displayBeforeBodyClosingTag'}
{/block}
</body>
</html>