custom/plugins/FuerstenbergPorzellan/src/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_header %}
  3.     <div id="head-section">
  4.         {{parent()}}
  5.     </div>
  6. {% endblock %}
  7. {% block base_header_inner %}
  8.     {{parent()}}
  9.      <div class="nav-main d-xl-none">
  10.         {% block base_navigation_inner %}
  11.             {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  12.         {% endblock %}
  13.     </div>
  14.     <div class="search-content">
  15.         <div class="container">
  16.             {% sw_include '@Storefront/storefront/layout/header/search.html.twig' %}
  17.         </div>
  18.     </div>
  19. {% endblock %}
  20. {% block base_navigation %}{% endblock %}
  21. {% block base_main %}
  22.     {{parent()}}
  23.     {% if page.header.navigation.active.customFields.custom_category_json %}
  24.         <script type="application/ld+json">
  25.             {{page.header.navigation.active.customFields.custom_category_json|raw}}
  26.         </script>
  27.     {% endif %}
  28. {% endblock %}
  29. {% block base_body_script %}
  30.     {{parent()}}
  31.     {% block trustedshops_trustbadge %} 
  32.         <script type="text/javascript">
  33.             var _ts_language = document.documentElement.lang;
  34.             var _tsid = "empty";
  35.             switch (_ts_language) {
  36.                 case "de-DE":
  37.                 _tsid = "XAD5194D3A5989A3A9596705364263BBC";
  38.                 break;
  39.                 case "en-GB":
  40.                 _tsid = "XFCDFDC2A5154E4D26F15C1136ACABC53";
  41.                 break;
  42.             
  43.             }
  44.             if (_tsid != "empty") {
  45.                 (function () {
  46.                 var _ts = document.createElement("script");
  47.                 _ts.setAttribute("data-desktop-y-offset", "24");
  48.                 _ts.setAttribute("data-mobile-y-offset", "20");
  49.                 _ts.setAttribute("data-desktop-disable-reviews", "false");
  50.                 _ts.setAttribute("data-desktop-enable-custom", "false");
  51.                 _ts.setAttribute("data-desktop-position", "right");
  52.                 _ts.setAttribute("data-desktop-custom-opening-direction", "topright");
  53.                 _ts.setAttribute("data-desktop-custom-width", "150");
  54.                 _ts.setAttribute("data-desktop-enable-fadeout", "false");
  55.                 _ts.setAttribute("data-disable-mobile", "false");
  56.                 _ts.setAttribute("data-disable-trustbadge", "false");
  57.                 _ts.setAttribute("data-mobile-custom-width", "150");
  58.                 _ts.setAttribute("data-mobile-custom-opening-direction", "topright");
  59.                 _ts.setAttribute("data-mobile-disable-reviews", "false");
  60.                 _ts.setAttribute("data-mobile-enable-custom", "false");
  61.                 _ts.setAttribute("data-mobile-position", "left");
  62.                 _ts.setAttribute("data-mobile-enable-topbar", "false");
  63.                 _ts.type = "text/javascript";
  64.                 _ts.charset = "utf-8";
  65.                 _ts.async = true;
  66.                 _ts.src = "//widgets.trustedshops.com/js/" + _tsid + ".js";
  67.                 var __ts = document.getElementsByTagName("script")[0];
  68.                 __ts.parentNode.insertBefore(_ts, __ts);
  69.                 })();
  70.             } else {
  71.                 console.log(
  72.                 "Trusted Shops: Trustbadge is not configured for this shop's market/language."
  73.                 );
  74.             }
  75.         </script>
  76.     {% endblock %}
  77. {% endblock %}