var/cache/dev/twig/e3/e37b33a24b5f3d337d2bd166f45e1462.php line 72

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. /* front/hooks/default.html.twig */
  16. class __TwigTemplate_3584a6f1fb17b1aace685582626b53da 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", "front/hooks/default.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", "front/hooks/default.html.twig"));
  38. // line 1
  39. yield "<div class=\"modules\">
  40. ";
  41. // line 2
  42. if ((($tmp = (isset($context["moduleHooked"]) || array_key_exists("moduleHooked", $context) ? $context["moduleHooked"] : (function () { throw new RuntimeError('Variable "moduleHooked" does not exist.', 2, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  43. // line 3
  44. yield " ";
  45. $context['_parent'] = $context;
  46. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["moduleHooked"]) || array_key_exists("moduleHooked", $context) ? $context["moduleHooked"] : (function () { throw new RuntimeError('Variable "moduleHooked" does not exist.', 3, $this->source); })()));
  47. $context['loop'] = [
  48. 'parent' => $context['_parent'],
  49. 'index0' => 0,
  50. 'index' => 1,
  51. 'first' => true,
  52. ];
  53. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  54. $length = count($context['_seq']);
  55. $context['loop']['revindex0'] = $length - 1;
  56. $context['loop']['revindex'] = $length;
  57. $context['loop']['length'] = $length;
  58. $context['loop']['last'] = 1 === $length;
  59. }
  60. foreach ($context['_seq'] as $context["_key"] => $context["hooked"]) {
  61. // line 4
  62. yield " ";
  63. yield from $this->load(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["hooked"], "module", [], "any", false, false, false, 4), "template", [], "any", false, false, false, 4), 4)->unwrap()->yield(CoreExtension::merge($context, ["module" => $context["hooked"], "last" => CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 4), "first" => CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 4)]));
  64. // line 5
  65. yield " ";
  66. ++$context['loop']['index0'];
  67. ++$context['loop']['index'];
  68. $context['loop']['first'] = false;
  69. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  70. --$context['loop']['revindex0'];
  71. --$context['loop']['revindex'];
  72. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  73. }
  74. }
  75. $_parent = $context['_parent'];
  76. unset($context['_seq'], $context['_key'], $context['hooked'], $context['_parent'], $context['loop']);
  77. $context = array_intersect_key($context, $_parent) + $_parent;
  78. // line 6
  79. yield " ";
  80. }
  81. // line 7
  82. yield "</div>";
  83. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  84. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  85. yield from [];
  86. }
  87. /**
  88. * @codeCoverageIgnore
  89. */
  90. public function getTemplateName(): string
  91. {
  92. return "front/hooks/default.html.twig";
  93. }
  94. /**
  95. * @codeCoverageIgnore
  96. */
  97. public function isTraitable(): bool
  98. {
  99. return false;
  100. }
  101. /**
  102. * @codeCoverageIgnore
  103. */
  104. public function getDebugInfo(): array
  105. {
  106. return array ( 91 => 7, 88 => 6, 74 => 5, 71 => 4, 53 => 3, 51 => 2, 48 => 1,);
  107. }
  108. public function getSourceContext(): Source
  109. {
  110. return new Source("<div class=\"modules\">
  111. {% if moduleHooked %}
  112. {% for hooked in moduleHooked %}
  113. {% include hooked.module.template with {'module': hooked,'last':loop.last,'first':loop.first} %}
  114. {% endfor %}
  115. {% endif %}
  116. </div>", "front/hooks/default.html.twig", "/var/www/dogcat.com/v2-test/templates/front/hooks/default.html.twig");
  117. }
  118. }