templates/Frontend/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
  6.         <meta name="MobileOptimized" content="320">
  7.         <meta name="HandheldFriendly" content="True">
  8.         <link rel="icon" type="image/x-icon" href="{{ asset('assets/images/icon.png') }}" />
  9.         <!--<link rel="icon" href="{{ asset('assets/images/favicon.ico') }}">-->
  10.         <meta http-equiv="x-ua-compatible" content="IE=edge">
  11.         {% if app.environment == 'dev' %}
  12.             <meta name="robots" content="noindex, nofollow" /> {# Por defecto content="all", así que no hace falta definir el else #}
  13.         {% else %}
  14.             <!-- Google Tag Manager -->
  15.                 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  16.                 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  17.                 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  18.                 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  19.                 })(window,document,'script','dataLayer','GTM-W7XXH57');</script>
  20.             <!-- End Google Tag Manager -->
  21.             <!--<script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="c400bdda-c06a-473a-8bfe-2cb0aa7f9a8d" data-blockingmode="auto" type="text/javascript" ></script>-->
  22.         {% endif %}
  23.         {% set current_path = app.request.get('_route') %}
  24.         {% if current_path == 'promo'%}
  25.             <meta name="robots" content="noindex, nofollow" />
  26.         {% endif %}
  27.         {% block seo %}
  28.             <title>{% block title %}RCD Espanyol{% endblock %}</title>
  29.         {% endblock %}
  30.         {# Run `composer require symfony/webpack-encore-bundle`
  31.            and uncomment the following Encore helpers to start using Symfony UX #}
  32.         {% block stylesheets %}
  33.            <link rel="stylesheet" href="{{ asset('build/front.css') }}" />
  34.            <link rel="stylesheet" href="{{ asset('css/frontend/style_min.css') }}" />
  35.            <link rel="stylesheet" href="{{ asset('css/frontend/_style.css') }}" />
  36.            <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css" integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg" crossorigin="anonymous" />
  37.         {% endblock %}
  38.      </head>
  39.     <body>
  40.         {% if app.environment != 'dev' %}
  41.         <!-- Google Tag Manager (noscript) -->
  42.             <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W7XXH57"
  43.             height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  44.         <!-- End Google Tag Manager (noscript) -->
  45.         {% endif %}
  46.         {% block header %}
  47.             {% include 'Frontend/common/topHeader.html.twig' %}
  48.         {% endblock %}
  49.         {% block body %}{% endblock %}
  50.         {% block footer %}
  51.             {% include 'Frontend/common/footer.html.twig' %}
  52.         {% endblock %}
  53.         {% block javascripts %}
  54.             <script src="{{ asset('build/front.js') }}"></script>
  55.       {% endblock %}
  56.     </body>
  57. </html>