var/cache/dev/twig/9f/9f4b16766bef3a905d3cd6b32552b1b7.php line 38

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/cms/content-types/ct_category.html.twig */
  16. class __TwigTemplate_8916984ed6900beb439c33a4b7dd44d4 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->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/cms/content-types/ct_category.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/cms/content-types/ct_category.html.twig"));
  38. // line 1
  39. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["cmsContent"] ?? null), "content", [], "any", false, true, false, 1), "body", [], "any", true, true, false, 1) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cmsContent"]) || array_key_exists("cmsContent", $context) ? $context["cmsContent"] : (function () { throw new RuntimeError('Variable "cmsContent" does not exist.', 1, $this->source); })()), "content", [], "any", false, false, false, 1), "body", [], "any", false, false, false, 1)) > 0))) {
  40. // line 2
  41. yield " ";
  42. yield from $this->load("pages/cms/content-types/ct_content_page.html.twig", 2)->unwrap()->yield($context);
  43. } else {
  44. // line 4
  45. yield " ";
  46. if (array_key_exists("slots", $context)) {
  47. // line 5
  48. yield " ";
  49. yield from $this->load("pages/cms/content-types/ct_category.html.twig", 5, "109676962")->unwrap()->yield(CoreExtension::merge($context, ["slots" => // line 6
  50. (isset($context["slots"]) || array_key_exists("slots", $context) ? $context["slots"] : (function () { throw new RuntimeError('Variable "slots" does not exist.', 6, $this->source); })()), "modifier" => "catalog--es-overview"]));
  51. // line 15
  52. yield " ";
  53. }
  54. }
  55. // line 17
  56. yield "
  57. ";
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60. yield from [];
  61. }
  62. /**
  63. * @codeCoverageIgnore
  64. */
  65. public function getTemplateName(): string
  66. {
  67. return "pages/cms/content-types/ct_category.html.twig";
  68. }
  69. /**
  70. * @codeCoverageIgnore
  71. */
  72. public function isTraitable(): bool
  73. {
  74. return false;
  75. }
  76. /**
  77. * @codeCoverageIgnore
  78. */
  79. public function getDebugInfo(): array
  80. {
  81. return array ( 65 => 17, 61 => 15, 59 => 6, 57 => 5, 54 => 4, 50 => 2, 48 => 1,);
  82. }
  83. public function getSourceContext(): Source
  84. {
  85. return new Source("{% if cmsContent.content.body is defined and cmsContent.content.body|length > 0%}
  86. {% include 'pages/cms/content-types/ct_content_page.html.twig' %}
  87. {% else %}
  88. {% if slots is defined %}
  89. {% embed 'components/organisms/catalog/catalog.html.twig' with {
  90. slots: slots,
  91. modifier: 'catalog--es-overview'
  92. } %}
  93. {% block catalogSidebar %}
  94. {% include 'components/organisms/es-sidebar/es-sidebar.html.twig' with {
  95. class: 'catalog-sidebar--es-sidebar',
  96. }%}
  97. {% endblock %}
  98. {% endembed %}
  99. {% endif %}
  100. {% endif %}
  101. ", "pages/cms/content-types/ct_category.html.twig", "/var/www/html/templates/default/pages/cms/content-types/ct_category.html.twig");
  102. }
  103. }
  104. /* pages/cms/content-types/ct_category.html.twig */
  105. class __TwigTemplate_8916984ed6900beb439c33a4b7dd44d4___109676962 extends Template
  106. {
  107. private Source $source;
  108. /**
  109. * @var array<string, Template>
  110. */
  111. private array $macros = [];
  112. public function __construct(Environment $env)
  113. {
  114. parent::__construct($env);
  115. $this->source = $this->getSourceContext();
  116. $this->blocks = [
  117. 'catalogSidebar' => [$this, 'block_catalogSidebar'],
  118. ];
  119. }
  120. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  121. {
  122. // line 5
  123. return "components/organisms/catalog/catalog.html.twig";
  124. }
  125. protected function doDisplay(array $context, array $blocks = []): iterable
  126. {
  127. $macros = $this->macros;
  128. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  129. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/cms/content-types/ct_category.html.twig"));
  130. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  131. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/cms/content-types/ct_category.html.twig"));
  132. $this->parent = $this->load("components/organisms/catalog/catalog.html.twig", 5);
  133. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  134. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  135. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  136. }
  137. // line 9
  138. /**
  139. * @return iterable<null|scalar|\Stringable>
  140. */
  141. public function block_catalogSidebar(array $context, array $blocks = []): iterable
  142. {
  143. $macros = $this->macros;
  144. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  145. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "catalogSidebar"));
  146. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  147. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "catalogSidebar"));
  148. // line 10
  149. yield " ";
  150. yield from $this->load("components/organisms/es-sidebar/es-sidebar.html.twig", 10)->unwrap()->yield(CoreExtension::merge($context, ["class" => "catalog-sidebar--es-sidebar"]));
  151. // line 13
  152. yield " ";
  153. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  154. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  155. yield from [];
  156. }
  157. /**
  158. * @codeCoverageIgnore
  159. */
  160. public function getTemplateName(): string
  161. {
  162. return "pages/cms/content-types/ct_category.html.twig";
  163. }
  164. /**
  165. * @codeCoverageIgnore
  166. */
  167. public function isTraitable(): bool
  168. {
  169. return false;
  170. }
  171. /**
  172. * @codeCoverageIgnore
  173. */
  174. public function getDebugInfo(): array
  175. {
  176. return array ( 186 => 13, 183 => 10, 170 => 9, 147 => 5, 65 => 17, 61 => 15, 59 => 6, 57 => 5, 54 => 4, 50 => 2, 48 => 1,);
  177. }
  178. public function getSourceContext(): Source
  179. {
  180. return new Source("{% if cmsContent.content.body is defined and cmsContent.content.body|length > 0%}
  181. {% include 'pages/cms/content-types/ct_content_page.html.twig' %}
  182. {% else %}
  183. {% if slots is defined %}
  184. {% embed 'components/organisms/catalog/catalog.html.twig' with {
  185. slots: slots,
  186. modifier: 'catalog--es-overview'
  187. } %}
  188. {% block catalogSidebar %}
  189. {% include 'components/organisms/es-sidebar/es-sidebar.html.twig' with {
  190. class: 'catalog-sidebar--es-sidebar',
  191. }%}
  192. {% endblock %}
  193. {% endembed %}
  194. {% endif %}
  195. {% endif %}
  196. ", "pages/cms/content-types/ct_category.html.twig", "/var/www/html/templates/default/pages/cms/content-types/ct_category.html.twig");
  197. }
  198. }