var/cache/dev/twig/d9/d99d1ce8448755ec3519e4cc50ac753ed1fba375638406d73205714f828089b2.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_faceb1134bdcb345750fb06677422b7ddab7a03502db082a7ea6052bee7e51db 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 4
  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)) : ("Documenthèque"));
  40.         // line 2
  41.         $context["menu"] = "documents";
  42.         // line 3
  43.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig""Default/resources.html.twig"3)->unwrap();
  44.         // line 4
  45.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/resources.html.twig"4);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 6
  53.     public function block_content($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  60.         // line 7
  61.         echo "<div class='gpadding ";
  62.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-20-in"]), "html"nulltrue);
  63.         echo " ";
  64.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-20-in"]), "html"nulltrue);
  65.         echo " '>
  66.     <div class='articles ";
  67.         // line 8
  68.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row space wrap"]), "html"nulltrue);
  69.         echo " ";
  70.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  71.         echo "'>
  72.         ";
  73.         // line 9
  74.         $context['_parent'] = $context;
  75.         $context['_seq'] = twig_ensure_traversable((isset($context["list"]) || array_key_exists("list"$context) ? $context["list"] : (function () { throw new RuntimeError('Variable "list" does not exist.'9$this->source); })()));
  76.         foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  77.             // line 10
  78.             echo "        ";
  79.             echo twig_call_macro($macros["macros"], "macro_doc", [$context["o"]], 10$context$this->getSourceContext());
  80.             echo "
  81.         ";
  82.         }
  83.         $_parent $context['_parent'];
  84.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  85.         $context array_intersect_key($context$_parent) + $_parent;
  86.         // line 12
  87.         echo "    </div>
  88.     <div class='";
  89.         // line 13
  90.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  91.         echo "'>
  92.     ";
  93.         // line 14
  94.         $this->loadTemplate("Default/counter.html.twig""Default/resources.html.twig"14)->display(twig_array_merge($context, ["expanded" => true]));
  95.         // line 15
  96.         echo "    </div>
  97. </div>
  98. ";
  99.         
  100.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  101.         
  102.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  103.     }
  104.     public function getTemplateName()
  105.     {
  106.         return "Default/resources.html.twig";
  107.     }
  108.     public function isTraitable()
  109.     {
  110.         return false;
  111.     }
  112.     public function getDebugInfo()
  113.     {
  114.         return array (  110 => 15,  108 => 14,  104 => 13,  101 => 12,  92 => 10,  88 => 9,  82 => 8,  75 => 7,  65 => 6,  54 => 4,  52 => 3,  50 => 2,  48 => 1,  35 => 4,);
  115.     }
  116.     public function getSourceContext()
  117.     {
  118.         return new Source("{% set title = cat ? cat.label : 'Documenthèque' %}
  119. {% set menu = 'documents' %}
  120. {% import \"Default/macros.html.twig\" as macros %}
  121. {% extends 'Default/base.html.twig' %}
  122. {% block content %}
  123. <div class='gpadding {{desktop(\"vt-20-in\")}} {{mobile(\"vt-20-in\")}} '>
  124.     <div class='articles {{desktop(\"flex row space wrap\")}} {{mobile(\"\")}}'>
  125.         {% for o in list %}
  126.         {{macros.doc(o)}}
  127.         {% endfor %}
  128.     </div>
  129.     <div class='{{desktop(\"\")}}'>
  130.     {% include (\"Default/counter.html.twig\") with {expanded:true} %}
  131.     </div>
  132. </div>
  133. {% endblock %}
  134. ""Default/resources.html.twig""/home/olasoftnka/cefal/templates/Default/resources.html.twig");
  135.     }
  136. }