custom/static-plugins/LnbThemeDefault/src/Resources/views/storefront/layout/meta.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@parent/storefront/layout/meta.html.twig' %}
  2. {% block layout_head_meta_tags_general %}
  3.     <meta name="author"
  4.           content="{% block layout_head_meta_tags_general_author %}{{ metaInformation.author|striptags }}{% endblock %}"/>
  5.     <meta name="robots"
  6.           content="{% block layout_head_meta_tags_robots %}
  7.                         {%- if controllerName == 'Product' %}
  8.                             {%- if page.product.translated.customFields.custom_configurations_no_index %}noindex,{% else %}index,{% endif -%}
  9.                             {%- if page.product.translated.customFields.custom_configurations_no_follow %}nofollow{% else %}follow{% endif -%}
  10.                         {% elseif controllerName == 'Navigation' %}
  11.                             {%- if page.footer.navigation.active.customFields.custom_configurations_no_index %}noindex,{% else %}index,{% endif -%}
  12.                             {%- if page.footer.navigation.active.customFields.custom_configurations_no_follow %}nofollow{% else %}follow{% endif -%}
  13.                         {% elseif controllerName === 'LandingPage' %}
  14.                             {%- if page.landingPage.translated.customFields.custom_configurations_no_index %}noindex,{% else %}index,{% endif -%}
  15.                             {%- if page.landingPage.translated.customFields.custom_configurations_no_follow %}nofollow{% else %}follow{% endif -%}
  16.                         {% else %}
  17.                             {{- metaInformation.robots -}}
  18.                         {% endif -%}
  19.                     {% endblock %}"/>
  20.     <meta name="revisit-after"
  21.           content="{% block layout_head_meta_tags_general_revisit %}{{ metaInformation.revisit|striptags }}{% endblock %}"/>
  22.     <meta name="description"
  23.           content="{% block layout_head_meta_tags_description %}{{ metaDescription }}{% endblock %}"/>
  24. {% endblock %}
  25. {% block layout_head_meta_tags_opengraph %}
  26.     <meta property="og:url"
  27.           content="{% block layout_head_meta_tags_url_og %}{{ (page.metaInformation.canonical is defined) ? page.metaInformation.canonical : app.request.uri }}{% endblock %}"/>
  28.     <meta property="og:type"
  29.           content="{% block layout_head_meta_tags_type_og %}website{% endblock %}"/>
  30.     <meta property="og:site_name"
  31.           content="{% block layout_head_meta_tags_sitename_og %}{{ "LnbThemeDefault.meta.siteName"|trans }}{% endblock %}"/>
  32.     <meta property="og:title"
  33.           content="{% block layout_head_meta_tags_title_og %}{{ metaTitle }}{% endblock %}"/>
  34.     <meta property="og:description"
  35.           content="{% block layout_head_meta_tags_description_og %}{{ metaDescription }}{% endblock %}"/>
  36.     <meta property="og:image"
  37.           content="{% block layout_head_meta_tags_image_og %}{{ theme_config('sw-logo-desktop') }}{% endblock %}"/>
  38.     <meta name="twitter:card"
  39.           content="{% block layout_head_meta_tags_card_twitter %}summary{% endblock %}"/>
  40.     <meta name="twitter:site"
  41.           content="{% block layout_head_meta_tags_sitename_twitter %}{{ "LnbThemeDefault.meta.siteName"|trans }}{% endblock %}"/>
  42.     <meta name="twitter:title"
  43.           content="{% block layout_head_meta_tags_title_twitter %}{{ metaTitle }}{% endblock %}"/>
  44.     <meta name="twitter:description"
  45.           content="{% block layout_head_meta_tags_description_twitter %}{{ metaDescription }}{% endblock %}"/>
  46.     <meta name="twitter:image"
  47.           content="{% block layout_head_meta_tags_image_twitter %}{{ theme_config('sw-logo-desktop') }}{% endblock %}"/>
  48. {% endblock %}
  49. {% block layout_head_javascript_feature %}
  50.     {{ parent() }}
  51.     {% if theme_config('usercentrics-enabled') %}
  52.         {% set languageCode = "de" %}
  53.         {% if page.header.activeLanguage.translationCode.code === "de-DE" %}
  54.             {% set languageCode = "de" %}
  55.         {% elseif page.header.activeLanguage.translationCode.code === "en-GB" %}
  56.             {% set languageCode = "en" %}
  57.         {% elseif page.header.activeLanguage.translationCode.code === "fr-FR" %}
  58.             {% set languageCode = "fr" %}
  59.         {% elseif page.header.activeLanguage.translationCode.code === "it-IT" %}
  60.         {% endif %}
  61.         {# Usercentrics v2 #}
  62.         {#        <link rel="preconnect" href="//app.usercentrics.eu"> #}
  63.         {#        <link rel="preconnect" href="//api.usercentrics.eu"> #}
  64.         {#        <link rel="preconnect" href="//privacy-proxy.usercentrics.eu"> #}
  65.         {#        <link rel="preload" href="//app.usercentrics.eu/browser-ui/latest/loader.js" as="script"> #}
  66.         {#        <link rel="preload" href="https://privacy-proxy.usercentrics.eu/latest/uc-block.bundle.js" as="script"> #}
  67.         {#        <script id="usercentrics-cmp" data-language="{{ languageCode }}" data-settings-id="ii5tq7FRd" #}
  68.         {#                src="https://app.usercentrics.eu/browser-ui/latest/loader.js" async></script> #}
  69.         {#        <script type="application/javascript" #}
  70.         {#                src="https://privacy-proxy.usercentrics.eu/latest/uc-block.bundle.js"></script> #}
  71.         {# Usercentrics v3 #}
  72.         <link rel="preconnect" href="//privacy-proxy.usercentrics.eu">
  73.         <link rel="preload" href="//privacy-proxy.usercentrics.eu/latest/uc-block.bundle.js" as="script">
  74.         <script id="usercentrics-cmp" data-settings-id="ii5tq7FRd" src="https://web.cmp.usercentrics.eu/ui/loader.js" data-language="{{ languageCode }}" async></script>
  75.         <script type="application/javascript" src="https://privacy-proxy.usercentrics.eu/latest/uc-block.bundle.js"></script>
  76.         <script type="application/javascript">
  77.             window.UC_UI_DOMAINS = {crossDomainConsentSharingIFrame: 'https://usercentrics.liebscher-bracht.com/cross-domain-bridge.html'};
  78.         </script>
  79.         <script>
  80.             uc.deactivateBlocking([
  81.                 'S1pcEj_jZX', // Google Maps
  82.                 'abGHajF1' // Bing Maps
  83.             ]);
  84.         </script>
  85.     {% endif %}
  86.     {% block lnb_kameleoon_meta_tag %}
  87.         {% set kameleoonProjectId = config('LnbThemeDefault.config.kameleoonProjectId') %}
  88.         {% if kameleoonProjectId is not null and kameleoonProjectId is not empty %}
  89.             <script type="text/javascript">
  90.                 // Duration in milliseconds to wait while the Kameleoon application file is loaded
  91.                 var kameleoonLoadingTimeout = 1000;
  92.                 window.kameleoonQueue = window.kameleoonQueue || [];
  93.                 window.kameleoonStartLoadTime = new Date().getTime();
  94.                 if (!document.getElementById("kameleoonLoadingStyleSheet") && !window.kameleoonDisplayPageTimeOut) {
  95.                     var kameleoonS = document.getElementsByTagName("script")[0];
  96.                     var kameleoonCc = "* { visibility: hidden !important; background-image: none !important; }";
  97.                     var kameleoonStn = document.createElement("style");
  98.                     kameleoonStn.type = "text/css";
  99.                     kameleoonStn.id = "kameleoonLoadingStyleSheet";
  100.                     if (kameleoonStn.styleSheet) {
  101.                         kameleoonStn.styleSheet.cssText = kameleoonCc;
  102.                     } else {
  103.                         kameleoonStn.appendChild(document.createTextNode(kameleoonCc));
  104.                     }
  105.                     kameleoonS.parentNode.insertBefore(kameleoonStn, kameleoonS);
  106.                     window.kameleoonDisplayPage = function (fromEngine) {
  107.                         if (!fromEngine) {
  108.                             window.kameleoonTimeout = true;
  109.                         }
  110.                         if (kameleoonStn.parentNode) {
  111.                             kameleoonStn.parentNode.removeChild(kameleoonStn);
  112.                         }
  113.                     };
  114.                     window.kameleoonDisplayPageTimeOut = window.setTimeout(window.kameleoonDisplayPage, kameleoonLoadingTimeout);
  115.                 }
  116.             </script>
  117.             <script type="text/javascript" src="//{{ kameleoonProjectId }}.kameleoon.eu/kameleoon.js"
  118.                     async="true"></script>
  119.         {% endif %}
  120.     {% endblock %}
  121.     {% if config('LnbThemeDefault.config.customJavascriptInMeta') %}
  122.         {{ config('LnbThemeDefault.config.customJavascriptInMeta')|raw }}
  123.     {% endif %}
  124. {% endblock %}