var/cache/dev/manitou-master2025.dtv-projects.com/twig/fc/fcf411b7d63a1b5e612337032db943df.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. /* platform/component/organism/theme_default_security_footer.html.twig */
  16. class __TwigTemplate_babc6569aec202b022e4c4ab8bac4390 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", "platform/component/organism/theme_default_security_footer.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", "platform/component/organism/theme_default_security_footer.html.twig"));
  38. // line 1
  39. if ((($tmp = !array_key_exists("componentKey", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  40. // line 2
  41. yield "\t";
  42. $context["componentKey"] = "theme_default_security_footer";
  43. }
  44. // line 4
  45. $context["item_config"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->generateComponentOptions((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 4, $this->source); })()), (isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 4, $this->source); })()));
  46. // line 5
  47. yield "
  48. <footer data-component-acl=\"";
  49. // line 6
  50. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 6, $this->source); })()), "html", null, true);
  51. yield "\" class=\"main-footer ";
  52. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["item_config"]) || array_key_exists("item_config", $context) ? $context["item_config"] : (function () { throw new RuntimeError('Variable "item_config" does not exist.', 6, $this->source); })()), "item", [], "any", false, false, false, 6), "class", [], "any", false, false, false, 6), "html", null, true);
  53. yield "\" ";
  54. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "background", [], "any", false, true, false, 6), "color", [], "any", true, true, false, 6)) {
  55. yield "style=\"background-color:";
  56. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 6, $this->source); })()), "background", [], "any", false, false, false, 6), "color", [], "any", false, false, false, 6), "html", null, true);
  57. yield "\"";
  58. }
  59. yield ">
  60. \t";
  61. // line 7
  62. if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 7) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 7, $this->source); })()), "container", [], "any", false, false, false, 7) == true))) {
  63. // line 8
  64. yield "\t\t<div class=\"container\">
  65. \t\t\t<div class=\"row main-footer-sections ";
  66. // line 9
  67. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "wrapper", [], "any", true, true, false, 9)) {
  68. yield " ";
  69. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 9, $this->source); })()), "wrapper", [], "any", false, false, false, 9), "html", null, true);
  70. }
  71. yield "\">
  72. \t";
  73. } else {
  74. // line 11
  75. yield "\t\t\t<div class=\"d-flex main-footer-sections ";
  76. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "wrapper", [], "any", true, true, false, 11)) {
  77. yield " ";
  78. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 11, $this->source); })()), "wrapper", [], "any", false, false, false, 11), "html", null, true);
  79. }
  80. yield "\" style=\"flex-wrap: wrap;\">
  81. \t";
  82. }
  83. // line 13
  84. yield "
  85. \t\t\t";
  86. // line 14
  87. $context['_parent'] = $context;
  88. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 14, $this->source); })()), "sections", [], "any", false, false, false, 14));
  89. foreach ($context['_seq'] as $context["key"] => $context["item"]) {
  90. // line 15
  91. yield "\t\t\t\t<div class=\"col";
  92. if (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "col", [], "any", true, true, false, 15)) {
  93. yield "-";
  94. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "col", [], "any", false, false, false, 15), "html", null, true);
  95. }
  96. yield " ";
  97. if (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "class", [], "any", true, true, false, 15)) {
  98. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "class", [], "any", false, false, false, 15), "html", null, true);
  99. }
  100. yield "\">
  101. \t\t\t\t\t";
  102. // line 16
  103. yield $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->component($context["item"], ("security.footer.sections." . $context["key"]));
  104. yield "
  105. \t\t\t\t</div>
  106. \t\t\t";
  107. }
  108. $_parent = $context['_parent'];
  109. unset($context['_seq'], $context['key'], $context['item'], $context['_parent']);
  110. $context = array_intersect_key($context, $_parent) + $_parent;
  111. // line 19
  112. yield "
  113. \t";
  114. // line 20
  115. if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 20) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 20, $this->source); })()), "container", [], "any", false, false, false, 20) == true))) {
  116. // line 21
  117. yield "\t\t\t</div>
  118. \t\t</div>
  119. \t";
  120. } else {
  121. // line 24
  122. yield "\t\t</div>
  123. \t";
  124. }
  125. // line 26
  126. yield "</footer>
  127. ";
  128. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  129. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  130. yield from [];
  131. }
  132. /**
  133. * @codeCoverageIgnore
  134. */
  135. public function getTemplateName(): string
  136. {
  137. return "platform/component/organism/theme_default_security_footer.html.twig";
  138. }
  139. /**
  140. * @codeCoverageIgnore
  141. */
  142. public function isTraitable(): bool
  143. {
  144. return false;
  145. }
  146. /**
  147. * @codeCoverageIgnore
  148. */
  149. public function getDebugInfo(): array
  150. {
  151. return array ( 135 => 26, 131 => 24, 126 => 21, 124 => 20, 121 => 19, 112 => 16, 100 => 15, 96 => 14, 93 => 13, 84 => 11, 76 => 9, 73 => 8, 71 => 7, 59 => 6, 56 => 5, 54 => 4, 50 => 2, 48 => 1,);
  152. }
  153. public function getSourceContext(): Source
  154. {
  155. return new Source("{% if componentKey is not defined %}
  156. \t{% set componentKey = \"theme_default_security_footer\" %}
  157. {% endif %}
  158. {% set item_config = generateComponentOptions(value, componentKey)%}
  159. <footer data-component-acl=\"{{ componentKey }}\" class=\"main-footer {{ item_config.item.class }}\" {% if value.background.color is defined %}style=\"background-color:{{ value.background.color }}\"{% endif %}>
  160. \t{% if value.container is defined and value.container == true %}
  161. \t\t<div class=\"container\">
  162. \t\t\t<div class=\"row main-footer-sections {% if value.wrapper is defined %} {{value.wrapper}}{%endif%}\">
  163. \t{% else %}
  164. \t\t\t<div class=\"d-flex main-footer-sections {% if value.wrapper is defined %} {{value.wrapper}}{%endif%}\" style=\"flex-wrap: wrap;\">
  165. \t{% endif %}
  166. \t\t\t{% for key, item in value.sections %}
  167. \t\t\t\t<div class=\"col{% if item.col is defined %}-{{ item.col }}{% endif %} {% if item.class is defined %}{{ item.class }}{% endif %}\">
  168. \t\t\t\t\t{{ component(item, 'security.footer.sections.' ~ key) }}
  169. \t\t\t\t</div>
  170. \t\t\t{% endfor %}
  171. \t{% if value.container is defined and value.container == true %}
  172. \t\t\t</div>
  173. \t\t</div>
  174. \t{% else %}
  175. \t\t</div>
  176. \t{% endif %}
  177. </footer>
  178. ", "platform/component/organism/theme_default_security_footer.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/organism/theme_default_security_footer.html.twig");
  179. }
  180. }