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

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