<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* jumpbox_options.html */
class __TwigTemplate_57b9f35bfb05fbfc724b0b0641845ea89144ffac7d51efa8ebe4857571763d3b extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        if (($context["S_DISPLAY_JUMPBOX"] ?? null)) {
            // line 2
            echo "<div id=\"jumpbox\" class=\"dropdown\">
  <button class=\"btn btn-default btn-block dropdown-toggle\" type=\"button\" data-toggle=\"dropdown\" aria-expanded=\"true\">
   ";
            // line 4
            echo $this->env->getExtension('phpbb\template\twig\extension')->lang("JUMP_SELECT_FORUM");
            echo "
    <span class=\"caret\"></span>
  </button>
  <ul class=\"dropdown-menu jumpbox-dropdown\" role=\"menu\" style=\"width: 100%;\">
  <!-- <li role=\"presentation\" class=\"dropdown-header\">Dropdown header</li> -->
    ";
            // line 9
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "jumpbox_forums", []));
            foreach ($context['_seq'] as $context["_key"] => $context["jumpbox_forums"]) {
                // line 10
                echo "\t ";
                if (($this->getAttribute($context["jumpbox_forums"], "FORUM_ID", []) !=  -1)) {
                    // line 11
                    echo "\t <li role=\"presentation\" class=\"";
                    if ($this->getAttribute($context["jumpbox_forums"], "level", [])) {
                        echo "jumpbox-sub-link";
                    } elseif ($this->getAttribute($context["jumpbox_forums"], "S_IS_CAT", [])) {
                        echo "jumpbox-cat-link";
                    } else {
                        echo "jumpbox-forum-link";
                    }
                    echo "\"><a role=\"menuitem\" tabindex=\"-1\" href=\"";
                    echo $this->getAttribute($context["jumpbox_forums"], "LINK", []);
                    echo "\">";
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["jumpbox_forums"], "level", []));
                    foreach ($context['_seq'] as $context["_key"] => $context["level"]) {
                        echo "&nbsp;&nbsp;&nbsp;&nbsp;";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['level'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    echo $this->getAttribute($context["jumpbox_forums"], "FORUM_NAME", []);
                    echo "</a></li>
\t ";
                }
                // line 13
                echo "\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['jumpbox_forums'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 14
            echo "  </ul>
</div>\t
";
        } else {
        }
    }

    public function getTemplateName()
    {
        return "jumpbox_options.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  81 => 14,  75 => 13,  51 => 11,  48 => 10,  44 => 9,  36 => 4,  32 => 2,  30 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("", "jumpbox_options.html", "");
    }
}
