templates/bundles/SyliusShopBundle/Taxon/_verticalMenu.html.twig line 1

  1. {{ sonata_block_render_event('sylius.shop.product.index.before_vertical_menu', {'taxon': taxon}) }}
  2. {% if  taxon.code != 'category' %} 
  3. <div class="sidebar-widget category-widget">
  4.     <div class="widget-title">
  5.         <h5 class="widget-title">{{ taxon.name }}</h5>
  6.     </div>
  7.     <div class="widget-content">
  8.         <ul class="category-list clearfix">
  9.             {% if taxon.parent is not empty and not taxon.parent.isRoot() and taxon.parent.enabled %}
  10.                 <li>
  11.                     <a href="{{ path('sylius_shop_product_index', {'slug': taxon.parent.slug, '_locale': taxon.parent.translation.locale}) }}">
  12.                         <span>
  13.                             <i class="up arrow icon"></i>
  14.                             {{ 'sylius.ui.go_level_up'|trans }}</span>
  15.                     </a>
  16.                 </li>
  17.             {% endif %}
  18.             {% for child in taxon.enabledChildren %}
  19.                 <li>
  20.                     <a href="{{ path('sylius_shop_product_index', {'slug': child.slug, '_locale': child.translation.locale}) }}">
  21.                         <span>{{ child.name }}</span>
  22.                         <span></span>
  23.                     </a>
  24.                 </li>
  25.             {% endfor %}
  26.         </ul>
  27.     </div>
  28. </div>
  29. {% endif %}
  30. {{ sonata_block_render_event('sylius.shop.product.index.after_vertical_menu', {'taxon': taxon}) }}