<?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;

/* layouts/topmenu.twig */
class __TwigTemplate_fc44d0d37027cecff2fe9af88131bbb88935e622e7d59bcd9bf326ec8dc466f5 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
        echo "    <nav class=\"navbar navbar-light navbar-expand-lg fixed-top bg-white navbar-custom d-sm-block d-none\">
        <div class=\"container\"><img src=\"";
        // line 2
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["path"]) ? $context["path"] : null), "image", []), "html", null, true);
        echo "nchmclogo.png\" class=\"d-none d-sm-block\" style=\"\"><img src=\"";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["path"]) ? $context["path"] : null), "image", []), "html", null, true);
        echo "nchmclogo.png\" class=\"d-block d-sm-none\" style=\"width:50vw;height:auto\"><button data-toggle=\"collapse\" class=\"navbar-toggler\" data-target=\"#navbarResponsive\"><span class=\"navbar-toggler-icon\"></span></button>
            ";
        // line 4
        echo "            <div class=\"collapse navbar-collapse \" id=\"navbarResponsive\">
                <ul class=\"nav navbar-nav ml-auto \" style=\"\">
                        ";
        // line 6
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["menus"]) ? $context["menus"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
            // line 7
            echo "                            ";
            if (($this->getAttribute($context["menu"], "link", []) == (isset($context["session"]) ? $context["session"] : null))) {
                // line 8
                echo "                                ";
                $context["extraClass"] = " activeMenu";
                // line 9
                echo "                            ";
            } else {
                // line 10
                echo "                                ";
                $context["extraClass"] = "";
                // line 11
                echo "                            ";
            }
            // line 12
            echo "                    <li class=\"nav-item";
            echo twig_escape_filter($this->env, (isset($context["extraClass"]) ? $context["extraClass"] : null), "html", null, true);
            echo "\" role=\"presentation\"><a class=\"nav-link\" href=\"/";
            echo twig_escape_filter($this->env, $this->getAttribute($context["menu"], "link", []), "html", null, true);
            echo "\">";
            echo twig_escape_filter($this->env, $this->getAttribute($context["menu"], "name_zh", []), "html", null, true);
            echo "</a></li>
                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menu'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 22
        echo "                
                </ul>
            </div>
         </div>
    </nav>
            ";
        // line 27
        echo " 
     <nav class=\"navbar navbar-light navbar-expand-lg fixed-top bg-white navbar-custom d-sm-none d-block\">
        <div class=\"container\"><img src=\"";
        // line 29
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["path"]) ? $context["path"] : null), "image", []), "html", null, true);
        echo "nchmclogo.png\" class=\"d-none d-sm-block\" style=\"\"><img src=\"";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["path"]) ? $context["path"] : null), "image", []), "html", null, true);
        echo "nchmclogo.png\" class=\"d-block d-sm-none\" style=\"width:50vw;height:auto\"><button data-toggle=\"collapse\" class=\"navbar-toggler\" data-target=\"#navbarResponsive1\"><span class=\"navbar-toggler-icon\"></span></button>
            ";
        // line 31
        echo "            <div class=\"collapse navbar-collapse mt-2 \" id=\"navbarResponsive1\">
                <ul class=\"nav navbar-nav ml-auto \" style=\"\">
                        ";
        // line 33
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["menus"]) ? $context["menus"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
            // line 34
            echo "                            ";
            if (($this->getAttribute($context["menu"], "link", []) == (isset($context["session"]) ? $context["session"] : null))) {
                // line 35
                echo "                                ";
                $context["extraClass"] = " activeMenu";
                // line 36
                echo "                            ";
            } else {
                // line 37
                echo "                                ";
                $context["extraClass"] = "";
                // line 38
                echo "                            ";
            }
            // line 39
            echo "                    <li class=\"nav-item";
            echo twig_escape_filter($this->env, (isset($context["extraClass"]) ? $context["extraClass"] : null), "html", null, true);
            echo " \" role=\"presentation\"><a class=\"nav-link pl-2\" href=\"/";
            echo twig_escape_filter($this->env, $this->getAttribute($context["menu"], "link", []), "html", null, true);
            echo "\">";
            echo twig_escape_filter($this->env, $this->getAttribute($context["menu"], "name_zh", []), "html", null, true);
            echo "</a></li>
                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menu'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 49
        echo "                
                </ul>
            </div>
            ";
        // line 53
        echo "        </div>
    </nav>
        <!-- Navigation -->
";
        // line 77
        echo "        <!-- Navigation end -->
";
    }

    public function getTemplateName()
    {
        return "layouts/topmenu.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  138 => 77,  133 => 53,  128 => 49,  115 => 39,  112 => 38,  109 => 37,  106 => 36,  103 => 35,  100 => 34,  96 => 33,  92 => 31,  86 => 29,  82 => 27,  75 => 22,  62 => 12,  59 => 11,  56 => 10,  53 => 9,  50 => 8,  47 => 7,  43 => 6,  39 => 4,  33 => 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("    <nav class=\"navbar navbar-light navbar-expand-lg fixed-top bg-white navbar-custom d-sm-block d-none\">
        <div class=\"container\"><img src=\"{{ path.image }}nchmclogo.png\" class=\"d-none d-sm-block\" style=\"\"><img src=\"{{ path.image }}nchmclogo.png\" class=\"d-block d-sm-none\" style=\"width:50vw;height:auto\"><button data-toggle=\"collapse\" class=\"navbar-toggler\" data-target=\"#navbarResponsive\"><span class=\"navbar-toggler-icon\"></span></button>
            {# desktop menu #}
            <div class=\"collapse navbar-collapse \" id=\"navbarResponsive\">
                <ul class=\"nav navbar-nav ml-auto \" style=\"\">
                        {% for menu in menus %}
                            {% if menu.link == session %}
                                {% set extraClass = ' activeMenu' %}
                            {% else %}
                                {% set extraClass = '' %}
                            {% endif %}
                    <li class=\"nav-item{{ extraClass }}\" role=\"presentation\"><a class=\"nav-link\" href=\"/{{ menu.link }}\">{{ menu.name_zh }}</a></li>
                        {% endfor %}
{#
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">最新消息</a></li>
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">課程介紹</a></li>
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">遊學升學</a></li>
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">星級推薦</a></li>
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">相片圖集</a></li>
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">教育同盟</a></li>
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">聯絡我們</a></li>
#}                
                </ul>
            </div>
         </div>
    </nav>
            {# desktop menu #} 
     <nav class=\"navbar navbar-light navbar-expand-lg fixed-top bg-white navbar-custom d-sm-none d-block\">
        <div class=\"container\"><img src=\"{{ path.image }}nchmclogo.png\" class=\"d-none d-sm-block\" style=\"\"><img src=\"{{ path.image }}nchmclogo.png\" class=\"d-block d-sm-none\" style=\"width:50vw;height:auto\"><button data-toggle=\"collapse\" class=\"navbar-toggler\" data-target=\"#navbarResponsive1\"><span class=\"navbar-toggler-icon\"></span></button>
            {# mobile menu #}
            <div class=\"collapse navbar-collapse mt-2 \" id=\"navbarResponsive1\">
                <ul class=\"nav navbar-nav ml-auto \" style=\"\">
                        {% for menu in menus %}
                            {% if menu.link == session %}
                                {% set extraClass = ' activeMenu' %}
                            {% else %}
                                {% set extraClass = '' %}
                            {% endif %}
                    <li class=\"nav-item{{ extraClass }} \" role=\"presentation\"><a class=\"nav-link pl-2\" href=\"/{{ menu.link }}\">{{ menu.name_zh }}</a></li>
                        {% endfor %}
{#
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">最新消息</a></li>
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">課程介紹</a></li>
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">遊學升學</a></li>
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">星級推薦</a></li>
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">相片圖集</a></li>
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">教育同盟</a></li>
                    <li class=\"nav-item\" role=\"presentation\"><a class=\"nav-link\" href=\"#\">聯絡我們</a></li>
#}                
                </ul>
            </div>
            {# mobile menu #}
        </div>
    </nav>
        <!-- Navigation -->
{#        <nav class=\"navbar navbar-expand-lg static-top\">
            <div class=\"container\">
                <a class=\"navbar-brand\" href=\"#\">
                    <img src=\"{{ path.image }}nchmclogo.png\" alt=\"\">
                </a>
                <button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#VW_Navbar\" aria-controls=\"VW_Navbar\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
                    <span class=\"navbar-toggler-icon\">
                        <i class=\"fas fa-bars\"></i>                    
                    </span>
                </button>
                <div class=\"collapse navbar-collapse\" id=\"VW_Navbar\">
                    <ul class=\"navbar-nav ml-auto\">
                        {% for menu in menus %}
                        <li class=\"nav-item{{ (menu.link == session) ? ' active' : '' }}\">
                            <a class=\"nav-link\" href=\"{{ menu.link }}\">{{ menu.name_zh }}</a>
                        </li>
                        {% endfor %}
                    </ul>
                </div>
            </div>
        </nav>
#}        <!-- Navigation end -->
", "layouts/topmenu.twig", "/home/artechsy/public_html/vision.artech-system.com/application/views/layouts/topmenu.twig");
    }
}
