var/cache/dev/twig/c0/c0a1592f9588ee854882e41fb0fd6868a6e44f12e7a2ac1fae60d8070fa89bf9.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/links.html.twig */
  14. class __TwigTemplate_4dd3fc2374439f1a86323407f05718792e604b2330535f28771a6732462dffac 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/links.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/links.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)) : ("Structures"));
  40.         // line 2
  41.         $context["subtitle"] = "Organisation";
  42.         // line 3
  43.         $context["menu"] = "links";
  44.         // line 4
  45.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig""Default/links.html.twig"4)->unwrap();
  46.         // line 6
  47.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/links.html.twig"6);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  51.         
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  53.     }
  54.     // line 8
  55.     public function block_content($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  62.         // line 9
  63.         echo "<div id=\"links\" class='gpadding ";
  64.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-60-in"]), "html"nulltrue);
  65.         echo " ";
  66.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-10-in"]), "html"nulltrue);
  67.         echo " '>
  68.     ";
  69.         // line 10
  70.         if ((isset($context["groups"]) || array_key_exists("groups"$context) ? $context["groups"] : (function () { throw new RuntimeError('Variable "groups" does not exist.'10$this->source); })())) {
  71.             // line 11
  72.             echo "    <div class=\"flex row space border-bottom border-solid border-1x border-gray ";
  73.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["hz-20-in bottom-50"]), "html"nulltrue);
  74.             echo " ";
  75.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["bottom-30"]), "html"nulltrue);
  76.             echo "\">
  77.         ";
  78.             // line 12
  79.             $context['_parent'] = $context;
  80.             $context['_seq'] = twig_ensure_traversable((isset($context["groups"]) || array_key_exists("groups"$context) ? $context["groups"] : (function () { throw new RuntimeError('Variable "groups" does not exist.'12$this->source); })()));
  81.             foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  82.                 // line 13
  83.                 echo "        <div class=\"os-tab-head relative pointer transition success upper lspacing nodefault vt-20-in\" data-target=\"#group";
  84.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["o"], "id", [], "any"falsefalsefalse13), "html"nulltrue);
  85.                 echo "\">
  86.             <label class=\"pointer\">";
  87.                 // line 14
  88.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["o"], "label", [], "any"falsefalsefalse14), "html"nulltrue);
  89.                 echo "</label>
  90.         </div>
  91.         ";
  92.             }
  93.             $_parent $context['_parent'];
  94.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  95.             $context array_intersect_key($context$_parent) + $_parent;
  96.             // line 17
  97.             echo "    </div>
  98.     <div class=\"flex row\">
  99.         ";
  100.             // line 19
  101.             $context['_parent'] = $context;
  102.             $context['_seq'] = twig_ensure_traversable((isset($context["groups"]) || array_key_exists("groups"$context) ? $context["groups"] : (function () { throw new RuntimeError('Variable "groups" does not exist.'19$this->source); })()));
  103.             foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  104.                 // line 20
  105.                 echo "        <div class='os-tab anim-display anim-from-right w100 transition-1s ";
  106.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  107.                 echo " ";
  108.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  109.                 echo "' id=\"group";
  110.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["o"], "id", [], "any"falsefalsefalse20), "html"nulltrue);
  111.                 echo "\">
  112.             <div class='w100 ";
  113.                 // line 21
  114.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row space wrap"]), "html"nulltrue);
  115.                 echo " ";
  116.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  117.                 echo "'>
  118.                 ";
  119.                 // line 22
  120.                 $context['_parent'] = $context;
  121.                 $context['_seq'] = twig_ensure_traversable((isset($context["list"]) || array_key_exists("list"$context) ? $context["list"] : (function () { throw new RuntimeError('Variable "list" does not exist.'22$this->source); })()));
  122.                 foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
  123.                     // line 23
  124.                     echo "                ";
  125.                     if ((twig_get_attribute($this->env$this->source$context["k"], "category", [], "any"falsefalsefalse23) && (=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["k"], "category", [], "any"falsefalsefalse23), "id", [], "any"falsefalsefalse23), twig_get_attribute($this->env$this->source$context["o"], "id", [], "any"falsefalsefalse23))))) {
  126.                         // line 24
  127.                         echo "                ";
  128.                         echo twig_call_macro($macros["macros"], "macro_link", [$context["k"]], 24$context$this->getSourceContext());
  129.                         echo "
  130.                 ";
  131.                     }
  132.                     // line 26
  133.                     echo "                ";
  134.                 }
  135.                 $_parent $context['_parent'];
  136.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['k'], $context['_parent'], $context['loop']);
  137.                 $context array_intersect_key($context$_parent) + $_parent;
  138.                 // line 27
  139.                 echo "            </div>
  140.         </div>
  141.         ";
  142.             }
  143.             $_parent $context['_parent'];
  144.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  145.             $context array_intersect_key($context$_parent) + $_parent;
  146.             // line 30
  147.             echo "    </div>
  148.     ";
  149.         } else {
  150.             // line 32
  151.             echo "        <div class='w100 ";
  152.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row space wrap"]), "html"nulltrue);
  153.             echo " ";
  154.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  155.             echo "'>
  156.             ";
  157.             // line 33
  158.             $context['_parent'] = $context;
  159.             $context['_seq'] = twig_ensure_traversable((isset($context["list"]) || array_key_exists("list"$context) ? $context["list"] : (function () { throw new RuntimeError('Variable "list" does not exist.'33$this->source); })()));
  160.             foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
  161.                 // line 34
  162.                 echo "            ";
  163.                 echo twig_call_macro($macros["macros"], "macro_link", [$context["k"]], 34$context$this->getSourceContext());
  164.                 echo "
  165.             ";
  166.             }
  167.             $_parent $context['_parent'];
  168.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['k'], $context['_parent'], $context['loop']);
  169.             $context array_intersect_key($context$_parent) + $_parent;
  170.             // line 36
  171.             echo "        </div>
  172.     ";
  173.         }
  174.         // line 38
  175.         echo "</div>
  176. ";
  177.         
  178.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  179.         
  180.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  181.     }
  182.     public function getTemplateName()
  183.     {
  184.         return "Default/links.html.twig";
  185.     }
  186.     public function isTraitable()
  187.     {
  188.         return false;
  189.     }
  190.     public function getDebugInfo()
  191.     {
  192.         return array (  189 => 38,  185 => 36,  176 => 34,  172 => 33,  165 => 32,  161 => 30,  153 => 27,  147 => 26,  141 => 24,  138 => 23,  134 => 22,  128 => 21,  119 => 20,  115 => 19,  111 => 17,  102 => 14,  97 => 13,  93 => 12,  86 => 11,  84 => 10,  77 => 9,  67 => 8,  56 => 6,  54 => 4,  52 => 3,  50 => 2,  48 => 1,  35 => 6,);
  193.     }
  194.     public function getSourceContext()
  195.     {
  196.         return new Source("{% set title = cat ? cat.label : 'Structures' %}
  197. {% set subtitle = \"Organisation\" %}
  198. {% set menu = 'links' %}
  199. {% import \"Default/macros.html.twig\" as macros %}
  200. {% extends 'Default/base.html.twig' %}
  201. {% block content %}
  202. <div id=\"links\" class='gpadding {{desktop(\"vt-60-in\")}} {{mobile(\"vt-10-in\")}} '>
  203.     {% if groups %}
  204.     <div class=\"flex row space border-bottom border-solid border-1x border-gray {{desktop('hz-20-in bottom-50')}} {{mobile('bottom-30')}}\">
  205.         {% for o in groups %}
  206.         <div class=\"os-tab-head relative pointer transition success upper lspacing nodefault vt-20-in\" data-target=\"#group{{o.id}}\">
  207.             <label class=\"pointer\">{{o.label}}</label>
  208.         </div>
  209.         {% endfor %}
  210.     </div>
  211.     <div class=\"flex row\">
  212.         {% for o in groups %}
  213.         <div class='os-tab anim-display anim-from-right w100 transition-1s {{desktop(\"\")}} {{mobile(\"\")}}' id=\"group{{o.id}}\">
  214.             <div class='w100 {{desktop(\"flex row space wrap\")}} {{mobile(\"\")}}'>
  215.                 {% for k in list %}
  216.                 {% if k.category and k.category.id == o.id %}
  217.                 {{macros.link(k)}}
  218.                 {% endif %}
  219.                 {% endfor %}
  220.             </div>
  221.         </div>
  222.         {% endfor %}
  223.     </div>
  224.     {% else %}
  225.         <div class='w100 {{desktop(\"flex row space wrap\")}} {{mobile(\"\")}}'>
  226.             {% for k in list %}
  227.             {{macros.link(k)}}
  228.             {% endfor %}
  229.         </div>
  230.     {% endif %}
  231. </div>
  232. {% endblock %}
  233. ""Default/links.html.twig""/home/olasoftnka/cefal/templates/Default/links.html.twig");
  234.     }
  235. }