<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* @Contao_Theme_aid-asd/nav_content_top.html.twig */
class __TwigTemplate_b94aba77c5ca19dd1833fad15c8d6d39 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Contao_Theme_aid-asd/nav_content_top.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Contao_Theme_aid-asd/nav_content_top.html.twig"));
// line 1
yield "<!-- nav_content_top -->
";
// line 3
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 3, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 4
yield " <div class=\"p-4 bd-highlight top-menu animated ";
yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "class", [], "any", false, false, false, 4), "contao_html", null, true);
yield " ";
if (CoreExtension::inFilter((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "alias", [], "any", false, false, false, 4) . "/"), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "pathinfo", [], "any", false, false, false, 4))) {
yield "active";
}
yield "\" >
<a class=\"active current-page-active\" href=\"";
// line 5
yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "href", [], "array", false, false, false, 5), "contao_html", null, true);
yield "\">
<div class=\"top-menu-";
// line 6
yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "class", [], "any", false, false, false, 6), "contao_html", null, true);
yield "-image text-center\">
<img src=\"";
// line 7
yield $this->env->getFilter('escape')->getCallable()($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("files/aid-asd/images/menu-images/" . CoreExtension::getAttribute($this->env, $this->source, $context["item"], "alias", [], "any", false, false, false, 7)) . ".png")), "contao_html", null, true);
yield "\" width=\"75\" height=\"75\"/>
</div>
<div class=\"text-center\">";
// line 9
yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 9), "contao_html", null, true);
yield "</div>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 15
yield "
<!-- test
<div class=\"";
// line 18
if (((isset($context["level"]) || array_key_exists("level", $context) ? $context["level"] : (function () { throw new RuntimeError('Variable "level" does not exist.', 18, $this->source); })()) == "level_1")) {
yield "nav nav-pills";
} else {
yield "dropdown-menu";
}
yield " ";
yield $this->env->getFilter('escape')->getCallable()($this->env, (isset($context["level"]) || array_key_exists("level", $context) ? $context["level"] : (function () { throw new RuntimeError('Variable "level" does not exist.', 18, $this->source); })()), "contao_html", null, true);
yield "\" id=\"mainNav\">
";
// line 20
if (((isset($context["level"]) || array_key_exists("level", $context) ? $context["level"] : (function () { throw new RuntimeError('Variable "level" does not exist.', 20, $this->source); })()) != "level_1")) {
// line 21
yield " <div class=\"back-button d-none d-lg-block\">
\t\t<a class=\"dropdown-item\">
\t\t\tZurück
\t\t</a>
\t</div>
";
}
// line 27
yield "
";
// line 28
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 28, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 29
yield "
";
// line 30
if ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "subitems", [], "any", false, false, false, 30) == "")) {
// line 31
yield " <div class=\"";
yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "class", [], "any", false, false, false, 31), "contao_html", null, true);
yield "\">
";
// line 32
if (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "isActive", [], "array", false, false, false, 32)) {
// line 33
yield " <a class=\"active current-page-active\" href=\"";
yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "href", [], "array", false, false, false, 33), "contao_html", null, true);
yield "\">";
yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 33), "contao_html", null, true);
yield "</a>
";
} else {
// line 35
yield " <a class=\"\" href=\"";
yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "href", [], "array", false, false, false, 35), "contao_html", null, true);
yield "\">";
yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 35), "contao_html", null, true);
yield "</a>
";
}
// line 37
yield " </div>
";
} else {
// line 39
yield "
\t<div class=\"dropdown ";
// line 41
yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "class", [], "any", false, false, false, 41), "contao_html", null, true);
yield "\">
";
// line 42
if (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "isActive", [], "array", false, false, false, 42)) {
// line 43
yield "\t\t<a class=\"dropdown-item dropdown-toggle active current-page-active\" href=\"#\">
";
} else {
// line 45
yield " <a class=\"dropdown-item dropdown-toggle\" href=\"#\">
";
}
// line 47
yield "\t\t\t";
yield $this->env->getFilter('escape')->getCallable()($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 47), "contao_html", null, true);
yield "
\t\t\t<i class=\"fas fa-chevron-down fa-chevron-right\"></i>
<i class=\"fas fa-chevron-down fa-chevron-right\"></i>
</a>
";
// line 51
yield CoreExtension::getAttribute($this->env, $this->source, $context["item"], "subitems", [], "any", false, false, false, 51);
yield "
\t</div>
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 55
yield "</div>-->
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@Contao_Theme_aid-asd/nav_content_top.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 191 => 55, 181 => 51, 173 => 47, 169 => 45, 165 => 43, 163 => 42, 159 => 41, 155 => 39, 151 => 37, 143 => 35, 135 => 33, 133 => 32, 128 => 31, 126 => 30, 123 => 29, 119 => 28, 116 => 27, 108 => 21, 106 => 20, 95 => 18, 90 => 15, 78 => 9, 73 => 7, 69 => 6, 65 => 5, 56 => 4, 52 => 3, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<!-- nav_content_top -->
{% for item in items %}
<div class=\"p-4 bd-highlight top-menu animated {{item.class}} {% if item.alias~'/' in app.request.pathinfo %}active{% endif %}\" >
<a class=\"active current-page-active\" href=\"{{item['href']}}\">
<div class=\"top-menu-{{item.class}}-image text-center\">
<img src=\"{{asset('files/aid-asd/images/menu-images/'~ item.alias ~'.png')}}\" width=\"75\" height=\"75\"/>
</div>
<div class=\"text-center\">{{ item.link }}</div>
</a>
</div>
{% endfor %}
<!-- test
<div class=\"{% if level == \"level_1\" %}nav nav-pills{% else %}dropdown-menu{% endif %} {{level}}\" id=\"mainNav\">
{% if level != \"level_1\" %}
<div class=\"back-button d-none d-lg-block\">
\t\t<a class=\"dropdown-item\">
\t\t\tZurück
\t\t</a>
\t</div>
{% endif %}
{% for item in items %}
{% if item.subitems == \"\" %}
<div class=\"{{item.class}}\">
{% if item['isActive']%}
<a class=\"active current-page-active\" href=\"{{item['href']}}\">{{ item.link }}</a>
{% else %}
<a class=\"\" href=\"{{item['href']}}\">{{ item.link }}</a>
{% endif %}
</div>
{% else %}
\t<div class=\"dropdown {{item.class}}\">
{% if item['isActive']%}
\t\t<a class=\"dropdown-item dropdown-toggle active current-page-active\" href=\"#\">
{% else %}
<a class=\"dropdown-item dropdown-toggle\" href=\"#\">
{% endif %}
\t\t\t{{ item.link }}
\t\t\t<i class=\"fas fa-chevron-down fa-chevron-right\"></i>
<i class=\"fas fa-chevron-down fa-chevron-right\"></i>
</a>
{{item.subitems|raw}}
\t</div>
{% endif %}
{% endfor %}
</div>-->
", "@Contao_Theme_aid-asd/nav_content_top.html.twig", "/home/ewepifmv/public_html/arbeitsschutz-deutschland.com.sg/templates/aid-asd/nav_content_top.html.twig");
}
}