<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* frontend/landingPage/landingPage.html.twig */
class __TwigTemplate_12667f561e2d816e4a0da5a9c484c86174ae2b3fcefcbc4906abacf32a0f5d13 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'facebook' => [$this, 'block_facebook'],
'meta_desc_key' => [$this, 'block_meta_desc_key'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/landingPage/landingPage.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/landingPage/landingPage.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "frontend/landingPage/landingPage.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 5
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 5, $this->source); })()), "metaTitle", [], "any", false, false, false, 5)) {
// line 6
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 6, $this->source); })()), "metaTitle", [], "any", false, false, false, 6), "html", null, true);
yield "
";
} else {
// line 8
yield " ";
yield from $this->yieldParentBlock("title", $context, $blocks);
yield "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
// line 12
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_facebook(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "facebook"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "facebook"));
// line 13
yield " ";
if (CoreExtension::inFilter("ckdev", CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 13, $this->source); })()), "request", [], "any", false, false, false, 13), "getSchemeAndHttpHost", [], "method", false, false, false, 13))) {
// line 14
yield " <meta name=\"robots\" content=\"noindex, nofollow\" />
";
}
// line 16
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 16, $this->source); })()), "request", [], "any", false, false, false, 16), "locale", [], "any", false, false, false, 16) == "pl")) {
// line 17
yield " <meta property=\"og:image\" content=\"\"/>
<meta property=\"og:title\" content=\"";
// line 18
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 18, $this->source); })()), "metaTitle", [], "any", false, false, false, 18), "html", null, true);
yield "\"/>
<meta property=\"og:url\" content=\"https://www.centrumkrzesel.pl";
// line 19
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("landing-page-front", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 19, $this->source); })()), "id", [], "any", false, false, false, 19), "slug" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 19, $this->source); })()), "slug", [], "any", false, false, false, 19)], false), "html", null, true);
yield "\"/>
<meta property=\"og:description\" content=\"";
// line 20
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 20, $this->source); })()), "metaDescription", [], "any", false, false, false, 20), "html", null, true);
yield "\">
";
}
// line 22
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 22, $this->source); })()), "request", [], "any", false, false, false, 22), "locale", [], "any", false, false, false, 22) == "cz")) {
// line 23
yield " ";
if (CoreExtension::inFilter("dev.ezidle", CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 23, $this->source); })()), "request", [], "any", false, false, false, 23), "getSchemeAndHttpHost", [], "method", false, false, false, 23))) {
// line 24
yield " <meta name=\"robots\" content=\"noindex, nofollow\" />
";
}
// line 26
yield " <meta property=\"og:image\" content=\"\"/>
<meta property=\"og:title\" content=\"";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 27, $this->source); })()), "metaTitle", [], "any", false, false, false, 27), "html", null, true);
yield "\"/>
<meta property=\"og:url\" content=\"https://www.ezidle.cz";
// line 28
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("landing-page-front", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 28, $this->source); })()), "id", [], "any", false, false, false, 28), "slug" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 28, $this->source); })()), "slug", [], "any", false, false, false, 28)], false), "html", null, true);
yield "\"/>
<meta property=\"og:description\" content=\"";
// line 29
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 29, $this->source); })()), "metaDescription", [], "any", false, false, false, 29), "html", null, true);
yield "\">
";
}
// line 31
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 31, $this->source); })()), "request", [], "any", false, false, false, 31), "locale", [], "any", false, false, false, 31) == "sk")) {
// line 32
yield " <meta property=\"og:image\" content=\"\"/>
<meta property=\"og:title\" content=\"";
// line 33
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 33, $this->source); })()), "metaTitle", [], "any", false, false, false, 33), "html", null, true);
yield "\"/>
<meta property=\"og:url\" content=\"https://www.stolicky24.sk";
// line 34
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("landing-page-front", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 34, $this->source); })()), "id", [], "any", false, false, false, 34), "slug" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 34, $this->source); })()), "slug", [], "any", false, false, false, 34)], false), "html", null, true);
yield "\"/>
<meta property=\"og:description\" content=\"";
// line 35
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 35, $this->source); })()), "metaDescription", [], "any", false, false, false, 35), "html", null, true);
yield "\">
";
}
// line 37
yield " <meta property=\"og:type\" content=\"website\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
// line 40
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_meta_desc_key(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_desc_key"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_desc_key"));
// line 41
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 41, $this->source); })()), "metaDescription", [], "any", false, false, false, 41)) {
// line 42
yield " <meta name=\"keywords\" content=\"krzesła, fotele, hokery, meble, sklep internetowy, zakupy, centrum krzeseł\">
<meta name=\"description\" content=\"";
// line 43
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 43, $this->source); })()), "metaDescription", [], "any", false, false, false, 43), "html", null, true);
yield "\">
";
} else {
// line 45
yield " ";
yield from $this->yieldParentBlock("meta_desc_key", $context, $blocks);
yield "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
// line 49
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 50
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
<style>
#topBannerLp {
position:relative; width:100%; top:0px; height:35px; font-size:13px;
}
@media (min-width: 767px) {
.lista-produktow {
display: contents!important;
}
}
@media (max-width: 767px) {
#topBannerLp {
position: relative;
width: 100%;
top: 0px;
height: 60px;
font-size: 11px;
}
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
// line 75
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 76
yield " ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
<script>
function addToCart(product_id, sub) {
\$('.cart-error-notification').hide();
var chosen = [];
let parameters = chosen;
let \$variant = '';
;
var quantity = 1;
var url = \$('#add_to_cart_url').val();
var equipments = [];
console.log(sub);
console.log(product_id);
\$.ajax({
type: \"POST\",
url: url,
data: {'sub':sub, 'equipments':equipments, 'product_id':product_id, 'quantity':quantity, 'variant':\$variant, 'parameters':parameters},
success: function (data) {
console.log(data);
if (parseInt(data.error) === 1) {
\$('.cart-error-notification').show();
\$('.cart-error-notification').html(data.message);
\$('.ask-button').prop('disabled', false);
} else {
window.location.href = '/cart';
}
}
});
}
\$('.ask-button').on(\"click\", function(e) {
e.preventDefault();
var product_id = \$(this).attr('product-id')
var sub = \$(this).attr('product-sub');
addToCart(product_id, sub);
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
// line 124
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 125
yield " <input type=\"hidden\" name=\"add_to_cart_url\" id=\"add_to_cart_url\" value=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("add_to_cart");
yield "\"/>
<!-- START OF CATEGORY NAME SECTION -->
<section class=\"section\">
<div class=\"container\">
<div class=\"columns is-multiline\">
";
// line 146
yield "
";
// line 147
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 147, $this->source); })()), "banner", [], "any", false, false, false, 147)) {
// line 148
yield " ";
$context["banner"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 148, $this->source); })()), "banner", [], "any", false, false, false, 148);
// line 149
yield "
<div class='carousel-item has-background carousel-desktop' style=\"height:100%; background: ";
// line 150
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 150, $this->source); })()), "color", [], "any", false, false, false, 150), "html", null, true);
yield "!important;\">
";
// line 151
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 151, $this->source); })()), "title", [], "any", false, false, false, 151)) {
// line 152
yield " <div style=\"color: ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 152, $this->source); })()), "campaignTextColor", [], "any", false, false, false, 152), "html", null, true);
yield "!important; float: left; max-width: 45%;\">
<h1 class=\"banner_h1\">
";
// line 154
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 154, $this->source); })()), "title", [], "any", false, false, false, 154), "html", null, true);
yield "
</h1>
<div class=\"additionalText\" style=\"padding-top:40px;\">
";
// line 157
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 157, $this->source); })()), "additionalText", [], "any", false, false, false, 157), "html", null, true);
yield "
</div>
</div>
";
} else {
// line 161
yield " ";
}
// line 162
yield " <div style=\"width: 100%; background: ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 162, $this->source); })()), "color", [], "any", false, false, false, 162), "html", null, true);
yield "!important; ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 162, $this->source); })()), "title", [], "any", false, false, false, 162)) {
yield "float:right; max-width: 55%;";
}
yield "\">
<a href=\"";
// line 163
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 163, $this->source); })()), "url", [], "any", false, false, false, 163), "html", null, true);
yield "\">
<img class=\"is-background\" style=\"height:100%!important; float: right\" src=\"/images/important/";
// line 164
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 164, $this->source); })()), "imageName", [], "any", false, false, false, 164), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 164, $this->source); })()), "title", [], "any", false, false, false, 164), "html", null, true);
yield "\" />
</a>
</div>
</div>
<!-- mobile -->
<div class='carousel-item has-background carousel-mobile' style=\"background: ";
// line 170
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 170, $this->source); })()), "color", [], "any", false, false, false, 170), "html", null, true);
yield "!important;\">
<div>
<a href=\"";
// line 172
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 172, $this->source); })()), "url", [], "any", false, false, false, 172), "html", null, true);
yield "\">
<img class=\"is-background\" src=\"/images/important/";
// line 173
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 173, $this->source); })()), "imageName", [], "any", false, false, false, 173), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 173, $this->source); })()), "title", [], "any", false, false, false, 173), "html", null, true);
yield "\" width=\"640\" height=\"310\" />
</a>
<div class=\"has-text-centered\" style=\"background: ";
// line 176
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 176, $this->source); })()), "color", [], "any", false, false, false, 176), "html", null, true);
yield "!important; margin-top:-10px;\">
<h1 class=\"banner_h1 has-text-centered\" style=\"color: ";
// line 177
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 177, $this->source); })()), "campaignTextColor", [], "any", false, false, false, 177), "html", null, true);
yield "!important;\">
";
// line 178
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 178, $this->source); })()), "title", [], "any", false, false, false, 178), "html", null, true);
yield "
</h1>
<div class=\"additionalText has-text-centered\" style=\"color: ";
// line 180
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 180, $this->source); })()), "campaignTextColor", [], "any", false, false, false, 180), "html", null, true);
yield "!important; margin-top:-10px;\">
";
// line 181
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 181, $this->source); })()), "additionalText", [], "any", false, false, false, 181), "html", null, true);
yield "
</div>
</div>
</div>
</div>
";
}
// line 187
yield "
";
// line 188
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 188, $this->source); })()), "topBanner", [], "any", false, false, false, 188)) {
// line 189
yield " ";
$context["banner"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 189, $this->source); })()), "topBanner", [], "any", false, false, false, 189);
// line 190
yield " <div class=\"column is-full text-center\">
";
// line 191
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 191, $this->source); })()), "endDate", [], "any", false, false, false, 191)) {
// line 192
yield " <script>
// Set the date we're counting down to
var countDownDateLp = new Date(\"";
// line 194
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 194, $this->source); })()), "endDate", [], "any", false, false, false, 194), "M"), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 194, $this->source); })()), "endDate", [], "any", false, false, false, 194), "d"), "html", null, true);
yield ", ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 194, $this->source); })()), "endDate", [], "any", false, false, false, 194), "Y"), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 194, $this->source); })()), "endDate", [], "any", false, false, false, 194), "H"), "html", null, true);
yield ":";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 194, $this->source); })()), "endDate", [], "any", false, false, false, 194), "i"), "html", null, true);
yield ":";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 194, $this->source); })()), "endDate", [], "any", false, false, false, 194), "s"), "html", null, true);
yield "\").getTime();
// Update the count down every 1 second
var y = setInterval(function() {
// Get today's date and time
var now = new Date().getTime();
// Find the distance_lp between now and the count down date
var distance_lp = countDownDateLp - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance_lp / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance_lp % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance_lp % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance_lp % (1000 * 60)) / 1000);
// Display the result in the element with id=\"demo\"
document.getElementById(\"countdown_lp\").innerHTML = '<strong>'+days + \"</strong> ";
// line 212
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("days", [], "store"), "html", null, true);
yield " <strong>\" + hours + \"</strong> ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("hours", [], "store"), "html", null, true);
yield " <strong>\"
+ minutes + \"</strong> ";
// line 213
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("minutes", [], "store"), "html", null, true);
yield " <strong>\" + seconds + \" </strong>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seconds", [], "store"), "html", null, true);
yield " \";
// If the count down is finished, write some text
if (distance_lp < 0) {
clearInterval(y);
document.getElementById(\"countdown_lp\").innerHTML = \"";
// line 218
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("promo_expired", [], "store"), "html", null, true);
yield "\";
}
}, 1000);
</script>
";
}
// line 223
yield "
";
// line 224
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 224, $this->source); })()), "url", [], "any", false, false, false, 224)) {
// line 225
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 225, $this->source); })()), "url", [], "any", false, false, false, 225), "html", null, true);
yield "\">
";
}
// line 227
yield " <div style=\"background: ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 227, $this->source); })()), "background", [], "any", false, false, false, 227), "html", null, true);
yield "; color: ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 227, $this->source); })()), "textColor", [], "any", false, false, false, 227), "html", null, true);
yield "\" id=\"topBannerLp\">
";
// line 228
$context["width"] = 50;
// line 229
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 229, $this->source); })()), "endDate", [], "any", false, false, false, 229)) {
// line 230
yield " ";
$context["width"] = 33;
// line 231
yield " ";
}
// line 232
yield " <div style=\"float: left; width:";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["width"]) || array_key_exists("width", $context) ? $context["width"] : (function () { throw new RuntimeError('Variable "width" does not exist.', 232, $this->source); })()), "html", null, true);
yield "%; text-align: right; padding:8px;\">
";
// line 233
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 233, $this->source); })()), "textLeft", [], "any", false, false, false, 233), [], "store");
yield "
</div>
";
// line 235
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 235, $this->source); })()), "endDate", [], "any", false, false, false, 235)) {
// line 236
yield " <div style=\"float: left; width:33%; text-align: center; padding:8px;\">
";
// line 237
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("banner_to_end", [], "store"), "html", null, true);
yield ": <span id=\"countdown_lp\"></span>
</div>
";
}
// line 240
yield " <div style=\"float: left; width:";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["width"]) || array_key_exists("width", $context) ? $context["width"] : (function () { throw new RuntimeError('Variable "width" does not exist.', 240, $this->source); })()), "html", null, true);
yield "%; text-align: left; padding:8px;\">
";
// line 241
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 241, $this->source); })()), "textRight", [], "any", false, false, false, 241), [], "store");
yield "
</div>
</div>
";
// line 244
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 244, $this->source); })()), "url", [], "any", false, false, false, 244)) {
// line 245
yield " </a>
";
}
// line 247
yield " </div>
";
}
// line 249
yield "
";
// line 250
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 250, $this->source); })()), "header", [], "any", false, false, false, 250)) {
// line 251
yield " <div class=\"column is-full\">
<span class=\"is-size-2 \">";
// line 252
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 252, $this->source); })()), "header", [], "any", false, false, false, 252), "html", null, true);
yield "</span>
</div>
";
}
// line 255
yield "
";
// line 256
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 256, $this->source); })()), "description", [], "any", false, false, false, 256)) {
// line 257
yield " <div class=\"column is-full\">
<span class=\"\">
";
// line 259
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 259, $this->source); })()), "description", [], "any", false, false, false, 259);
yield "
</span>
</div>
";
}
// line 263
yield "
";
// line 264
$context["productsCounter"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 264, $this->source); })()), "products", [], "any", false, false, false, 264), "count", [], "any", false, false, false, 264);
// line 265
yield "
<div class=\"";
// line 266
if (((isset($context["productsCounter"]) || array_key_exists("productsCounter", $context) ? $context["productsCounter"] : (function () { throw new RuntimeError('Variable "productsCounter" does not exist.', 266, $this->source); })()) == 1)) {
yield "column is-full";
} else {
yield "columns";
}
yield " is-multiline is-mobile lista-produktow\" v-match-heights=\"{ el: [ '.with-description' ] }\">
";
// line 267
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["productsForProducer"]) || array_key_exists("productsForProducer", $context) ? $context["productsForProducer"] : (function () { throw new RuntimeError('Variable "productsForProducer" does not exist.', 267, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["productData"]) {
// line 268
yield " ";
$context["product"] = CoreExtension::getAttribute($this->env, $this->source, $context["productData"], 0, [], "array", false, false, false, 268);
// line 269
yield " ";
yield from $this->loadTemplate("frontend/components/smallProduct.html.twig", "frontend/landingPage/landingPage.html.twig", 269)->unwrap()->yield(CoreExtension::merge($context, ["isOneQuarter" => 1, "product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 269, $this->source); })()), "productData" => $context["productData"]]));
// line 270
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['productData'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 271
yield "
";
// line 272
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 272, $this->source); })()), "products", [], "any", false, false, false, 272), "count", [], "any", false, false, false, 272)) {
// line 273
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 273, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["productData"]) {
// line 274
yield " ";
$context["product"] = CoreExtension::getAttribute($this->env, $this->source, $context["productData"], 0, [], "array", false, false, false, 274);
// line 275
yield " ";
yield from $this->loadTemplate("frontend/components/smallProduct.html.twig", "frontend/landingPage/landingPage.html.twig", 275)->unwrap()->yield(CoreExtension::merge($context, ["isOneQuarter" => 1, "product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 275, $this->source); })()), "productData" => $context["productData"]]));
// line 276
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['productData'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 277
yield " ";
}
// line 278
yield " </div>
";
// line 280
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 280, $this->source); })())) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingPage"]) || array_key_exists("landingPage", $context) ? $context["landingPage"] : (function () { throw new RuntimeError('Variable "landingPage" does not exist.', 280, $this->source); })()), "specialForBuyCheaper", [], "any", false, false, false, 280))) {
// line 281
yield " <table class=\"table\" style=\"width: 100%;\">
<tr>
<th style=\"vertical-align: middle\">
";
// line 284
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("preview_picture", [], "store"), "html", null, true);
yield "
</th>
<th style=\"vertical-align: middle\">
";
// line 287
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("name", [], "store"), "html", null, true);
yield "
</th>
<th style=\"vertical-align: middle\">
";
// line 290
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("discount", [], "store"), "html", null, true);
yield "
</th>
<th style=\"vertical-align: middle\">
";
// line 293
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("regular_price", [], "store"), "html", null, true);
yield "
</th>
<th style=\"color:red;\">
";
// line 296
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("promotional_price", [], "store"), "html", null, true);
yield "
</th>
<th style=\"vertical-align: middle\"></th>
</tr>
";
// line 300
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 300, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["productData"]) {
// line 301
yield " ";
$context["product"] = CoreExtension::getAttribute($this->env, $this->source, $context["productData"], 0, [], "array", false, false, false, 301);
// line 302
yield " ";
$context["show"] = 0;
// line 303
yield "
";
// line 304
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 304, $this->source); })()), "request", [], "any", false, false, false, 304), "attributes", [], "any", false, false, false, 304), "get", ["product"], "method", false, false, false, 304) == null)) {
// line 305
yield " ";
$context["show"] = 1;
// line 306
yield " ";
} else {
// line 307
yield " ";
$context["show"] = 0;
// line 308
yield " ";
}
// line 309
yield "
";
// line 310
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 310, $this->source); })()), "request", [], "any", false, false, false, 310), "attributes", [], "any", false, false, false, 310), "get", ["product"], "method", false, false, false, 310) == CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 310, $this->source); })()), "id", [], "any", false, false, false, 310))) {
// line 311
yield " ";
$context["show"] = 1;
// line 312
yield " ";
}
// line 313
yield "
";
// line 314
if ((isset($context["show"]) || array_key_exists("show", $context) ? $context["show"] : (function () { throw new RuntimeError('Variable "show" does not exist.', 314, $this->source); })())) {
// line 315
yield " <tr>
<td style=\"vertical-align: middle;\">
<img style=\"height: 70px;\" src=\"";
// line 317
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("/images/product/" . CoreExtension::getAttribute($this->env, $this->source, $context["productData"], "mainPhoto", [], "any", false, false, false, 317)) . "")), "small"), "html", null, true);
yield "\">
</td>
<td style=\"vertical-align: middle;\">
<a href=\"";
// line 320
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product", ["slug" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 320, $this->source); })()), "slug", [], "any", false, false, false, 320), "id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 320, $this->source); })()), "id", [], "any", false, false, false, 320)]), "html", null, true);
yield "\">
<strong>";
// line 321
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["productData"], "subName", [], "any", false, false, false, 321), "html", null, true);
yield "</strong>
</a>
</td>
<td style=\"vertical-align: middle;\">
";
// line 325
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["productData"], "subRebate", [], "any", false, false, false, 325), "html", null, true);
yield "
</td>
<td style=\"vertical-align: middle; min-width: 80px;\">
<strike>
";
// line 329
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->formatPrice(CoreExtension::getAttribute($this->env, $this->source, $context["productData"], "beforeDiscount", [], "any", false, false, false, 329), (isset($context["currency"]) || array_key_exists("currency", $context) ? $context["currency"] : (function () { throw new RuntimeError('Variable "currency" does not exist.', 329, $this->source); })())), "html", null, true);
yield "
</strike>
</td>
<td style=\"vertical-align: middle; min-width: 80px;\">
";
// line 333
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->formatPrice(CoreExtension::getAttribute($this->env, $this->source, $context["productData"], "subPrice", [], "any", false, false, false, 333), (isset($context["currency"]) || array_key_exists("currency", $context) ? $context["currency"] : (function () { throw new RuntimeError('Variable "currency" does not exist.', 333, $this->source); })())), "html", null, true);
yield "
</td>
<td style=\"vertical-align: middle; width:20%;\">
<div class=\"level-item\">
<button product-id=\"";
// line 337
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 337, $this->source); })()), "id", [], "any", false, false, false, 337), "html", null, true);
yield "\" product-sub=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["productData"], "subId", [], "any", false, false, false, 337), "html", null, true);
yield "\" type=\"button\" id=\"\" class=\"ask-button button is-success has-text-weight-bold\" style=\"opacity: 1;\">
";
// line 338
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("order", [], "store"), "html", null, true);
yield "
<i class=\"fa fa-arrow-right\"></i>
</button>
</div>
</td>
</tr>
";
}
// line 345
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['productData'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 346
yield " </table>
";
// line 347
if ((isset($context["productEntity"]) || array_key_exists("productEntity", $context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.', 347, $this->source); })())) {
// line 348
yield " <br/> <br/>
<strong>
<a style=\"font-size:1rem;\" href=\"";
// line 350
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product", ["slug" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["productEntity"]) || array_key_exists("productEntity", $context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.', 350, $this->source); })()), "slug", [], "any", false, false, false, 350), "id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["productEntity"]) || array_key_exists("productEntity", $context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.', 350, $this->source); })()), "id", [], "any", false, false, false, 350)]), "html", null, true);
yield "\" class=\"button is-small is-info\"><i class=\"fa fa-arrow-left\"></i> ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("back_to_product_page", [], "store"), "html", null, true);
yield "</a>
<a href=\"https://www.centrumkrzesel.pl/lp/228/strefa-okazji\" style=\"font-size:1rem; background-color: #ef1b2b\" class=\"button is-small is-info\"><i class=\"fa fa-arrow-right\"></i> ";
// line 352
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("view_all_promotions", [], "store"), "html", null, true);
yield "</a>
</strong>
";
}
// line 355
yield " ";
}
// line 356
yield "
</div>
</div>
</section>
<!-- END OF CATEGORY NAME SECTION -->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "frontend/landingPage/landingPage.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 936 => 356, 933 => 355, 927 => 352, 920 => 350, 916 => 348, 914 => 347, 911 => 346, 905 => 345, 895 => 338, 889 => 337, 882 => 333, 875 => 329, 868 => 325, 861 => 321, 857 => 320, 851 => 317, 847 => 315, 845 => 314, 842 => 313, 839 => 312, 836 => 311, 834 => 310, 831 => 309, 828 => 308, 825 => 307, 822 => 306, 819 => 305, 817 => 304, 814 => 303, 811 => 302, 808 => 301, 804 => 300, 797 => 296, 791 => 293, 785 => 290, 779 => 287, 773 => 284, 768 => 281, 766 => 280, 762 => 278, 759 => 277, 745 => 276, 742 => 275, 739 => 274, 721 => 273, 719 => 272, 716 => 271, 702 => 270, 699 => 269, 696 => 268, 679 => 267, 671 => 266, 668 => 265, 666 => 264, 663 => 263, 656 => 259, 652 => 257, 650 => 256, 647 => 255, 641 => 252, 638 => 251, 636 => 250, 633 => 249, 629 => 247, 625 => 245, 623 => 244, 617 => 241, 612 => 240, 606 => 237, 603 => 236, 601 => 235, 596 => 233, 591 => 232, 588 => 231, 585 => 230, 582 => 229, 580 => 228, 573 => 227, 567 => 225, 565 => 224, 562 => 223, 554 => 218, 544 => 213, 538 => 212, 507 => 194, 503 => 192, 501 => 191, 498 => 190, 495 => 189, 493 => 188, 490 => 187, 481 => 181, 477 => 180, 472 => 178, 468 => 177, 464 => 176, 456 => 173, 452 => 172, 447 => 170, 436 => 164, 432 => 163, 423 => 162, 420 => 161, 413 => 157, 407 => 154, 401 => 152, 399 => 151, 395 => 150, 392 => 149, 389 => 148, 387 => 147, 384 => 146, 374 => 125, 361 => 124, 302 => 76, 289 => 75, 253 => 50, 240 => 49, 225 => 45, 220 => 43, 217 => 42, 214 => 41, 201 => 40, 189 => 37, 184 => 35, 180 => 34, 176 => 33, 173 => 32, 170 => 31, 165 => 29, 161 => 28, 157 => 27, 154 => 26, 150 => 24, 147 => 23, 144 => 22, 139 => 20, 135 => 19, 131 => 18, 128 => 17, 125 => 16, 121 => 14, 118 => 13, 105 => 12, 90 => 8, 84 => 6, 81 => 5, 68 => 4, 45 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'base.html.twig' %}
{% trans_default_domain 'store' %}
{% block title %}
{% if landingPage.metaTitle %}
{{ landingPage.metaTitle }}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block facebook %}
{% if 'ckdev' in app.request.getSchemeAndHttpHost() %}
<meta name=\"robots\" content=\"noindex, nofollow\" />
{% endif %}
{% if app.request.locale == 'pl' %}
<meta property=\"og:image\" content=\"\"/>
<meta property=\"og:title\" content=\"{{ landingPage.metaTitle }}\"/>
<meta property=\"og:url\" content=\"https://www.centrumkrzesel.pl{{ path('landing-page-front', {'id':landingPage.id, 'slug':landingPage.slug}, false) }}\"/>
<meta property=\"og:description\" content=\"{{ landingPage.metaDescription }}\">
{% endif %}
{% if app.request.locale == 'cz' %}
{% if 'dev.ezidle' in app.request.getSchemeAndHttpHost() %}
<meta name=\"robots\" content=\"noindex, nofollow\" />
{% endif %}
<meta property=\"og:image\" content=\"\"/>
<meta property=\"og:title\" content=\"{{ landingPage.metaTitle }}\"/>
<meta property=\"og:url\" content=\"https://www.ezidle.cz{{ path('landing-page-front', {'id':landingPage.id, 'slug':landingPage.slug}, false) }}\"/>
<meta property=\"og:description\" content=\"{{ landingPage.metaDescription }}\">
{% endif %}
{% if app.request.locale == 'sk' %}
<meta property=\"og:image\" content=\"\"/>
<meta property=\"og:title\" content=\"{{ landingPage.metaTitle }}\"/>
<meta property=\"og:url\" content=\"https://www.stolicky24.sk{{ path('landing-page-front', {'id':landingPage.id, 'slug':landingPage.slug}, false) }}\"/>
<meta property=\"og:description\" content=\"{{ landingPage.metaDescription }}\">
{% endif %}
<meta property=\"og:type\" content=\"website\"/>
{% endblock %}
{% block meta_desc_key %}
{% if landingPage.metaDescription %}
<meta name=\"keywords\" content=\"krzesła, fotele, hokery, meble, sklep internetowy, zakupy, centrum krzeseł\">
<meta name=\"description\" content=\"{{ landingPage.metaDescription }}\">
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<style>
#topBannerLp {
position:relative; width:100%; top:0px; height:35px; font-size:13px;
}
@media (min-width: 767px) {
.lista-produktow {
display: contents!important;
}
}
@media (max-width: 767px) {
#topBannerLp {
position: relative;
width: 100%;
top: 0px;
height: 60px;
font-size: 11px;
}
}
</style>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
function addToCart(product_id, sub) {
\$('.cart-error-notification').hide();
var chosen = [];
let parameters = chosen;
let \$variant = '';
;
var quantity = 1;
var url = \$('#add_to_cart_url').val();
var equipments = [];
console.log(sub);
console.log(product_id);
\$.ajax({
type: \"POST\",
url: url,
data: {'sub':sub, 'equipments':equipments, 'product_id':product_id, 'quantity':quantity, 'variant':\$variant, 'parameters':parameters},
success: function (data) {
console.log(data);
if (parseInt(data.error) === 1) {
\$('.cart-error-notification').show();
\$('.cart-error-notification').html(data.message);
\$('.ask-button').prop('disabled', false);
} else {
window.location.href = '/cart';
}
}
});
}
\$('.ask-button').on(\"click\", function(e) {
e.preventDefault();
var product_id = \$(this).attr('product-id')
var sub = \$(this).attr('product-sub');
addToCart(product_id, sub);
});
</script>
{% endblock %}
{% block content %}
<input type=\"hidden\" name=\"add_to_cart_url\" id=\"add_to_cart_url\" value=\"{{ path('add_to_cart') }}\"/>
<!-- START OF CATEGORY NAME SECTION -->
<section class=\"section\">
<div class=\"container\">
<div class=\"columns is-multiline\">
{#
{% if landingPage.banner %}
<div class=\"columns\" style=\"margin-top:30px;\">
<div class=\"column is-full text-center\">
{% if landingPage.banner.url %}
<a href=\"{{ landingPage.banner.url }}\">
{% endif %}
<div class=\"image\"><img src=\"/images/important/{{ landingPage.banner.imageName }}\" alt=\"\"></div>
{% if landingPage.banner.url %}
</a>
{% endif %}
</div>
</div>
{% endif %}
#}
{% if landingPage.banner %}
{% set banner = landingPage.banner %}
<div class='carousel-item has-background carousel-desktop' style=\"height:100%; background: {{ banner.color }}!important;\">
{% if banner.title %}
<div style=\"color: {{ banner.campaignTextColor }}!important; float: left; max-width: 45%;\">
<h1 class=\"banner_h1\">
{{ banner.title }}
</h1>
<div class=\"additionalText\" style=\"padding-top:40px;\">
{{ banner.additionalText }}
</div>
</div>
{% else %}
{% endif %}
<div style=\"width: 100%; background: {{ banner.color }}!important; {% if banner.title %}float:right; max-width: 55%;{% endif %}\">
<a href=\"{{ banner.url }}\">
<img class=\"is-background\" style=\"height:100%!important; float: right\" src=\"/images/important/{{ banner.imageName }}\" alt=\"{{ banner.title }}\" />
</a>
</div>
</div>
<!-- mobile -->
<div class='carousel-item has-background carousel-mobile' style=\"background: {{ banner.color }}!important;\">
<div>
<a href=\"{{ banner.url }}\">
<img class=\"is-background\" src=\"/images/important/{{ banner.imageName }}\" alt=\"{{ banner.title }}\" width=\"640\" height=\"310\" />
</a>
<div class=\"has-text-centered\" style=\"background: {{ banner.color }}!important; margin-top:-10px;\">
<h1 class=\"banner_h1 has-text-centered\" style=\"color: {{ banner.campaignTextColor }}!important;\">
{{ banner.title }}
</h1>
<div class=\"additionalText has-text-centered\" style=\"color: {{ banner.campaignTextColor }}!important; margin-top:-10px;\">
{{ banner.additionalText }}
</div>
</div>
</div>
</div>
{% endif %}
{% if landingPage.topBanner %}
{% set banner = landingPage.topBanner %}
<div class=\"column is-full text-center\">
{% if banner.endDate %}
<script>
// Set the date we're counting down to
var countDownDateLp = new Date(\"{{ banner.endDate|date('M') }} {{ banner.endDate|date('d') }}, {{ banner.endDate|date('Y') }} {{ banner.endDate|date('H') }}:{{ banner.endDate|date('i') }}:{{ banner.endDate|date('s') }}\").getTime();
// Update the count down every 1 second
var y = setInterval(function() {
// Get today's date and time
var now = new Date().getTime();
// Find the distance_lp between now and the count down date
var distance_lp = countDownDateLp - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance_lp / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance_lp % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance_lp % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance_lp % (1000 * 60)) / 1000);
// Display the result in the element with id=\"demo\"
document.getElementById(\"countdown_lp\").innerHTML = '<strong>'+days + \"</strong> {{ 'days'|trans }} <strong>\" + hours + \"</strong> {{ 'hours'|trans }} <strong>\"
+ minutes + \"</strong> {{ 'minutes'|trans }} <strong>\" + seconds + \" </strong>{{ 'seconds'|trans }} \";
// If the count down is finished, write some text
if (distance_lp < 0) {
clearInterval(y);
document.getElementById(\"countdown_lp\").innerHTML = \"{{ 'promo_expired'|trans }}\";
}
}, 1000);
</script>
{% endif %}
{% if banner.url %}
<a href=\"{{ banner.url }}\">
{% endif %}
<div style=\"background: {{ banner.background }}; color: {{ banner.textColor }}\" id=\"topBannerLp\">
{% set width = 50 %}
{% if banner.endDate %}
{% set width = 33 %}
{% endif %}
<div style=\"float: left; width:{{ width }}%; text-align: right; padding:8px;\">
{{ banner.textLeft|trans|raw }}
</div>
{% if banner.endDate %}
<div style=\"float: left; width:33%; text-align: center; padding:8px;\">
{{ 'banner_to_end'|trans }}: <span id=\"countdown_lp\"></span>
</div>
{% endif %}
<div style=\"float: left; width:{{ width }}%; text-align: left; padding:8px;\">
{{ banner.textRight|trans|raw }}
</div>
</div>
{% if banner.url %}
</a>
{% endif %}
</div>
{% endif %}
{% if landingPage.header %}
<div class=\"column is-full\">
<span class=\"is-size-2 \">{{ landingPage.header }}</span>
</div>
{% endif %}
{% if landingPage.description %}
<div class=\"column is-full\">
<span class=\"\">
{{ landingPage.description|raw }}
</span>
</div>
{% endif %}
{% set productsCounter = landingPage.products.count %}
<div class=\"{% if productsCounter == 1 %}column is-full{% else %}columns{% endif %} is-multiline is-mobile lista-produktow\" v-match-heights=\"{ el: [ '.with-description' ] }\">
{% for productData in productsForProducer %}
{% set product = productData[0] %}
{% include 'frontend/components/smallProduct.html.twig' with {'isOneQuarter':1, 'product':product, 'productData':productData} %}
{% endfor %}
{% if landingPage.products.count %}
{% for productData in products %}
{% set product = productData[0] %}
{% include 'frontend/components/smallProduct.html.twig' with {'isOneQuarter':1, 'product':product, 'productData':productData} %}
{% endfor %}
{% endif %}
</div>
{% if products|length and landingPage.specialForBuyCheaper %}
<table class=\"table\" style=\"width: 100%;\">
<tr>
<th style=\"vertical-align: middle\">
{{ 'preview_picture'|trans }}
</th>
<th style=\"vertical-align: middle\">
{{ 'name'|trans }}
</th>
<th style=\"vertical-align: middle\">
{{ 'discount'|trans }}
</th>
<th style=\"vertical-align: middle\">
{{ 'regular_price'|trans }}
</th>
<th style=\"color:red;\">
{{ 'promotional_price'|trans }}
</th>
<th style=\"vertical-align: middle\"></th>
</tr>
{% for productData in products %}
{% set product = productData[0] %}
{% set show = 0 %}
{% if app.request.attributes.get('product') == null %}
{% set show = 1 %}
{% else %}
{% set show = 0 %}
{% endif %}
{% if app.request.attributes.get('product') == product.id %}
{% set show = 1 %}
{% endif %}
{% if show %}
<tr>
<td style=\"vertical-align: middle;\">
<img style=\"height: 70px;\" src=\"{{ asset('/images/product/'~productData.mainPhoto~'') | imagine_filter('small') }}\">
</td>
<td style=\"vertical-align: middle;\">
<a href=\"{{ path('product', {'slug':product.slug, 'id':product.id}) }}\">
<strong>{{ productData.subName }}</strong>
</a>
</td>
<td style=\"vertical-align: middle;\">
{{ productData.subRebate }}
</td>
<td style=\"vertical-align: middle; min-width: 80px;\">
<strike>
{{ productData.beforeDiscount|formatPrice(currency) }}
</strike>
</td>
<td style=\"vertical-align: middle; min-width: 80px;\">
{{ productData.subPrice|formatPrice(currency) }}
</td>
<td style=\"vertical-align: middle; width:20%;\">
<div class=\"level-item\">
<button product-id=\"{{ product.id }}\" product-sub=\"{{ productData.subId }}\" type=\"button\" id=\"\" class=\"ask-button button is-success has-text-weight-bold\" style=\"opacity: 1;\">
{{ 'order'|trans }}
<i class=\"fa fa-arrow-right\"></i>
</button>
</div>
</td>
</tr>
{% endif %}
{% endfor %}
</table>
{% if productEntity %}
<br/> <br/>
<strong>
<a style=\"font-size:1rem;\" href=\"{{ path('product', {'slug':productEntity.slug, 'id':productEntity.id}) }}\" class=\"button is-small is-info\"><i class=\"fa fa-arrow-left\"></i> {{ 'back_to_product_page'|trans }}</a>
<a href=\"https://www.centrumkrzesel.pl/lp/228/strefa-okazji\" style=\"font-size:1rem; background-color: #ef1b2b\" class=\"button is-small is-info\"><i class=\"fa fa-arrow-right\"></i> {{ 'view_all_promotions'|trans }}</a>
</strong>
{% endif %}
{% endif %}
</div>
</div>
</section>
<!-- END OF CATEGORY NAME SECTION -->
{% endblock %}", "frontend/landingPage/landingPage.html.twig", "/home/users/ck_new/templates/frontend/landingPage/landingPage.html.twig");
}
}