<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Default/links.html.twig */
class __TwigTemplate_4dd3fc2374439f1a86323407f05718792e604b2330535f28771a6732462dffac extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 6
return "Default/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/links.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/links.html.twig"));
// line 1
$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", false, false, false, 1)) : ("Structures"));
// line 2
$context["subtitle"] = "Organisation";
// line 3
$context["menu"] = "links";
// line 4
$macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig", "Default/links.html.twig", 4)->unwrap();
// line 6
$this->parent = $this->loadTemplate("Default/base.html.twig", "Default/links.html.twig", 6);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 8
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 9
echo "<div id=\"links\" class='gpadding ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-60-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-10-in"]), "html", null, true);
echo " '>
";
// line 10
if ((isset($context["groups"]) || array_key_exists("groups", $context) ? $context["groups"] : (function () { throw new RuntimeError('Variable "groups" does not exist.', 10, $this->source); })())) {
// line 11
echo " <div class=\"flex row space border-bottom border-solid border-1x border-gray ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["hz-20-in bottom-50"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["bottom-30"]), "html", null, true);
echo "\">
";
// line 12
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 13
echo " <div class=\"os-tab-head relative pointer transition success upper lspacing nodefault vt-20-in\" data-target=\"#group";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "id", [], "any", false, false, false, 13), "html", null, true);
echo "\">
<label class=\"pointer\">";
// line 14
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "label", [], "any", false, false, false, 14), "html", null, true);
echo "</label>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 17
echo " </div>
<div class=\"flex row\">
";
// line 19
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 20
echo " <div class='os-tab anim-display anim-from-right w100 transition-1s ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "' id=\"group";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "id", [], "any", false, false, false, 20), "html", null, true);
echo "\">
<div class='w100 ";
// line 21
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row space wrap"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
";
// line 22
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
// line 23
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["k"], "category", [], "any", false, false, false, 23) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["k"], "category", [], "any", false, false, false, 23), "id", [], "any", false, false, false, 23), twig_get_attribute($this->env, $this->source, $context["o"], "id", [], "any", false, false, false, 23))))) {
// line 24
echo " ";
echo twig_call_macro($macros["macros"], "macro_link", [$context["k"]], 24, $context, $this->getSourceContext());
echo "
";
}
// line 26
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['k'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 27
echo " </div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 30
echo " </div>
";
} else {
// line 32
echo " <div class='w100 ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row space wrap"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
";
// line 33
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
// line 34
echo " ";
echo twig_call_macro($macros["macros"], "macro_link", [$context["k"]], 34, $context, $this->getSourceContext());
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['k'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 36
echo " </div>
";
}
// line 38
echo "</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Default/links.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set title = cat ? cat.label : 'Structures' %}
{% set subtitle = \"Organisation\" %}
{% set menu = 'links' %}
{% import \"Default/macros.html.twig\" as macros %}
{% extends 'Default/base.html.twig' %}
{% block content %}
<div id=\"links\" class='gpadding {{desktop(\"vt-60-in\")}} {{mobile(\"vt-10-in\")}} '>
{% if groups %}
<div class=\"flex row space border-bottom border-solid border-1x border-gray {{desktop('hz-20-in bottom-50')}} {{mobile('bottom-30')}}\">
{% for o in groups %}
<div class=\"os-tab-head relative pointer transition success upper lspacing nodefault vt-20-in\" data-target=\"#group{{o.id}}\">
<label class=\"pointer\">{{o.label}}</label>
</div>
{% endfor %}
</div>
<div class=\"flex row\">
{% for o in groups %}
<div class='os-tab anim-display anim-from-right w100 transition-1s {{desktop(\"\")}} {{mobile(\"\")}}' id=\"group{{o.id}}\">
<div class='w100 {{desktop(\"flex row space wrap\")}} {{mobile(\"\")}}'>
{% for k in list %}
{% if k.category and k.category.id == o.id %}
{{macros.link(k)}}
{% endif %}
{% endfor %}
</div>
</div>
{% endfor %}
</div>
{% else %}
<div class='w100 {{desktop(\"flex row space wrap\")}} {{mobile(\"\")}}'>
{% for k in list %}
{{macros.link(k)}}
{% endfor %}
</div>
{% endif %}
</div>
{% endblock %}
", "Default/links.html.twig", "/home/olasoftnka/cefal/templates/Default/links.html.twig");
}
}