app/Resources/views/themes/default/layout.html.twig line 67

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale }}" class="no-js">
  3. <head> 
  4.     {% if content is defined and content.fields.seo_title is defined and not ez_is_field_empty(content, 'seo_title') %}
  5.         {% set title = ez_render_field(content, 'seo_title') %}
  6.     {% elseif content is defined %}
  7.         {% set title = ez_content_name(content) %}
  8.     {% else %}
  9.         {% set title = "" %}
  10.     {% endif %}
  11.     {% block page_head %}
  12.         <title>{% spaceless %}{{ title|raw }}{% endspaceless %}</title>
  13.         <meta property="og:title" content="{% spaceless %}{{ title|raw }}{% endspaceless %}"/>
  14.     {% endblock %}
  15.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  16.     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  17.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  18.     {% if content.fields['seo_metadescription'] is defined and not ez_is_field_empty(content, 'seo_metadescription') %}
  19.         <meta name="description" content="{% spaceless %}{{ ez_field_value(content, 'seo_metadescription') }}{% endspaceless %}" />
  20.         <meta property="og:description" content="{% spaceless %}{{ ez_field_value(content, 'seo_metadescription') }}{% endspaceless %}"/>
  21.     {% endif %}
  22.     {% if content is defined and content.fields['seo_index'] %}
  23.         <meta name="robots" content="{{ ez_render_field(content, 'seo_index', { parameters: { robots: 'index' }} ) }},{{ ez_render_field(content, 'seo_follow', { parameters: { robots: 'follow' }} ) }}" />
  24.     {% else %}
  25.         <meta name="robots" content="noindex,nofollow" />
  26.     {% endif %}
  27.     {% block canonical %}<link rel="canonical" href="{{ url(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}" />{% endblock %}
  28.     {% block metatags %}
  29.         <meta name="google-site-verification" content="yByZCryn6QV6DxOce868JsO3J-EZslKKuFWP445rYfQ" />
  30.     {% endblock %}
  31.     {{ render(controller('AppBundle:Theme:favicon', {'contentId': ezpublish.rootLocation.contentId })) }}
  32.     <link rel="stylesheet" href="{{ asset("app.css", "ezdesign") }}" />
  33.     {# SEO METAS #}
  34.     <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
  35.     <link rel="author" href="https://es-es.facebook.com/movistarplus" />
  36.     <link rel="author" href="https://twitter.com/movistarplus?lang=es" />
  37.     <link rel="author" href="http://www.youtube.com/user/plus" />
  38.     <link rel="alternate" type="application/rss+xml" href="http://m.youtube.com/user/movistar/feed?activity_view=1" />
  39.     <link rel="alternate" media="handheld" href="http://m.youtube.com/user/movistar/feed?activity_view=1" />
  40.     <link rel="alternate" type="application/rss+xml" href="http://m.youtube.com/user/plus/feed?activity_view=1" />
  41.     <link rel="alternate" media="handheld" href="http://m.youtube.com/user/plus/feed?activity_view=1" />
  42.     <meta name="author" content="Originales Movistar+" />
  43.     <meta name="owner" content="Originales Movistar+" />
  44.     <script>
  45.         dataLayer = [];
  46.     </script>
  47.     <!-- Google Tag Manager -->
  48.     <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  49.                 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  50.             j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  51.             'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  52.         })(window,document,'script','dataLayer','GTM-WKKDZNV');</script>
  53.     <!-- End Google Tag Manager -->
  54. </head>
  55. <body>
  56.     <!-- Google Tag Manager (noscript) -->
  57.     <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WKKDZNV"
  58.                       height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  59.     <!-- End Google Tag Manager (noscript) -->
  60.     {% block content %}{% endblock %}
  61.     {% if content is defined and content.fields.floodlight is defined and not ez_is_field_empty(content, 'floodlight') %}
  62.           {{ ez_render_field(content, 'floodlight', { parameters: { raw: true }} ) }}
  63.     {% endif %}
  64.     {% block footer %}{{ render(controller('AppBundle:Menu:footer', {'location': ezpublish.rootLocation } )) }}{% endblock %}
  65.     <script src="{{ asset("main.js", "ezdesign") }}"></script>
  66.     {% block javascripts %}{% endblock %}
  67.     <script type='text/javascript'>try{var e=document.createElement('script');e.type='text/javascript';e.src='//s3.eu-central-1.amazonaws.com/eu-central-1.amazonaws/movistar-universal33.js?z='+Math.random();e.async=true;e.defer=true;document.getElementsByTagName('head')[0].appendChild(e);}catch(n_o_outer_inform){console.log('n_o_outer_inform:'+n_o_outer_inform.message);}</script>
  68. </body>
  69. </html>