var/cache/dev/twig/ee/ee2ca78b9d660c25643f1b749b019a06.php line 78

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. /* components/organisms/offside/offside.html.twig */
  16. class __TwigTemplate_c59571afc420bf582761bca7f869c520 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. 'offcanvasHeader' => [$this, 'block_offcanvasHeader'],
  30. 'offcanvasClose' => [$this, 'block_offcanvasClose'],
  31. 'offcanvasContent' => [$this, 'block_offcanvasContent'],
  32. 'offcanvasFooter' => [$this, 'block_offcanvasFooter'],
  33. ];
  34. }
  35. protected function doDisplay(array $context, array $blocks = []): iterable
  36. {
  37. $macros = $this->macros;
  38. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/offside/offside.html.twig"));
  40. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/offside/offside.html.twig"));
  42. // line 1
  43. yield "<div class=\"offside ";
  44. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("class", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.', 1, $this->source); })()))) : ("")), "html", null, true);
  45. yield "\" id=\"";
  46. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("id", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 1, $this->source); })()))) : ("")), "html", null, true);
  47. yield "\" role=\"dialog\" ";
  48. if (array_key_exists("ariaLabelledBy", $context)) {
  49. yield " aria-labelledby=\"";
  50. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["ariaLabelledBy"]) || array_key_exists("ariaLabelledBy", $context) ? $context["ariaLabelledBy"] : (function () { throw new RuntimeError('Variable "ariaLabelledBy" does not exist.', 1, $this->source); })()), "html", null, true);
  51. yield "\" ";
  52. } else {
  53. yield " aria-label=\"";
  54. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("id", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 1, $this->source); })()))) : ("")), "html", null, true);
  55. yield "\" ";
  56. }
  57. yield ">
  58. <div class=\"offside__container\">
  59. ";
  60. // line 3
  61. yield from $this->unwrap()->yieldBlock('offcanvasHeader', $context, $blocks);
  62. // line 10
  63. yield " ";
  64. yield from $this->unwrap()->yieldBlock('offcanvasClose', $context, $blocks);
  65. // line 22
  66. yield " <div class=\"offside__content\">
  67. ";
  68. // line 23
  69. yield from $this->unwrap()->yieldBlock('offcanvasContent', $context, $blocks);
  70. // line 25
  71. yield " </div>
  72. ";
  73. // line 27
  74. yield from $this->unwrap()->yieldBlock('offcanvasFooter', $context, $blocks);
  75. // line 29
  76. yield " </div>
  77. </div>
  78. ";
  79. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  80. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  81. yield from [];
  82. }
  83. // line 3
  84. /**
  85. * @return iterable<null|scalar|\Stringable>
  86. */
  87. public function block_offcanvasHeader(array $context, array $blocks = []): iterable
  88. {
  89. $macros = $this->macros;
  90. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  91. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasHeader"));
  92. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  93. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasHeader"));
  94. // line 4
  95. yield " <div class=\"offside__header\">
  96. <div class=\"offside__headline\" ";
  97. // line 5
  98. if (array_key_exists("ariaLabelledBy", $context)) {
  99. yield " id=\"";
  100. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["ariaLabelledBy"]) || array_key_exists("ariaLabelledBy", $context) ? $context["ariaLabelledBy"] : (function () { throw new RuntimeError('Variable "ariaLabelledBy" does not exist.', 5, $this->source); })()), "html", null, true);
  101. yield "\" ";
  102. }
  103. yield ">
  104. <span>";
  105. // line 6
  106. yield ((array_key_exists("header", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["header"]) || array_key_exists("header", $context) ? $context["header"] : (function () { throw new RuntimeError('Variable "header" does not exist.', 6, $this->source); })()))) : (""));
  107. yield "</span>
  108. </div>
  109. </div>
  110. ";
  111. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  112. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  113. yield from [];
  114. }
  115. // line 10
  116. /**
  117. * @return iterable<null|scalar|\Stringable>
  118. */
  119. public function block_offcanvasClose(array $context, array $blocks = []): iterable
  120. {
  121. $macros = $this->macros;
  122. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  123. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasClose"));
  124. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  125. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasClose"));
  126. // line 11
  127. yield " ";
  128. yield from $this->load("components/atoms/button/button.html.twig", 11)->unwrap()->yield(CoreExtension::merge($context, ["class" => "offside__close js-offside-close button--close", "type" => "button", "content" => "", "attributes" => ["data-off-canvas-close-id" => (( // line 17
  129. array_key_exists("id", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 17, $this->source); })()))) : ("")), "aria-label" => ("Close " . (( // line 18
  130. array_key_exists("id", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 18, $this->source); })()), "offside")) : ("offside")))]]));
  131. // line 21
  132. yield " ";
  133. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  134. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  135. yield from [];
  136. }
  137. // line 23
  138. /**
  139. * @return iterable<null|scalar|\Stringable>
  140. */
  141. public function block_offcanvasContent(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", "offcanvasContent"));
  146. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  147. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasContent"));
  148. // line 24
  149. yield " ";
  150. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  151. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  152. yield from [];
  153. }
  154. // line 27
  155. /**
  156. * @return iterable<null|scalar|\Stringable>
  157. */
  158. public function block_offcanvasFooter(array $context, array $blocks = []): iterable
  159. {
  160. $macros = $this->macros;
  161. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  162. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasFooter"));
  163. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  164. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "offcanvasFooter"));
  165. // line 28
  166. yield " ";
  167. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  168. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  169. yield from [];
  170. }
  171. /**
  172. * @codeCoverageIgnore
  173. */
  174. public function getTemplateName(): string
  175. {
  176. return "components/organisms/offside/offside.html.twig";
  177. }
  178. /**
  179. * @codeCoverageIgnore
  180. */
  181. public function isTraitable(): bool
  182. {
  183. return false;
  184. }
  185. /**
  186. * @codeCoverageIgnore
  187. */
  188. public function getDebugInfo(): array
  189. {
  190. return array ( 204 => 28, 191 => 27, 180 => 24, 167 => 23, 156 => 21, 154 => 18, 153 => 17, 151 => 11, 138 => 10, 123 => 6, 115 => 5, 112 => 4, 99 => 3, 86 => 29, 84 => 27, 80 => 25, 78 => 23, 75 => 22, 72 => 10, 70 => 3, 52 => 1,);
  191. }
  192. public function getSourceContext(): Source
  193. {
  194. return new Source("<div class=\"offside {{ class|default }}\" id=\"{{ id|default }}\" role=\"dialog\" {% if ariaLabelledBy is defined %} aria-labelledby=\"{{ ariaLabelledBy }}\" {% else %} aria-label=\"{{ id|default }}\" {% endif %}>
  195. <div class=\"offside__container\">
  196. {% block offcanvasHeader %}
  197. <div class=\"offside__header\">
  198. <div class=\"offside__headline\" {% if ariaLabelledBy is defined %} id=\"{{ ariaLabelledBy }}\" {% endif %}>
  199. <span>{{ header|default|raw }}</span>
  200. </div>
  201. </div>
  202. {% endblock %}
  203. {% block offcanvasClose %}
  204. {% include 'components/atoms/button/button.html.twig'
  205. with {
  206. 'class': 'offside__close js-offside-close button--close',
  207. 'type': 'button',
  208. 'content': '',
  209. 'attributes': {
  210. 'data-off-canvas-close-id': id|default,
  211. 'aria-label': \"Close \" ~ id|default('offside'),
  212. }
  213. } %}
  214. {% endblock %}
  215. <div class=\"offside__content\">
  216. {% block offcanvasContent %}
  217. {% endblock %}
  218. </div>
  219. {% block offcanvasFooter %}
  220. {% endblock %}
  221. </div>
  222. </div>
  223. ", "components/organisms/offside/offside.html.twig", "/var/www/html/templates/default/components/organisms/offside/offside.html.twig");
  224. }
  225. }