var/cache/dev/twig/2a/2a4deb3ea9df20624410f9fdeba08848.php line 57

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @Contao_Theme_aid-asd/nav_content_top.html.twig */
  16. class __TwigTemplate_b94aba77c5ca19dd1833fad15c8d6d39 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = []): iterable
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Contao_Theme_aid-asd/nav_content_top.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Contao_Theme_aid-asd/nav_content_top.html.twig"));
  38.         // line 1
  39.         yield "<!-- nav_content_top --> 
  40. ";
  41.         // line 3
  42.         $context['_parent'] = $context;
  43.         $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); })()));
  44.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  45.             // line 4
  46.             yield "    <div class=\"p-4 bd-highlight top-menu animated ";
  47.             yield $this->env->getFilter('escape')->getCallable()($this->envCoreExtension::getAttribute($this->env$this->source$context["item"], "class", [], "any"falsefalsefalse4), "contao_html"nulltrue);
  48.             yield " ";
  49.             if (CoreExtension::inFilter((CoreExtension::getAttribute($this->env$this->source$context["item"], "alias", [], "any"falsefalsefalse4) . "/"), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse4), "pathinfo", [], "any"falsefalsefalse4))) {
  50.                 yield "active";
  51.             }
  52.             yield "\" >
  53.         <a class=\"active current-page-active\" href=\"";
  54.             // line 5
  55.             yield $this->env->getFilter('escape')->getCallable()($this->envCoreExtension::getAttribute($this->env$this->source$context["item"], "href", [], "array"falsefalsefalse5), "contao_html"nulltrue);
  56.             yield "\">
  57.             <div class=\"top-menu-";
  58.             // line 6
  59.             yield $this->env->getFilter('escape')->getCallable()($this->envCoreExtension::getAttribute($this->env$this->source$context["item"], "class", [], "any"falsefalsefalse6), "contao_html"nulltrue);
  60.             yield "-image text-center\">
  61.                 <img src=\"";
  62.             // line 7
  63.             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"falsefalsefalse7)) . ".png")), "contao_html"nulltrue);
  64.             yield "\" width=\"75\" height=\"75\"/>
  65.             </div>
  66.             <div class=\"text-center\">";
  67.             // line 9
  68.             yield $this->env->getFilter('escape')->getCallable()($this->envCoreExtension::getAttribute($this->env$this->source$context["item"], "link", [], "any"falsefalsefalse9), "contao_html"nulltrue);
  69.             yield "</div>
  70.         
  71.         
  72.         </a>
  73.     </div>
  74. ";
  75.         }
  76.         $_parent $context['_parent'];
  77.         unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
  78.         $context array_intersect_key($context$_parent) + $_parent;
  79.         // line 15
  80.         yield "
  81. <!-- test
  82. <div class=\"";
  83.         // line 18
  84.         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")) {
  85.             yield "nav nav-pills";
  86.         } else {
  87.             yield "dropdown-menu";
  88.         }
  89.         yield " ";
  90.         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"nulltrue);
  91.         yield "\" id=\"mainNav\">
  92. ";
  93.         // line 20
  94.         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")) {
  95.             // line 21
  96.             yield "    <div class=\"back-button d-none d-lg-block\">
  97. \t\t<a class=\"dropdown-item\">
  98. \t\t\tZurück
  99. \t\t</a>
  100. \t</div>
  101. ";
  102.         }
  103.         // line 27
  104.         yield "
  105. ";
  106.         // line 28
  107.         $context['_parent'] = $context;
  108.         $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); })()));
  109.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  110.             // line 29
  111.             yield "
  112.     ";
  113.             // line 30
  114.             if ((CoreExtension::getAttribute($this->env$this->source$context["item"], "subitems", [], "any"falsefalsefalse30) == "")) {
  115.                 // line 31
  116.                 yield "        <div class=\"";
  117.                 yield $this->env->getFilter('escape')->getCallable()($this->envCoreExtension::getAttribute($this->env$this->source$context["item"], "class", [], "any"falsefalsefalse31), "contao_html"nulltrue);
  118.                 yield "\">
  119.             ";
  120.                 // line 32
  121.                 if (CoreExtension::getAttribute($this->env$this->source$context["item"], "isActive", [], "array"falsefalsefalse32)) {
  122.                     // line 33
  123.                     yield "            <a class=\"active current-page-active\" href=\"";
  124.                     yield $this->env->getFilter('escape')->getCallable()($this->envCoreExtension::getAttribute($this->env$this->source$context["item"], "href", [], "array"falsefalsefalse33), "contao_html"nulltrue);
  125.                     yield "\">";
  126.                     yield $this->env->getFilter('escape')->getCallable()($this->envCoreExtension::getAttribute($this->env$this->source$context["item"], "link", [], "any"falsefalsefalse33), "contao_html"nulltrue);
  127.                     yield "</a>
  128.             ";
  129.                 } else {
  130.                     // line 35
  131.                     yield "            <a class=\"\" href=\"";
  132.                     yield $this->env->getFilter('escape')->getCallable()($this->envCoreExtension::getAttribute($this->env$this->source$context["item"], "href", [], "array"falsefalsefalse35), "contao_html"nulltrue);
  133.                     yield "\">";
  134.                     yield $this->env->getFilter('escape')->getCallable()($this->envCoreExtension::getAttribute($this->env$this->source$context["item"], "link", [], "any"falsefalsefalse35), "contao_html"nulltrue);
  135.                     yield "</a>
  136.             ";
  137.                 }
  138.                 // line 37
  139.                 yield "        </div>
  140.     ";
  141.             } else {
  142.                 // line 39
  143.                 yield "
  144.    
  145. \t<div class=\"dropdown ";
  146.                 // line 41
  147.                 yield $this->env->getFilter('escape')->getCallable()($this->envCoreExtension::getAttribute($this->env$this->source$context["item"], "class", [], "any"falsefalsefalse41), "contao_html"nulltrue);
  148.                 yield "\">
  149.         ";
  150.                 // line 42
  151.                 if (CoreExtension::getAttribute($this->env$this->source$context["item"], "isActive", [], "array"falsefalsefalse42)) {
  152.                     // line 43
  153.                     yield "\t\t<a class=\"dropdown-item dropdown-toggle active current-page-active\" href=\"#\">
  154.         ";
  155.                 } else {
  156.                     // line 45
  157.                     yield "        <a class=\"dropdown-item dropdown-toggle\" href=\"#\">
  158.         ";
  159.                 }
  160.                 // line 47
  161.                 yield "\t\t\t";
  162.                 yield $this->env->getFilter('escape')->getCallable()($this->envCoreExtension::getAttribute($this->env$this->source$context["item"], "link", [], "any"falsefalsefalse47), "contao_html"nulltrue);
  163.                 yield "
  164. \t\t\t<i class=\"fas fa-chevron-down fa-chevron-right\"></i>
  165.             <i class=\"fas fa-chevron-down fa-chevron-right\"></i>
  166.         </a> 
  167.         ";
  168.                 // line 51
  169.                 yield CoreExtension::getAttribute($this->env$this->source$context["item"], "subitems", [], "any"falsefalsefalse51);
  170.                 yield "
  171. \t</div> 
  172.     ";
  173.             }
  174.         }
  175.         $_parent $context['_parent'];
  176.         unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
  177.         $context array_intersect_key($context$_parent) + $_parent;
  178.         // line 55
  179.         yield "</div>-->
  180. ";
  181.         
  182.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  183.         
  184.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  185.         yield from [];
  186.     }
  187.     /**
  188.      * @codeCoverageIgnore
  189.      */
  190.     public function getTemplateName(): string
  191.     {
  192.         return "@Contao_Theme_aid-asd/nav_content_top.html.twig";
  193.     }
  194.     /**
  195.      * @codeCoverageIgnore
  196.      */
  197.     public function isTraitable(): bool
  198.     {
  199.         return false;
  200.     }
  201.     /**
  202.      * @codeCoverageIgnore
  203.      */
  204.     public function getDebugInfo(): array
  205.     {
  206.         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,);
  207.     }
  208.     public function getSourceContext(): Source
  209.     {
  210.         return new Source("<!-- nav_content_top --> 
  211. {% for item in items %}
  212.     <div class=\"p-4 bd-highlight top-menu animated {{item.class}} {% if item.alias~'/'  in app.request.pathinfo %}active{% endif %}\" >
  213.         <a class=\"active current-page-active\" href=\"{{item['href']}}\">
  214.             <div class=\"top-menu-{{item.class}}-image text-center\">
  215.                 <img src=\"{{asset('files/aid-asd/images/menu-images/'~ item.alias ~'.png')}}\" width=\"75\" height=\"75\"/>
  216.             </div>
  217.             <div class=\"text-center\">{{ item.link }}</div>
  218.         
  219.         
  220.         </a>
  221.     </div>
  222. {% endfor %}
  223. <!-- test
  224. <div class=\"{% if level == \"level_1\" %}nav nav-pills{% else %}dropdown-menu{% endif %} {{level}}\" id=\"mainNav\">
  225. {% if level != \"level_1\" %}
  226.     <div class=\"back-button d-none d-lg-block\">
  227. \t\t<a class=\"dropdown-item\">
  228. \t\t\tZurück
  229. \t\t</a>
  230. \t</div>
  231. {% endif %}
  232. {% for item in items %}
  233.     {% if item.subitems == \"\" %}
  234.         <div class=\"{{item.class}}\">
  235.             {% if item['isActive']%}
  236.             <a class=\"active current-page-active\" href=\"{{item['href']}}\">{{ item.link }}</a>
  237.             {% else %}
  238.             <a class=\"\" href=\"{{item['href']}}\">{{ item.link }}</a>
  239.             {% endif %}
  240.         </div>
  241.     {% else %}
  242.    
  243. \t<div class=\"dropdown {{item.class}}\">
  244.         {% if item['isActive']%}
  245. \t\t<a class=\"dropdown-item dropdown-toggle active current-page-active\" href=\"#\">
  246.         {% else %}
  247.         <a class=\"dropdown-item dropdown-toggle\" href=\"#\">
  248.         {% endif %}
  249. \t\t\t{{ item.link }}
  250. \t\t\t<i class=\"fas fa-chevron-down fa-chevron-right\"></i>
  251.             <i class=\"fas fa-chevron-down fa-chevron-right\"></i>
  252.         </a> 
  253.         {{item.subitems|raw}}
  254. \t</div> 
  255.     {% endif %}
  256. {% endfor %}
  257. </div>-->
  258. ""@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");
  259.     }
  260. }