var/cache/dev/twig/0f/0f86e89f43e482a1bab1d5d0f74cf14a.php line 150

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. /* theme/default/index.html.twig */
  15. class __TwigTemplate_c09bf0951daccd6a2a56b7c4b5b54fc1 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->blocks = [
  24. 'stylesheets' => [$this, 'block_stylesheets'],
  25. 'custom_class' => [$this, 'block_custom_class'],
  26. 'body' => [$this, 'block_body'],
  27. 'javascripts' => [$this, 'block_javascripts'],
  28. ];
  29. }
  30. protected function doGetParent(array $context)
  31. {
  32. // line 1
  33. return $this->loadTemplate((("theme/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1, $this->source); })()), "request", [], "any", false, false, false, 1), "server", [], "any", false, false, false, 1), "get", ["APP_THEME"], "method", false, false, false, 1)) . "/partials/base.html.twig"), "theme/default/index.html.twig", 1);
  34. }
  35. protected function doDisplay(array $context, array $blocks = [])
  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", "theme/default/index.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", "theme/default/index.html.twig"));
  42. yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  43. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45. }
  46. // line 3
  47. public function block_stylesheets($context, array $blocks = [])
  48. {
  49. $macros = $this->macros;
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  54. // line 4
  55. yield "\t";
  56. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  57. yield "
  58. ";
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  61. return; yield '';
  62. }
  63. // line 7
  64. public function block_custom_class($context, array $blocks = [])
  65. {
  66. $macros = $this->macros;
  67. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "custom_class"));
  69. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "custom_class"));
  71. yield "home";
  72. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  73. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74. return; yield '';
  75. }
  76. // line 10
  77. public function block_body($context, array $blocks = [])
  78. {
  79. $macros = $this->macros;
  80. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  82. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  84. // line 11
  85. yield " <div class=\"index-page\">
  86. \t";
  87. // line 12
  88. if (((((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 12, $this->source); })()) && !Twig\Extension\CoreExtension::testEmpty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 12, $this->source); })()))) && array_key_exists("twig_galerie", $context)) && !Twig\Extension\CoreExtension::testEmpty((isset($context["twig_galerie"]) || array_key_exists("twig_galerie", $context) ? $context["twig_galerie"] : (function () { throw new RuntimeError('Variable "twig_galerie" does not exist.', 12, $this->source); })())))) {
  89. // line 13
  90. yield " ";
  91. yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\StringLoaderExtension::templateFromString($this->env, (isset($context["twig_galerie"]) || array_key_exists("twig_galerie", $context) ? $context["twig_galerie"] : (function () { throw new RuntimeError('Variable "twig_galerie" does not exist.', 13, $this->source); })())));
  92. yield "
  93. ";
  94. }
  95. // line 15
  96. yield "
  97. ";
  98. // line 17
  99. if (array_key_exists("blocs", $context)) {
  100. // line 18
  101. yield " ";
  102. yield Twig\Extension\CoreExtension::include($this->env, $context, (("theme/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 18, $this->source); })()), "request", [], "any", false, false, false, 18), "server", [], "any", false, false, false, 18), "get", ["APP_THEME"], "method", false, false, false, 18)) . "/partials/bloc_render.html.twig"), ["blocs" => (isset($context["blocs"]) || array_key_exists("blocs", $context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.', 18, $this->source); })())], false);
  103. yield "
  104. ";
  105. }
  106. // line 20
  107. yield " </div>
  108. ";
  109. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  111. return; yield '';
  112. }
  113. // line 23
  114. public function block_javascripts($context, array $blocks = [])
  115. {
  116. $macros = $this->macros;
  117. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  118. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  119. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  120. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  121. // line 24
  122. yield " ";
  123. yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  124. yield "
  125. ";
  126. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  127. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  128. return; yield '';
  129. }
  130. /**
  131. * @codeCoverageIgnore
  132. */
  133. public function getTemplateName()
  134. {
  135. return "theme/default/index.html.twig";
  136. }
  137. /**
  138. * @codeCoverageIgnore
  139. */
  140. public function isTraitable()
  141. {
  142. return false;
  143. }
  144. /**
  145. * @codeCoverageIgnore
  146. */
  147. public function getDebugInfo()
  148. {
  149. return array ( 160 => 24, 150 => 23, 138 => 20, 132 => 18, 130 => 17, 126 => 15, 120 => 13, 118 => 12, 115 => 11, 105 => 10, 85 => 7, 71 => 4, 61 => 3, 39 => 1,);
  150. }
  151. public function getSourceContext()
  152. {
  153. return new Source("{% extends \"theme/\"~ app.request.server.get('APP_THEME') ~\"/partials/base.html.twig\" %}
  154. {% block stylesheets %}
  155. \t{{parent()}}
  156. {% endblock %}
  157. {% block custom_class %}{{\"home\"}}{% endblock %}
  158. {% block body %}
  159. <div class=\"index-page\">
  160. \t{% if galleries and galleries is not empty and twig_galerie is defined and twig_galerie is not empty %}
  161. {{ include(template_from_string(twig_galerie)) }}
  162. {% endif %}
  163. {% if blocs is defined %}
  164. {{ include ('theme/'~ app.request.server.get('APP_THEME') ~'/partials/bloc_render.html.twig',{blocs: blocs}, with_context = false)}}
  165. {% endif %}
  166. </div>
  167. {% endblock %}
  168. {% block javascripts %}
  169. {{parent()}}
  170. {% endblock %}
  171. ", "theme/default/index.html.twig", "/var/www/vhosts/klean.studiojna.fr/httpdocs/templates/theme/default/index.html.twig");
  172. }
  173. }