var/cache/dev/twig/41/412b73202bb26579cb12e90cb35afced2c11b680281e38b0fc1a9194a9e8b339.php line 57

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_7fe6411975e6d2772db1c1cfc7e9cdde6719021e99a5228f242417fd239fbaf2 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 6
  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["subtitle"] = (((isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'2$this->source); })())) ? ("Publications") : (""));
  42.         // line 3
  43.         $context["menu"] = "articles";
  44.         // line 4
  45.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig""Default/articles.html.twig"4)->unwrap();
  46.         // line 6
  47.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/articles.html.twig"6);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  51.         
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  53.     }
  54.     // line 8
  55.     public function block_content($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  62.         // line 9
  63.         echo "<div class='gpadding ";
  64.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-20-in"]), "html"nulltrue);
  65.         echo " ";
  66.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-30-in"]), "html"nulltrue);
  67.         echo " '>
  68.     <div class='articles ";
  69.         // line 10
  70.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row space wrap"]), "html"nulltrue);
  71.         echo " ";
  72.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  73.         echo "'>
  74.         ";
  75.         // line 11
  76.         $context['_parent'] = $context;
  77.         $context['_seq'] = twig_ensure_traversable((isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'11$this->source); })()));
  78.         foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  79.             // line 12
  80.             echo "        ";
  81.             echo twig_call_macro($macros["macros"], "macro_article", [$context["o"]], 12$context$this->getSourceContext());
  82.             echo "
  83.         ";
  84.         }
  85.         $_parent $context['_parent'];
  86.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  87.         $context array_intersect_key($context$_parent) + $_parent;
  88.         // line 14
  89.         echo "        ";
  90.         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.'14$this->source); })())) % 3))) {
  91.             // line 15
  92.             echo "        ";
  93.             $context['_parent'] = $context;
  94.             $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.'15$this->source); })())) % 3))));
  95.             foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  96.                 // line 16
  97.                 echo "        <i class=\"third-20\"></i>
  98.         ";
  99.             }
  100.             $_parent $context['_parent'];
  101.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  102.             $context array_intersect_key($context$_parent) + $_parent;
  103.             // line 18
  104.             echo "        ";
  105.         }
  106.         // line 19
  107.         echo "    </div>
  108.     <div class='";
  109.         // line 20
  110.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  111.         echo "'>
  112.     ";
  113.         // line 21
  114.         $this->loadTemplate("Default/counter.html.twig""Default/articles.html.twig"21)->display(twig_array_merge($context, ["expanded" => true]));
  115.         // line 22
  116.         echo "    </div>
  117. </div>
  118. ";
  119.         
  120.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  121.         
  122.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  123.     }
  124.     public function getTemplateName()
  125.     {
  126.         return "Default/articles.html.twig";
  127.     }
  128.     public function isTraitable()
  129.     {
  130.         return false;
  131.     }
  132.     public function getDebugInfo()
  133.     {
  134.         return array (  130 => 22,  128 => 21,  124 => 20,  121 => 19,  118 => 18,  111 => 16,  106 => 15,  103 => 14,  94 => 12,  90 => 11,  84 => 10,  77 => 9,  67 => 8,  56 => 6,  54 => 4,  52 => 3,  50 => 2,  48 => 1,  35 => 6,);
  135.     }
  136.     public function getSourceContext()
  137.     {
  138.         return new Source("{% set title = cat ? cat.name : 'Actualités' %}
  139. {% set subtitle = cat ? \"Publications\" %}
  140. {% set menu = 'articles' %}
  141. {% import \"Default/macros.html.twig\" as macros %}
  142. {% extends 'Default/base.html.twig' %}
  143. {% block content %}
  144. <div class='gpadding {{desktop(\"vt-20-in\")}} {{mobile(\"vt-30-in\")}} '>
  145.     <div class='articles {{desktop(\"flex row space wrap\")}} {{mobile(\"\")}}'>
  146.         {% for o in articles %}
  147.         {{macros.article(o)}}
  148.         {% endfor %}
  149.         {% if isDesktop() and (articles|length % 3) %}
  150.         {% for o in 1..(3 - articles|length % 3) %}
  151.         <i class=\"third-20\"></i>
  152.         {% endfor %}
  153.         {% endif %}
  154.     </div>
  155.     <div class='{{desktop(\"\")}}'>
  156.     {% include (\"Default/counter.html.twig\") with {expanded:true} %}
  157.     </div>
  158. </div>
  159. {% endblock %}
  160. ""Default/articles.html.twig""/home/olasoftnka/cefal/templates/Default/articles.html.twig");
  161.     }
  162. }