var/cache/dev/twig/c5/c530d7313edc4020809c65c165428354169da984a5e62b06ed1e117bf9630803.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/resources.html.twig */
  14. class __TwigTemplate_26308a9ab81f64cb33155e8bd545b0d30ffd9f0d3a29345a1ce5420da66d40ad 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 6
  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/resources.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/resources.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)) : ("Documentation"));
  40.         // line 2
  41.         $context["description"] = (((isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'2$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.'2$this->source); })()), "description", [], "any"falsefalsefalse2)) : ("Toutes documents relatifs à la formation des professions judiciaires"));
  42.         // line 3
  43.         $context["menu"] = "documents";
  44.         // line 4
  45.         $context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/articles.jpg");
  46.         // line 5
  47.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig""Default/resources.html.twig"5)->unwrap();
  48.         // line 6
  49.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/resources.html.twig"6);
  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 8
  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 9
  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-20-in"]), "html"nulltrue);
  69.         echo " '>
  70.     ";
  71.         // line 11
  72.         $this->loadTemplate("Default/filter.html.twig""Default/resources.html.twig"11)->display(twig_array_merge($context, ["placeholder" => "Rechercher un document ici...""target" => ".doc""search" => true]));
  73.         // line 12
  74.         echo "
  75.     <div class='articles ";
  76.         // line 13
  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 14
  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.'14$this->source); })()));
  85.         foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  86.             // line 15
  87.             echo "        ";
  88.             echo twig_call_macro($macros["macros"], "macro_doc", [$context["o"]], 15$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 17
  96.         echo "    </div>
  97.     <div class='";
  98.         // line 18
  99.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  100.         echo "'>
  101.     ";
  102.         // line 19
  103.         $this->loadTemplate("Default/counter.html.twig""Default/resources.html.twig"19)->display(twig_array_merge($context, ["expanded" => true]));
  104.         // line 20
  105.         echo "    </div>
  106. </div>
  107. ";
  108.         
  109.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  110.         
  111.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  112.     }
  113.     public function getTemplateName()
  114.     {
  115.         return "Default/resources.html.twig";
  116.     }
  117.     public function isTraitable()
  118.     {
  119.         return false;
  120.     }
  121.     public function getDebugInfo()
  122.     {
  123.         return array (  120 => 20,  118 => 19,  114 => 18,  111 => 17,  102 => 15,  98 => 14,  92 => 13,  89 => 12,  87 => 11,  79 => 9,  69 => 8,  58 => 6,  56 => 5,  54 => 4,  52 => 3,  50 => 2,  48 => 1,  35 => 6,);
  124.     }
  125.     public function getSourceContext()
  126.     {
  127.         return new Source("{% set title = cat ? cat.label : 'Documentation' %}
  128. {% set description = cat ? cat.description : \"Toutes documents relatifs à la formation des professions judiciaires\" %}
  129. {% set menu = 'documents' %}
  130. {% set banner = asset('images/articles.jpg') %}
  131. {% import \"Default/macros.html.twig\" as macros %}
  132. {% extends 'Default/base.html.twig' %}
  133. {% block content %}
  134. <div class='gpadding {{desktop(\"vt-60-in\")}} {{mobile(\"vt-20-in\")}} '>
  135.     {% include(\"Default/filter.html.twig\") with {placeholder: \"Rechercher un document ici...\", target:\".doc\", search:true} %}
  136.     <div class='articles {{desktop(\"flex row space wrap\")}} {{mobile(\"\")}}'>
  137.         {% for o in list %}
  138.         {{macros.doc(o)}}
  139.         {% endfor %}
  140.     </div>
  141.     <div class='{{desktop(\"\")}}'>
  142.     {% include (\"Default/counter.html.twig\") with {expanded:true} %}
  143.     </div>
  144. </div>
  145. {% endblock %}
  146. ""Default/resources.html.twig""/home/adminroot/www/templates/Default/resources.html.twig");
  147.     }
  148. }