src/CoreBundle/Resources/views/Includes/headRecipe.html.twig line 1

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