<?php

/* default/template/common/menu.twig */
class __TwigTemplate_ad8b1490c00e7bec0386a403228045ee81d797ba9b50e0483f5f430b612c0ab0 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        if ((isset($context["categories"]) ? $context["categories"] : null)) {
            // line 2
            echo "    <div class=\"container-top\">
        <div class=\"container\">
            <nav id=\"menu\" class=\"navbar\">
                <div class=\"navbar-header\">
                    <span id=\"category\" class=\"visible-xs\">Navigation Menu</span>
                    ";
            // line 8
            echo "                    <button type=\"button\" class=\"btn btn-navbar navbar-toggle\" data-toggle=\"collapse\" data-target=\".navbar-ex1-collapse\">
                        <i class=\"fa fa-bars\"></i>
                    </button>
                </div>
                <div class=\"collapse navbar-collapse navbar-ex1-collapse\">
                    ";
            // line 32
            echo "                    ";
            // line 43
            echo "
                    ";
            // line 59
            echo "
                    <ul class=\"nav nav-c navbar-nav\">
                        ";
            // line 61
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) ? $context["categories"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
                // line 62
                echo "                            ";
                if ($this->getAttribute($context["category"], "children", array())) {
                    // line 63
                    echo "                                <li class=\"dropdown\">
                                    <a href=\"\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">";
                    // line 64
                    echo $this->getAttribute($context["category"], "name", array());
                    echo "<span class=\"caret\"></span></a>
                                    <div class=\"dropdown-menu\">
                                        <div class=\"dropdown-inner\">
                                            ";
                    // line 67
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable(twig_array_batch($this->getAttribute($context["category"], "children", array()), (twig_length_filter($this->env, $this->getAttribute($context["category"], "children", array())) / twig_round($this->getAttribute($context["category"], "column", array()), 1, "ceil"))));
                    foreach ($context['_seq'] as $context["_key"] => $context["children"]) {
                        // line 68
                        echo "                                                <ul class=\"list-unstyled\">
                                                    ";
                        // line 69
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable($context["children"]);
                        $context['loop'] = array(
                          'parent' => $context['_parent'],
                          'index0' => 0,
                          'index'  => 1,
                          'first'  => true,
                        );
                        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
                            $length = count($context['_seq']);
                            $context['loop']['revindex0'] = $length - 1;
                            $context['loop']['revindex'] = $length;
                            $context['loop']['length'] = $length;
                            $context['loop']['last'] = 1 === $length;
                        }
                        foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
                            // line 70
                            echo "                                                        ";
                            if (($this->getAttribute($context["loop"], "index", array()) <= 15)) {
                                // line 71
                                echo "                                                            <li>
                                                                <a href=\"";
                                // line 72
                                echo $this->getAttribute($context["child"], "href", array());
                                echo "\">";
                                echo $this->getAttribute($context["child"], "name", array());
                                echo "</a>
                                                            </li>
                                                        ";
                            }
                            // line 75
                            echo "                                                    ";
                            ++$context['loop']['index0'];
                            ++$context['loop']['index'];
                            $context['loop']['first'] = false;
                            if (isset($context['loop']['length'])) {
                                --$context['loop']['revindex0'];
                                --$context['loop']['revindex'];
                                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                            }
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 76
                        echo "                                                </ul>
                                            ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['children'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 78
                    echo "                                        </div>
                                        ";
                    // line 79
                    if ((twig_length_filter($this->env, $this->getAttribute($context["category"], "children", array())) > 15)) {
                        // line 80
                        echo "                                            <a href=\"";
                        echo $this->getAttribute($context["category"], "href", array());
                        echo "\" class=\"see-all\">";
                        echo (isset($context["text_all"]) ? $context["text_all"] : null);
                        echo "
                                                ";
                        // line 81
                        echo $this->getAttribute($context["category"], "name", array());
                        echo "</a>
                                        ";
                    }
                    // line 83
                    echo "                                    </div>
                                </li>
                            ";
                } else {
                    // line 86
                    echo "                                <li>
                                    <a href=\"";
                    // line 87
                    echo $this->getAttribute($context["category"], "href", array());
                    echo "\">";
                    echo $this->getAttribute($context["category"], "name", array());
                    echo "</a>
                                </li>
                            ";
                }
                // line 90
                echo "                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 91
            echo "                        <li>
                            <a href=\"/index.php?route=information/contact\">Contact Us</a>
                        </li>
                        <li>
                            <a href=\"/index.php?route=information/information&information_id=4\">About Us</a>
                        </li>

                    </ul>
                </div>
            </nav>
        </div>
    </div>
";
        }
    }

    public function getTemplateName()
    {
        return "default/template/common/menu.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  158 => 91,  152 => 90,  144 => 87,  141 => 86,  136 => 83,  131 => 81,  124 => 80,  122 => 79,  119 => 78,  112 => 76,  98 => 75,  90 => 72,  87 => 71,  84 => 70,  67 => 69,  64 => 68,  60 => 67,  54 => 64,  51 => 63,  48 => 62,  44 => 61,  40 => 59,  37 => 43,  35 => 32,  28 => 8,  21 => 2,  19 => 1,);
    }
}
/* {% if categories %}*/
/*     <div class="container-top">*/
/*         <div class="container">*/
/*             <nav id="menu" class="navbar">*/
/*                 <div class="navbar-header">*/
/*                     <span id="category" class="visible-xs">Navigation Menu</span>*/
/*                     {# <span id="category" class="visible-xs">{{ text_category }}</span> #}*/
/*                     <button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">*/
/*                         <i class="fa fa-bars"></i>*/
/*                     </button>*/
/*                 </div>*/
/*                 <div class="collapse navbar-collapse navbar-ex1-collapse">*/
/*                     {# <ul class="nav navbar-nav">*/
/*         {% for category in categories %}*/
/*         {% if category.children %}*/
/*         <li class="dropdown"><a href="{{ category.href }}" class="dropdown-toggle" data-toggle="dropdown">{{ category.name }}</a>*/
/*           <div class="dropdown-menu">*/
/*             <div class="dropdown-inner"> {% for children in category.children|batch(category.children|length / category.column|round(1, 'ceil')) %}*/
/*               <ul class="list-unstyled">*/
/*                 {% for child in children %}*/
/*                 <li><a href="{{ child.href }}">{{ child.name }}</a></li>*/
/*                 {% endfor %}*/
/*               </ul>*/
/*               {% endfor %}</div>*/
/*             <a href="{{ category.href }}" class="see-all">{{ text_all }} {{ category.name }}</a> </div>*/
/*         </li>*/
/*         {% else %}*/
/*         <li><a href="{{ category.href }}">{{ category.name }}</a></li>*/
/*         {% endif %}*/
/*         {% endfor %}*/
/*       </ul> #}*/
/*                     {# <ul class="nav navbar-nav">*/
/*         {% for row in categories|batch(2,'') %}*/
/*         <li class="nav-li">*/
/*         {% for category in row %}*/
/*         {% if category.name %}*/
/*             <div class="nav-div"><a href="{{ category.href }}">{{ category.name }}</a></div>*/
/*         {% endif %} */
/*         {% endfor %}*/
/*         </li>*/
/*         {% endfor %}*/
/*       </ul> #}*/
/* */
/*                     {# theme 2*/
/*       <ul class="nav nav-c navbar-nav">*/
/*         <li class="dropdown"><a href="" class="dropdown-toggle" data-toggle="dropdown">Products</a>*/
/*           <div class="dropdown-menu">*/
/*             <div class="dropdown-inner"> */
/*               <ul class="list-unstyled">*/
/*                 {% for category in categories %}*/
/*                 <li><a href="{{ category.href }}">{{ category.name }}</a></li>*/
/*                 {% endfor %}*/
/*               </ul></div>*/
/*         </li>*/
/*         <li><a href="/index.php?route=product/category&path=65">Promotion</a></li>*/
/*         <li><a href="/index.php?route=product/category&path=72">Top Sales</a></li>*/
/*         <li><a href="/index.php?route=information/contact">Contact Us</a></li>*/
/*         <li><a href="/index.php?route=information/information&information_id=4">About Us</a></li> #}*/
/* */
/*                     <ul class="nav nav-c navbar-nav">*/
/*                         {% for category in categories %}*/
/*                             {% if category.children %}*/
/*                                 <li class="dropdown">*/
/*                                     <a href="" class="dropdown-toggle" data-toggle="dropdown">{{ category.name }}<span class="caret"></span></a>*/
/*                                     <div class="dropdown-menu">*/
/*                                         <div class="dropdown-inner">*/
/*                                             {% for children in category.children | batch(category.children | length / category.column | round(1, 'ceil')) %}*/
/*                                                 <ul class="list-unstyled">*/
/*                                                     {% for child in children %}*/
/*                                                         {% if loop.index <= 15  %}*/
/*                                                             <li>*/
/*                                                                 <a href="{{ child.href }}">{{ child.name }}</a>*/
/*                                                             </li>*/
/*                                                         {% endif %}*/
/*                                                     {% endfor %}*/
/*                                                 </ul>*/
/*                                             {% endfor %}*/
/*                                         </div>*/
/*                                         {% if (category.children | length > 15) %}*/
/*                                             <a href="{{ category.href }}" class="see-all">{{ text_all }}*/
/*                                                 {{ category.name }}</a>*/
/*                                         {% endif %}*/
/*                                     </div>*/
/*                                 </li>*/
/*                             {% else %}*/
/*                                 <li>*/
/*                                     <a href="{{ category.href }}">{{ category.name }}</a>*/
/*                                 </li>*/
/*                             {% endif %}*/
/*                         {% endfor %}*/
/*                         <li>*/
/*                             <a href="/index.php?route=information/contact">Contact Us</a>*/
/*                         </li>*/
/*                         <li>*/
/*                             <a href="/index.php?route=information/information&information_id=4">About Us</a>*/
/*                         </li>*/
/* */
/*                     </ul>*/
/*                 </div>*/
/*             </nav>*/
/*         </div>*/
/*     </div>*/
/* {% endif %}*/
