<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\MacroNamespace;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* web/default/top-actions.html.twig */
class __TwigTemplate_2935a710b72b8312fc6c6b8423f372cc extends Template
{
private Source $source;
/**
* @var array<string, MacroNamespace>
*/
private array $macros = [];
private \Twig\Runtime\EscaperRuntime $escaper;
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
$this->blocks = [
'title' => [$this, 'block_title'],
'keywords' => [$this, 'block_keywords'],
'description' => [$this, 'block_description'],
'javascripts' => [$this, 'block_javascripts'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return $this->parent ??= $this->load("web/base.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/default/top-actions.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/default/top-actions.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/default/top-actions.html.twig"));
$this->parent = $this->load("web/base.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header.menu.topAction", [], "web"), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
return; yield;
}
// line 4
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_keywords(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "keywords"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "keywords"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "keywords"));
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("topAkce.keywords", [], "web"), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
return; yield;
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_description(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("topAkce.metaDescription", [], "web"), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
return; yield;
}
// line 8
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 9
yield "
<script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.6/isotope.pkgd.min.js\"></script>
<script>
\$(document).ready(function () {
let \$grid = \$(\x27.qodef-pl-inner\x27).isotope({
itemSelector: \x27.qodef-pl-item\x27,
layoutMode: \x27fitRows\x27
});
function getUrlParameter(name) {
name = name.replace(/[\\[]/, \x27\\\\[\x27).replace(/[\\]]/, \x27\\\\]\x27);
let regex = new RegExp(\x27[\\\\?&]\x27 + name + \x27=([^&#]*)\x27);
let results = regex.exec(location.search);
return results === null ? \x27\x27 : decodeURIComponent(results[1].replace(/\\+/g, \x27 \x27));
}
let filterParam = getUrlParameter(\x27filter\x27);
if (filterParam) {
\$(\x27#filter-category\x27).val(filterParam);
\$grid.isotope({ filter: filterParam });
}
\$(\x27body\x27).on(\x27change\x27, \x27#filter-shop\x27, function () {
\$(\x27.qodef-pl-filter\x27).removeClass(\x27active\x27);
let storeVal = \$(this).val();
if (storeVal === \"0\") {
\$grid.isotope({ filter: \x27*\x27 });
} else {
\$grid.isotope({ filter: \x27.store_\x27 + storeVal });
}
history.pushState(null, null, window.location.pathname);
});
\$(\x27body\x27).on(\x27change\x27, \x27#filter-category\x27, function () {
let catVal = \$(this).val();
\$grid.isotope({ filter: catVal });
let newUrl = window.location.pathname + \x27?filter=\x27 + encodeURIComponent(catVal);
history.pushState(null, null, newUrl);
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
return; yield;
}
// line 54
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 55
yield " ";
yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "web/core/header.html.twig");
yield "
<div class=\"qodef-content\">
<div class=\"qodef-content-inner\">
<div class=\"qodef-full-width\">
<div class=\"qodef-full-width-inner\">
<div class=\"qodef-grid-row\">
<div class=\"qodef-page-content-holder qodef-grid-col-12\">
<div class=\"qodef-row-grid-section-wrapper \">
<div class=\"qodef-row-grid-section\">
<div class=\"vc_row wpb_row vc_row-fluid vc_custom_1567069896783\">
<div class=\"wpb_column vc_column_container vc_col-sm-12\">
<div class=\"vc_column-inner\">
<div class=\"wpb_wrapper\">
<div class=\"qodef-title-holder qodef-breadcrumbs-type qodef-title-full-width qodef-title-va-header-bottom breadcrumb\">
<div itemprop=\"breadcrumb\" class=\"qodef-breadcrumbs\">
<a itemprop=\"url\" href=\"";
// line 70
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_web_homepage");
yield "\">Home</a>
<span class=\"qodef-delimiter\"> /  </span>
<a itemprop=\"url\" href=\"";
// line 72
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_web_top-actions");
yield "\">";
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header.menu.topAction", [], "web"), "html", null, true);
yield "</a>
</div>
<div class=\"qodef-section-title-holder\" style=\"text-align: center; padding-bottom: 50px !important;\">
<div class=\"qodef-st-inner\">
<h1 class=\"qodef-st-title\">";
// line 76
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header.menu.topAction", [], "web"), "html", null, true);
yield "</h1>
</div>
</div>
</div>
<div class=\"qodef-portfolio-list-holder qodef-grid-list qodef-pl-gallery qodef-four-columns qodef-medium-space qodef-pl-gallery-overlay qodef-pl-pag-load-more qodef-pl-has-filter\">
<div class=\"select-wrapper\">
<div class=\"select-store\">
<select id=\"filter-category\">
<option value=\"*\">";
// line 84
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("allCategory", [], "web"), "html", null, true);
yield "</option>
";
// line 85
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 85, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {
// line 86
yield " <option value=\".category_";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "id", [], "any", false, false, false, 86), "html", null, true);
yield "\">";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "getName", [], "method", false, false, false, 86), "html", null, true);
yield "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['cat'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 88
yield " </select>
</div>
<div class=\"select-store\">
<select id=\"filter-shop\">
<option selected value=\"0\">";
// line 92
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("selectStore", [], "web"), "html", null, true);
yield "</option>
";
// line 93
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["stores"]) || array_key_exists("stores", $context) ? $context["stores"] : (function () { throw new RuntimeError('Variable "stores" does not exist.', 93, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["s"]) {
// line 94
yield " <option value=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "id", [], "any", false, false, false, 94), "html", null, true);
yield "\">";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "name", [], "any", false, false, false, 94), "html", null, true);
yield "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['s'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 96
yield " </select>
</div>
</div>
<div class=\"qodef-pl-inner qodef-outer-space clearfix top-action\">
";
// line 100
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["offers"]) || array_key_exists("offers", $context) ? $context["offers"] : (function () { throw new RuntimeError('Variable "offers" does not exist.', 100, $this->source); })())) > 0)) {
// line 101
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["offers"]) || array_key_exists("offers", $context) ? $context["offers"] : (function () { throw new RuntimeError('Variable "offers" does not exist.', 101, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 102
yield " <article
class=\"qodef-pl-item qodef-item-space portfolio-item type-portfolio-item top-action-detail category_";
// line 103
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["o"], "topCategory", [], "any", false, false, false, 103), "id", [], "any", false, false, false, 103), "html", null, true);
yield " store_";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["o"], "store", [], "any", false, false, false, 103), "id", [], "any", false, false, false, 103), "html", null, true);
yield "\">
<a href=\"";
// line 104
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_web_shop_detail", ["slug" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["o"], "store", [], "any", false, false, false, 104), "slug", [], "any", false, false, false, 104)]), "html", null, true);
yield "\" class=\"qodef-pl-item-inner\">
<div class=\"top-action-detail__image\"
";
// line 106
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["o"], "image", [], "any", false, false, false, 106))) {
// line 107
yield " style=\"background-image: url(";
yield (string) $this->escaper->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["o"], "imageFile"), "news"), "html", null, true);
yield ");\"
";
} elseif ( !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 108
$context["o"], "store", [], "any", false, false, false, 108), "offerImage", [], "any", false, false, false, 108))) {
// line 109
yield " style=\"background-image: url(";
yield (string) $this->escaper->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "store", [], "any", false, false, false, 109), "offerImageFile"), "news"), "html", null, true);
yield ");\"
";
} elseif ( !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 110
$context["o"], "topCategory", [], "any", false, false, false, 110), "image", [], "any", false, false, false, 110))) {
// line 111
yield " style=\"background-image: url(";
yield (string) $this->escaper->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "topCategory", [], "any", false, false, false, 111), "imageFile"), "news"), "html", null, true);
yield ");\"
";
}
// line 112
yield ">
<div class=\"top-action-detail__image-logo\">
";
// line 114
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["o"], "store", [], "any", false, false, false, 114), "logo", [], "any", false, false, false, 114))) {
// line 115
yield " <img src=\"";
yield (string) $this->escaper->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "store", [], "any", false, false, false, 115), "logoFile"), "thumb300"), "html", null, true);
yield "\" alt=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["o"], "store", [], "any", false, false, false, 115), "name", [], "any", false, false, false, 115), "html", null, true);
yield "\">
";
}
// line 117
yield " </div>
</div>
<div class=\"top-action-detail__content\">
<h2 class=\"top-action-detail__title\">
";
// line 121
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "getName", [], "any", false, false, false, 121), "html", null, true);
yield "
</h2>
";
// line 124
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["o"], "fromOutletPrice", [], "any", false, false, false, 124)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 125
yield " <p class=\"top-action-detail__text\">";
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("topAkce.fromOutletPrice", [], "web"), "html", null, true);
yield "</p>
";
} elseif ((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 126
$context["o"], "fromNormalPrice", [], "any", false, false, false, 126)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 127
yield " <p class=\"top-action-detail__text\">";
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("topAkce.fromNormalPrice", [], "web"), "html", null, true);
yield "</p>
";
}
// line 129
yield "
<h4 class=\"top-action-detail__subtitle\">
";
// line 131
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "getTitle", [], "any", false, false, false, 131), "html", null, true);
yield "
</h4>
<p class=\"top-action-detail__text\">
";
// line 134
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "getSubTitle", [], "any", false, false, false, 134), "html", null, true);
yield "
</p>
<p class=\"top-action-detail__date\">
";
// line 137
yield (string) $this->escaper->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "dateFrom", [], "any", false, false, false, 137), "d.m.Y"), "html", null, true);
yield " - ";
yield (string) $this->escaper->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "dateTo", [], "any", false, false, false, 137), "d.m.Y"), "html", null, true);
yield "
</p>
</div>
</a>
</article>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['o'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 143
yield " ";
}
// line 144
yield " </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
// line 157
yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "web/core/gift-card.html.twig");
yield "
</div>
</div>
";
// line 160
yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "web/core/footer.html.twig");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "web/default/top-actions.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 490 => 160, 484 => 157, 469 => 144, 466 => 143, 451 => 137, 445 => 134, 439 => 131, 435 => 129, 429 => 127, 427 => 126, 422 => 125, 420 => 124, 414 => 121, 408 => 117, 400 => 115, 398 => 114, 394 => 112, 388 => 111, 386 => 110, 381 => 109, 379 => 108, 374 => 107, 372 => 106, 367 => 104, 361 => 103, 358 => 102, 353 => 101, 351 => 100, 345 => 96, 333 => 94, 329 => 93, 325 => 92, 319 => 88, 307 => 86, 303 => 85, 299 => 84, 288 => 76, 279 => 72, 274 => 70, 255 => 55, 239 => 54, 181 => 9, 165 => 8, 136 => 5, 107 => 4, 78 => 3, 49 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27web/base.html.twig\x27 %}
{% block title %}{{ \x27header.menu.topAction\x27| trans }}{% endblock %}
{% block keywords %}{{ \x27topAkce.keywords\x27 | trans }}{% endblock %}
{% block description %}{{ \x27topAkce.metaDescription\x27 | trans }}{% endblock %}
{% trans_default_domain \x27web\x27 %}
{% block javascripts %}
<script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.6/isotope.pkgd.min.js\"></script>
<script>
\$(document).ready(function () {
let \$grid = \$(\x27.qodef-pl-inner\x27).isotope({
itemSelector: \x27.qodef-pl-item\x27,
layoutMode: \x27fitRows\x27
});
function getUrlParameter(name) {
name = name.replace(/[\\[]/, \x27\\\\[\x27).replace(/[\\]]/, \x27\\\\]\x27);
let regex = new RegExp(\x27[\\\\?&]\x27 + name + \x27=([^&#]*)\x27);
let results = regex.exec(location.search);
return results === null ? \x27\x27 : decodeURIComponent(results[1].replace(/\\+/g, \x27 \x27));
}
let filterParam = getUrlParameter(\x27filter\x27);
if (filterParam) {
\$(\x27#filter-category\x27).val(filterParam);
\$grid.isotope({ filter: filterParam });
}
\$(\x27body\x27).on(\x27change\x27, \x27#filter-shop\x27, function () {
\$(\x27.qodef-pl-filter\x27).removeClass(\x27active\x27);
let storeVal = \$(this).val();
if (storeVal === \"0\") {
\$grid.isotope({ filter: \x27*\x27 });
} else {
\$grid.isotope({ filter: \x27.store_\x27 + storeVal });
}
history.pushState(null, null, window.location.pathname);
});
\$(\x27body\x27).on(\x27change\x27, \x27#filter-category\x27, function () {
let catVal = \$(this).val();
\$grid.isotope({ filter: catVal });
let newUrl = window.location.pathname + \x27?filter=\x27 + encodeURIComponent(catVal);
history.pushState(null, null, newUrl);
});
});
</script>
{% endblock %}
{% block body %}
{{ include(\x27web/core/header.html.twig\x27) }}
<div class=\"qodef-content\">
<div class=\"qodef-content-inner\">
<div class=\"qodef-full-width\">
<div class=\"qodef-full-width-inner\">
<div class=\"qodef-grid-row\">
<div class=\"qodef-page-content-holder qodef-grid-col-12\">
<div class=\"qodef-row-grid-section-wrapper \">
<div class=\"qodef-row-grid-section\">
<div class=\"vc_row wpb_row vc_row-fluid vc_custom_1567069896783\">
<div class=\"wpb_column vc_column_container vc_col-sm-12\">
<div class=\"vc_column-inner\">
<div class=\"wpb_wrapper\">
<div class=\"qodef-title-holder qodef-breadcrumbs-type qodef-title-full-width qodef-title-va-header-bottom breadcrumb\">
<div itemprop=\"breadcrumb\" class=\"qodef-breadcrumbs\">
<a itemprop=\"url\" href=\"{{ path(\x27app_web_homepage\x27) }}\">Home</a>
<span class=\"qodef-delimiter\"> /  </span>
<a itemprop=\"url\" href=\"{{ path(\x27app_web_top-actions\x27) }}\">{{ \x27header.menu.topAction\x27|trans }}</a>
</div>
<div class=\"qodef-section-title-holder\" style=\"text-align: center; padding-bottom: 50px !important;\">
<div class=\"qodef-st-inner\">
<h1 class=\"qodef-st-title\">{{ \x27header.menu.topAction\x27|trans }}</h1>
</div>
</div>
</div>
<div class=\"qodef-portfolio-list-holder qodef-grid-list qodef-pl-gallery qodef-four-columns qodef-medium-space qodef-pl-gallery-overlay qodef-pl-pag-load-more qodef-pl-has-filter\">
<div class=\"select-wrapper\">
<div class=\"select-store\">
<select id=\"filter-category\">
<option value=\"*\">{{ \x27allCategory\x27|trans }}</option>
{% for cat in categories %}
<option value=\".category_{{ cat.id }}\">{{ cat.getName() }}</option>
{% endfor %}
</select>
</div>
<div class=\"select-store\">
<select id=\"filter-shop\">
<option selected value=\"0\">{{ \x27selectStore\x27 | trans }}</option>
{% for s in stores %}
<option value=\"{{ s.id }}\">{{ s.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class=\"qodef-pl-inner qodef-outer-space clearfix top-action\">
{% if offers | length > 0 %}
{% for o in offers %}
<article
class=\"qodef-pl-item qodef-item-space portfolio-item type-portfolio-item top-action-detail category_{{ o.topCategory.id }} store_{{ o.store.id }}\">
<a href=\"{{ path(\x27app_web_shop_detail\x27,{\x27slug\x27:o.store.slug}) }}\" class=\"qodef-pl-item-inner\">
<div class=\"top-action-detail__image\"
{% if o.image is not null %}
style=\"background-image: url({{ vich_uploader_asset(o, \x27imageFile\x27)| imagine_filter(\x27news\x27) }});\"
{% elseif o.store.offerImage is not null %}
style=\"background-image: url({{ vich_uploader_asset(o.store, \x27offerImageFile\x27)| imagine_filter(\x27news\x27) }});\"
{% elseif o.topCategory.image is not null %}
style=\"background-image: url({{ vich_uploader_asset(o.topCategory, \x27imageFile\x27)| imagine_filter(\x27news\x27) }});\"
{% endif %}>
<div class=\"top-action-detail__image-logo\">
{% if o.store.logo is not null %}
<img src=\"{{ vich_uploader_asset(o.store, \x27logoFile\x27)| imagine_filter(\x27thumb300\x27) }}\" alt=\"{{ o.store.name }}\">
{% endif %}
</div>
</div>
<div class=\"top-action-detail__content\">
<h2 class=\"top-action-detail__title\">
{{ o.getName }}
</h2>
{% if o.fromOutletPrice %}
<p class=\"top-action-detail__text\">{{ \x27topAkce.fromOutletPrice\x27|trans }}</p>
{% elseif o.fromNormalPrice %}
<p class=\"top-action-detail__text\">{{ \x27topAkce.fromNormalPrice\x27|trans }}</p>
{% endif %}
<h4 class=\"top-action-detail__subtitle\">
{{ o.getTitle }}
</h4>
<p class=\"top-action-detail__text\">
{{ o.getSubTitle }}
</p>
<p class=\"top-action-detail__date\">
{{ o.dateFrom|date(\x27d.m.Y\x27) }} - {{ o.dateTo|date(\x27d.m.Y\x27) }}
</p>
</div>
</a>
</article>
{% endfor %}
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{{ include(\x27web/core/gift-card.html.twig\x27) }}
</div>
</div>
{{ include(\x27web/core/footer.html.twig\x27) }}
{% endblock %}
", "web/default/top-actions.html.twig", "/var/www/templates/web/default/top-actions.html.twig");
}
}