var/cache/website/dev/twig/36/3692f511df063a5fb9d015ec3bd907fd57a79bfe2edf6736fd5a7c82f42bd892.php line 48

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* pages/galerie.html.twig */
  14. class __TwigTemplate_2c26f0e91959f7c2beaf082b455ceea646f001ab58db6adc0d92416aea4ab6b4 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/galerie.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/galerie.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""pages/galerie.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 4
  54.         echo "
  55.     
  56.    
  57.     ";
  58.         // line 7
  59.         $this->loadTemplate("fragments/_banner.html.twig""pages/galerie.html.twig"7)->display($context);
  60.         // line 8
  61.         echo "
  62.     <section class=\"medias\">
  63.         <div class=\"filters\">
  64.             <ul class=\"d-flex w-100 justify-content-center\">
  65.                 <li class=\"p-3\"><a href=\"#\" data-filter=\"*\" class=\"btn btn-outline-light active\">";
  66.         // line 12
  67.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("TOUS", [], "messages");
  68.         echo "</a></li>
  69.                 ";
  70.         // line 13
  71.         $context['_parent'] = $context;
  72.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'13$this->source); })()), "themes", [], "any"falsefalsefalse13));
  73.         $context['loop'] = [
  74.           'parent' => $context['_parent'],
  75.           'index0' => 0,
  76.           'index'  => 1,
  77.           'first'  => true,
  78.         ];
  79.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  80.             $length count($context['_seq']);
  81.             $context['loop']['revindex0'] = $length 1;
  82.             $context['loop']['revindex'] = $length;
  83.             $context['loop']['length'] = $length;
  84.             $context['loop']['last'] = === $length;
  85.         }
  86.         foreach ($context['_seq'] as $context["_key"] => $context["theme"]) {
  87.             // line 14
  88.             echo "                    ";
  89.             if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["theme"], "images", [], "any"falsefalsefalse14))) {
  90.                 // line 15
  91.                 echo "                    <li class=\"p-3\"><a href=\"#\" data-filter=\"";
  92.                 echo twig_escape_filter($this->env, (".theme_" twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse15)), "html"nulltrue);
  93.                 echo "\" class=\"btn btn-outline-light\">";
  94.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["theme"], "titre", [], "any"falsefalsefalse15), "html"nulltrue);
  95.                 echo "</a></li>
  96.                     ";
  97.             }
  98.             // line 17
  99.             echo "                ";
  100.             ++$context['loop']['index0'];
  101.             ++$context['loop']['index'];
  102.             $context['loop']['first'] = false;
  103.             if (isset($context['loop']['length'])) {
  104.                 --$context['loop']['revindex0'];
  105.                 --$context['loop']['revindex'];
  106.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  107.             }
  108.         }
  109.         $_parent $context['_parent'];
  110.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['theme'], $context['_parent'], $context['loop']);
  111.         $context array_intersect_key($context$_parent) + $_parent;
  112.         // line 18
  113.         echo "            </ul>
  114.         </div>
  115.         <div class=\"container\">
  116.             <div class=\"row gx-2 gy-3 mt-3 isotope-grid\">
  117.                 
  118.                 ";
  119.         // line 24
  120.         $context['_parent'] = $context;
  121.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'24$this->source); })()), "themes", [], "any"falsefalsefalse24));
  122.         $context['loop'] = [
  123.           'parent' => $context['_parent'],
  124.           'index0' => 0,
  125.           'index'  => 1,
  126.           'first'  => true,
  127.         ];
  128.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  129.             $length count($context['_seq']);
  130.             $context['loop']['revindex0'] = $length 1;
  131.             $context['loop']['revindex'] = $length;
  132.             $context['loop']['length'] = $length;
  133.             $context['loop']['last'] = === $length;
  134.         }
  135.         foreach ($context['_seq'] as $context["_key"] => $context["theme"]) {
  136.             // line 25
  137.             echo "                    ";
  138.             $context["theme_cpt"] = twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse25);
  139.             // line 26
  140.             echo "                    ";
  141.             $context['_parent'] = $context;
  142.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["theme"], "images", [], "any"falsefalsefalse26));
  143.             foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  144.                 // line 27
  145.                 echo "                        <a href=\"";
  146.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["media"], "formats", [], "any"falsefalsefalse27), "sulu-large", [], "array"falsefalsefalse27), "html"nulltrue);
  147.                 echo "\" data-toggle=\"lightbox\" data-gallery=\"galerie\" class=\"col-6 col-lg-4 col-xxl-3 item ";
  148.                 echo twig_escape_filter($this->env, ("theme_" . (isset($context["theme_cpt"]) || array_key_exists("theme_cpt"$context) ? $context["theme_cpt"] : (function () { throw new RuntimeError('Variable "theme_cpt" does not exist.'27$this->source); })())), "html"nulltrue);
  149.                 echo "\">
  150.                             <img src=\"";
  151.                 // line 28
  152.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["media"], "formats", [], "any"falsefalsefalse28), "sulu-400x400", [], "array"falsefalsefalse28), "html"nulltrue);
  153.                 echo "\" class=\"w-100\">
  154.                             <h3 class=\"fs-6 my-2 m-0\">";
  155.                 // line 29
  156.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "title", [], "any"falsefalsefalse29), "html"nulltrue);
  157.                 echo "</h3>
  158.                             <hr class=\"my-1 mx-1\">
  159.                             ";
  160.                 // line 31
  161.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "description", [], "any"falsefalsefalse31), "html"nulltrue);
  162.                 echo "
  163.                         </a>
  164.                     ";
  165.             }
  166.             $_parent $context['_parent'];
  167.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  168.             $context array_intersect_key($context$_parent) + $_parent;
  169.             // line 34
  170.             echo "                ";
  171.             ++$context['loop']['index0'];
  172.             ++$context['loop']['index'];
  173.             $context['loop']['first'] = false;
  174.             if (isset($context['loop']['length'])) {
  175.                 --$context['loop']['revindex0'];
  176.                 --$context['loop']['revindex'];
  177.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  178.             }
  179.         }
  180.         $_parent $context['_parent'];
  181.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['theme'], $context['_parent'], $context['loop']);
  182.         $context array_intersect_key($context$_parent) + $_parent;
  183.         // line 35
  184.         echo "            </div>
  185.         </div>
  186.     </section>
  187.     
  188.     
  189. ";
  190.         
  191.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  192.         
  193.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  194.     }
  195.     public function getTemplateName()
  196.     {
  197.         return "pages/galerie.html.twig";
  198.     }
  199.     public function isTraitable()
  200.     {
  201.         return false;
  202.     }
  203.     public function getDebugInfo()
  204.     {
  205.         return array (  199 => 35,  185 => 34,  176 => 31,  171 => 29,  167 => 28,  160 => 27,  155 => 26,  152 => 25,  135 => 24,  127 => 18,  113 => 17,  105 => 15,  102 => 14,  85 => 13,  81 => 12,  75 => 8,  73 => 7,  68 => 4,  58 => 3,  35 => 1,);
  206.     }
  207.     public function getSourceContext()
  208.     {
  209.         return new Source("{% extends \"base.html.twig\" %}
  210. {% block content %}
  211.     
  212.    
  213.     {% include \"fragments/_banner.html.twig\" %}
  214.     <section class=\"medias\">
  215.         <div class=\"filters\">
  216.             <ul class=\"d-flex w-100 justify-content-center\">
  217.                 <li class=\"p-3\"><a href=\"#\" data-filter=\"*\" class=\"btn btn-outline-light active\">{% trans %}TOUS{% endtrans %}</a></li>
  218.                 {% for theme in content.themes %}
  219.                     {% if theme.images|length %}
  220.                     <li class=\"p-3\"><a href=\"#\" data-filter=\"{{ \".theme_\"~loop.index }}\" class=\"btn btn-outline-light\">{{ theme.titre }}</a></li>
  221.                     {% endif %}
  222.                 {% endfor %}
  223.             </ul>
  224.         </div>
  225.         <div class=\"container\">
  226.             <div class=\"row gx-2 gy-3 mt-3 isotope-grid\">
  227.                 
  228.                 {% for theme in content.themes %}
  229.                     {% set theme_cpt = loop.index %}
  230.                     {% for media in theme.images %}
  231.                         <a href=\"{{ media.formats['sulu-large'] }}\" data-toggle=\"lightbox\" data-gallery=\"galerie\" class=\"col-6 col-lg-4 col-xxl-3 item {{ \"theme_\"~theme_cpt }}\">
  232.                             <img src=\"{{ media.formats['sulu-400x400'] }}\" class=\"w-100\">
  233.                             <h3 class=\"fs-6 my-2 m-0\">{{ media.title }}</h3>
  234.                             <hr class=\"my-1 mx-1\">
  235.                             {{ media.description }}
  236.                         </a>
  237.                     {% endfor %}
  238.                 {% endfor %}
  239.             </div>
  240.         </div>
  241.     </section>
  242.     
  243.     
  244. {% endblock %}
  245. ""pages/galerie.html.twig""/var/www/vhosts/fereol-depannage.com/preprod.fereol-depannage.com/templates/pages/galerie.html.twig");
  246.     }
  247. }