src/CoreBundle/Resources/views/Includes/headDefault.html.twig line 52

Open in your IDE?
  1. <head>
  2.     <meta charset="UTF-8">
  3.     <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  4.     {% spaceless -%}
  5.         <!--
  6.         /**
  7.          * @license
  8.          * MyFonts Webfont Build ID 3697904, 2019-01-14T14:44:27-0500
  9.          *
  10.          * The fonts listed in this notice are subject to the End User License
  11.          * Agreement(s) entered into by the website owner. All other parties are
  12.          * explicitly restricted from using the Licensed Webfonts(s).
  13.          *
  14.          * You may obtain a valid license at the URLs below.
  15.          *
  16.          * Webfont: FrutigerLTPro-Light by Linotype
  17.          * URL: https://www.myfonts.com/fonts/linotype/frutiger/pro-45-light/
  18.          *
  19.          * Webfont: FrutigerLTPro-Roman by Linotype
  20.          * URL: https://www.myfonts.com/fonts/linotype/frutiger/pro-55-roman-2/
  21.          *
  22.          * Webfont: FrutigerLTPro-Bold by Linotype
  23.          * URL: https://www.myfonts.com/fonts/linotype/frutiger/pro-65-bold-2/
  24.          *
  25.          *
  26.          * License: https://www.myfonts.com/viewlicense?type=web&buildid=3697904
  27.          * Licensed pageviews: 1,000,000
  28.          * Webfonts copyright: Copyright &#x00A9; 2014 - 2016 Monotype Imaging Inc. All rights
  29.          * reserved.
  30.          *
  31.          * © 2019 MyFonts Inc
  32.         */
  33.         -->
  34.         {{ include('Includes/appendStylesandScripts.html.twig') }}
  35.         {% if not document is defined or not document %}
  36.             {% set document = pimcore_document(navigationStartId) %}
  37.         {% endif %}
  38.         {% if document is instanceof('\\Pimcore\\Model\\Document\\Link') %}
  39.             {# @var document \Pimcore\Model\Document\Link #}
  40.             {% set document = document.getObject() %}
  41.         {% endif %}
  42.         {% do pimcore_head_title().append(pageTitlePrefix) %}
  43.         {% do pimcore_head_title().setSeparator(' | ') %}
  44.         {% if document.getTitle() is not empty %}
  45.             {# print title #}
  46.             {{ pimcore_head_title(document.getTitle()) }}
  47.             {% do pimcore_head_meta().setName('og:title', document.getTitle()) |raw %}
  48.         {% else %}
  49.             {{ pimcore_head_title(document.properties.navigation_name.data) }}
  50.             {% do pimcore_head_meta().setName('og:title', document.properties.navigation_name.data) |raw %}
  51.         {% endif %}
  52.         {% if document.getProperty('og-image') is not empty %}
  53.             {% do pimcore_head_meta().setName('og:image', hostUrl ~document.getProperty('og-image') ) |raw %}
  54.         {% endif %}
  55.         {% if document.getDescription() is not empty %}
  56.             {% do pimcore_head_meta().setDescription(document.getDescription()) %}
  57.             {% do pimcore_head_meta().setName('og:description', document.getDescription()) |raw %}
  58.         {% endif %}
  59.     {%- endspaceless %}
  60.     {% block layout_head_meta deferred %}
  61.     {# print meta #}
  62.     {{ pimcore_head_meta() }}
  63.     {% endblock %}
  64.     {% block head_stylesheets deferred %}
  65.     {{ pimcore_head_link() }}
  66.     {% endblock %}
  67.     {% block head_tag_manager deferred %}
  68.     {{ tag_manager_datalayer_render() }}
  69.     {% endblock %}
  70.     {#{% block head_ie_stylesheets %}#}
  71.     {#<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->#}
  72.     {#<!--[if lt IE 9]>#}
  73.     {#<script src="{{ asset('static/js/html5shiv.js') }}"></script>#}
  74.     {#<script src="{{ asset('static/js/respond.min.js') }}"></script>#}
  75.     {#<![endif]-->#}
  76.     {#{% endblock %}#}
  77.     {% if document.getProperty("preload.fast.fonts.net") is not empty and document.getProperty("preload.fast.fonts.net") %}
  78.     <link rel="preconnect" href="https://fast.fonts.net" crossorigin>
  79.     <link rel="dns-prefetch" href="https://fast.fonts.net" >
  80.     {% endif %}
  81.     {{ include('Includes/appendFavicons.html.twig') }}
  82. </head>