templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale?app.request.locale:'en' }}" data-vat="{% if app.user.shop is not null %}{{ app.user.shop.country=='es'?'21':'20'}}{%  endif %}">
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.         <title>{% block title %}Bak2!{% endblock %}</title>
  7.         <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
  8.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  9.         {% block stylesheets %}
  10.             {{ encore_entry_link_tags('app') }}
  11.         {% endblock %}
  12.         {% block javascripts %}
  13.             <script>var language='{{  app.request.locale}}'</script>
  14.             {{ encore_entry_script_tags('app') }}
  15.             <!-- Google tag (gtag.js) -->
  16.             <script async src=https://www.googletagmanager.com/gtag/js?id=G-C5BWR48C35></script>
  17.             <script>
  18.                 window.dataLayer = window.dataLayer || [];
  19.                 function gtag(){dataLayer.push(arguments);}
  20.                 gtag('js', new Date());
  21.                 gtag('config', 'G-C5BWR48C35');
  22.             </script>
  23.         {% endblock %}
  24.     </head>
  25.     <body >
  26.     {%  block header %}
  27.         <header id="header" class="fixed-top">
  28.             {% include "_layout/top.html.twig" %}
  29.             {% include "_layout/admin.html.twig" %}
  30.             {% include "_layout/header.html.twig" %}
  31.             {% if is_granted('ROLE_USER') %}
  32.             {{ render(controller(
  33.                 'App\\Controller\\CategoryController::menu',{'category':app.request.query.get('category')}
  34.             )) }}
  35.             {% endif %}
  36.         </header>
  37.     {%  endblock header %}
  38.     <div class="container">
  39.         {% for message in app.flashes('error') %}
  40.             <div class="alert alert-danger my-4">
  41.                 {{ message }}
  42.             </div>
  43.         {% endfor %}
  44.         {% for message in app.flashes('success') %}
  45.             <div class="alert alert-success my-4">
  46.                 {{ message }}
  47.             </div>
  48.         {% endfor %}
  49.         <div id="mainContent" class="py-4">
  50.             {%  block subnav %}{%  endblock %}
  51.             {% block body %}{% endblock %}
  52.         </div>
  53.     </div>
  54.     {%  block footer %}
  55.     {% include "_layout/footer.html.twig" %}
  56.     {%  endblock %}
  57.     {% if is_granted('ROLE_SUPER_ADMIN') == false %}
  58.         {% if app.user.shop is not null %}
  59.             {% if userService.needsCompany(app.user,app.user.shop) %}
  60.                 {{ render(controller(
  61.                     'App\\Controller\\CompanyController::companyModal'
  62.                 )) }}
  63.                 {%  endif %}
  64.         {%  endif %}
  65.     {%  endif %}
  66.     </body>
  67. </html>