var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/32/323f8a7092b51e0ce5353b5739fd00504a5577f14272471023d9cee4aaa2bb79.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. /* @KlarnaPayment/storefront/page/product-detail/index.html.twig */
  16. class __TwigTemplate_5e8c13dff7904bd9db42c03923674f2eaf10d4f6e9dc3b3f3d545c440dddd3e7 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_header' => [$this'block_base_header'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@Storefront/storefront/page/product-detail/index.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""@KlarnaPayment/storefront/page/product-detail/index.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""@KlarnaPayment/storefront/page/product-detail/index.html.twig"));
  40.         $this->parent $this->loadTemplate("@Storefront/storefront/page/product-detail/index.html.twig""@KlarnaPayment/storefront/page/product-detail/index.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_header($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_header"));
  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_header"));
  55.         // line 4
  56.         echo "    ";
  57.         // line 5
  58.         echo "    ";
  59.         $context["klarnaOnsiteMessagingData"] = (($__internal_compile_0 sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse5)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[twig_constant("KlarnaPayment\\Components\\Extension\\TemplateData\\OnsiteMessagingDataExtension::EXTENSION_NAME")] ?? null) : null);
  60.         // line 6
  61.         echo "
  62.     ";
  63.         // line 7
  64.         if ((sw_get_attribute($this->env$this->source, ($context["klarnaOnsiteMessagingData"] ?? null), "klarnaOnsiteMessagingSnippet", [], "any"falsefalsefalse7) && sw_get_attribute($this->env$this->source, ($context["klarnaOnsiteMessagingData"] ?? null), "klarnaOnsiteMessagingScript", [], "any"falsefalsefalse7))) {
  65.             // line 8
  66.             echo "        ";
  67.             echo sw_get_attribute($this->env$this->source, ($context["klarnaOnsiteMessagingData"] ?? null), "klarnaOnsiteMessagingScript", [], "any"falsefalsefalse8);
  68.             echo "
  69.     ";
  70.         }
  71.         // line 10
  72.         echo "
  73.     ";
  74.         // line 11
  75.         $this->displayParentBlock("base_header"$context$blocks);
  76.         echo "
  77. ";
  78.         
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  80.         
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  82.     }
  83.     public function getTemplateName()
  84.     {
  85.         return "@KlarnaPayment/storefront/page/product-detail/index.html.twig";
  86.     }
  87.     public function isTraitable()
  88.     {
  89.         return false;
  90.     }
  91.     public function getDebugInfo()
  92.     {
  93.         return array (  87 => 11,  84 => 10,  78 => 8,  76 => 7,  73 => 6,  70 => 5,  68 => 4,  58 => 3,  35 => 2,);
  94.     }
  95.     public function getSourceContext()
  96.     {
  97.         return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
  98. {% block base_header %}
  99.     {# @var \\KlarnaPayment\\Components\\Extension\\TemplateData\\OnsiteMessagingDataExtension klarnaOnsiteMessagingData #}
  100.     {% set klarnaOnsiteMessagingData = page.extensions[constant('KlarnaPayment\\\\Components\\\\Extension\\\\TemplateData\\\\OnsiteMessagingDataExtension::EXTENSION_NAME')] %}
  101.     {% if klarnaOnsiteMessagingData.klarnaOnsiteMessagingSnippet and klarnaOnsiteMessagingData.klarnaOnsiteMessagingScript %}
  102.         {{ klarnaOnsiteMessagingData.klarnaOnsiteMessagingScript|raw }}
  103.     {% endif %}
  104.     {{ parent() }}
  105. {% endblock %}
  106. ""@KlarnaPayment/storefront/page/product-detail/index.html.twig""/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/KlarnaPayment/src/Resources/views/storefront/page/product-detail/index.html.twig");
  107.     }
  108. }