<?php

/* mart/template/common/menu.twig */
class __TwigTemplate_14f206248f799e9d86710cd031c611a4d2ffffd38f8c22f5792f44fff091ed0c 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 "<ul id=\"menu\" class=\"nav navbar-nav\">
  ";
            // line 3
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) ? $context["categories"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
                // line 4
                echo "  ";
                if ($this->getAttribute($context["category"], "children", array())) {
                    // line 5
                    echo "  <li class=\"dropdown\"><a href=\"";
                    echo $this->getAttribute($context["category"], "href", array());
                    echo "\" class=\"dropdown-toggle disabled\" data-toggle=\"dropdown\">";
                    echo $this->getAttribute($context["category"], "name", array());
                    echo " <i class=\"fa fa-angle-down\"></i></a>
    <div class=\"dropdown-menu animated fadeInUp\">
      <div class=\"dropdown-inner\">
        ";
                    // line 8
                    $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 9
                        echo "        <ul class=\"list-unstyled\">
          ";
                        // line 10
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable($context["children"]);
                        foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
                            // line 11
                            echo "          ";
                            if ($this->getAttribute($context["child"], "sub_children", array())) {
                                // line 12
                                echo "            <li><a href=\"";
                                echo $this->getAttribute($context["child"], "href", array());
                                echo "\">";
                                echo $this->getAttribute($context["child"], "name", array());
                                echo "<i class=\"fa fa-angle-right pull-right\"></i></a>
              <div class=\"sub-dropdown-menu animated fadeInUp\">
                <div class=\"sub-dropdown-inner\">
                  ";
                                // line 15
                                $context['_parent'] = $context;
                                $context['_seq'] = twig_ensure_traversable(twig_array_batch($this->getAttribute($context["child"], "sub_children", array()), (twig_length_filter($this->env, $this->getAttribute($context["child"], "sub_children", array())) / twig_round($this->getAttribute($context["child"], "column", array()), 1, "ceil"))));
                                foreach ($context['_seq'] as $context["_key"] => $context["sub_children"]) {
                                    // line 16
                                    echo "                  <ul class=\"list-unstyled\">
                    ";
                                    // line 17
                                    $context['_parent'] = $context;
                                    $context['_seq'] = twig_ensure_traversable($context["sub_children"]);
                                    foreach ($context['_seq'] as $context["_key"] => $context["sub_child"]) {
                                        // line 18
                                        echo "                      <li><a href=\"";
                                        echo $this->getAttribute($context["sub_child"], "href", array());
                                        echo "\">";
                                        echo $this->getAttribute($context["sub_child"], "name", array());
                                        echo "</a></li>
                    ";
                                    }
                                    $_parent = $context['_parent'];
                                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sub_child'], $context['_parent'], $context['loop']);
                                    $context = array_intersect_key($context, $_parent) + $_parent;
                                    // line 20
                                    echo "                  </ul>
                  ";
                                }
                                $_parent = $context['_parent'];
                                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sub_children'], $context['_parent'], $context['loop']);
                                $context = array_intersect_key($context, $_parent) + $_parent;
                                // line 22
                                echo "                </div>
                <a href=\"";
                                // line 23
                                echo $this->getAttribute($context["child"], "href", array());
                                echo "\" class=\"see-all\">";
                                echo (isset($context["text_all"]) ? $context["text_all"] : null);
                                echo " ";
                                echo $this->getAttribute($context["child"], "name", array());
                                echo "</a>
              </div>
            </li>
          ";
                            } else {
                                // line 27
                                echo "            <li><a href=\"";
                                echo $this->getAttribute($context["child"], "href", array());
                                echo "\">";
                                echo $this->getAttribute($context["child"], "name", array());
                                echo "</a></li>
          ";
                            }
                            // line 29
                            echo "          ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 30
                        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 32
                    echo "      </div>
      <a href=\"";
                    // line 33
                    echo $this->getAttribute($context["category"], "href", array());
                    echo "\" class=\"visible-xs see-all\">";
                    echo (isset($context["text_all"]) ? $context["text_all"] : null);
                    echo " ";
                    echo $this->getAttribute($context["category"], "name", array());
                    echo "</a>
    </div>
  </li>
  ";
                } else {
                    // line 37
                    echo "  <li><a href=\"";
                    echo $this->getAttribute($context["category"], "href", array());
                    echo "\">";
                    echo $this->getAttribute($context["category"], "name", array());
                    echo "</a></li>
  ";
                }
                // line 39
                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 40
            echo "</ul>
";
        }
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  155 => 40,  149 => 39,  141 => 37,  130 => 33,  127 => 32,  120 => 30,  114 => 29,  106 => 27,  95 => 23,  92 => 22,  85 => 20,  74 => 18,  70 => 17,  67 => 16,  63 => 15,  54 => 12,  51 => 11,  47 => 10,  44 => 9,  40 => 8,  31 => 5,  28 => 4,  24 => 3,  21 => 2,  19 => 1,);
    }
}
/* {% if categories %}*/
/* <ul id="menu" class="nav navbar-nav">*/
/*   {% for category in categories %}*/
/*   {% if category.children %}*/
/*   <li class="dropdown"><a href="{{ category.href }}" class="dropdown-toggle disabled" data-toggle="dropdown">{{ category.name }} <i class="fa fa-angle-down"></i></a>*/
/*     <div class="dropdown-menu animated fadeInUp">*/
/*       <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 child.sub_children %}*/
/*             <li><a href="{{ child.href }}">{{ child.name }}<i class="fa fa-angle-right pull-right"></i></a>*/
/*               <div class="sub-dropdown-menu animated fadeInUp">*/
/*                 <div class="sub-dropdown-inner">*/
/*                   {% for sub_children in child.sub_children|batch(child.sub_children|length / child.column|round(1, 'ceil')) %}*/
/*                   <ul class="list-unstyled">*/
/*                     {% for sub_child in sub_children %}*/
/*                       <li><a href="{{ sub_child.href }}">{{ sub_child.name }}</a></li>*/
/*                     {% endfor %}*/
/*                   </ul>*/
/*                   {% endfor %}*/
/*                 </div>*/
/*                 <a href="{{ child.href }}" class="see-all">{{ text_all }} {{ child.name }}</a>*/
/*               </div>*/
/*             </li>*/
/*           {% else %}*/
/*             <li><a href="{{ child.href }}">{{ child.name }}</a></li>*/
/*           {% endif %}*/
/*           {% endfor %}*/
/*         </ul>*/
/*         {% endfor %}*/
/*       </div>*/
/*       <a href="{{ category.href }}" class="visible-xs see-all">{{ text_all }} {{ category.name }}</a>*/
/*     </div>*/
/*   </li>*/
/*   {% else %}*/
/*   <li><a href="{{ category.href }}">{{ category.name }}</a></li>*/
/*   {% endif %}*/
/*   {% endfor %}*/
/* </ul>*/
/* {% endif %}*/
/* */
