templates/bundles/SyliusShopBundle/layout.html.twig line 40

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale|slice(0, 2) }}">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     {% block seo_title %}
  7.         {{ sylius_template_event('dedi_sylius_seo_plugin.title', { resource: product ?? taxon ?? vendor ?? page ?? sylius.channel }) }}
  8.     {% endblock %}
  9.     <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  10.     <link rel="preconnect" href="https://fonts.googleapis.com">
  11.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  12.     <link rel="icon" href="/favicon.svg" type="image/svg+xml">
  13.     <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
  14.     {% include '@SyliusShop/_links.html.twig' %}
  15.     {% block seo_metatags %}
  16.         {{ sylius_template_event('dedi_sylius_seo_plugin.metatags', { resource: product ?? taxon ?? vendor ?? page ?? sylius.channel }) }}
  17.         {{ sylius_template_event('dedi_sylius_seo_plugin.rich_snippets') }}
  18.         {% set resourceToUse = taxon is defined ? taxon : (vendor is defined ? vendor : (page is defined ? page : null)) %}
  19.         {% if resourceToUse is not null %}
  20.             <script type="application/ld+json">
  21.               {{ generate_schema_markup(resourceToUse) | json_encode(constant('JSON_PRETTY_PRINT')) | replace({'\\/':'/'}) | raw }}
  22.             </script>
  23.         {% endif %}
  24.     {% endblock %}
  25.     {% block stylesheets %}
  26.         {{ sylius_template_event('sylius.shop.layout.stylesheets') }}
  27.     {% endblock %}
  28.     {{ sylius_template_event('sylius.shop.layout.head') }}
  29. </head>
  30. <body class="pushable">
  31. {{ render_esi(path('ch_cookie_consent.show_if_cookie_consent_not_set', { 'locale' : app.request.locale })) }}
  32. {{ sylius_template_event('sylius.shop.layout.before_body') }}
  33. {% block messages %}
  34.     <div class="hyf-messages"></div>
  35. {% endblock %}
  36. {% block sidebar %}
  37.     <div class="ui right wide sidebar vertical menu overlay mobile-sidebar">
  38.         {{ sylius_template_event('sylius.shop.layout.sidebar') }}
  39.     </div>
  40. {% endblock %}
  41. {% block accountSidebar %}
  42.     {% if app.user != null %}
  43.         <div class="ui left wide sidebar vertical menu overlay mobile-account-sidebar">
  44.             {% include 'Context/Vendor/Menu/_mobileMenu.html.twig' %}
  45.         </div>
  46.     {% endif %}
  47. {% endblock %}
  48. <div class="pusher" data-route="{{ app.request.get('_route') }}">
  49.     {% block top %}
  50.         <div id="menu" class="top-menu bg-white">
  51.             <div class="ui container">
  52.                 <div class="top-bar">
  53.                     {% include "@SyliusShop/Layout/Header/_logo.html.twig" %}
  54.                     {{ sylius_template_event('sylius.shop.layout.topbar') }}
  55.                 </div>
  56.             </div>
  57.         </div>
  58.     {% endblock %}
  59.     {% block header %}
  60.         <div class="bg-topaz-100">
  61.             <div class="ui container">
  62.                 {% include '@SyliusShop/Layout/Header/_menu.html.twig' %}
  63.             </div>
  64.         </div>
  65.         <div class="ui hidden divider"></div>
  66.     {% endblock %}
  67.     <div class="ui container">
  68.         {% include '@SyliusShop/_flashes.html.twig' %}
  69.         {{ sylius_template_event('sylius.shop.layout.before_content') }}
  70.         {% block content %}
  71.         {% endblock %}
  72.         {{ sylius_template_event('sylius.shop.layout.after_content') }}
  73.     </div>
  74.     {% block footer %}
  75.         {% include '@SyliusShop/_footer.html.twig' %}
  76.     {% endblock %}
  77. </div>
  78. {% block javascripts %}
  79.     {{ sylius_template_event('sylius.shop.layout.javascripts') }}
  80.     <script>
  81.         const addToCompareSuccessTitle = '{{ 'sylius.ui.success'|trans }}';
  82.         const addToCompareSuccess = '{{ 'app.product_compare.added'|trans }}';
  83.         const addToCompareErrorTitle = '{{ 'sylius.ui.error'|trans }}';
  84.         const addToCompareError = '{{ 'app.product_compare.fail'|trans }}';
  85.         const visitComparisonPage = '{{ 'app.ui.visit_comparison_page'|trans }}';
  86.         const comparisonPageUrl = '{{ path('app_shop_product_compare_show') }}';
  87.         const addToCompareUrl = '{{ url('app_shop_product_compare_add_to_compare', {'productId': '{id}'}) }}'
  88.     </script>
  89. {% endblock %}
  90. {% block confirmationModal %}
  91.     {% include '@SyliusUi/Modal/_confirmation.html.twig' %}
  92. {% endblock %}
  93. {{ sylius_template_event('sylius.shop.layout.after_body') }}
  94. </body>
  95. </html>