templates/block/topmobilecatmenu.html.twig line 1

Open in your IDE?
  1. <li class="ce-mobile dropdown{% if args[0] == 'checkout' %} visible-xs{% endif %}">
  2.     <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-bars">&nbsp;&nbsp;</i>{{ labels.get('mobile-static-menu-4')|raw }} <span class="caret"></span></a>
  3.     {% if menu|length %}
  4.         <ul class="dropdown-menu dropdown-menu-right">
  5.             <li>
  6.                 <div class="m-top-cats">
  7.                     <ul>
  8.                         {% for cat in menu %}
  9.                             <li>
  10.                                 <a href="{{ path('prod_list_cat', {'cat_id': cat.id, 'cat_intname': cat.intname}) }}">
  11.                                     <img src="{{ asset('catpic/' ~ cat.id ~ '.svg', 'pic') }}" height="20" alt="" class="iacat">
  12.                                     <img src="{{ asset('catpic/' ~ cat.id ~ 'a' ~ (env.is_opt ? 'opt' : '') ~'.svg', 'pic') }}" height="20" alt="" class="acat">&nbsp;&nbsp;{{ cat.name |raw }}
  13.                                 </a>
  14.                                 {% if cat.subcats|length %}
  15.                                     <ul class="m-top-cats-sub">
  16.                                         {% for subcat in cat.subcats %}
  17.                                             <li><a href="{{ path('prod_list_cat', {'cat_id': subcat.id, 'cat_intname': subcat.intname}) }}">{{ subcat.name |raw }}</a></li>
  18.                                         {% endfor %}
  19.                                     </ul>
  20.                                 {% endif %}
  21.                             </li>
  22.                         {% endfor %}
  23.                     </ul>
  24.                 </div>
  25.             </li>
  26.         </ul>
  27.     {% endif %}
  28. </li>