var/cache/dev/twig/94/94a3e3041b81fef0ae5d7418e4212fc5307d797bfd7ae04b9afb4b0cd418812c.php line 59

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. /* Default/articles.html.twig */
  14. class __TwigTemplate_0cc3f3371204545c1455fc3fa3f5792641c9b00ab14d81907152c4e27b9cc23d 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 7
  29.         return "Default/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""Default/articles.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""Default/articles.html.twig"));
  38.         // line 1
  39.         $context["title"] = (((isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'1$this->source); })())) ? (twig_get_attribute($this->env$this->source, (isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'1$this->source); })()), "name", [], "any"falsefalsefalse1)) : ("Actualités"));
  40.         // line 2
  41.         $context["description"] = (((isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'2$this->source); })())) ? (twig_get_attribute($this->env$this->source, (isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'2$this->source); })()), "description", [], "any"falsefalsefalse2)) : ("Toutes les actualités relatives à la formation des professions judiciaires"));
  42.         // line 3
  43.         $context["menu"] = "articles";
  44.         // line 4
  45.         $context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/articles.jpg");
  46.         // line 5
  47.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig""Default/articles.html.twig"5)->unwrap();
  48.         // line 7
  49.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/articles.html.twig"7);
  50.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  53.         
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  55.     }
  56.     // line 20
  57.     public function block_content($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  64.         // line 21
  65.         echo "<div class='gpadding ";
  66.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-60-in"]), "html"nulltrue);
  67.         echo " ";
  68.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-30-in"]), "html"nulltrue);
  69.         echo " '>
  70.     ";
  71.         // line 23
  72.         $this->loadTemplate("Default/filter.html.twig""Default/articles.html.twig"23)->display(twig_array_merge($context, ["placeholder" => "Rechercher un article ici...""target" => ".news""search" => true]));
  73.         // line 24
  74.         echo "
  75.     <div class='articles ";
  76.         // line 25
  77.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row space wrap"]), "html"nulltrue);
  78.         echo " ";
  79.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  80.         echo "'>
  81.         ";
  82.         // line 26
  83.         $context['_parent'] = $context;
  84.         $context['_seq'] = twig_ensure_traversable((isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'26$this->source); })()));
  85.         foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  86.             // line 27
  87.             echo "        ";
  88.             echo twig_call_macro($macros["macros"], "macro_article", [$context["o"]], 27$context$this->getSourceContext());
  89.             echo "
  90.         ";
  91.         }
  92.         $_parent $context['_parent'];
  93.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  94.         $context array_intersect_key($context$_parent) + $_parent;
  95.         // line 29
  96.         echo "        ";
  97.         if ((call_user_func_array($this->env->getFunction('isDesktop')->getCallable(), []) && (twig_length_filter($this->env, (isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'29$this->source); })())) % 3))) {
  98.             // line 30
  99.             echo "        ";
  100.             $context['_parent'] = $context;
  101.             $context['_seq'] = twig_ensure_traversable(range(1, (- (twig_length_filter($this->env, (isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'30$this->source); })())) % 3))));
  102.             foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  103.                 // line 31
  104.                 echo "        <i class=\"third-20\"></i>
  105.         ";
  106.             }
  107.             $_parent $context['_parent'];
  108.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  109.             $context array_intersect_key($context$_parent) + $_parent;
  110.             // line 33
  111.             echo "        ";
  112.         }
  113.         // line 34
  114.         echo "    </div>
  115.     <div class='";
  116.         // line 35
  117.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  118.         echo "'>
  119.     ";
  120.         // line 36
  121.         $this->loadTemplate("Default/counter.html.twig""Default/articles.html.twig"36)->display(twig_array_merge($context, ["expanded" => true]));
  122.         // line 37
  123.         echo "    </div>
  124. </div>
  125. ";
  126.         
  127.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  128.         
  129.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  130.     }
  131.     public function getTemplateName()
  132.     {
  133.         return "Default/articles.html.twig";
  134.     }
  135.     public function isTraitable()
  136.     {
  137.         return false;
  138.     }
  139.     public function getDebugInfo()
  140.     {
  141.         return array (  138 => 37,  136 => 36,  132 => 35,  129 => 34,  126 => 33,  119 => 31,  114 => 30,  111 => 29,  102 => 27,  98 => 26,  92 => 25,  89 => 24,  87 => 23,  79 => 21,  69 => 20,  58 => 7,  56 => 5,  54 => 4,  52 => 3,  50 => 2,  48 => 1,  35 => 7,);
  142.     }
  143.     public function getSourceContext()
  144.     {
  145.         return new Source("{% set title = cat ? cat.name : 'Actualités' %}
  146. {% set description = cat ? cat.description : \"Toutes les actualités relatives à la formation des professions judiciaires\" %}
  147. {% set menu = 'articles' %}
  148. {% set banner = asset('images/articles.jpg') %}
  149. {% import \"Default/macros.html.twig\" as macros %}
  150. {% extends 'Default/base.html.twig' %}
  151. {#
  152. {% set articles = [] %}
  153. {% set articles = articles|merge([{id:1,title:\"Ouverture prochaine de la rentrée scolaire 2022-2023 à l'EFPJ\", slug:\"article\", date:\"now\"|date}]) %}
  154. {% set articles = articles|merge([{id:1,title:\"Ouverture prochaine de la rentrée scolaire 2022-2023 à l'EFPJ\", slug:\"article\", date:\"now\"|date}]) %}
  155. {% set articles = articles|merge([{id:1,title:\"Ouverture prochaine de la rentrée scolaire 2022-2023 à l'EFPJ\", slug:\"article\", date:\"now\"|date}]) %}
  156. {% set articles = articles|merge([{id:1,title:\"Ouverture prochaine de la rentrée scolaire 2022-2023 à l'EFPJ\", slug:\"article\", date:\"now\"|date}]) %}
  157. {% set articles = articles|merge([{id:1,title:\"Ouverture prochaine de la rentrée scolaire 2022-2023 à l'EFPJ\", slug:\"article\", date:\"now\"|date}]) %}
  158. {% set articles = articles|merge([{id:1,title:\"Ouverture prochaine de la rentrée scolaire 2022-2023 à l'EFPJ\", slug:\"article\", date:\"now\"|date}]) %}
  159. {% set articles = articles|merge([{id:1,title:\"Ouverture prochaine de la rentrée scolaire 2022-2023 à l'EFPJ\", slug:\"article\", date:\"now\"|date}]) %}
  160. {% set articles = articles|merge([{id:1,title:\"Ouverture prochaine de la rentrée scolaire 2022-2023 à l'EFPJ\", slug:\"article\", date:\"now\"|date}]) %}
  161. {% set articles = articles|merge([{id:1,title:\"Ouverture prochaine de la rentrée scolaire 2022-2023 à l'EFPJ\", slug:\"article\", date:\"now\"|date}]) %} #}
  162. {% block content %}
  163. <div class='gpadding {{desktop(\"vt-60-in\")}} {{mobile(\"vt-30-in\")}} '>
  164.     {% include(\"Default/filter.html.twig\") with {placeholder: \"Rechercher un article ici...\", target:\".news\", search:true} %}
  165.     <div class='articles {{desktop(\"flex row space wrap\")}} {{mobile(\"\")}}'>
  166.         {% for o in articles %}
  167.         {{macros.article(o)}}
  168.         {% endfor %}
  169.         {% if isDesktop() and (articles|length % 3) %}
  170.         {% for o in 1..(3 - articles|length % 3) %}
  171.         <i class=\"third-20\"></i>
  172.         {% endfor %}
  173.         {% endif %}
  174.     </div>
  175.     <div class='{{desktop(\"\")}}'>
  176.     {% include (\"Default/counter.html.twig\") with {expanded:true} %}
  177.     </div>
  178. </div>
  179. {% endblock %}
  180. ""Default/articles.html.twig""/home/adminroot/www/templates/Default/articles.html.twig");
  181.     }
  182. }