templates/Context/Vendor/Menu/_mobileMenu.html.twig line 1

Open in your IDE?
  1. <div class="nav-header">
  2.     <div class="content text-xl font-bold">
  3.         {{ 'app.ui.mobile_menu.account'|trans }}
  4.     </div>
  5.     <span class="material-symbols-outlined mobile-account-sidebar-trigger">close</span>
  6. </div>
  7. <div class="ui divider"></div>
  8. <div class="mobile-menu">
  9.     {% set vendor = app.user.customer.organizationVendor|default(null) %}
  10.     {% set accountMenu = knp_menu_render('sylius.shop.account', {'template': '@SyliusShop/Menu/mobile.html.twig'}) %}
  11.     {% set buyerMenu = knp_menu_render('app.buyer.menu', {'template': '@SyliusShop/Menu/mobile.html.twig', 'opened': true}) %}
  12.     {% set organizationMenu =  knp_menu_render('app.organization.menu', {'template': '@SyliusShop/Menu/mobile.html.twig'}) %}
  13.     {% set vendorMenu =  knp_menu_render('open_marketplace.core.vendor.menu', {'template': '@SyliusShop/Menu/mobile.html.twig', 'opened': true}) %}
  14.     {% if null == vendor %}
  15.         {{ buyerMenu|raw }}
  16.         {{ organizationMenu|raw }}
  17.         {{ accountMenu|raw }}
  18.         {{ vendorMenu|raw }}
  19.     {% else %}
  20.         {{ vendorMenu|raw }}
  21.         {{ buyerMenu|raw }}
  22.         {{ organizationMenu|raw }}
  23.         {{ accountMenu|raw }}
  24.     {% endif %}
  25. </div>