var/cache/dev/twig/f5/f5c951481dab99e9c82fa517b1443bf5332a543c925abe6ed13772780f4a1d2b.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/professions.html.twig */
  14. class __TwigTemplate_cbe9b77c2298556f96af846d82edf47a09280212d0c9ff5ef447eaf11db48e70 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/professions.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/professions.html.twig"));
  38.         // line 1
  39.         $context["title"] = "Professions Judiciaires";
  40.         // line 2
  41.         $context["description"] = "Plus d'informations sur les métiers et professions judiciaires liés à nos formations";
  42.         // line 3
  43.         $context["menu"] = "professions";
  44.         // line 4
  45.         $context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/professions.jpg");
  46.         // line 5
  47.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig""Default/professions.html.twig"5)->unwrap();
  48.         // line 7
  49.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/professions.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='bg-warning 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/professions.html.twig"23)->display(twig_array_merge($context, ["placeholder" => "Rechercher une profession ici...""target" => ".profession""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_profession", [$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/professions.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/professions.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 = 'Professions Judiciaires' %}
  146. {% set description = \"Plus d'informations sur les métiers et professions judiciaires liés à nos formations\" %}
  147. {% set menu = 'professions' %}
  148. {% set banner = asset('images/professions.jpg') %}
  149. {% import \"Default/macros.html.twig\" as macros %}
  150. {% extends 'Default/base.html.twig' %}
  151. {# {% set list = [] %}
  152. {% set list = list|merge([{id:1,title:\"Conseiller juridique\", slug:\"article\", banner:\"images/conseiller.webp\"}]) %}
  153. {% set list = list|merge([{id:1,title:\"Notaire\", slug:\"article\", banner:\"images/notaire.webp\"}]) %}
  154. {% set list = list|merge([{id:1,title:\"Avocat de barreau\", slug:\"article\", banner:\"images/avocat.jpg\"}]) %}
  155. {% set list = list|merge([{id:1,title:\"Procureur\", slug:\"article\", banner:\"images/procureur.jpg\"}]) %}
  156. {% set list = list|merge([{id:1,title:\"Juge\", slug:\"article\", banner:\"images/juge.jpg\"}]) %}
  157. {% set list = list|merge([{id:1,title:\"Magistrat\", slug:\"article\", banner:\"images/magistrat.webp\"}]) %}
  158. {% set list = list|merge([{id:1,title:\"Huissier de justice\", slug:\"article\", banner:\"images/huissier.webp\"}]) %}
  159. {% set list = list|merge([{id:1,title:\"Conseiller juridique\", slug:\"article\", banner:\"images/avocat.jpg\"}]) %}
  160. {% set list = list|merge([{id:1,title:\"Procureur\", slug:\"article\", banner:\"images/procureur.jpg\"}]) %} #}
  161. {% block content %}
  162. <div class='bg-warning gpadding {{desktop(\"vt-60-in\")}} {{mobile(\"vt-30-in\")}} '>
  163.     {% include(\"Default/filter.html.twig\") with {placeholder: \"Rechercher une profession ici...\", target:\".profession\", search:true} %}
  164.     <div class='list {{desktop(\"flex row space wrap\")}} {{mobile(\"\")}}'>
  165.         {% for o in list %}
  166.         {{macros.profession(o)}}
  167.         {% endfor %}
  168.         {% if isDesktop() and (list|length % 3) %}
  169.         {% for o in 1..(3 - list|length % 3) %}
  170.         <i class=\"third-20\"></i>
  171.         {% endfor %}
  172.         {% endif %}
  173.     </div>
  174.     <div class='{{desktop(\"\")}}'>
  175.     {% include (\"Default/counter.html.twig\") with {expanded:true} %}
  176.     </div>
  177. </div>
  178. {% endblock %}
  179. ""Default/professions.html.twig""/home/adminroot/www/templates/Default/professions.html.twig");
  180.     }
  181. }