templates/web/customer/location/node.twig line 1

Open in your IDE?
  1. {##
  2.  # Common node
  3.  #}
  4. <li {{ this.printTagAttributes(this.getListContainerAttributes())|raw }}>
  5.   {% if this.getLink() %}
  6.     <a href="{{ this.getLink() }}" class="location-title"><span>{{ this.getName() }}</span></a>
  7.   {% else %}
  8.     <span class="location-text">{{ this.getName() }}</span>
  9.   {% endif %}
  10.   {% if this.getSubnodes() %}
  11.     <ul class="location-subnodes">
  12.       {% for node in this.getSubnodes() %}
  13.         <li>
  14.           {% if node.getName() != this.getName() %}
  15.             <a href="{{ node.getLink() }}">{{ node.getName() }}</a>
  16.           {% endif %}
  17.           {% if node.getName() == this.getName() %}
  18.             <a href="{{ node.getLink() }}" class="current">{{ node.getName() }}</a>
  19.           {% endif %}
  20.         </li>
  21.       {% endfor %}
  22.       {% if this.moreLinkNeeded() and this.getLink() %}
  23.         <li class='more-link'>
  24.             <a href="{{ this.getMoreLink() }}" class="location-title"><span>{{ t('More') }}...</span></a>
  25.         </li>
  26.       {% endif %}
  27.     </ul>
  28.   {% endif %}
  29. </li>