var/cache/dev/twig/85/853e27079e65d8db64678839c1b25aee41117b2a3145eeecc6a2985e62031f50.php line 38

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/formations.html.twig */
  14. class __TwigTemplate_0fcedfb2e43d00489a601e468bb0fb572e874c23a8e52c54589116cf2ed8fff6 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/formations.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/formations.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); })()), "label", [], "any"falsefalsefalse1)) : ("Formations"));
  40.         // line 2
  41.         $context["description"] = "Des offres de formations variées et adaptées aux contextes béninois et international";
  42.         // line 3
  43.         $context["menu"] = "formations";
  44.         // line 4
  45.         $context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/formations.jpg");
  46.         // line 5
  47.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig""Default/formations.html.twig"5)->unwrap();
  48.         // line 7
  49.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/formations.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/formations.html.twig"23)->display(twig_array_merge($context, ["placeholder" => "Rechercher une formation ici...""target" => ".formation""search" => true]));
  73.         // line 24
  74.         echo "
  75.     <div class='list ";
  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["list"]) || array_key_exists("list"$context) ? $context["list"] : (function () { throw new RuntimeError('Variable "list" 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_formation", [$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["list"]) || array_key_exists("list"$context) ? $context["list"] : (function () { throw new RuntimeError('Variable "list" 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["list"]) || array_key_exists("list"$context) ? $context["list"] : (function () { throw new RuntimeError('Variable "list" 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/formations.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/formations.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.label : 'Formations' %}
  146. {% set description = \"Des offres de formations variées et adaptées aux contextes béninois et international\" %}
  147. {% set menu = 'formations' %}
  148. {% set banner = asset('images/formations.jpg') %}
  149. {% import \"Default/macros.html.twig\" as macros %}
  150. {% extends 'Default/base.html.twig' %}
  151. {#
  152. {% set list = [] %}
  153. {% set list = list|merge([{id:1,title:\"LA CORRUPTION : DÉTECTION, PRÉVENTION, RÉPRESSION\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-1.png\"}]) %}
  154. {% set list = list|merge([{id:1,title:\"DÉPISTAGE, IDENTIFICATION, SAISIE ET CONFISCATION DES AVOIRS CRIMINELS\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-2.png\"}]) %}
  155. {% set list = list|merge([{id:1,title:\"PREUVE PÉNALE ET PROGRÈS SCIENTIFIQUE\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-3.png\"}]) %}
  156. {% set list = list|merge([{id:1,title:\"CYBERCRIMINALITÉ ET PREUVES NUMÉRIQUES\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-2.png\"}]) %}
  157. {% set list = list|merge([{id:1,title:\"LES VIOLENCES AU SEIN DU COUPLE\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-3.png\"}]) %}
  158. {% set list = list|merge([{id:1,title:\"DU PRONONCÉ À L’EXÉCUTION DE LA PEINE : QUELLE COLLABORATION POUR LES ACTEURS ?\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-1.png\"}]) %}
  159. {% set list = list|merge([{id:1,title:\"SÉCURISATION JURIDIQUE ET DROIT DES CONTRATS\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-1.png\"}]) %}
  160. {% set list = list|merge([{id:1,title:\"CONTENTIEUX FAMILIAL ET DROIT INTERNATIONAL\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-2.png\"}]) %}
  161. {% set list = list|merge([{id:1,title:\"LE DROIT ONUSIEN DES LIBERTÉS FONDAMENTALES\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-3.png\"}]) %} #}
  162. {% block content %}
  163. <div class='gpadding {{desktop(\"vt-60-in\")}} {{mobile(\"vt-30-in\")}} '>
  164.     {% include(\"Default/filter.html.twig\") with {placeholder: \"Rechercher une formation ici...\", target:\".formation\", search:true} %}
  165.     <div class='list {{desktop(\"flex row space wrap\")}} {{mobile(\"\")}}'>
  166.         {% for o in list %}
  167.         {{macros.formation(o)}}
  168.         {% endfor %}
  169.         {% if isDesktop() and (list|length % 3) %}
  170.         {% for o in 1..(3 - list|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/formations.html.twig""/home/adminroot/www/templates/Default/formations.html.twig");
  181.     }
  182. }