var/cache/dev/twig/87/878a1ae8ba2969b83449c45d3c0f5d89.php line 384

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/brands.html.twig */
  18. class __TwigTemplate_884bc230fb2ac66435e5e97c47c573e0 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/brands.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/brands.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/brands.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("brands.title", [], "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("brands.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("brands.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 "\t<script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
  131. \t<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.6/isotope.pkgd.min.js\"></script>
  132. \t";
  133. // line 32
  134. yield "\t<script>
  135. \t\tconst alphabetNavLinks = document.querySelectorAll(\x27.alphabet-nav a\x27);
  136. \t\talphabetNavLinks.forEach(link => {
  137. \t\t\tlink.addEventListener(\x27click\x27, (e) => {
  138. \t\t\t\te.preventDefault();
  139. \t\t\t\tconst targetId = link.getAttribute(\x27href\x27);
  140. \t\t\t\tconst targetBlock = document.querySelector(targetId);
  141. \t\t\t\tconst targetBlockTop = targetBlock.getBoundingClientRect().top;
  142. \t\t\t\tconst offset = window.pageYOffset;
  143. \t\t\t\tconst headerHeight = document.querySelector(\x27.qodef-page-header\x27).clientHeight;
  144. \t\t\t\tconst targetOffset = targetBlockTop + offset - headerHeight - 20;
  145. \t\t\t\twindow.scrollTo({
  146. \t\t\t\t\ttop: targetOffset,
  147. \t\t\t\t\tbehavior: \x27smooth\x27
  148. \t\t\t\t});
  149. \t\t\t});
  150. \t\t});
  151. \t</script>
  152. ";
  153. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  154. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  155. $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  156. return; yield;
  157. }
  158. // line 54
  159. /**
  160. * @return iterable<null|scalar|\Stringable>
  161. */
  162. public function block_body(array $context, array $blocks = []): iterable
  163. {
  164. $macros = $this->macros;
  165. $__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  166. $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  167. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  168. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  169. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  170. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  171. // line 55
  172. yield "\t<style>
  173. \t\t.alphabet-block {
  174. \t\t\tdisplay: block; /* Změna display na block */
  175. \t\t\tmargin-bottom: 60px; /* Odstup mezi bloky */
  176. \t\t}
  177. \t\th2 {
  178. \t\t\tfont-size: 36px;
  179. \t\t\ttext-transform: uppercase;
  180. \t\t}
  181. \t\tul {
  182. \t\t\tlist-style: none;
  183. \t\t\tmargin: 0;
  184. \t\t\tpadding: 0;
  185. \t\t\tflex-wrap: wrap;
  186. \t\t}
  187. \t\tli {
  188. \t\t\tmargin-right: 20px;
  189. \t\t\tmargin-bottom: 10px;
  190. \t\t}
  191. \t</style>
  192. \t";
  193. // line 79
  194. yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "web/core/header.html.twig");
  195. yield "
  196. \t<div class=\"qodef-content\">
  197. \t\t<div class=\"qodef-content-inner\">
  198. \t\t\t<div class=\"qodef-full-width\">
  199. \t\t\t\t<div class=\"qodef-full-width-inner\">
  200. \t\t\t\t\t<div class=\"qodef-grid-row\">
  201. \t\t\t\t\t\t<div class=\"qodef-page-content-holder qodef-grid-col-12\">
  202. \t\t\t\t\t\t\t<div class=\"qodef-row-grid-section-wrapper \">
  203. \t\t\t\t\t\t\t\t<div class=\"qodef-row-grid-section\">
  204. \t\t\t\t\t\t\t\t\t<div class=\"vc_row wpb_row vc_row-fluid vc_custom_1567069896783\">
  205. \t\t\t\t\t\t\t\t\t\t<div class=\"wpb_column vc_column_container vc_col-sm-12\">
  206. \t\t\t\t\t\t\t\t\t\t\t<div class=\"vc_column-inner\">
  207. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpb_wrapper\">
  208. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"qodef-title-holder qodef-breadcrumbs-type qodef-title-full-width qodef-title-va-header-bottom breadcrumb\">
  209. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div itemprop=\"breadcrumb\" class=\"qodef-breadcrumbs\">
  210. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a itemprop=\"url\" href=\"";
  211. // line 94
  212. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_web_homepage");
  213. yield "\">Home</a>
  214. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"qodef-delimiter\">&nbsp; / &nbsp</span>
  215. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a itemprop=\"url\" href=\"";
  216. // line 96
  217. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_web_brands");
  218. yield "\">";
  219. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brands.title", [], "web"), "html", null, true);
  220. yield "</a>
  221. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  222. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"qodef-section-title-holder\" style=\"text-align: center; padding-bottom: 50px;\">
  223. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"qodef-st-inner\">
  224. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h1 class=\"qodef-st-title\">";
  225. // line 100
  226. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brands.title", [], "web"), "html", null, true);
  227. yield "</h1>
  228. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  229. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  230. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  231. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  232. // line 105
  233. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alphabet-nav\">
  234. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  235. // line 106
  236. $context['_parent'] = $context;
  237. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["brands"]) || array_key_exists("brands", $context) ? $context["brands"] : (function () { throw new RuntimeError('Variable "brands" does not exist.', 106, $this->source); })()));
  238. foreach ($context['_seq'] as $context["k"] => $context["v"]) {
  239. // line 107
  240. yield "
  241. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"#";
  242. // line 108
  243. yield (string) $this->escaper->escape($context["k"], "html", null, true);
  244. yield "\">";
  245. yield (string) $this->escaper->escape($context["k"], "html", null, true);
  246. yield "</a>
  247. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  248. }
  249. $_parent = $context['_parent'];
  250. unset($context['_seq'], $context['k'], $context['v'], $context['_parent']);
  251. $context = array_intersect_key($context, $_parent);
  252. $context += $_parent;
  253. // line 110
  254. yield "
  255. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  256. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-sm-12\" style=\"padding-top: 30px\">
  257. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  258. // line 113
  259. $context['_parent'] = $context;
  260. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["brands"]) || array_key_exists("brands", $context) ? $context["brands"] : (function () { throw new RuntimeError('Variable "brands" does not exist.', 113, $this->source); })()));
  261. foreach ($context['_seq'] as $context["k"] => $context["v"]) {
  262. // line 114
  263. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alphabet-block\">
  264. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alphabet-title\" id=\"";
  265. // line 115
  266. yield (string) $this->escaper->escape($context["k"], "html", null, true);
  267. yield "\">";
  268. yield (string) $this->escaper->escape($context["k"], "html", null, true);
  269. yield "</div>
  270. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alphabet-list\">
  271. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul>
  272. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  273. // line 118
  274. $context['_parent'] = $context;
  275. $context['_seq'] = CoreExtension::ensureTraversable($context["v"]);
  276. foreach ($context['_seq'] as $context["_key"] => $context["b"]) {
  277. // line 119
  278. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><a href=\"";
  279. 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, CoreExtension::getAttribute($this->env, $this->source, $context["b"], "stores", [], "any", false, false, false, 119), 0, [], "array", false, false, false, 119), "getSlug", [], "any", false, false, false, 119)]), "html", null, true);
  280. yield "\">";
  281. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["b"], "name", [], "any", false, false, false, 119), "html", null, true);
  282. yield "</a></li>
  283. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  284. }
  285. $_parent = $context['_parent'];
  286. unset($context['_seq'], $context['_key'], $context['b'], $context['_parent']);
  287. $context = array_intersect_key($context, $_parent);
  288. $context += $_parent;
  289. // line 121
  290. yield "
  291. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
  292. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  293. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  294. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  295. }
  296. $_parent = $context['_parent'];
  297. unset($context['_seq'], $context['k'], $context['v'], $context['_parent']);
  298. $context = array_intersect_key($context, $_parent);
  299. $context += $_parent;
  300. // line 126
  301. yield "
  302. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  303. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  304. \t\t\t\t\t\t\t\t\t\t\t</div>
  305. \t\t\t\t\t\t\t\t\t\t</div>
  306. \t\t\t\t\t\t\t\t\t</div>
  307. \t\t\t\t\t\t\t\t</div>
  308. \t\t\t\t\t\t\t</div>
  309. \t\t\t\t\t\t</div>
  310. \t\t\t\t\t</div>
  311. \t\t\t\t</div>
  312. \t\t\t</div>
  313. \t\t\t";
  314. // line 139
  315. yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "web/core/gift-card.html.twig");
  316. yield "
  317. \t\t</div>
  318. \t</div>
  319. \t";
  320. // line 142
  321. yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "web/core/footer.html.twig");
  322. yield "
  323. ";
  324. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  325. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  326. $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  327. return; yield;
  328. }
  329. /**
  330. * @codeCoverageIgnore
  331. */
  332. public function getTemplateName(): string
  333. {
  334. return "web/default/brands.html.twig";
  335. }
  336. /**
  337. * @codeCoverageIgnore
  338. */
  339. public function isTraitable(): bool
  340. {
  341. return false;
  342. }
  343. /**
  344. * @codeCoverageIgnore
  345. */
  346. public function getDefaultEscapeStrategy(): string|false
  347. {
  348. return "html";
  349. }
  350. /**
  351. * @codeCoverageIgnore
  352. */
  353. public function getDebugInfo(): array
  354. {
  355. return array ( 390 => 142, 384 => 139, 369 => 126, 358 => 121, 346 => 119, 342 => 118, 334 => 115, 331 => 114, 327 => 113, 322 => 110, 311 => 108, 308 => 107, 304 => 106, 301 => 105, 294 => 100, 285 => 96, 280 => 94, 262 => 79, 236 => 55, 220 => 54, 185 => 32, 181 => 9, 165 => 8, 136 => 5, 107 => 4, 78 => 3, 49 => 1,);
  356. }
  357. public function getSourceContext(): Source
  358. {
  359. return new Source("{% extends \x27web/base.html.twig\x27 %}
  360. {% block title %}{{\x27brands.title\x27| trans}}{% endblock %}
  361. {% block keywords %}{{ \x27brands.keywords\x27 | trans }}{% endblock %}
  362. {% block description %}{{ \x27brands.metaDescription\x27 | trans }}{% endblock %}
  363. {% trans_default_domain \x27web\x27 %}
  364. {% block javascripts %}
  365. \t<script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
  366. \t<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.6/isotope.pkgd.min.js\"></script>
  367. \t{#<script>
  368. \t\t// JavaScript pro posunutí stránky na daný blok s odpovídajícím písmenem
  369. \t\tconst alphabetNavLinks = document.querySelectorAll(\x27.alphabet-nav a\x27);
  370. \t\talphabetNavLinks.forEach(link => {
  371. \t\t\tlink.addEventListener(\x27click\x27, (e) => {
  372. \t\t\t\te.preventDefault();
  373. \t\t\t\tconst targetId = link.getAttribute(\x27href\x27);
  374. \t\t\t\tconst targetBlock = document.querySelector(targetId);
  375. \t\t\t\tconst targetBlockTop = targetBlock.getBoundingClientRect().top;
  376. \t\t\t\tconst offset = window.pageYOffset;
  377. \t\t\t\tconst screenHeight = window.innerHeight;
  378. \t\t\t\tconst targetOffset = targetBlockTop + offset - (screenHeight / 5) + (targetBlock.clientHeight / 5);
  379. \t\t\t\twindow.scrollTo({
  380. \t\t\t\t\ttop: targetOffset,
  381. \t\t\t\t\tbehavior: \x27smooth\x27
  382. \t\t\t\t});
  383. \t\t\t});
  384. \t\t});
  385. \t</script>#}
  386. \t<script>
  387. \t\tconst alphabetNavLinks = document.querySelectorAll(\x27.alphabet-nav a\x27);
  388. \t\talphabetNavLinks.forEach(link => {
  389. \t\t\tlink.addEventListener(\x27click\x27, (e) => {
  390. \t\t\t\te.preventDefault();
  391. \t\t\t\tconst targetId = link.getAttribute(\x27href\x27);
  392. \t\t\t\tconst targetBlock = document.querySelector(targetId);
  393. \t\t\t\tconst targetBlockTop = targetBlock.getBoundingClientRect().top;
  394. \t\t\t\tconst offset = window.pageYOffset;
  395. \t\t\t\tconst headerHeight = document.querySelector(\x27.qodef-page-header\x27).clientHeight;
  396. \t\t\t\tconst targetOffset = targetBlockTop + offset - headerHeight - 20;
  397. \t\t\t\twindow.scrollTo({
  398. \t\t\t\t\ttop: targetOffset,
  399. \t\t\t\t\tbehavior: \x27smooth\x27
  400. \t\t\t\t});
  401. \t\t\t});
  402. \t\t});
  403. \t</script>
  404. {% endblock %}
  405. {% block body %}
  406. \t<style>
  407. \t\t.alphabet-block {
  408. \t\t\tdisplay: block; /* Změna display na block */
  409. \t\t\tmargin-bottom: 60px; /* Odstup mezi bloky */
  410. \t\t}
  411. \t\th2 {
  412. \t\t\tfont-size: 36px;
  413. \t\t\ttext-transform: uppercase;
  414. \t\t}
  415. \t\tul {
  416. \t\t\tlist-style: none;
  417. \t\t\tmargin: 0;
  418. \t\t\tpadding: 0;
  419. \t\t\tflex-wrap: wrap;
  420. \t\t}
  421. \t\tli {
  422. \t\t\tmargin-right: 20px;
  423. \t\t\tmargin-bottom: 10px;
  424. \t\t}
  425. \t</style>
  426. \t{{ include(\x27web/core/header.html.twig\x27) }}
  427. \t<div class=\"qodef-content\">
  428. \t\t<div class=\"qodef-content-inner\">
  429. \t\t\t<div class=\"qodef-full-width\">
  430. \t\t\t\t<div class=\"qodef-full-width-inner\">
  431. \t\t\t\t\t<div class=\"qodef-grid-row\">
  432. \t\t\t\t\t\t<div class=\"qodef-page-content-holder qodef-grid-col-12\">
  433. \t\t\t\t\t\t\t<div class=\"qodef-row-grid-section-wrapper \">
  434. \t\t\t\t\t\t\t\t<div class=\"qodef-row-grid-section\">
  435. \t\t\t\t\t\t\t\t\t<div class=\"vc_row wpb_row vc_row-fluid vc_custom_1567069896783\">
  436. \t\t\t\t\t\t\t\t\t\t<div class=\"wpb_column vc_column_container vc_col-sm-12\">
  437. \t\t\t\t\t\t\t\t\t\t\t<div class=\"vc_column-inner\">
  438. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpb_wrapper\">
  439. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"qodef-title-holder qodef-breadcrumbs-type qodef-title-full-width qodef-title-va-header-bottom breadcrumb\">
  440. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div itemprop=\"breadcrumb\" class=\"qodef-breadcrumbs\">
  441. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a itemprop=\"url\" href=\"{{ path(\x27app_web_homepage\x27) }}\">Home</a>
  442. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"qodef-delimiter\">&nbsp; / &nbsp</span>
  443. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a itemprop=\"url\" href=\"{{ path(\x27app_web_brands\x27) }}\">{{ \x27brands.title\x27|trans }}</a>
  444. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  445. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"qodef-section-title-holder\" style=\"text-align: center; padding-bottom: 50px;\">
  446. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"qodef-st-inner\">
  447. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h1 class=\"qodef-st-title\">{{ \x27brands.title\x27|trans }}</h1>
  448. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  449. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  450. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  451. \t\t\t\t\t\t\t\t\t\t\t\t\t{#Navigation to scroll#}
  452. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alphabet-nav\">
  453. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for k,v in brands %}
  454. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"#{{ k }}\">{{ k }}</a>
  455. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  456. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  457. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-sm-12\" style=\"padding-top: 30px\">
  458. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for k,v in brands %}
  459. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alphabet-block\">
  460. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alphabet-title\" id=\"{{ k }}\">{{ k }}</div>
  461. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alphabet-list\">
  462. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul>
  463. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for b in v %}
  464. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><a href=\"{{ path(\x27app_web_shop_detail\x27,{\x27slug\x27:b.stores[0].getSlug}) }}\">{{ b.name }}</a></li>
  465. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  466. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
  467. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  468. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  469. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  470. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  471. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  472. \t\t\t\t\t\t\t\t\t\t\t</div>
  473. \t\t\t\t\t\t\t\t\t\t</div>
  474. \t\t\t\t\t\t\t\t\t</div>
  475. \t\t\t\t\t\t\t\t</div>
  476. \t\t\t\t\t\t\t</div>
  477. \t\t\t\t\t\t</div>
  478. \t\t\t\t\t</div>
  479. \t\t\t\t</div>
  480. \t\t\t</div>
  481. \t\t\t{{ include(\x27web/core/gift-card.html.twig\x27) }}
  482. \t\t</div>
  483. \t</div>
  484. \t{{ include(\x27web/core/footer.html.twig\x27) }}
  485. {% endblock %}
  486. ", "web/default/brands.html.twig", "/var/www/templates/web/default/brands.html.twig");
  487. }
  488. }