custom/plugins/Theme3S/src/Resources/views/storefront/layout/meta.html.twig line 139

  1. {% block layout_head_inner %}
  2. {% set metaInformation = page.metaInformation %}
  3. {% set basicConfig = config('core.basicInformation') %}
  4. {% set maxLength = config('seo.descriptionMaxLength') %}
  5. {% set metaDescription = metaInformation.metaDescription|striptags|trim|u.truncate(maxLength ?? 255, '…') %}
  6. {% set metaTitle = metaInformation.metaTitle|striptags|trim %}
  7. {% set metaKeywords = metaInformation.metaKeywords|striptags|trim %}
  8. {% block layout_head_meta_tags %}
  9. {% block layout_head_meta_tags_charset %}
  10. {% endblock %}
  11. {% block layout_head_meta_tags_viewport %}
  12. content="width=device-width, initial-scale=1, shrink-to-fit=no">
  13. {% endblock %}
  14. {% block layout_head_meta_tags_general %}
  15. content="{% block layout_head_meta_tags_general_author %}{{ metaInformation.author|striptags }}{% endblock %}"/>
  16. content="{% block layout_head_meta_tags_robots %}{{ metaInformation.robots }}{% endblock %}"/>
  17. content="{% block layout_head_meta_tags_general_revisit %}{{ metaInformation.revisit|striptags }}{% endblock %}"/>
  18. content="{% block layout_head_meta_tags_keywords %}
  19. {{ metaKeywords }}
  20. {% endblock %}"/>
  21. {{ metaDescription }}
  22. {% endblock %}"/>
  23. {% endblock %}
  24. {% block layout_head_meta_tags_opengraph %}
  25. content="{% block layout_head_meta_tags_url_og %}{{ (page.metaInformation.canonical is defined) ? page.metaInformation.canonical : app.request.uri }}{% endblock %}"/>
  26. content="{% block layout_head_meta_tags_type_og %}website{% endblock %}"/>
  27. content="{% block layout_head_meta_tags_sitename_og %}{{ basicConfig.shopName }}{% endblock %}"/>
  28. content="{% block layout_head_meta_tags_title_og %}{{ metaTitle }}{% endblock %}"/>
  29. content="{% block layout_head_meta_tags_description_og %}
  30. {{ metaDescription }}
  31. {% endblock %}"/>
  32. content="{% block layout_head_meta_tags_image_og %}{{ theme_config('sw-logo-desktop') }}{% endblock %}"/>
  33. content="{% block layout_head_meta_tags_card_twitter %}summary{% endblock %}"/>
  34. content="{% block layout_head_meta_tags_sitename_twitter %}{{ basicConfig.shopName }}{% endblock %}"/>
  35. content="{% block layout_head_meta_tags_title_twitter %}{{ metaTitle }}{% endblock %}"/>
  36. content="{% block layout_head_meta_tags_description_twitter %}
  37. {{ metaDescription }}
  38. {% endblock %}"/>
  39. content="{% block layout_head_meta_tags_image_twitter %}{{ theme_config('sw-logo-desktop') }}{% endblock %}"/>
  40. {% endblock %}
  41. {% block layout_head_meta_tags_schema_webpage %}
  42. content="{% block layout_head_meta_tags_copyright_holder %}{{ basicConfig.shopName }}{% endblock %}"/>
  43. content="{% block layout_head_meta_tags_copyright_year %}{{ metaInformation.copyrightYear|striptags }}{% endblock %}"/>
  44. content="{% block layout_head_meta_tags_family_friendly %}{% if basicConfig.familyFriendly %}true{% else %}false{% endif %}{% endblock %}"/>
  45. content="{% block layout_head_meta_tags_image_meta %}{{ theme_config('sw-logo-desktop') }}{% endblock %}"/>
  46. {% endblock %}
  47. {% block layout_head_meta_tags_hreflangs %}
  48. {% for link in hrefLang %}
  49. {% endfor %}
  50. {% endblock %}
  51. {% endblock %}
  52. {% block layout_head_favicon %}
  53. href="{{ theme_config('sw-logo-favicon') }}">
  54. {% endblock %}
  55. {% block layout_head_apple %}
  56. {% if theme_config('sw-logo-share') %}
  57. sizes="180x180"
  58. href="{{ theme_config('sw-logo-share') }}">
  59. {% endif %}
  60. {% endblock %}
  61. {% block layout_head_android %}
  62. {# @deprecated tag:v6.5.0 - Use the block above, "layout_head_apple", instead #}
  63. {% endblock %}
  64. {% block layout_head_canonical %}
  65. {% if page.metaInformation.canonical %}
  66. {% endif %}
  67. {% endblock %}
  68. {% block layout_head_title %}
  69. {% apply spaceless %}</code></li> <li><a class="anchor" id="line119"></a><code> {% block layout_head_title_inner %}</code></li> <li><a class="anchor" id="line120"></a><code> Shop</code></li> <li><a class="anchor" id="line121"></a><code> {% endblock %}</code></li> <li><a class="anchor" id="line122"></a><code> {% endapply %} :: 3S-Arbeitsschutz
  70. {% endblock %}
  71. {% block layout_head_stylesheet %}
  72. {% if isHMRMode %}
  73. {# CSS will be loaded from the JS automatically #}
  74. {% else %}
  75. {% set assets = theme_config('assets.css') %}
  76. {% for file in assets %}
  77. href="{{ asset(file, 'theme') }}">
  78. {% endfor %}
  79. {% endif %}
  80. {% endblock %}
  81. {% block layout_head_javascript_feature %}
  82. {% sw_include "@Storefront/storefront/component/feature.html.twig" %}
  83. {% endblock %}
  84. {# Block for tracking scripts which are required to include in the `head` section of the document #}
  85. {% block layout_head_javascript_tracking %}
  86. {% sw_include "@Storefront/storefront/component/analytics.html.twig" %}
  87. {% endblock %}
  88. {% block layout_head_javascript_recaptcha %}
  89. {% sw_include "@Storefront/storefront/component/recaptcha.html.twig" %}
  90. {% endblock %}
  91. {% block layout_head_javascript_token %}
  92. {% endblock %}
  93. {% if config('core.basicInformation.useDefaultCookieConsent') %}
  94. {% block layout_head_javascript_cookie_state %}
  95. {% endblock %}
  96. {% endif %}
  97. {% if feature('FEATURE_NEXT_15917') %}
  98. {% block layout_head_javascript_router %}
  99. {# Register all routes that will be needed in JavaScript to the window.router object #}
  100. {% endblock %}
  101. {% block layout_head_javascript_breakpoints %}
  102. {# Register the available viewport breakpoints the window.breakpoints object #}
  103. {% endblock %}
  104. {# @deprecated tag:v6.5.0 - Block layout_head_javascript_csrf will be removed. #}
  105. {% block layout_head_javascript_csrf %}
  106. {% endblock %}
  107. {% if config('core.cart.wishlistEnabled') %}
  108. {% block layout_head_javascript_wishlist_state %}
  109. {% endblock %}
  110. {% endif %}
  111. {# @internal tag:v6.5.0 - jQuery will be removed from the core. This block can be used to add jQuery as a `
  112. {# The storefront entry is a combined entry point which contains all plugins & themes #}
  113. {% else %}
  114. {% for file in theme_config('assets.js') %}
  115. {% endfor %}
  116. {% endif %}
  117. {% endblock %}
  118. {% endif %}
  119. {% endblock %}