var/cache/dev_h90dfaab4b9218db9f54295f5d696836f/twig/75/75286fd15418ad9679cee44c28f325facf5a200a4685e06005c0a761cc73b97c.php line 50

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. /* @SwagPayPal/storefront/component/checkout/offcanvas-cart.html.twig */
  16. class __TwigTemplate_29c3ba866f7b250f9f6ef325fedf276b09457fc2fbadd6939f60b9538bb17bba 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.             'component_offcanvas_cart_actions_cart' => [$this'block_component_offcanvas_cart_actions_cart'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@Storefront/storefront/component/checkout/offcanvas-cart.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""@SwagPayPal/storefront/component/checkout/offcanvas-cart.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""@SwagPayPal/storefront/component/checkout/offcanvas-cart.html.twig"));
  40.         $this->parent $this->loadTemplate("@Storefront/storefront/component/checkout/offcanvas-cart.html.twig""@SwagPayPal/storefront/component/checkout/offcanvas-cart.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_component_offcanvas_cart_actions_cart($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""component_offcanvas_cart_actions_cart"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""component_offcanvas_cart_actions_cart"));
  55.         // line 4
  56.         echo "    ";
  57.         $this->displayParentBlock("component_offcanvas_cart_actions_cart"$context$blocks);
  58.         echo "
  59.     ";
  60.         // line 7
  61.         echo "    ";
  62.         $context["expressSettings"] = (($__internal_compile_0 sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse7)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[twig_constant("Swag\\PayPal\\Checkout\\ExpressCheckout\\ExpressCheckoutSubscriber::PAYPAL_EXPRESS_CHECKOUT_BUTTON_DATA_EXTENSION_ID")] ?? null) : null);
  63.         // line 8
  64.         echo "
  65.     ";
  66.         // line 9
  67.         if (sw_get_attribute($this->env$this->source, ($context["expressSettings"] ?? null), "offCanvasEnabled", [], "any"falsefalsefalse9)) {
  68.             // line 10
  69.             echo "        ";
  70.             $this->loadTemplate("@SwagPayPal/storefront/component/ecs-spb-checkout/ecs-button.html.twig""@SwagPayPal/storefront/component/checkout/offcanvas-cart.html.twig"10)->display(twig_array_merge($context, ["button_class" => "btn-block"]));
  71.             // line 11
  72.             echo "    ";
  73.         }
  74.         // line 12
  75.         echo "
  76.     ";
  77.         // line 14
  78.         echo "    ";
  79.         $context["installmentBanner"] = (($__internal_compile_1 sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse14)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[twig_constant("Swag\\PayPal\\Installment\\Banner\\InstallmentBannerSubscriber::PAYPAL_INSTALLMENT_BANNER_DATA_EXTENSION_ID")] ?? null) : null);
  80.         // line 15
  81.         echo "
  82.     ";
  83.         // line 16
  84.         if ( !(null === ($context["installmentBanner"] ?? null))) {
  85.             // line 17
  86.             echo "        <div class=\"btn-block ml-1\"
  87.              data-swag-paypal-installment-banner=\"true\"
  88.              data-swag-pay-pal-installment-banner-options=\"";
  89.             // line 19
  90.             echo sw_escape_filter($this->env$this->env->getFilter('json_encode')->getCallable()(($context["installmentBanner"] ?? null)), "html"nulltrue);
  91.             echo "\">
  92.         </div>
  93.     ";
  94.         }
  95.         
  96.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  97.         
  98.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  99.     }
  100.     public function getTemplateName()
  101.     {
  102.         return "@SwagPayPal/storefront/component/checkout/offcanvas-cart.html.twig";
  103.     }
  104.     public function isTraitable()
  105.     {
  106.         return false;
  107.     }
  108.     public function getDebugInfo()
  109.     {
  110.         return array (  103 => 19,  99 => 17,  97 => 16,  94 => 15,  91 => 14,  88 => 12,  85 => 11,  82 => 10,  80 => 9,  77 => 8,  74 => 7,  68 => 4,  58 => 3,  35 => 2,);
  111.     }
  112.     public function getSourceContext()
  113.     {
  114.         return new Source("{% sw_extends '@Storefront/storefront/component/checkout/offcanvas-cart.html.twig' %}
  115. {% block component_offcanvas_cart_actions_cart %}
  116.     {{ parent() }}
  117.     {# @var \\Swag\\PayPal\\Checkout\\ExpressCheckout\\ExpressCheckoutButtonData expressSettings #}
  118.     {% set expressSettings = page.extensions[constant('Swag\\\\PayPal\\\\Checkout\\\\ExpressCheckout\\\\ExpressCheckoutSubscriber::PAYPAL_EXPRESS_CHECKOUT_BUTTON_DATA_EXTENSION_ID')] %}
  119.     {% if expressSettings.offCanvasEnabled %}
  120.         {% sw_include '@SwagPayPal/storefront/component/ecs-spb-checkout/ecs-button.html.twig' with {button_class: 'btn-block'} %}
  121.     {% endif %}
  122.     {# @var \\Swag\\PayPal\\Installment\\Banner\\BannerData installmentBanner #}
  123.     {% set installmentBanner = page.extensions[constant('Swag\\\\PayPal\\\\Installment\\\\Banner\\\\InstallmentBannerSubscriber::PAYPAL_INSTALLMENT_BANNER_DATA_EXTENSION_ID')] %}
  124.     {% if installmentBanner is not null %}
  125.         <div class=\"btn-block ml-1\"
  126.              data-swag-paypal-installment-banner=\"true\"
  127.              data-swag-pay-pal-installment-banner-options=\"{{ installmentBanner|json_encode }}\">
  128.         </div>
  129.     {% endif %}
  130. {% endblock %}
  131. ""@SwagPayPal/storefront/component/checkout/offcanvas-cart.html.twig""/home/fasflpog/shopware/custom/plugins/SwagPayPal/src/Resources/views/storefront/component/checkout/offcanvas-cart.html.twig");
  132.     }
  133. }