var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/80/80f469c638129cd0e0cdc784b2777e6b88858cf38b368daee0aeee1c2f812636.php line 40

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. /* @NetiNextGoogleCustomerReviews/storefront/base.html.twig */
  16. class __TwigTemplate_150b8bc87b83bb21cfed566d8c8cea8e7ddf7ffe180a9acabab11c1836a07a06 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_script_hmr_mode' => [$this'block_base_script_hmr_mode'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@NetzpShopmanager6/storefront/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NetiNextGoogleCustomerReviews/storefront/base.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NetiNextGoogleCustomerReviews/storefront/base.html.twig"));
  40.         $this->parent $this->loadTemplate("@NetzpShopmanager6/storefront/base.html.twig""@NetiNextGoogleCustomerReviews/storefront/base.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_base_script_hmr_mode($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_script_hmr_mode"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_script_hmr_mode"));
  55.         // line 4
  56.         echo "    ";
  57.         $this->displayParentBlock("base_script_hmr_mode"$context$blocks);
  58.         echo "
  59.     ";
  60.         // line 6
  61.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse6), "NetiNextGoogleCustomerReviewsFrontend", [], "any"falsefalsefalse6) || sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 7
  62. ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse7), "netiNextGoogleCustomerReviewsFinish", [], "any"falsefalsefalse7))) {
  63.             // line 8
  64.             echo "
  65.         <script src=\"https://apis.google.com/js/platform.js?onload=netiPlatformLoaded\" async defer></script>
  66.         <script type=\"text/javascript\">
  67.             window.netiPlatformLoaded = function() {
  68.                 ";
  69.             // line 12
  70.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse12), "NetiNextGoogleCustomerReviewsFrontend", [], "any"falsefalsefalse12)) {
  71.                 // line 13
  72.                 echo "                ";
  73.                 $context["struct"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse13), "NetiNextGoogleCustomerReviewsFrontend", [], "any"falsefalsefalse13);
  74.                 // line 14
  75.                 echo "                var ratingBadgeContainer = document.createElement('div');
  76.                 document.body.appendChild(ratingBadgeContainer);
  77.                 window.gapi.load('ratingbadge', function() {
  78.                     window.gapi.ratingbadge.render(
  79.                         ratingBadgeContainer,
  80.                         {
  81.                             merchant_id: \"";
  82.                 // line 22
  83.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["struct"] ?? null), "merchantId", [], "any"falsefalsefalse22), "html"nulltrue);
  84.                 echo "\",
  85.                             position: \"";
  86.                 // line 23
  87.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["struct"] ?? null), "position", [], "any"falsefalsefalse23), "html"nulltrue);
  88.                 echo "\"
  89.                         }
  90.                     );
  91.                 });
  92.                 ";
  93.             }
  94.             // line 28
  95.             echo "
  96.                 ";
  97.             // line 29
  98.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse29), "netiNextGoogleCustomerReviewsFinish", [], "any"falsefalsefalse29)) {
  99.                 // line 30
  100.                 echo "                ";
  101.                 $context["struct"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse30), "netiNextGoogleCustomerReviewsFinish", [], "any"falsefalsefalse30);
  102.                 // line 31
  103.                 echo "                window.gapi.load('surveyoptin', function() {
  104.                     window.gapi.surveyoptin.render(
  105.                         {
  106.                             merchant_id: \"";
  107.                 // line 34
  108.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["struct"] ?? null), "merchantId", [], "any"falsefalsefalse34), "html"nulltrue);
  109.                 echo "\",
  110.                             order_id: \"";
  111.                 // line 35
  112.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["struct"] ?? null), "orderId", [], "any"falsefalsefalse35), "html"nulltrue);
  113.                 echo "\",
  114.                             email: \"";
  115.                 // line 36
  116.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["struct"] ?? null), "email", [], "any"falsefalsefalse36), "html"nulltrue);
  117.                 echo "\",
  118.                             delivery_country: \"";
  119.                 // line 37
  120.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["struct"] ?? null), "deliveryCountry", [], "any"falsefalsefalse37), "html"nulltrue);
  121.                 echo "\",
  122.                             estimated_delivery_date: \"";
  123.                 // line 38
  124.                 echo sw_escape_filter($this->envtwig_date_format_filter($this->envsw_get_attribute($this->env$this->source, ($context["struct"] ?? null), "estimatedDeliveryDate", [], "any"falsefalsefalse38), "Y-m-d"), "html"nulltrue);
  125.                 echo "\",
  126.                             ";
  127.                 // line 39
  128.                 if (sw_get_attribute($this->env$this->source, ($context["struct"] ?? null), "optionalFields", [], "any"falsefalsefalse39)) {
  129.                     // line 40
  130.                     echo "                            ";
  131.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["struct"] ?? null), "optionalFields", [], "any"falsefalsefalse40), "html"nulltrue);
  132.                     echo "
  133.                             ";
  134.                 }
  135.                 // line 42
  136.                 echo "                            ";
  137.                 if ((twig_length_filter($this->envsw_get_attribute($this->env$this->source, ($context["struct"] ?? null), "products", [], "any"falsefalsefalse42)) > 0)) {
  138.                     // line 43
  139.                     echo "                            products: ";
  140.                     echo call_user_func_array($this->env->getFilter('json_encode')->getCallable(), [sw_get_attribute($this->env$this->source, ($context["struct"] ?? null), "products", [], "any"falsefalsefalse43)]);
  141.                     echo "
  142.                             ";
  143.                 }
  144.                 // line 45
  145.                 echo "                        }
  146.                     );
  147.                 });
  148.                 ";
  149.             }
  150.             // line 49
  151.             echo "            };
  152.         </script>
  153.     ";
  154.         }
  155.         
  156.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  157.         
  158.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  159.     }
  160.     public function getTemplateName()
  161.     {
  162.         return "@NetiNextGoogleCustomerReviews/storefront/base.html.twig";
  163.     }
  164.     public function isTraitable()
  165.     {
  166.         return false;
  167.     }
  168.     public function getDebugInfo()
  169.     {
  170.         return array (  166 => 49,  160 => 45,  154 => 43,  151 => 42,  145 => 40,  143 => 39,  139 => 38,  135 => 37,  131 => 36,  127 => 35,  123 => 34,  118 => 31,  115 => 30,  113 => 29,  110 => 28,  102 => 23,  98 => 22,  88 => 14,  85 => 13,  83 => 12,  77 => 8,  75 => 7,  74 => 6,  68 => 4,  58 => 3,  35 => 2,);
  171.     }
  172.     public function getSourceContext()
  173.     {
  174.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  175. {% block base_script_hmr_mode %}
  176.     {{ parent() }}
  177.     {% if page.extensions.NetiNextGoogleCustomerReviewsFrontend
  178.         or page.extensions.netiNextGoogleCustomerReviewsFinish %}
  179.         <script src=\"https://apis.google.com/js/platform.js?onload=netiPlatformLoaded\" async defer></script>
  180.         <script type=\"text/javascript\">
  181.             window.netiPlatformLoaded = function() {
  182.                 {% if page.extensions.NetiNextGoogleCustomerReviewsFrontend %}
  183.                 {% set struct = page.extensions.NetiNextGoogleCustomerReviewsFrontend %}
  184.                 var ratingBadgeContainer = document.createElement('div');
  185.                 document.body.appendChild(ratingBadgeContainer);
  186.                 window.gapi.load('ratingbadge', function() {
  187.                     window.gapi.ratingbadge.render(
  188.                         ratingBadgeContainer,
  189.                         {
  190.                             merchant_id: \"{{ struct.merchantId }}\",
  191.                             position: \"{{ struct.position }}\"
  192.                         }
  193.                     );
  194.                 });
  195.                 {% endif %}
  196.                 {% if page.extensions.netiNextGoogleCustomerReviewsFinish %}
  197.                 {% set struct = page.extensions.netiNextGoogleCustomerReviewsFinish %}
  198.                 window.gapi.load('surveyoptin', function() {
  199.                     window.gapi.surveyoptin.render(
  200.                         {
  201.                             merchant_id: \"{{ struct.merchantId }}\",
  202.                             order_id: \"{{ struct.orderId }}\",
  203.                             email: \"{{ struct.email }}\",
  204.                             delivery_country: \"{{ struct.deliveryCountry }}\",
  205.                             estimated_delivery_date: \"{{ struct.estimatedDeliveryDate|date(\"Y-m-d\") }}\",
  206.                             {% if struct.optionalFields %}
  207.                             {{ struct.optionalFields }}
  208.                             {% endif %}
  209.                             {% if struct.products|length > 0 %}
  210.                             products: {{ struct.products|json_encode|raw }}
  211.                             {% endif %}
  212.                         }
  213.                     );
  214.                 });
  215.                 {% endif %}
  216.             };
  217.         </script>
  218.     {% endif %}
  219. {% endblock %}
  220. ""@NetiNextGoogleCustomerReviews/storefront/base.html.twig""/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/NetiNextGoogleCustomerReviews/src/Resources/views/storefront/base.html.twig");
  221.     }
  222. }