var/cache/dev/twig/d7/d7bf263d632c1110090ee4e9f9f3d640.php line 46

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\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* pages/catalog/catalog_base.html.twig */
  16. class __TwigTemplate_138c15cb4c9d6738f8ab4b210009a5ea extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'title' => [$this, 'block_title'],
  29. 'meta' => [$this, 'block_meta'],
  30. 'openGraph' => [$this, 'block_openGraph'],
  31. 'structuredData' => [$this, 'block_structuredData'],
  32. ];
  33. }
  34. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  35. {
  36. // line 1
  37. return "pages/base.html.twig";
  38. }
  39. protected function doDisplay(array $context, array $blocks = []): iterable
  40. {
  41. $macros = $this->macros;
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/catalog/catalog_base.html.twig"));
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/catalog/catalog_base.html.twig"));
  46. $this->parent = $this->load("pages/base.html.twig", 1);
  47. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50. }
  51. // line 3
  52. /**
  53. * @return iterable<null|scalar|\Stringable>
  54. */
  55. public function block_title(array $context, array $blocks = []): iterable
  56. {
  57. $macros = $this->macros;
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  62. // line 4
  63. yield " ";
  64. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["category"] ?? null), "metaInformation", [], "any", false, true, false, 4), "title", [], "any", true, true, false, 4)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 4, $this->source); })()), "metaInformation", [], "any", false, false, false, 4), "title", [], "any", false, false, false, 4), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("meta_title_default"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("meta_title_default"))), "html", null, true);
  65. yield "
  66. ";
  67. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  69. yield from [];
  70. }
  71. // line 7
  72. /**
  73. * @return iterable<null|scalar|\Stringable>
  74. */
  75. public function block_meta(array $context, array $blocks = []): iterable
  76. {
  77. $macros = $this->macros;
  78. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
  80. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
  82. // line 8
  83. yield " ";
  84. yield from $this->load("components/organisms/meta/meta.html.twig", 8)->unwrap()->yield(CoreExtension::merge($context, ["metaInformation" => ((CoreExtension::getAttribute($this->env, $this->source, // line 9
  85. ($context["category"] ?? null), "metaInformation", [], "any", true, true, false, 9)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 9, $this->source); })()), "metaInformation", [], "any", false, false, false, 9), null)) : (null)), "fallback" => ((CoreExtension::getAttribute($this->env, $this->source, // line 10
  86. (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 10, $this->source); })()), "name", [], "any", false, false, false, 10) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("meta_description_suffix_category")), "categoryKey" => ((CoreExtension::getAttribute($this->env, $this->source, // line 11
  87. ($context["slots"] ?? null), "category_key", [], "array", true, true, false, 11)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["slots"]) || array_key_exists("slots", $context) ? $context["slots"] : (function () { throw new RuntimeError('Variable "slots" does not exist.', 11, $this->source); })()), "category_key", [], "array", false, false, false, 11), null)) : (null))]));
  88. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  89. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  90. yield from [];
  91. }
  92. // line 15
  93. /**
  94. * @return iterable<null|scalar|\Stringable>
  95. */
  96. public function block_openGraph(array $context, array $blocks = []): iterable
  97. {
  98. $macros = $this->macros;
  99. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  100. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "openGraph"));
  101. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "openGraph"));
  103. // line 16
  104. yield " ";
  105. yield from $this->load("components/organisms/open-graph/open-graph.html.twig", 16)->unwrap()->yield(CoreExtension::merge($context, ["openGraphInformation" => ((CoreExtension::getAttribute($this->env, $this->source, // line 17
  106. ($context["category"] ?? null), "openGraphInformation", [], "any", true, true, false, 17)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 17, $this->source); })()), "openGraphInformation", [], "any", false, false, false, 17), null)) : (null))]));
  107. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  108. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  109. yield from [];
  110. }
  111. // line 21
  112. /**
  113. * @return iterable<null|scalar|\Stringable>
  114. */
  115. public function block_structuredData(array $context, array $blocks = []): iterable
  116. {
  117. $macros = $this->macros;
  118. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  119. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "structuredData"));
  120. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  121. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "structuredData"));
  122. // line 22
  123. yield " ";
  124. if (CoreExtension::getAttribute($this->env, $this->source, ($context["slots"] ?? null), "structured_data_faq", [], "any", true, true, false, 22)) {
  125. // line 23
  126. yield " ";
  127. yield from $this->load("components/organisms/faq-structured-data/faq-structured-data.html.twig", 23)->unwrap()->yield(CoreExtension::merge($context, ["structured_data_faq" => CoreExtension::getAttribute($this->env, $this->source, // line 24
  128. (isset($context["slots"]) || array_key_exists("slots", $context) ? $context["slots"] : (function () { throw new RuntimeError('Variable "slots" does not exist.', 24, $this->source); })()), "structured_data_faq", [], "any", false, false, false, 24)]));
  129. // line 26
  130. yield " ";
  131. }
  132. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  133. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  134. yield from [];
  135. }
  136. /**
  137. * @codeCoverageIgnore
  138. */
  139. public function getTemplateName(): string
  140. {
  141. return "pages/catalog/catalog_base.html.twig";
  142. }
  143. /**
  144. * @codeCoverageIgnore
  145. */
  146. public function isTraitable(): bool
  147. {
  148. return false;
  149. }
  150. /**
  151. * @codeCoverageIgnore
  152. */
  153. public function getDebugInfo(): array
  154. {
  155. return array ( 167 => 26, 165 => 24, 163 => 23, 160 => 22, 147 => 21, 136 => 17, 134 => 16, 121 => 15, 110 => 11, 109 => 10, 108 => 9, 106 => 8, 93 => 7, 79 => 4, 66 => 3, 43 => 1,);
  156. }
  157. public function getSourceContext(): Source
  158. {
  159. return new Source("{% extends 'pages/base.html.twig' %}
  160. {% block title %}
  161. {{ category.metaInformation.title|default('meta_title_default'|trans) }}
  162. {% endblock %}
  163. {% block meta %}
  164. {% include 'components/organisms/meta/meta.html.twig' with {
  165. 'metaInformation': category.metaInformation|default(null),
  166. 'fallback': category.name ~ ' ' ~ 'meta_description_suffix_category'|trans,
  167. 'categoryKey': slots['category_key']|default(null)
  168. }%}
  169. {% endblock %}
  170. {% block openGraph %}
  171. {% include 'components/organisms/open-graph/open-graph.html.twig' with {
  172. 'openGraphInformation': category.openGraphInformation|default(null)
  173. }%}
  174. {% endblock %}
  175. {% block structuredData %}
  176. {% if slots.structured_data_faq is defined %}
  177. {% include('components/organisms/faq-structured-data/faq-structured-data.html.twig') with {
  178. 'structured_data_faq': slots.structured_data_faq
  179. } %}
  180. {% endif %}
  181. {% endblock %}
  182. ", "pages/catalog/catalog_base.html.twig", "/var/www/html/templates/default/pages/catalog/catalog_base.html.twig");
  183. }
  184. }