themes/BootstrapChildTheme/SyliusShopBundle/views/layout.html.twig line 79

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.     {# ==== Document Title ==== #}
  7.     {% block title %}
  8.         {{ sylius_template_event('dedi_sylius_seo_plugin.title', { resource: product ?? sylius.channel }) }}
  9.     {% endblock %}
  10.     {#<title>{% block title %}{{ sylius.channel.name }}{% endblock %}</title>#}
  11.     <meta content="width=device-width, initial-scale=1" name="viewport">
  12.     {# ==== Metatags ==== #}
  13.     {% block metatags %}
  14.         {{ sylius_template_event('dedi_sylius_seo_plugin.metatags', { resource: product ?? sylius.channel }) }}
  15.         {{ sylius_template_event('dedi_sylius_seo_plugin.rich_snippets') }}
  16.     {% endblock %}
  17.     {# ==== Links ==== #}
  18.     {% block links %}
  19.         {{ sylius_template_event('dedi_sylius_seo_plugin.links') }}
  20.     {% endblock %}
  21.     {# ==== Stylesheets ==== #}
  22.     {% block stylesheets %}
  23.         {{ sylius_template_event('sylius.shop.layout.stylesheets') }}
  24.     {% endblock %}
  25.     {# ==== Favicon ==== #}
  26.     {% block favicon %}
  27.         <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('apple-touch-icon.png') }}">
  28.         <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('favicon-32x32.png') }}">
  29.         <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('favicon-16x16.png') }}">
  30.         <link rel="manifest" href="{{ asset('site.webmanifest') }}">
  31.         <link rel="mask-icon" href="{{ asset('safari-pinned-tab.svg') }}" color="#005fa9">
  32.         <meta name="msapplication-TileColor" content="#fafafa">
  33.         <meta name="theme-color" content="#fafafa">
  34.     {% endblock %}
  35.     {# ==== Sylius Template Event ==== #}
  36.     {{ sylius_template_event('sylius.shop.layout.head') }}
  37. </head>
  38. <body class="page">
  39. {{ sylius_template_event('sylius.shop.layout.before_body') }}
  40. {# ==== Header ==== #}
  41. {% block header %}
  42.     {#{{ sylius_template_event('sylius.shop.layout.topbar') }}#}
  43.     {#{{ sylius_template_event('sylius.shop.layout.header') }}#}
  44.     <header class="page-header">
  45.         <nav class="navbar navbar-expand-lg container-fluid navbar-light bg-white border-bottom">
  46.             {% block shop_header %}
  47.                 {{ sylius_template_event('app.shop.layout.header', _context) }}
  48.             {% endblock %}
  49.         </nav>
  50.     </header>
  51. {% endblock %}
  52. {% set _breadcrumb = block('breadcrumb') ?? null %}
  53. <div class="page-main">
  54.     {# ==== Content ==== #}
  55.     {% block main_content %}
  56.         <main class="main-container container-fluid mb-7{% if not _breadcrumb %} mt-7{% endif %}">
  57.             {% block breadcrumb %}{% endblock %}
  58.             {% block flashes %}
  59.                 {% include '@SyliusShop/_flashes.html.twig' %}
  60.             {% endblock %}
  61.             {{ sylius_template_event('sylius.shop.layout.before_content') }}
  62.             {% block content %}{% endblock %}
  63.             {{ sylius_template_event('sylius.shop.layout.after_content') }}
  64.         </main>
  65.     {% endblock %}
  66. </div>
  67. {# ==== Footer ==== #}
  68. {% block footer %}
  69.     <footer class="page-footer">
  70.         {{ sylius_template_event('app.shop.layout.footer') }}
  71.     </footer>
  72.     {#{% include '@SyliusShop/_footer.html.twig' %}#}
  73. {% endblock %}
  74. {# ==== Stylesheets ==== #}
  75. {% block javascripts %}
  76.     {{ sylius_template_event('sylius.shop.layout.javascripts') }}
  77. {% endblock %}
  78. {{ sylius_template_event('sylius.shop.layout.after_body') }}
  79. <div class="loading-overlay" data-js-loading-overlay>
  80.     <div class="spinner-border" role="status">
  81.         <span class="sr-only">Loading...</span>
  82.     </div>
  83. </div>
  84. </body>
  85. </html>