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

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.     {% include '@SyliusShop/_clarity.html.twig' %}
  16.     {% block seo_metatags %}
  17.         {{ sylius_template_event('dedi_sylius_seo_plugin.metatags', { resource: product ?? taxon ?? vendor ?? page ?? sylius.channel }) }}
  18.         {{ sylius_template_event('dedi_sylius_seo_plugin.rich_snippets') }}
  19.         {% set resourceToUse = taxon is defined ? taxon : (vendor is defined ? vendor : (page is defined ? page : null)) %}
  20.         {% if resourceToUse is not null %}
  21.             <script type="application/ld+json">
  22.               {{ generate_schema_markup(resourceToUse) | json_encode(constant('JSON_PRETTY_PRINT')) | replace({'\\/':'/'}) | raw }}
  23.             </script>
  24.         {% endif %}
  25.     {% endblock %}
  26.     {% block stylesheets %}
  27.         {{ sylius_template_event('sylius.shop.layout.stylesheets') }}
  28.     {% endblock %}
  29.     {{ sylius_template_event('sylius.shop.layout.head') }}
  30. </head>
  31. <body class="pushable">
  32. {{ render_esi(path('ch_cookie_consent.show_if_cookie_consent_not_set', { 'locale' : app.request.locale })) }}
  33. {{ sylius_template_event('sylius.shop.layout.before_body') }}
  34. {% block messages %}
  35.     <div class="hyf-messages"></div>
  36. {% endblock %}
  37. {% block sidebar %}
  38.     <div class="ui right wide sidebar vertical menu overlay mobile-sidebar">
  39.         {{ sylius_template_event('sylius.shop.layout.sidebar') }}
  40.     </div>
  41. {% endblock %}
  42. {% block accountSidebar %}
  43.     {% if app.user != null %}
  44.         <div class="ui left wide sidebar vertical menu overlay mobile-account-sidebar">
  45.             {% include 'Context/Vendor/Menu/_mobileMenu.html.twig' %}
  46.         </div>
  47.     {% endif %}
  48. {% endblock %}
  49. <div class="pusher" data-route="{{ app.request.get('_route') }}">
  50.     {% block top %}
  51.         <div id="menu" class="top-menu bg-white">
  52.             <div class="ui container">
  53.                 <div class="top-bar">
  54.                     {% include "@SyliusShop/Layout/Header/_logo.html.twig" %}
  55.                     {{ sylius_template_event('sylius.shop.layout.topbar') }}
  56.                 </div>
  57.             </div>
  58.         </div>
  59.     {% endblock %}
  60.     {% block header %}
  61.         <div id="menu-categories" class="bg-topaz-100">
  62.             <div class="ui container">
  63.                 {% include '@SyliusShop/Layout/Header/_menu.html.twig' %}
  64.             </div>
  65.         </div>
  66.         <div class="ui hidden divider"></div>
  67.     {% endblock %}
  68.     <div class="ui container">
  69.         {% include '@SyliusShop/_flashes.html.twig' %}
  70.         {{ sylius_template_event('sylius.shop.layout.before_content') }}
  71.         {% block content %}
  72.         {% endblock %}
  73.         {{ sylius_template_event('sylius.shop.layout.after_content') }}
  74.     </div>
  75.     {% block footer %}
  76.         {% include '@SyliusShop/_footer.html.twig' %}
  77.     {% endblock %}
  78. </div>
  79. {% block javascripts %}
  80.     {{ sylius_template_event('sylius.shop.layout.javascripts') }}
  81.     <script>
  82.         const addToCompareSuccessTitle = '{{ 'sylius.ui.success'|trans }}';
  83.         const addToCompareSuccess = '{{ 'app.product_compare.added'|trans }}';
  84.         const addToCompareErrorTitle = '{{ 'sylius.ui.error'|trans }}';
  85.         const addToCompareError = '{{ 'app.product_compare.fail'|trans }}';
  86.         const visitComparisonPage = '{{ 'app.ui.visit_comparison_page'|trans }}';
  87.         const comparisonPageUrl = '{{ path('app_shop_product_compare_show') }}';
  88.         const addToCompareUrl = '{{ url('app_shop_product_compare_add_to_compare', {'productId': '{id}'}) }}'
  89.     </script>
  90. {% endblock %}
  91. {% block confirmationModal %}
  92.     {% include '@SyliusUi/Modal/_confirmation.html.twig' %}
  93. {% endblock %}
  94. {{ sylius_template_event('sylius.shop.layout.after_body') }}
  95. </body>
  96. </html>