var/cache/dev/twig/81/81d1603897a1844ba5062a21dea1a3de.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. /* components/molecules/text-list/text-list.html.twig */
  16. class __TwigTemplate_413ea26c96018fdfc365579ac71b6d19 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", "components/molecules/text-list/text-list.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", "components/molecules/text-list/text-list.html.twig"));
  38. // line 1
  39. yield "<ul class=\"text-list ";
  40. 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);
  41. if ((($tmp = ((array_key_exists("styling", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["styling"]) || array_key_exists("styling", $context) ? $context["styling"] : (function () { throw new RuntimeError('Variable "styling" does not exist.', 1, $this->source); })()))) : (""))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  42. yield " text-list--";
  43. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["styling"]) || array_key_exists("styling", $context) ? $context["styling"] : (function () { throw new RuntimeError('Variable "styling" does not exist.', 1, $this->source); })()), "html", null, true);
  44. }
  45. if ((($tmp = ((array_key_exists("column", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["column"]) || array_key_exists("column", $context) ? $context["column"] : (function () { throw new RuntimeError('Variable "column" does not exist.', 1, $this->source); })()))) : (""))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  46. yield " text-list--column-";
  47. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["column"]) || array_key_exists("column", $context) ? $context["column"] : (function () { throw new RuntimeError('Variable "column" does not exist.', 1, $this->source); })()), "html", null, true);
  48. }
  49. yield "\">
  50. ";
  51. // line 2
  52. if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ((array_key_exists("listEntries", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["listEntries"]) || array_key_exists("listEntries", $context) ? $context["listEntries"] : (function () { throw new RuntimeError('Variable "listEntries" does not exist.', 2, $this->source); })()))) : (""))) > 0)) {
  53. // line 3
  54. yield " ";
  55. $context['_parent'] = $context;
  56. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["listEntries"]) || array_key_exists("listEntries", $context) ? $context["listEntries"] : (function () { throw new RuntimeError('Variable "listEntries" does not exist.', 3, $this->source); })()));
  57. $context['loop'] = [
  58. 'parent' => $context['_parent'],
  59. 'index0' => 0,
  60. 'index' => 1,
  61. 'first' => true,
  62. ];
  63. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  64. $length = count($context['_seq']);
  65. $context['loop']['revindex0'] = $length - 1;
  66. $context['loop']['revindex'] = $length;
  67. $context['loop']['length'] = $length;
  68. $context['loop']['last'] = 1 === $length;
  69. }
  70. foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
  71. // line 4
  72. yield " ";
  73. yield from $this->load("components/atoms/list/list.html.twig", 4)->unwrap()->yield($context);
  74. // line 5
  75. yield " ";
  76. ++$context['loop']['index0'];
  77. ++$context['loop']['index'];
  78. $context['loop']['first'] = false;
  79. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  80. --$context['loop']['revindex0'];
  81. --$context['loop']['revindex'];
  82. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  83. }
  84. }
  85. $_parent = $context['_parent'];
  86. unset($context['_seq'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
  87. $context = array_intersect_key($context, $_parent) + $_parent;
  88. // line 6
  89. yield " ";
  90. }
  91. // line 7
  92. yield "</ul>";
  93. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  95. yield from [];
  96. }
  97. /**
  98. * @codeCoverageIgnore
  99. */
  100. public function getTemplateName(): string
  101. {
  102. return "components/molecules/text-list/text-list.html.twig";
  103. }
  104. /**
  105. * @codeCoverageIgnore
  106. */
  107. public function isTraitable(): bool
  108. {
  109. return false;
  110. }
  111. /**
  112. * @codeCoverageIgnore
  113. */
  114. public function getDebugInfo(): array
  115. {
  116. return array ( 101 => 7, 98 => 6, 84 => 5, 81 => 4, 63 => 3, 61 => 2, 48 => 1,);
  117. }
  118. public function getSourceContext(): Source
  119. {
  120. return new Source("<ul class=\"text-list {{ class|default }}{% if styling|default %} text-list--{{ styling }}{% endif %}{% if column|default %} text-list--column-{{ column }}{% endif %}\">
  121. {% if listEntries|default|length > 0 %}
  122. {% for entry in listEntries %}
  123. {% include 'components/atoms/list/list.html.twig' %}
  124. {% endfor %}
  125. {% endif %}
  126. </ul>", "components/molecules/text-list/text-list.html.twig", "/var/www/html/templates/default/components/molecules/text-list/text-list.html.twig");
  127. }
  128. }