custom/plugins/UandiCustomCmsElements/src/Resources/views/storefront/element/cms-element-custom-navigation.html.twig line 1

Open in your IDE?
  1. <div class="cms-element-{{ element.type }}">
  2.     <div class="custom-navigation-box">
  3.         {% if element.config.showTitle.value and (element.data.title or element.config.rootAsTitle.value) %}
  4.             <h4 class="custom-navigation-title category-navigation-link">
  5.                 {% if element.config.rootAsTitle.value %}
  6.                     <a href="{{ category_url(element.data.entryPoint) }}">{{ element.data.entryPoint.translated.name }}</a>
  7.                 {% else %}
  8.                     {{ element.data.title }}
  9.                 {% endif %}
  10.             </h4>
  11.         {% endif %}
  12.         {% sw_include '@Storefront/storefront/layout/sidebar/category-navigation.html.twig' with {
  13.             navigationTree: element.data.tree.tree,
  14.             activeResult: element.data.tree.active
  15.         } only %}
  16.     </div>
  17. </div>