themes/BootstrapExtendTheme/SyliusShopBundle/views/Account/layout.html.twig line 1

Open in your IDE?
  1. {% extends is_mobile.check ? '@templates/Mobile/Shop/layout.html.twig' : '@templates/Front/Shop/layout.html.twig' %}
  2. {% block content %}
  3.     {% block breadcrumb %}
  4.     {% endblock %}
  5.     <button id="toggleButton" class="d-lg-none d-md-block">
  6.         <i class="fa fa-bars menu-icon"></i>
  7.         <i class="fa fa-times close-icon d-none"></i>
  8.     </button>
  9.     <div class="row">
  10.         <div class="col-12 col-md-4 col-lg-3 mb-4 menu d-none d-md-block">
  11.             {{ sonata_block_render_event('sylius.shop.account.layout.before_menu') }}
  12.             {{ knp_menu_render('sylius.shop.account', {'template': '@SyliusShop/Menu/simple.html.twig'}) }}
  13.             {{ sonata_block_render_event('sylius.shop.account.layout.after_menu') }}
  14.         </div>
  15.         <div class="col-12 col-md-8 col-lg-9">
  16.             {{ sonata_block_render_event('sylius.shop.account.layout.before_subcontent') }}
  17.             {% block subcontent %}
  18.             {% endblock %}
  19.             {{ sonata_block_render_event('sylius.shop.account.layout.after_subcontent') }}
  20.         </div>
  21.     </div>
  22.     <style>
  23.         #toggleButton {
  24.             float: right;
  25.             display: block;
  26.             margin-top: -20px;
  27.             border: 1px solid;
  28.             margin-right: 10px;
  29.             }
  30.         </style>
  31.     <script>
  32.         $('#toggleButton').on('click', function() {
  33.             $('.menu').toggleClass('d-none');
  34.             $('.menu-icon').toggleClass('d-none');
  35.             $('.close-icon').toggleClass('d-none');
  36.         })
  37.     </script>
  38. {% endblock %}