templates/partials/menu/menu_main_mobile_logged_in.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'frontend' %}
  2. {% set currentPath = app.request.pathInfo %}
  3. {% set currentRoute = app.request.attributes.get('_route') %}
  4. <ul class="main-menu-mobile d-lg-none">
  5.     <li class="mb-lg-0">
  6.         <a href="{{ path('deal_list')}}" class="{% if currentPath matches '*/deal*' %} active{% endif %}" data-original-title="" title="">
  7.             <span>{{ 'menu.deal'|trans }}</span>
  8.         </a>
  9.     </li>
  10.     <li class="mb-lg-0">
  11.         <a href="{{ path('feed') }}" class="{% if currentPath matches '*/feed*' %} active{% endif %}" data-original-title="" title="">
  12.             <span>{{ 'menu.feed'|trans }}</span>
  13.         </a>
  14.     </li>
  15.     <li class="mb-lg-0">
  16.         <a href="{{ path('shop_video_list') }}" class="{% if currentPath matches '*/video*' %} active{% endif %}" data-original-title="" title="">
  17.             <span>{{ 'menu.video'|trans }}</span>
  18.         </a>
  19.     </li>
  20.     <li class="mb-lg-0 d-flex align-items-baseline">
  21.         <a href="{{ path('message', {filter: 'all'}) }}" class="{% if currentPath matches '*/mails*' %} active{% endif %}" data-original-title="" title="">
  22.             <span>{{ 'menu.mails'|trans }}</span>
  23.         </a>
  24.         {% if is_granted('ROLE_USER')  %}
  25.             {% set messageCount = get_crud_action('App\\Controller\\Message\\MessageCountController').params.count %}
  26.             <span class="message-count{% if messageCount == 0 %} d-none{%- endif %}">{{ messageCount }}</span>
  27.         {% endif %}
  28.     </li>
  29.     <li class="mb-lg-0">
  30.         <div class="dropdown about-menu">
  31.             <a href="#" class="dropdown-toggle {% if currentPath matches '*/about*' %}active{% endif %}" data-toggle="dropdown" aria-expanded="false">
  32.                 <span>{{ 'menu.about'|trans }}</span>
  33.             </a>
  34.             <div class="dropdown-menu dropdown-menu-md dropdown-menu-right dropdown-menu-s1">
  35.                 <div class="dropdown-inner">
  36.                     <ul class="link-list">
  37.                         <li>
  38.                             <a href="{{ path('products') }}" class="{% if currentRoute == 'products' %}active{% endif %}">
  39.                                 <i class="icon dp-icon-product_services"></i>
  40.                                 <span>{{ 'about.menu.product'|trans }}</span>
  41.                             </a>
  42.                         </li>
  43.                         <li>
  44.                             <a href="{{ path('club_rules') }}" class="{% if currentRoute == 'club_rules' %}active{% endif %}">
  45.                                 <i class="icon dp-icon-club_rules"></i>
  46.                                 <span>{{ 'about.menu.rules'|trans }}</span>
  47.                             </a>
  48.                         </li>
  49.                         <li>
  50.                             <a href="{{ path('faq') }}" class="{% if currentRoute == 'faq' %}active{% endif %}">
  51.                                 <i class="icon dp-icon-questions"></i>
  52.                                 <span>{{ 'about.menu.faq'|trans }}</span>
  53.                             </a>
  54.                         </li>
  55.                         <li>
  56.                             <a href="{{ path('contact') }}" class="{% if currentRoute == 'contact' %}active{% endif %}">
  57.                                 <i class="icon dp-icon-online-support"></i>
  58.                                 <span>{{ 'about.menu.contact'|trans }}</span>
  59.                             </a>
  60.                         </li>
  61.                     </ul>
  62.                 </div>
  63.             </div>
  64.         </div>
  65.     </li>
  66. </ul>