var/cache/dev/twig/07/07ced508b26ad1b3f6e1e0d0cdab2acd.php line 256

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* web/default/top-actions.html.twig */
  18. class __TwigTemplate_2935a710b72b8312fc6c6b8423f372cc extends Template
  19. {
  20. private Source $source;
  21. /**
  22. * @var array<string, MacroNamespace>
  23. */
  24. private array $macros = [];
  25. private \Twig\Runtime\EscaperRuntime $escaper;
  26. public function __construct(Environment $env)
  27. {
  28. parent::__construct($env);
  29. $this->source = $this->getSourceContext();
  30. $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31. $this->blocks = [
  32. 'title' => [$this, 'block_title'],
  33. 'keywords' => [$this, 'block_keywords'],
  34. 'description' => [$this, 'block_description'],
  35. 'javascripts' => [$this, 'block_javascripts'],
  36. 'body' => [$this, 'block_body'],
  37. ];
  38. }
  39. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  40. {
  41. // line 1
  42. return $this->parent ??= $this->load("web/base.html.twig", 1);
  43. }
  44. protected function doDisplay(array $context, array $blocks = []): iterable
  45. {
  46. $macros = $this->macros;
  47. $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  48. $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/default/top-actions.html.twig"));
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/default/top-actions.html.twig"));
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/default/top-actions.html.twig"));
  53. $this->parent = $this->load("web/base.html.twig", 1);
  54. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  55. $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  57. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58. }
  59. // line 3
  60. /**
  61. * @return iterable<null|scalar|\Stringable>
  62. */
  63. public function block_title(array $context, array $blocks = []): iterable
  64. {
  65. $macros = $this->macros;
  66. $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  67. $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  68. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  70. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  72. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header.menu.topAction", [], "web"), "html", null, true);
  73. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  74. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75. $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  76. return; yield;
  77. }
  78. // line 4
  79. /**
  80. * @return iterable<null|scalar|\Stringable>
  81. */
  82. public function block_keywords(array $context, array $blocks = []): iterable
  83. {
  84. $macros = $this->macros;
  85. $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  86. $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "keywords"));
  87. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "keywords"));
  89. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "keywords"));
  91. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("topAkce.keywords", [], "web"), "html", null, true);
  92. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  93. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94. $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  95. return; yield;
  96. }
  97. // line 5
  98. /**
  99. * @return iterable<null|scalar|\Stringable>
  100. */
  101. public function block_description(array $context, array $blocks = []): iterable
  102. {
  103. $macros = $this->macros;
  104. $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  105. $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
  106. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  107. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
  108. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  109. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
  110. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("topAkce.metaDescription", [], "web"), "html", null, true);
  111. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  112. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  113. $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  114. return; yield;
  115. }
  116. // line 8
  117. /**
  118. * @return iterable<null|scalar|\Stringable>
  119. */
  120. public function block_javascripts(array $context, array $blocks = []): iterable
  121. {
  122. $macros = $this->macros;
  123. $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  124. $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  125. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  126. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  127. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  128. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  129. // line 9
  130. yield "
  131. <script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
  132. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.6/isotope.pkgd.min.js\"></script>
  133. <script>
  134. \$(document).ready(function () {
  135. let \$grid = \$(\x27.qodef-pl-inner\x27).isotope({
  136. itemSelector: \x27.qodef-pl-item\x27,
  137. layoutMode: \x27fitRows\x27
  138. });
  139. function getUrlParameter(name) {
  140. name = name.replace(/[\\[]/, \x27\\\\[\x27).replace(/[\\]]/, \x27\\\\]\x27);
  141. let regex = new RegExp(\x27[\\\\?&]\x27 + name + \x27=([^&#]*)\x27);
  142. let results = regex.exec(location.search);
  143. return results === null ? \x27\x27 : decodeURIComponent(results[1].replace(/\\+/g, \x27 \x27));
  144. }
  145. let filterParam = getUrlParameter(\x27filter\x27);
  146. if (filterParam) {
  147. \$(\x27#filter-category\x27).val(filterParam);
  148. \$grid.isotope({ filter: filterParam });
  149. }
  150. \$(\x27body\x27).on(\x27change\x27, \x27#filter-shop\x27, function () {
  151. \$(\x27.qodef-pl-filter\x27).removeClass(\x27active\x27);
  152. let storeVal = \$(this).val();
  153. if (storeVal === \"0\") {
  154. \$grid.isotope({ filter: \x27*\x27 });
  155. } else {
  156. \$grid.isotope({ filter: \x27.store_\x27 + storeVal });
  157. }
  158. history.pushState(null, null, window.location.pathname);
  159. });
  160. \$(\x27body\x27).on(\x27change\x27, \x27#filter-category\x27, function () {
  161. let catVal = \$(this).val();
  162. \$grid.isotope({ filter: catVal });
  163. let newUrl = window.location.pathname + \x27?filter=\x27 + encodeURIComponent(catVal);
  164. history.pushState(null, null, newUrl);
  165. });
  166. });
  167. </script>
  168. ";
  169. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  170. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  171. $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  172. return; yield;
  173. }
  174. // line 54
  175. /**
  176. * @return iterable<null|scalar|\Stringable>
  177. */
  178. public function block_body(array $context, array $blocks = []): iterable
  179. {
  180. $macros = $this->macros;
  181. $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  182. $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  183. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  184. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  185. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  186. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  187. // line 55
  188. yield " ";
  189. yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "web/core/header.html.twig");
  190. yield "
  191. <div class=\"qodef-content\">
  192. <div class=\"qodef-content-inner\">
  193. <div class=\"qodef-full-width\">
  194. <div class=\"qodef-full-width-inner\">
  195. <div class=\"qodef-grid-row\">
  196. <div class=\"qodef-page-content-holder qodef-grid-col-12\">
  197. <div class=\"qodef-row-grid-section-wrapper \">
  198. <div class=\"qodef-row-grid-section\">
  199. <div class=\"vc_row wpb_row vc_row-fluid vc_custom_1567069896783\">
  200. <div class=\"wpb_column vc_column_container vc_col-sm-12\">
  201. <div class=\"vc_column-inner\">
  202. <div class=\"wpb_wrapper\">
  203. <div class=\"qodef-title-holder qodef-breadcrumbs-type qodef-title-full-width qodef-title-va-header-bottom breadcrumb\">
  204. <div itemprop=\"breadcrumb\" class=\"qodef-breadcrumbs\">
  205. <a itemprop=\"url\" href=\"";
  206. // line 70
  207. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_web_homepage");
  208. yield "\">Home</a>
  209. <span class=\"qodef-delimiter\">&nbsp; / &nbsp</span>
  210. <a itemprop=\"url\" href=\"";
  211. // line 72
  212. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_web_top-actions");
  213. yield "\">";
  214. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header.menu.topAction", [], "web"), "html", null, true);
  215. yield "</a>
  216. </div>
  217. <div class=\"qodef-section-title-holder\" style=\"text-align: center; padding-bottom: 50px !important;\">
  218. <div class=\"qodef-st-inner\">
  219. <h1 class=\"qodef-st-title\">";
  220. // line 76
  221. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header.menu.topAction", [], "web"), "html", null, true);
  222. yield "</h1>
  223. </div>
  224. </div>
  225. </div>
  226. <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\">
  227. <div class=\"select-wrapper\">
  228. <div class=\"select-store\">
  229. <select id=\"filter-category\">
  230. <option value=\"*\">";
  231. // line 84
  232. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("allCategory", [], "web"), "html", null, true);
  233. yield "</option>
  234. ";
  235. // line 85
  236. $context['_parent'] = $context;
  237. $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); })()));
  238. foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {
  239. // line 86
  240. yield " <option value=\".category_";
  241. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "id", [], "any", false, false, false, 86), "html", null, true);
  242. yield "\">";
  243. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "getName", [], "method", false, false, false, 86), "html", null, true);
  244. yield "</option>
  245. ";
  246. }
  247. $_parent = $context['_parent'];
  248. unset($context['_seq'], $context['_key'], $context['cat'], $context['_parent']);
  249. $context = array_intersect_key($context, $_parent);
  250. $context += $_parent;
  251. // line 88
  252. yield " </select>
  253. </div>
  254. <div class=\"select-store\">
  255. <select id=\"filter-shop\">
  256. <option selected value=\"0\">";
  257. // line 92
  258. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("selectStore", [], "web"), "html", null, true);
  259. yield "</option>
  260. ";
  261. // line 93
  262. $context['_parent'] = $context;
  263. $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); })()));
  264. foreach ($context['_seq'] as $context["_key"] => $context["s"]) {
  265. // line 94
  266. yield " <option value=\"";
  267. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "id", [], "any", false, false, false, 94), "html", null, true);
  268. yield "\">";
  269. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "name", [], "any", false, false, false, 94), "html", null, true);
  270. yield "</option>
  271. ";
  272. }
  273. $_parent = $context['_parent'];
  274. unset($context['_seq'], $context['_key'], $context['s'], $context['_parent']);
  275. $context = array_intersect_key($context, $_parent);
  276. $context += $_parent;
  277. // line 96
  278. yield " </select>
  279. </div>
  280. </div>
  281. <div class=\"qodef-pl-inner qodef-outer-space clearfix top-action\">
  282. ";
  283. // line 100
  284. 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)) {
  285. // line 101
  286. yield " ";
  287. $context['_parent'] = $context;
  288. $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); })()));
  289. foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  290. // line 102
  291. yield " <article
  292. class=\"qodef-pl-item qodef-item-space portfolio-item type-portfolio-item top-action-detail category_";
  293. // line 103
  294. 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);
  295. yield " store_";
  296. 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);
  297. yield "\">
  298. <a href=\"";
  299. // line 104
  300. 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);
  301. yield "\" class=\"qodef-pl-item-inner\">
  302. <div class=\"top-action-detail__image\"
  303. ";
  304. // line 106
  305. if ( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["o"], "image", [], "any", false, false, false, 106))) {
  306. // line 107
  307. yield " style=\"background-image: url(";
  308. 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);
  309. yield ");\"
  310. ";
  311. } elseif ( !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 108
  312. $context["o"], "store", [], "any", false, false, false, 108), "offerImage", [], "any", false, false, false, 108))) {
  313. // line 109
  314. yield " style=\"background-image: url(";
  315. 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);
  316. yield ");\"
  317. ";
  318. } elseif ( !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 110
  319. $context["o"], "topCategory", [], "any", false, false, false, 110), "image", [], "any", false, false, false, 110))) {
  320. // line 111
  321. yield " style=\"background-image: url(";
  322. 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);
  323. yield ");\"
  324. ";
  325. }
  326. // line 112
  327. yield ">
  328. <div class=\"top-action-detail__image-logo\">
  329. ";
  330. // line 114
  331. 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))) {
  332. // line 115
  333. yield " <img src=\"";
  334. 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);
  335. yield "\" alt=\"";
  336. 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);
  337. yield "\">
  338. ";
  339. }
  340. // line 117
  341. yield " </div>
  342. </div>
  343. <div class=\"top-action-detail__content\">
  344. <h2 class=\"top-action-detail__title\">
  345. ";
  346. // line 121
  347. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "getName", [], "any", false, false, false, 121), "html", null, true);
  348. yield "
  349. </h2>
  350. ";
  351. // line 124
  352. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["o"], "fromOutletPrice", [], "any", false, false, false, 124)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  353. // line 125
  354. yield " <p class=\"top-action-detail__text\">";
  355. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("topAkce.fromOutletPrice", [], "web"), "html", null, true);
  356. yield "</p>
  357. ";
  358. } elseif ((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 126
  359. $context["o"], "fromNormalPrice", [], "any", false, false, false, 126)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  360. // line 127
  361. yield " <p class=\"top-action-detail__text\">";
  362. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("topAkce.fromNormalPrice", [], "web"), "html", null, true);
  363. yield "</p>
  364. ";
  365. }
  366. // line 129
  367. yield "
  368. <h4 class=\"top-action-detail__subtitle\">
  369. ";
  370. // line 131
  371. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "getTitle", [], "any", false, false, false, 131), "html", null, true);
  372. yield "
  373. </h4>
  374. <p class=\"top-action-detail__text\">
  375. ";
  376. // line 134
  377. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "getSubTitle", [], "any", false, false, false, 134), "html", null, true);
  378. yield "
  379. </p>
  380. <p class=\"top-action-detail__date\">
  381. ";
  382. // line 137
  383. 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);
  384. yield " - ";
  385. 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);
  386. yield "
  387. </p>
  388. </div>
  389. </a>
  390. </article>
  391. ";
  392. }
  393. $_parent = $context['_parent'];
  394. unset($context['_seq'], $context['_key'], $context['o'], $context['_parent']);
  395. $context = array_intersect_key($context, $_parent);
  396. $context += $_parent;
  397. // line 143
  398. yield " ";
  399. }
  400. // line 144
  401. yield " </div>
  402. </div>
  403. </div>
  404. </div>
  405. </div>
  406. </div>
  407. </div>
  408. </div>
  409. </div>
  410. </div>
  411. </div>
  412. </div>
  413. ";
  414. // line 157
  415. yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "web/core/gift-card.html.twig");
  416. yield "
  417. </div>
  418. </div>
  419. ";
  420. // line 160
  421. yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "web/core/footer.html.twig");
  422. yield "
  423. ";
  424. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  425. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  426. $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  427. return; yield;
  428. }
  429. /**
  430. * @codeCoverageIgnore
  431. */
  432. public function getTemplateName(): string
  433. {
  434. return "web/default/top-actions.html.twig";
  435. }
  436. /**
  437. * @codeCoverageIgnore
  438. */
  439. public function isTraitable(): bool
  440. {
  441. return false;
  442. }
  443. /**
  444. * @codeCoverageIgnore
  445. */
  446. public function getDefaultEscapeStrategy(): string|false
  447. {
  448. return "html";
  449. }
  450. /**
  451. * @codeCoverageIgnore
  452. */
  453. public function getDebugInfo(): array
  454. {
  455. 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,);
  456. }
  457. public function getSourceContext(): Source
  458. {
  459. return new Source("{% extends \x27web/base.html.twig\x27 %}
  460. {% block title %}{{ \x27header.menu.topAction\x27| trans }}{% endblock %}
  461. {% block keywords %}{{ \x27topAkce.keywords\x27 | trans }}{% endblock %}
  462. {% block description %}{{ \x27topAkce.metaDescription\x27 | trans }}{% endblock %}
  463. {% trans_default_domain \x27web\x27 %}
  464. {% block javascripts %}
  465. <script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
  466. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.6/isotope.pkgd.min.js\"></script>
  467. <script>
  468. \$(document).ready(function () {
  469. let \$grid = \$(\x27.qodef-pl-inner\x27).isotope({
  470. itemSelector: \x27.qodef-pl-item\x27,
  471. layoutMode: \x27fitRows\x27
  472. });
  473. function getUrlParameter(name) {
  474. name = name.replace(/[\\[]/, \x27\\\\[\x27).replace(/[\\]]/, \x27\\\\]\x27);
  475. let regex = new RegExp(\x27[\\\\?&]\x27 + name + \x27=([^&#]*)\x27);
  476. let results = regex.exec(location.search);
  477. return results === null ? \x27\x27 : decodeURIComponent(results[1].replace(/\\+/g, \x27 \x27));
  478. }
  479. let filterParam = getUrlParameter(\x27filter\x27);
  480. if (filterParam) {
  481. \$(\x27#filter-category\x27).val(filterParam);
  482. \$grid.isotope({ filter: filterParam });
  483. }
  484. \$(\x27body\x27).on(\x27change\x27, \x27#filter-shop\x27, function () {
  485. \$(\x27.qodef-pl-filter\x27).removeClass(\x27active\x27);
  486. let storeVal = \$(this).val();
  487. if (storeVal === \"0\") {
  488. \$grid.isotope({ filter: \x27*\x27 });
  489. } else {
  490. \$grid.isotope({ filter: \x27.store_\x27 + storeVal });
  491. }
  492. history.pushState(null, null, window.location.pathname);
  493. });
  494. \$(\x27body\x27).on(\x27change\x27, \x27#filter-category\x27, function () {
  495. let catVal = \$(this).val();
  496. \$grid.isotope({ filter: catVal });
  497. let newUrl = window.location.pathname + \x27?filter=\x27 + encodeURIComponent(catVal);
  498. history.pushState(null, null, newUrl);
  499. });
  500. });
  501. </script>
  502. {% endblock %}
  503. {% block body %}
  504. {{ include(\x27web/core/header.html.twig\x27) }}
  505. <div class=\"qodef-content\">
  506. <div class=\"qodef-content-inner\">
  507. <div class=\"qodef-full-width\">
  508. <div class=\"qodef-full-width-inner\">
  509. <div class=\"qodef-grid-row\">
  510. <div class=\"qodef-page-content-holder qodef-grid-col-12\">
  511. <div class=\"qodef-row-grid-section-wrapper \">
  512. <div class=\"qodef-row-grid-section\">
  513. <div class=\"vc_row wpb_row vc_row-fluid vc_custom_1567069896783\">
  514. <div class=\"wpb_column vc_column_container vc_col-sm-12\">
  515. <div class=\"vc_column-inner\">
  516. <div class=\"wpb_wrapper\">
  517. <div class=\"qodef-title-holder qodef-breadcrumbs-type qodef-title-full-width qodef-title-va-header-bottom breadcrumb\">
  518. <div itemprop=\"breadcrumb\" class=\"qodef-breadcrumbs\">
  519. <a itemprop=\"url\" href=\"{{ path(\x27app_web_homepage\x27) }}\">Home</a>
  520. <span class=\"qodef-delimiter\">&nbsp; / &nbsp</span>
  521. <a itemprop=\"url\" href=\"{{ path(\x27app_web_top-actions\x27) }}\">{{ \x27header.menu.topAction\x27|trans }}</a>
  522. </div>
  523. <div class=\"qodef-section-title-holder\" style=\"text-align: center; padding-bottom: 50px !important;\">
  524. <div class=\"qodef-st-inner\">
  525. <h1 class=\"qodef-st-title\">{{ \x27header.menu.topAction\x27|trans }}</h1>
  526. </div>
  527. </div>
  528. </div>
  529. <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\">
  530. <div class=\"select-wrapper\">
  531. <div class=\"select-store\">
  532. <select id=\"filter-category\">
  533. <option value=\"*\">{{ \x27allCategory\x27|trans }}</option>
  534. {% for cat in categories %}
  535. <option value=\".category_{{ cat.id }}\">{{ cat.getName() }}</option>
  536. {% endfor %}
  537. </select>
  538. </div>
  539. <div class=\"select-store\">
  540. <select id=\"filter-shop\">
  541. <option selected value=\"0\">{{ \x27selectStore\x27 | trans }}</option>
  542. {% for s in stores %}
  543. <option value=\"{{ s.id }}\">{{ s.name }}</option>
  544. {% endfor %}
  545. </select>
  546. </div>
  547. </div>
  548. <div class=\"qodef-pl-inner qodef-outer-space clearfix top-action\">
  549. {% if offers | length > 0 %}
  550. {% for o in offers %}
  551. <article
  552. class=\"qodef-pl-item qodef-item-space portfolio-item type-portfolio-item top-action-detail category_{{ o.topCategory.id }} store_{{ o.store.id }}\">
  553. <a href=\"{{ path(\x27app_web_shop_detail\x27,{\x27slug\x27:o.store.slug}) }}\" class=\"qodef-pl-item-inner\">
  554. <div class=\"top-action-detail__image\"
  555. {% if o.image is not null %}
  556. style=\"background-image: url({{ vich_uploader_asset(o, \x27imageFile\x27)| imagine_filter(\x27news\x27) }});\"
  557. {% elseif o.store.offerImage is not null %}
  558. style=\"background-image: url({{ vich_uploader_asset(o.store, \x27offerImageFile\x27)| imagine_filter(\x27news\x27) }});\"
  559. {% elseif o.topCategory.image is not null %}
  560. style=\"background-image: url({{ vich_uploader_asset(o.topCategory, \x27imageFile\x27)| imagine_filter(\x27news\x27) }});\"
  561. {% endif %}>
  562. <div class=\"top-action-detail__image-logo\">
  563. {% if o.store.logo is not null %}
  564. <img src=\"{{ vich_uploader_asset(o.store, \x27logoFile\x27)| imagine_filter(\x27thumb300\x27) }}\" alt=\"{{ o.store.name }}\">
  565. {% endif %}
  566. </div>
  567. </div>
  568. <div class=\"top-action-detail__content\">
  569. <h2 class=\"top-action-detail__title\">
  570. {{ o.getName }}
  571. </h2>
  572. {% if o.fromOutletPrice %}
  573. <p class=\"top-action-detail__text\">{{ \x27topAkce.fromOutletPrice\x27|trans }}</p>
  574. {% elseif o.fromNormalPrice %}
  575. <p class=\"top-action-detail__text\">{{ \x27topAkce.fromNormalPrice\x27|trans }}</p>
  576. {% endif %}
  577. <h4 class=\"top-action-detail__subtitle\">
  578. {{ o.getTitle }}
  579. </h4>
  580. <p class=\"top-action-detail__text\">
  581. {{ o.getSubTitle }}
  582. </p>
  583. <p class=\"top-action-detail__date\">
  584. {{ o.dateFrom|date(\x27d.m.Y\x27) }} - {{ o.dateTo|date(\x27d.m.Y\x27) }}
  585. </p>
  586. </div>
  587. </a>
  588. </article>
  589. {% endfor %}
  590. {% endif %}
  591. </div>
  592. </div>
  593. </div>
  594. </div>
  595. </div>
  596. </div>
  597. </div>
  598. </div>
  599. </div>
  600. </div>
  601. </div>
  602. </div>
  603. {{ include(\x27web/core/gift-card.html.twig\x27) }}
  604. </div>
  605. </div>
  606. {{ include(\x27web/core/footer.html.twig\x27) }}
  607. {% endblock %}
  608. ", "web/default/top-actions.html.twig", "/var/www/templates/web/default/top-actions.html.twig");
  609. }
  610. }