custom/plugins/Tuerschild_2/src/Resources/views/storefront/layout/meta.html.twig line 126

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  2. {% block layout_head_inner %}
  3.     {% set metaInformation = page.metaInformation %}
  4.     {% set basicConfig = config('core.basicInformation') %}
  5.     {% set maxLength = config('seo.descriptionMaxLength') %}
  6.     {% set metaDescription = metaInformation.metaDescription|striptags|trim %}
  7.     {% set metaTitle = metaInformation.metaTitle|striptags|trim %}
  8.     {% set metaKeywords = metaInformation.metaKeywords|striptags|trim %}
  9.     <head>
  10.         {% block layout_head_meta_tags %}
  11.             {% block layout_head_meta_tags_charset %}
  12.                 <meta charset="utf-8">
  13.             {% endblock %}
  14.             {% block layout_head_meta_tags_viewport %}
  15.                 <meta name="viewport"
  16.                       content="width=device-width, initial-scale=1, shrink-to-fit=no">
  17.             {% endblock %}
  18.             {% block layout_head_meta_tags_general %}
  19.                 <meta name="author"
  20.                       content="{% block layout_head_meta_tags_general_author %}{{ metaInformation.author|striptags }}{% endblock %}"/>
  21.                 <meta name="robots"
  22.                       content="{% block layout_head_meta_tags_robots %}{{ metaInformation.robots }}{% endblock %}"/>
  23.                 <meta name="revisit-after"
  24.                       content="{% block layout_head_meta_tags_general_revisit %}{{ metaInformation.revisit|striptags }}{% endblock %}"/>
  25.                 <meta name="keywords"
  26.                       content="{% block layout_head_meta_tags_keywords %}{{ metaKeywords }}{% endblock %}"/>
  27.                 <meta name="description"
  28.                       content="{% block layout_head_meta_tags_description %}{{ metaDescription }}{% endblock %}"/>
  29.             {% endblock %}
  30.             {% block layout_head_meta_tags_opengraph %}
  31.                 <meta property="og:type"
  32.                       content="{% block layout_head_meta_tags_type_og %}website{% endblock %}"/>
  33.                 <meta property="og:site_name"
  34.                       content="{% block layout_head_meta_tags_sitename_og %}{{ basicConfig.shopName }}{% endblock %}"/>
  35.                 <meta property="og:title"
  36.                       content="{% block layout_head_meta_tags_title_og %}{{ metaTitle }}{% endblock %}"/>
  37.                 <meta property="og:description"
  38.                       content="{% block layout_head_meta_tags_description_og %}{{ metaDescription }}{% endblock %}"/>
  39.                 <meta property="og:image"
  40.                       content="{% block layout_head_meta_tags_image_og %}{{ theme_config('sw-logo-desktop') }}{% endblock %}"/>
  41.                 <meta name="twitter:card"
  42.                       content="{% block layout_head_meta_tags_card_twitter %}summary{% endblock %}"/>
  43.                 <meta name="twitter:site"
  44.                       content="{% block layout_head_meta_tags_sitename_twitter %}{{ basicConfig.shopName }}{% endblock %}"/>
  45.                 <meta name="twitter:title"
  46.                       content="{% block layout_head_meta_tags_title_twitter %}{{ metaTitle }}{% endblock %}"/>
  47.                 <meta name="twitter:description"
  48.                       content="{% block layout_head_meta_tags_description_twitter %}{{ metaDescription }}{% endblock %}"/>
  49.                 <meta name="twitter:image"
  50.                       content="{% block layout_head_meta_tags_image_twitter %}{{ theme_config('sw-logo-desktop') }}{% endblock %}"/>
  51.             {% endblock %}
  52.             {% block layout_head_meta_tags_schema_webpage %}
  53.                 <meta itemprop="copyrightHolder"
  54.                       content="{% block layout_head_meta_tags_copyright_holder %}{{ basicConfig.shopName }}{% endblock %}"/>
  55.                 <meta itemprop="copyrightYear"
  56.                       content="{% block layout_head_meta_tags_copyright_year %}{{ metaInformation.copyrightYear|striptags }}{% endblock %}"/>
  57.                 <meta itemprop="isFamilyFriendly"
  58.                       content="{% block layout_head_meta_tags_family_friendly %}{% if basicConfig.familyFriendly %}true{% else %}false{% endif %}{% endblock %}"/>
  59.                 <meta itemprop="image"
  60.                       content="{% block layout_head_meta_tags_image_meta %}{{ theme_config('sw-logo-desktop') }}{% endblock %}"/>
  61.             {% endblock %}
  62.             {% block layout_head_meta_tags_hreflangs %}
  63.                 {% for link in hrefLang %}
  64.                     <link rel="alternate" hreflang="{{ link.locale }}" href="{{ link.url }}" />
  65.                 {% endfor %}
  66.             {% endblock %}
  67.         {% endblock %}
  68.         {% block layout_head_favicon %}
  69.             <link rel="shortcut icon"
  70.                   href="{{ theme_config('sw-logo-favicon') }}">
  71.         {% endblock %}
  72.         {% block layout_head_apple %}
  73.             <link rel="apple-touch-icon"
  74.                   sizes="180x180"
  75.                   href="{{ theme_config('sw-logo-share') }}">
  76.         {% endblock %}
  77.         {% block layout_head_android %}
  78.             <link rel="icon"
  79.                   sizes="192x192"
  80.                   href="{{ theme_config('sw-logo-share') }}">
  81.             <meta name="theme-color"
  82.                   content="{{ theme_config('sw-color-brand-primary') }}"/>
  83.         {% endblock %}
  84.         {% block layout_head_canonical %}
  85.             {% if page.metaInformation.canonical %}
  86.                 <link rel="canonical" href="{{ page.metaInformation.canonical }}" />
  87.             {% endif %}
  88.         {% endblock %}
  89.         {% block layout_head_title %}
  90.             <title itemprop="name">
  91.                 {% block layout_head_title_inner %}{% apply spaceless %}
  92.                     {{ metaTitle }}
  93.                 {% endapply %}{% endblock %}
  94.             </title>
  95.         {% endblock %}
  96.         {% block layout_head_stylesheet %}
  97.             {% if isHMRMode %}
  98.                 {# CSS will be loaded from the JS automatically #}
  99.             {% else %}
  100.                 {% set assets = theme_config('assets.css') %}
  101.                 {% for file in assets %}
  102.                     <link rel="stylesheet"
  103.                           href="{{ asset(file, 'theme') }}">
  104.                 {% endfor %}
  105.             {% endif %}
  106.         {% endblock %}
  107.         {% block layout_head_javascript_feature %}
  108.             {% sw_include "@Storefront/storefront/component/feature.html.twig" %}
  109.         {% endblock %}
  110.         {# Block for tracking scripts which are required to include in the `head` section of the document #}
  111.         {% block layout_head_javascript_tracking %}
  112.             {% sw_include "@Storefront/storefront/component/analytics.html.twig" %}
  113.         {% endblock %}
  114.     </head>
  115. {% endblock %}