<?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/profession.html.twig */
class __TwigTemplate_41303e45269e88315acefdb987d2fb6fba710be9d18801ebb574e6fcc1477824 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'titlebox' => [$this, 'block_titlebox'],
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 8
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/profession.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/profession.html.twig"));
// line 1
$context["title"] = twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 1, $this->source); })()), "name", [], "any", false, false, false, 1);
// line 2
$context["desc"] = twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 2, $this->source); })()), "description", [], "any", false, false, false, 2);
// line 3
$context["menu"] = "professions";
// line 4
if (twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 4, $this->source); })()), "banner", [], "any", false, false, false, 4)) {
// line 5
$context["thumbnail"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 5, $this->source); })()), "banner", [], "any", false, false, false, 5), "thumbnail", [], "any", false, false, false, 5);
// line 6
$context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 6, $this->source); })()), "banner", [], "any", false, false, false, 6), "file", [], "any", false, false, false, 6));
}
// line 9
$macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig", "Default/profession.html.twig", 9)->unwrap();
// line 8
$this->parent = $this->loadTemplate("Default/base.html.twig", "Default/profession.html.twig", 8);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 11
public function block_titlebox($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", "titlebox"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "titlebox"));
// line 12
echo "<div class='relative white w100 ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-40-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
";
// line 13
$this->displayBlock('title', $context, $blocks);
// line 16
echo "</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
public function block_title($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", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 14
echo " <h1 class='h3 upper lh-1 text-center'>";
((array_key_exists("title", $context)) ? (print (twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 14, $this->source); })()), "html", null, true))) : (print ("")));
echo "</h1>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 19
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 20
echo "<div class='";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["gpadding vt-40-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["gpadding vt-30-in"]), "html", null, true);
echo " '>
<div class='";
// line 21
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["gpadding flex col center top"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
<div id='article' class='w100 ";
// line 22
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-20-in"]), "html", null, true);
echo "'>
<figure class=\"w100 ";
// line 23
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html", null, true);
echo "\">
<img src=\"";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 24, $this->source); })()), "banner", [], "any", false, false, false, 24)), "html", null, true);
echo "\" class=\"block w100\"/>
</figure>
<article class='p article black ";
// line 26
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["top-30"]), "html", null, true);
echo "'>
";
// line 27
echo twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 27, $this->source); })()), "content", [], "any", false, false, false, 27);
echo "
</article>
</div>
";
// line 31
$context["list"] = [];
// line 32
echo " ";
$context["list"] = twig_array_merge((isset($context["list"]) || array_key_exists("list", $context) ? $context["list"] : (function () { throw new RuntimeError('Variable "list" does not exist.', 32, $this->source); })()), [0 => ["id" => 1, "title" => "LA CORRUPTION : DÉTECTION, PRÉVENTION, RÉPRESSION", "slug" => "article", "date" => twig_date_format_filter($this->env, "now"), "banner" => "images/formation-1.png"]]);
// line 33
echo " ";
$context["list"] = twig_array_merge((isset($context["list"]) || array_key_exists("list", $context) ? $context["list"] : (function () { throw new RuntimeError('Variable "list" does not exist.', 33, $this->source); })()), [0 => ["id" => 1, "title" => "DÉPISTAGE, IDENTIFICATION, SAISIE ET CONFISCATION DES AVOIRS CRIMINELS", "slug" => "article", "date" => twig_date_format_filter($this->env, "now"), "banner" => "images/formation-2.png"]]);
// line 34
echo " ";
$context["list"] = twig_array_merge((isset($context["list"]) || array_key_exists("list", $context) ? $context["list"] : (function () { throw new RuntimeError('Variable "list" does not exist.', 34, $this->source); })()), [0 => ["id" => 1, "title" => "PREUVE PÉNALE ET PROGRÈS SCIENTIFIQUE", "slug" => "article", "date" => twig_date_format_filter($this->env, "now"), "banner" => "images/formation-3.png"]]);
// line 35
echo "
\t</div>
<div class=\"w100 ";
// line 38
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["top-60"]), "html", null, true);
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["top-20"]), "html", null, true);
echo "\">
<h2 class=\"h2 special-alt left-30-in extrabold ";
// line 39
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["half"]), "html", null, true);
echo "\">Formations liées à cette profession</h2>
<div class='list ";
// line 40
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 41
$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.', 41, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 42
echo " ";
echo twig_call_macro($macros["macros"], "macro_formation", [$context["o"]], 42, $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 44
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.', 44, $this->source); })())) % 3))) {
// line 45
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.', 45, $this->source); })())) % 3))));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 46
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 48
echo " ";
}
// line 49
echo " </div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Default/profession.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 240 => 49, 237 => 48, 230 => 46, 225 => 45, 222 => 44, 213 => 42, 209 => 41, 203 => 40, 199 => 39, 194 => 38, 189 => 35, 186 => 34, 183 => 33, 180 => 32, 178 => 31, 171 => 27, 167 => 26, 162 => 24, 158 => 23, 152 => 22, 146 => 21, 139 => 20, 129 => 19, 116 => 14, 106 => 13, 95 => 16, 93 => 13, 86 => 12, 76 => 11, 65 => 8, 63 => 9, 60 => 6, 58 => 5, 56 => 4, 54 => 3, 52 => 2, 50 => 1, 37 => 8,);
}
public function getSourceContext()
{
return new Source("{% set title = item.name %}
{% set desc = item.description %}
{% set menu = 'professions' %}
{% if item.banner %}
{% set thumbnail = item.banner.thumbnail %}
{% set banner = asset(item.banner.file) %}
{% endif %}
{% extends 'Default/base.html.twig' %}
{% import \"Default/macros.html.twig\" as macros %}
{% block titlebox %}
<div class='relative white w100 {{desktop(\"vt-40-in\")}} {{mobile(\"\")}}'>
{% block title %}
<h1 class='h3 upper lh-1 text-center'>{{title is defined ? title}}</h1>
{% endblock title %}
</div>
{% endblock titlebox %}
{% block content %}
<div class='{{desktop(\"gpadding vt-40-in\")}} {{mobile(\"gpadding vt-30-in\")}} '>
<div class='{{desktop(\"gpadding flex col center top\")}} {{mobile(\"\")}}'>
<div id='article' class='w100 {{desktop(\"\")}} {{mobile(\"vt-20-in\")}}'>
<figure class=\"w100 {{desktop('')}}\">
<img src=\"{{asset(item.banner)}}\" class=\"block w100\"/>
</figure>
<article class='p article black {{desktop(\"top-30\")}}'>
{{ item.content|raw }}
</article>
</div>
{% 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\"}]) %}
\t</div>
<div class=\"w100 {{desktop('top-60')}}{{mobile('top-20')}}\">
<h2 class=\"h2 special-alt left-30-in extrabold {{desktop('half')}}\">Formations liées à cette profession</h2>
<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>
</div>
{% endblock %}
", "Default/profession.html.twig", "/home/adminroot/www/templates/Default/profession.html.twig");
}
}