<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Default/formations.html.twig */
class __TwigTemplate_0fcedfb2e43d00489a601e468bb0fb572e874c23a8e52c54589116cf2ed8fff6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 7
return "Default/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/formations.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/formations.html.twig"));
// line 1
$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", false, false, false, 1)) : ("Formations"));
// line 2
$context["description"] = "Des offres de formations variées et adaptées aux contextes béninois et international";
// line 3
$context["menu"] = "formations";
// line 4
$context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/formations.jpg");
// line 5
$macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig", "Default/formations.html.twig", 5)->unwrap();
// line 7
$this->parent = $this->loadTemplate("Default/base.html.twig", "Default/formations.html.twig", 7);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 20
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 21
echo "<div class='gpadding ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-60-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-30-in"]), "html", null, true);
echo " '>
";
// line 23
$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]));
// line 24
echo "
<div class='list ";
// line 25
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row space wrap"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
";
// line 26
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 27
echo " ";
echo twig_call_macro($macros["macros"], "macro_formation", [$context["o"]], 27, $context, $this->getSourceContext());
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
echo " ";
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))) {
// line 30
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, (3 - (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))));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 31
echo " <i class=\"third-20\"></i>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
echo " ";
}
// line 34
echo " </div>
<div class='";
// line 35
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html", null, true);
echo "'>
";
// line 36
$this->loadTemplate("Default/counter.html.twig", "Default/formations.html.twig", 36)->display(twig_array_merge($context, ["expanded" => true]));
// line 37
echo " </div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Default/formations.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set title = cat ? cat.label : 'Formations' %}
{% set description = \"Des offres de formations variées et adaptées aux contextes béninois et international\" %}
{% set menu = 'formations' %}
{% set banner = asset('images/formations.jpg') %}
{% import \"Default/macros.html.twig\" as macros %}
{% extends 'Default/base.html.twig' %}
{#
{% set list = [] %}
{% 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\"}]) %}
{% 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\"}]) %}
{% set list = list|merge([{id:1,title:\"PREUVE PÉNALE ET PROGRÈS SCIENTIFIQUE\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-3.png\"}]) %}
{% set list = list|merge([{id:1,title:\"CYBERCRIMINALITÉ ET PREUVES NUMÉRIQUES\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-2.png\"}]) %}
{% set list = list|merge([{id:1,title:\"LES VIOLENCES AU SEIN DU COUPLE\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-3.png\"}]) %}
{% 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\"}]) %}
{% set list = list|merge([{id:1,title:\"SÉCURISATION JURIDIQUE ET DROIT DES CONTRATS\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-1.png\"}]) %}
{% set list = list|merge([{id:1,title:\"CONTENTIEUX FAMILIAL ET DROIT INTERNATIONAL\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-2.png\"}]) %}
{% set list = list|merge([{id:1,title:\"LE DROIT ONUSIEN DES LIBERTÉS FONDAMENTALES\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-3.png\"}]) %} #}
{% block content %}
<div class='gpadding {{desktop(\"vt-60-in\")}} {{mobile(\"vt-30-in\")}} '>
{% include(\"Default/filter.html.twig\") with {placeholder: \"Rechercher une formation ici...\", target:\".formation\", search:true} %}
<div class='list {{desktop(\"flex row space wrap\")}} {{mobile(\"\")}}'>
{% for o in list %}
{{macros.formation(o)}}
{% endfor %}
{% if isDesktop() and (list|length % 3) %}
{% for o in 1..(3 - list|length % 3) %}
<i class=\"third-20\"></i>
{% endfor %}
{% endif %}
</div>
<div class='{{desktop(\"\")}}'>
{% include (\"Default/counter.html.twig\") with {expanded:true} %}
</div>
</div>
{% endblock %}
", "Default/formations.html.twig", "/home/adminroot/www/templates/Default/formations.html.twig");
}
}