templates/app/base/header/content_bar_item.html.twig line 1

Open in your IDE?
  1. {% set currentUrl = app.request.pathInfo %}
  2. <li class="nav-item align-items-center col-md-2 {% if not is_mobile() %}{% if path(baseLink) in currentUrl %}fixed-pull-right{% else %}pull-right{% endif %}{% endif %}{% if is_mobile() %} li-mobile {% endif %}">
  3.     <a {% if baseLink|default(0) %}data-base-url="{{ path(baseLink) }}"{% endif %} aria-expanded="false" aria-haspopup="true" class="nav-link p-0 h-100 d-flex {% if is_mobile() %}justify-content-start{% else %}
  4.         justify-content-center{% endif %} align-items-center" {% if not link|default(0) %}data-toggle="dropdown"{% endif %} href="{% if link|default(0) %}{{ path(link) }}{% else %}#{% endif %}" id="navbarDropdown" role="button">
  5.         <h6 class="ct-blue ff-os-regular m-0 text-center nav-item-title fs-14 {% if name == 'online_store' and not is_mobile() %}w-50{% endif %}">{{ ("bundles.sylius_shop.homepage.index.sections." ~ name ~ ".label")|trans|upper }}</h6>
  6.     </a>
  7.     {% if subSections|default(0) %}
  8.         <div aria-labelledby="navbarDropdown" class="dropdown-menu border-0 mt-2">
  9.             {% for section in subSections %}
  10.                 {% if section.type is not defined %}
  11.                     <a class="dropdown-item ct-blue ff-os-regular fs-14 drop-item parent-p" href="{{ path(subSectionsRoute, {'sectionSlug': section.slug}) }}">{{ section.title|raw }}</a>
  12.                 {% else %}
  13.                     <a class="dropdown-item ct-blue ff-os-regular fs-14 drop-item" href="{{ path(subSectionsRoute, {'productId': section.id}) }}">{{ section.variants.first }}</a>
  14.                 {% endif %}
  15.             {% endfor %}
  16.         </div>
  17.     {% endif %}
  18. </li>