var/cache/dev/twig/f2/f2e7b1aab4117222e8267daccf232c8c.php line 34

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. /* front/hooks/default.html.twig */
  15. class __TwigTemplate_a3c966a8ee4347e9cd392691c9ff0e93 extends Template
  16. {
  17. private $source;
  18. private $macros = [];
  19. public function __construct(Environment $env)
  20. {
  21. parent::__construct($env);
  22. $this->source = $this->getSourceContext();
  23. $this->parent = false;
  24. $this->blocks = [
  25. ];
  26. }
  27. protected function doDisplay(array $context, array $blocks = [])
  28. {
  29. $macros = $this->macros;
  30. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/hooks/default.html.twig"));
  32. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/hooks/default.html.twig"));
  34. // line 1
  35. yield "<div class=\"modules\">
  36. ";
  37. // line 2
  38. if ((isset($context["moduleHooked"]) || array_key_exists("moduleHooked", $context) ? $context["moduleHooked"] : (function () { throw new RuntimeError('Variable "moduleHooked" does not exist.', 2, $this->source); })())) {
  39. // line 3
  40. yield " ";
  41. $context['_parent'] = $context;
  42. $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); })()));
  43. $context['loop'] = [
  44. 'parent' => $context['_parent'],
  45. 'index0' => 0,
  46. 'index' => 1,
  47. 'first' => true,
  48. ];
  49. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  50. $length = count($context['_seq']);
  51. $context['loop']['revindex0'] = $length - 1;
  52. $context['loop']['revindex'] = $length;
  53. $context['loop']['length'] = $length;
  54. $context['loop']['last'] = 1 === $length;
  55. }
  56. foreach ($context['_seq'] as $context["_key"] => $context["hooked"]) {
  57. // line 4
  58. yield " ";
  59. yield from $this->loadTemplate(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), "front/hooks/default.html.twig", 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)]));
  60. // line 5
  61. yield " ";
  62. ++$context['loop']['index0'];
  63. ++$context['loop']['index'];
  64. $context['loop']['first'] = false;
  65. if (isset($context['loop']['length'])) {
  66. --$context['loop']['revindex0'];
  67. --$context['loop']['revindex'];
  68. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  69. }
  70. }
  71. $_parent = $context['_parent'];
  72. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['hooked'], $context['_parent'], $context['loop']);
  73. $context = array_intersect_key($context, $_parent) + $_parent;
  74. // line 6
  75. yield " ";
  76. }
  77. // line 7
  78. yield "</div>";
  79. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  80. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  81. return; yield '';
  82. }
  83. /**
  84. * @codeCoverageIgnore
  85. */
  86. public function getTemplateName()
  87. {
  88. return "front/hooks/default.html.twig";
  89. }
  90. /**
  91. * @codeCoverageIgnore
  92. */
  93. public function isTraitable()
  94. {
  95. return false;
  96. }
  97. /**
  98. * @codeCoverageIgnore
  99. */
  100. public function getDebugInfo()
  101. {
  102. return array ( 87 => 7, 84 => 6, 70 => 5, 67 => 4, 49 => 3, 47 => 2, 44 => 1,);
  103. }
  104. public function getSourceContext()
  105. {
  106. return new Source("<div class=\"modules\">
  107. {% if moduleHooked %}
  108. {% for hooked in moduleHooked %}
  109. {% include hooked.module.template with {'module': hooked,'last':loop.last,'first':loop.first} %}
  110. {% endfor %}
  111. {% endif %}
  112. </div>", "front/hooks/default.html.twig", "/var/www/dogcat.com/v2-test/templates/front/hooks/default.html.twig");
  113. }
  114. }