var/cache/dev/twig/07/07cc35e2595a502ff1b9309d24f5772bf6ea2d473fc7707866a95d687e4f0640.php line 40

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/profession.html.twig */
  14. class __TwigTemplate_41303e45269e88315acefdb987d2fb6fba710be9d18801ebb574e6fcc1477824 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.             'titlebox' => [$this'block_titlebox'],
  24.             'title' => [$this'block_title'],
  25.             'content' => [$this'block_content'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 8
  31.         return "Default/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/profession.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/profession.html.twig"));
  40.         // line 1
  41.         $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"falsefalsefalse1);
  42.         // line 2
  43.         $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"falsefalsefalse2);
  44.         // line 3
  45.         $context["menu"] = "professions";
  46.         // line 4
  47.         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"falsefalsefalse4)) {
  48.             // line 5
  49.             $context["thumbnail"] = twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse5), "thumbnail", [], "any"falsefalsefalse5);
  50.             // line 6
  51.             $context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse6), "file", [], "any"falsefalsefalse6));
  52.         }
  53.         // line 9
  54.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig""Default/profession.html.twig"9)->unwrap();
  55.         // line 8
  56.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/profession.html.twig"8);
  57.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  58.         
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  60.         
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  62.     }
  63.     // line 11
  64.     public function block_titlebox($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""titlebox"));
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""titlebox"));
  71.         // line 12
  72.         echo "<div class='relative white w100 ";
  73.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-40-in"]), "html"nulltrue);
  74.         echo " ";
  75.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  76.         echo "'>
  77.     ";
  78.         // line 13
  79.         $this->displayBlock('title'$context$blocks);
  80.         // line 16
  81.         echo "</div>
  82. ";
  83.         
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  85.         
  86.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  87.     }
  88.     // line 13
  89.     public function block_title($context, array $blocks = [])
  90.     {
  91.         $macros $this->macros;
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  93.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  94.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  96.         // line 14
  97.         echo "    <h1 class='h3 upper lh-1 text-center'>";
  98.         ((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"nulltrue))) : (print ("")));
  99.         echo "</h1>
  100.     ";
  101.         
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  103.         
  104.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  105.     }
  106.     // line 19
  107.     public function block_content($context, array $blocks = [])
  108.     {
  109.         $macros $this->macros;
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  111.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  114.         // line 20
  115.         echo "<div class='";
  116.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["gpadding vt-40-in"]), "html"nulltrue);
  117.         echo " ";
  118.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["gpadding vt-30-in"]), "html"nulltrue);
  119.         echo " '>
  120.     <div class='";
  121.         // line 21
  122.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["gpadding flex col center top"]), "html"nulltrue);
  123.         echo " ";
  124.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  125.         echo "'>
  126.         <div id='article' class='w100 ";
  127.         // line 22
  128.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  129.         echo " ";
  130.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-20-in"]), "html"nulltrue);
  131.         echo "'>
  132.             <figure class=\"w100 ";
  133.         // line 23
  134.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  135.         echo "\">
  136.                 <img src=\"";
  137.         // line 24
  138.         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"falsefalsefalse24)), "html"nulltrue);
  139.         echo "\" class=\"block w100\"/>
  140.             </figure>
  141.             <article  class='p article black ";
  142.         // line 26
  143.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["top-30"]), "html"nulltrue);
  144.         echo "'>
  145.             ";
  146.         // line 27
  147.         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"falsefalsefalse27);
  148.         echo "
  149.             </article>
  150.         </div>
  151.         ";
  152.         // line 31
  153.         $context["list"] = [];
  154.         // line 32
  155.         echo "        ";
  156.         $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); })()), [=> ["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"]]);
  157.         // line 33
  158.         echo "        ";
  159.         $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); })()), [=> ["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"]]);
  160.         // line 34
  161.         echo "        ";
  162.         $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); })()), [=> ["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"]]);
  163.         // line 35
  164.         echo "
  165. \t</div>
  166.     <div class=\"w100 ";
  167.         // line 38
  168.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["top-60"]), "html"nulltrue);
  169.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["top-20"]), "html"nulltrue);
  170.         echo "\">
  171.         <h2 class=\"h2 special-alt left-30-in extrabold ";
  172.         // line 39
  173.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["half"]), "html"nulltrue);
  174.         echo "\">Formations liées à cette profession</h2>
  175.         <div class='list ";
  176.         // line 40
  177.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row space wrap"]), "html"nulltrue);
  178.         echo " ";
  179.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  180.         echo "'>
  181.             ";
  182.         // line 41
  183.         $context['_parent'] = $context;
  184.         $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); })()));
  185.         foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  186.             // line 42
  187.             echo "            ";
  188.             echo twig_call_macro($macros["macros"], "macro_formation", [$context["o"]], 42$context$this->getSourceContext());
  189.             echo "
  190.             ";
  191.         }
  192.         $_parent $context['_parent'];
  193.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  194.         $context array_intersect_key($context$_parent) + $_parent;
  195.         // line 44
  196.         echo "            ";
  197.         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))) {
  198.             // line 45
  199.             echo "            ";
  200.             $context['_parent'] = $context;
  201.             $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.'45$this->source); })())) % 3))));
  202.             foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  203.                 // line 46
  204.                 echo "            <i class=\"third-20\"></i>
  205.             ";
  206.             }
  207.             $_parent $context['_parent'];
  208.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  209.             $context array_intersect_key($context$_parent) + $_parent;
  210.             // line 48
  211.             echo "            ";
  212.         }
  213.         // line 49
  214.         echo "        </div>
  215.         </div>
  216. </div>
  217. ";
  218.         
  219.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  220.         
  221.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  222.     }
  223.     public function getTemplateName()
  224.     {
  225.         return "Default/profession.html.twig";
  226.     }
  227.     public function isTraitable()
  228.     {
  229.         return false;
  230.     }
  231.     public function getDebugInfo()
  232.     {
  233.         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,);
  234.     }
  235.     public function getSourceContext()
  236.     {
  237.         return new Source("{% set title = item.name %}
  238. {% set desc = item.description %}
  239. {% set menu = 'professions' %}
  240. {% if item.banner %}
  241. {% set thumbnail = item.banner.thumbnail %}
  242. {% set banner = asset(item.banner.file) %}
  243. {% endif %}
  244. {% extends 'Default/base.html.twig' %}
  245. {% import \"Default/macros.html.twig\" as macros %}
  246. {% block titlebox %}
  247. <div class='relative white w100 {{desktop(\"vt-40-in\")}} {{mobile(\"\")}}'>
  248.     {% block title %}
  249.     <h1 class='h3 upper lh-1 text-center'>{{title is defined ? title}}</h1>
  250.     {% endblock title %}
  251. </div>
  252. {% endblock titlebox %}
  253. {% block content %}
  254. <div class='{{desktop(\"gpadding vt-40-in\")}} {{mobile(\"gpadding vt-30-in\")}} '>
  255.     <div class='{{desktop(\"gpadding flex col center top\")}} {{mobile(\"\")}}'>
  256.         <div id='article' class='w100 {{desktop(\"\")}} {{mobile(\"vt-20-in\")}}'>
  257.             <figure class=\"w100 {{desktop('')}}\">
  258.                 <img src=\"{{asset(item.banner)}}\" class=\"block w100\"/>
  259.             </figure>
  260.             <article  class='p article black {{desktop(\"top-30\")}}'>
  261.             {{ item.content|raw }}
  262.             </article>
  263.         </div>
  264.         {% set list = [] %}
  265.         {% 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\"}]) %}
  266.         {% 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\"}]) %}
  267.         {% set list = list|merge([{id:1,title:\"PREUVE PÉNALE ET PROGRÈS SCIENTIFIQUE\", slug:\"article\", date:\"now\"|date, banner:\"images/formation-3.png\"}]) %}
  268. \t</div>
  269.     <div class=\"w100 {{desktop('top-60')}}{{mobile('top-20')}}\">
  270.         <h2 class=\"h2 special-alt left-30-in extrabold {{desktop('half')}}\">Formations liées à cette profession</h2>
  271.         <div class='list {{desktop(\"flex row space wrap\")}} {{mobile(\"\")}}'>
  272.             {% for o in list %}
  273.             {{macros.formation(o)}}
  274.             {% endfor %}
  275.             {% if isDesktop() and (list|length % 3) %}
  276.             {% for o in 1..(3 - list|length % 3) %}
  277.             <i class=\"third-20\"></i>
  278.             {% endfor %}
  279.             {% endif %}
  280.         </div>
  281.         </div>
  282. </div>
  283. {% endblock %}
  284. ""Default/profession.html.twig""/home/adminroot/www/templates/Default/profession.html.twig");
  285.     }
  286. }