var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/2c/2c3f4066ec690cab210e675397f854735abeac409a8ec3ef341eae92c482638e.php line 72

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @TrustedShops/storefront/base.html.twig */
  16. class __TwigTemplate_f53c9ea07717eeb7714384ad601ae16e91441562075b32a55c77381dbccb0828 extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'base_body_inner' => [$this'block_base_body_inner'],
  26.             'base_body_script' => [$this'block_base_body_script'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@zenitPlatformShippingBar/storefront/base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@TrustedShops/storefront/base.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@TrustedShops/storefront/base.html.twig"));
  41.         $this->parent $this->loadTemplate("@zenitPlatformShippingBar/storefront/base.html.twig""@TrustedShops/storefront/base.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 3
  49.     public function block_base_body_inner($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_inner"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_inner"));
  56.         // line 4
  57.         echo "    ";
  58.         $this->displayParentBlock("base_body_inner"$context$blocks);
  59.         echo "
  60.     ";
  61.         // line 6
  62.         if (sw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsId", [], "any"falsefalsefalse6)) {
  63.             // line 7
  64.             echo "
  65.         ";
  66.             // line 9
  67.             echo "
  68.         ";
  69.             // line 10
  70.             if (sw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsTrustbadgeExpertMode", [], "any"falsefalsefalse10)) {
  71.                 // line 11
  72.                 echo "
  73.             ";
  74.                 // line 12
  75.                 echo twig_replace_filter(sw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsExpertTrustbadeCode", [], "any"falsefalsefalse12), ["%tsid%" => sw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsId", [], "any"falsefalsefalse12)]);
  76.                 echo "
  77.         ";
  78.             } else {
  79.                 // line 15
  80.                 echo "
  81.             <script type=\"text/javascript\">
  82.                 (function () {
  83.                     var _tsid = '";
  84.                 // line 18
  85.                 echo sw_escape_filter($this->envsw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsId", [], "any"falsefalsefalse18), "js"), "html"nulltrue);
  86.                 echo "';
  87.                     _tsConfig = {
  88.                         'yOffset': '";
  89.                 // line 20
  90.                 echo sw_escape_filter($this->env_twig_default_filter(sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsTrustbadgeOffsetY", [], "any"falsefalsefalse20), "js"), "0"), "html"nulltrue);
  91.                 echo "', /* offset from page bottom */
  92.                         'variant': '";
  93.                 // line 21
  94.                 echo sw_escape_filter($this->env_twig_default_filter(sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsTrustbadgeVariant", [], "any"falsefalsefalse21), "js"), "default"), "html"nulltrue);
  95.                 echo "', /* reviews, default, custom, custom_reviews */
  96.                         'customElementId': '', /* required for variants custom and custom_reviews */
  97.                         'trustcardDirection': '', /* for custom variants: topRight, topLeft, bottomRight, bottomLeft */
  98.                         'customBadgeWidth': '', /* for custom variants: 40 - 90 (in pixels) */
  99.                         'customBadgeHeight': '', /* for custom variants: 40 - 90 (in pixels) */
  100.                         'disableResponsive': 'false', /* deactivate responsive behaviour */
  101.                         ";
  102.                 // line 27
  103.                 if ((sw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsTrustbadgeVariant", [], "any"falsefalsefalse27) == "hide")) {
  104.                     // line 28
  105.                     echo "                        'disableTrustbadge': 'true', /* deactivate Trustbadge® */
  106.                         ";
  107.                 } else {
  108.                     // line 30
  109.                     echo "                        'disableTrustbadge': 'false', /* deactivate Trustbadge® */
  110.                         ";
  111.                 }
  112.                 // line 32
  113.                 echo "                        'responsive': {
  114.                             'variant': '', /* floating, custom */
  115.                             'customElementId': '' /* required for variant custom */
  116.                         }
  117.                     };
  118.                     var _ts = document.createElement('script');
  119.                     _ts.type = 'text/javascript';
  120.                     _ts.charset = 'utf-8';
  121.                     _ts.async = true;
  122.                     _ts.src = '//widgets.trustedshops.com/js/' + _tsid + '.js';
  123.                     var __ts = document.getElementsByTagName('script')[0];
  124.                     __ts.parentNode.insertBefore(_ts, __ts);
  125.                 })();
  126.             </script>
  127.         ";
  128.             }
  129.             // line 48
  130.             echo "
  131.         ";
  132.             // line 50
  133.             echo "
  134.     ";
  135.         }
  136.         // line 52
  137.         echo "
  138. ";
  139.         
  140.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  141.         
  142.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  143.     }
  144.     // line 55
  145.     public function block_base_body_script($context, array $blocks = [])
  146.     {
  147.         $macros $this->macros;
  148.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  149.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_script"));
  150.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  151.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_script"));
  152.         // line 56
  153.         echo "    ";
  154.         $this->displayParentBlock("base_body_script"$context$blocks);
  155.         echo "
  156.     ";
  157.         // line 59
  158.         echo "    <script type=\"text/javascript\">
  159.         (function() {
  160.             const reviewStickerElementSelector = \".ts-rating.testimonial\";
  161.             const productRatingStarsElementSelector = \".ts-rating.productreviewsSummary\";
  162.             const productReviewsElementSelector = \".ts-rating.productreviews\";
  163.             const reviewStickerParentSelector = \"";
  164.         // line 65
  165.         if (sw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsReviewStickerExpertMode", [], "any"falsefalsefalse65)) {
  166.             echo sw_escape_filter($this->envsw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsExpertReviewStickerJquerySelector", [], "any"falsefalsefalse65), "js"), "html"nulltrue);
  167.         }
  168.         echo "\";
  169.             const productRatingStarsParentSelector = \"";
  170.         // line 66
  171.         if (sw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsProductRatingStarsExpertMode", [], "any"falsefalsefalse66)) {
  172.             echo sw_escape_filter($this->envsw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsExpertProductRatingStarsJquerySelector", [], "any"falsefalsefalse66), "js"), "html"nulltrue);
  173.         }
  174.         echo "\";
  175.             const productReviewsParentSelector = \"";
  176.         // line 67
  177.         if (sw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsProductReviewsTabExpertMode", [], "any"falsefalsefalse67)) {
  178.             echo sw_escape_filter($this->envsw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["trustedshops"] ?? null), "tsExpertProductReviewsTabJquerySelector", [], "any"falsefalsefalse67), "js"), "html"nulltrue);
  179.         }
  180.         echo "\";
  181.             const onJqueryLoaded = function( \$ ) {
  182.                 const waitForElement = function( selector, callback ) {
  183.                     const elementChecker = window.setInterval( function() {
  184.                         if( \$( selector ).length ) {
  185.                             window.clearInterval( elementChecker );
  186.                             callback.call( \$( selector ) );
  187.                         }
  188.                     }, 10 );
  189.                 };
  190.                 if( reviewStickerParentSelector ) {
  191.                     waitForElement( reviewStickerElementSelector, function() {
  192.                         \$( reviewStickerParentSelector ).append( this );
  193.                     });
  194.                 }
  195.                 if( productRatingStarsParentSelector ) {
  196.                     waitForElement( productRatingStarsElementSelector, function() {
  197.                         \$( productRatingStarsParentSelector ).append( this );
  198.                     });
  199.                 }
  200.                 if( productReviewsParentSelector ) {
  201.                     waitForElement( productReviewsElementSelector, function() {
  202.                         \$( productReviewsParentSelector ).append( this );
  203.                     });
  204.                 }
  205.             };
  206.             window.onload = function() {
  207.                 const jqueryChecker = window.setInterval( function() {
  208.                     if( window.jQuery )
  209.                     {
  210.                         window.clearInterval( jqueryChecker );
  211.                         onJqueryLoaded( window.jQuery );
  212.                     }
  213.                 }, 100 );
  214.             };
  215.         })();
  216.     </script>
  217.     ";
  218.         // line 113
  219.         echo "
  220. ";
  221.         
  222.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  223.         
  224.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  225.     }
  226.     public function getTemplateName()
  227.     {
  228.         return "@TrustedShops/storefront/base.html.twig";
  229.     }
  230.     public function isTraitable()
  231.     {
  232.         return false;
  233.     }
  234.     public function getDebugInfo()
  235.     {
  236.         return array (  249 => 113,  199 => 67,  193 => 66,  187 => 65,  179 => 59,  173 => 56,  163 => 55,  152 => 52,  148 => 50,  145 => 48,  127 => 32,  123 => 30,  119 => 28,  117 => 27,  108 => 21,  104 => 20,  99 => 18,  94 => 15,  88 => 12,  85 => 11,  83 => 10,  80 => 9,  77 => 7,  75 => 6,  69 => 4,  59 => 3,  36 => 2,);
  237.     }
  238.     public function getSourceContext()
  239.     {
  240.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  241. {% block base_body_inner %}
  242.     {{ parent() }}
  243.     {% if trustedshops.tsId %}
  244.         {# Trusted Shops Trustbadge - Start #}
  245.         {% if trustedshops.tsTrustbadgeExpertMode %}
  246.             {{ trustedshops.tsExpertTrustbadeCode|replace({'%tsid%': trustedshops.tsId})|raw }}
  247.         {% else %}
  248.             <script type=\"text/javascript\">
  249.                 (function () {
  250.                     var _tsid = '{{ trustedshops.tsId|escape('js') }}';
  251.                     _tsConfig = {
  252.                         'yOffset': '{{ trustedshops.tsTrustbadgeOffsetY|escape('js')|default('0') }}', /* offset from page bottom */
  253.                         'variant': '{{ trustedshops.tsTrustbadgeVariant|escape('js')|default('default') }}', /* reviews, default, custom, custom_reviews */
  254.                         'customElementId': '', /* required for variants custom and custom_reviews */
  255.                         'trustcardDirection': '', /* for custom variants: topRight, topLeft, bottomRight, bottomLeft */
  256.                         'customBadgeWidth': '', /* for custom variants: 40 - 90 (in pixels) */
  257.                         'customBadgeHeight': '', /* for custom variants: 40 - 90 (in pixels) */
  258.                         'disableResponsive': 'false', /* deactivate responsive behaviour */
  259.                         {% if trustedshops.tsTrustbadgeVariant == 'hide' %}
  260.                         'disableTrustbadge': 'true', /* deactivate Trustbadge® */
  261.                         {% else %}
  262.                         'disableTrustbadge': 'false', /* deactivate Trustbadge® */
  263.                         {% endif %}
  264.                         'responsive': {
  265.                             'variant': '', /* floating, custom */
  266.                             'customElementId': '' /* required for variant custom */
  267.                         }
  268.                     };
  269.                     var _ts = document.createElement('script');
  270.                     _ts.type = 'text/javascript';
  271.                     _ts.charset = 'utf-8';
  272.                     _ts.async = true;
  273.                     _ts.src = '//widgets.trustedshops.com/js/' + _tsid + '.js';
  274.                     var __ts = document.getElementsByTagName('script')[0];
  275.                     __ts.parentNode.insertBefore(_ts, __ts);
  276.                 })();
  277.             </script>
  278.         {% endif %}
  279.         {# Trusted Shops Trustbadge - End #}
  280.     {% endif %}
  281. {% endblock %}
  282. {% block base_body_script %}
  283.     {{ parent() }}
  284.     {# Trusted Shops jQuery Selector - Start #}
  285.     <script type=\"text/javascript\">
  286.         (function() {
  287.             const reviewStickerElementSelector = \".ts-rating.testimonial\";
  288.             const productRatingStarsElementSelector = \".ts-rating.productreviewsSummary\";
  289.             const productReviewsElementSelector = \".ts-rating.productreviews\";
  290.             const reviewStickerParentSelector = \"{% if trustedshops.tsReviewStickerExpertMode %}{{ trustedshops.tsExpertReviewStickerJquerySelector|escape('js') }}{% endif %}\";
  291.             const productRatingStarsParentSelector = \"{% if trustedshops.tsProductRatingStarsExpertMode %}{{ trustedshops.tsExpertProductRatingStarsJquerySelector|escape('js') }}{% endif %}\";
  292.             const productReviewsParentSelector = \"{% if trustedshops.tsProductReviewsTabExpertMode %}{{ trustedshops.tsExpertProductReviewsTabJquerySelector|escape('js') }}{% endif %}\";
  293.             const onJqueryLoaded = function( \$ ) {
  294.                 const waitForElement = function( selector, callback ) {
  295.                     const elementChecker = window.setInterval( function() {
  296.                         if( \$( selector ).length ) {
  297.                             window.clearInterval( elementChecker );
  298.                             callback.call( \$( selector ) );
  299.                         }
  300.                     }, 10 );
  301.                 };
  302.                 if( reviewStickerParentSelector ) {
  303.                     waitForElement( reviewStickerElementSelector, function() {
  304.                         \$( reviewStickerParentSelector ).append( this );
  305.                     });
  306.                 }
  307.                 if( productRatingStarsParentSelector ) {
  308.                     waitForElement( productRatingStarsElementSelector, function() {
  309.                         \$( productRatingStarsParentSelector ).append( this );
  310.                     });
  311.                 }
  312.                 if( productReviewsParentSelector ) {
  313.                     waitForElement( productReviewsElementSelector, function() {
  314.                         \$( productReviewsParentSelector ).append( this );
  315.                     });
  316.                 }
  317.             };
  318.             window.onload = function() {
  319.                 const jqueryChecker = window.setInterval( function() {
  320.                     if( window.jQuery )
  321.                     {
  322.                         window.clearInterval( jqueryChecker );
  323.                         onJqueryLoaded( window.jQuery );
  324.                     }
  325.                 }, 100 );
  326.             };
  327.         })();
  328.     </script>
  329.     {# Trusted Shops jQuery Selector - End #}
  330. {% endblock %}""@TrustedShops/storefront/base.html.twig""/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/TrustedShops/src/Resources/views/storefront/base.html.twig");
  331.     }
  332. }