var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/c1/c1860691c2a48696dac883b049527f9d612743d0d54d2c9586d613d279d79898.php line 54

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/page/checkout/cart/index.html.twig */
  16. class __TwigTemplate_424c3c6902f426f6d18b6791d4dedfa27fa32aa97e7ca2da3266910676091cbc 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.             'page_checkout_cart_table_items' => [$this'block_page_checkout_cart_table_items'],
  26.             'page_checkout_cart_table_items_paypal_installment_banner' => [$this'block_page_checkout_cart_table_items_paypal_installment_banner'],
  27.             'page_checkout_aside_actions' => [$this'block_page_checkout_aside_actions'],
  28.             'page_checkout_aside_actions_paypal_express_button' => [$this'block_page_checkout_aside_actions_paypal_express_button'],
  29.             'page_checkout_aside_actions_paypal_installment_banner' => [$this'block_page_checkout_aside_actions_paypal_installment_banner'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 2
  35.         return "@MolliePayments/storefront/page/checkout/cart/index.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SwagPayPal/storefront/page/checkout/cart/index.html.twig"));
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SwagPayPal/storefront/page/checkout/cart/index.html.twig"));
  44.         $this->parent $this->loadTemplate("@MolliePayments/storefront/page/checkout/cart/index.html.twig""@SwagPayPal/storefront/page/checkout/cart/index.html.twig"2);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  48.         
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  50.     }
  51.     // line 3
  52.     public function block_page_checkout_cart_table_items($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_table_items"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_table_items"));
  59.         // line 4
  60.         echo "    ";
  61.         $this->displayParentBlock("page_checkout_cart_table_items"$context$blocks);
  62.         echo "
  63.     ";
  64.         // line 6
  65.         $this->displayBlock('page_checkout_cart_table_items_paypal_installment_banner'$context$blocks);
  66.         
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  68.         
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  70.     }
  71.     public function block_page_checkout_cart_table_items_paypal_installment_banner($context, array $blocks = [])
  72.     {
  73.         $macros $this->macros;
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_table_items_paypal_installment_banner"));
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_table_items_paypal_installment_banner"));
  78.         // line 7
  79.         echo "        ";
  80.         // line 8
  81.         echo "        ";
  82.         $context["installmentBanner"] = (($__internal_compile_0 sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse8)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[twig_constant("Swag\\PayPal\\Installment\\Banner\\InstallmentBannerSubscriber::PAYPAL_INSTALLMENT_BANNER_DATA_CART_PAGE_EXTENSION_ID")] ?? null) : null);
  83.         // line 9
  84.         echo "
  85.         ";
  86.         // line 10
  87.         if ( !(null === ($context["installmentBanner"] ?? null))) {
  88.             // line 11
  89.             echo "            <div class=\"form-row\">
  90.                 <div class=\"col\"
  91.                      data-swag-paypal-installment-banner=\"true\"
  92.                      data-swag-pay-pal-installment-banner-options=\"";
  93.             // line 14
  94.             echo sw_escape_filter($this->envcall_user_func_array($this->env->getFilter('json_encode')->getCallable(), [($context["installmentBanner"] ?? null)]), "html"nulltrue);
  95.             echo "\">
  96.                 </div>
  97.             </div>
  98.         ";
  99.         }
  100.         // line 18
  101.         echo "    ";
  102.         
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  104.         
  105.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  106.     }
  107.     // line 21
  108.     public function block_page_checkout_aside_actions($context, array $blocks = [])
  109.     {
  110.         $macros $this->macros;
  111.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  112.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_aside_actions"));
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  114.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_aside_actions"));
  115.         // line 22
  116.         echo "    ";
  117.         $this->displayParentBlock("page_checkout_aside_actions"$context$blocks);
  118.         echo "
  119.     ";
  120.         // line 24
  121.         $this->displayBlock('page_checkout_aside_actions_paypal_express_button'$context$blocks);
  122.         // line 32
  123.         echo "
  124.     ";
  125.         // line 33
  126.         $this->displayBlock('page_checkout_aside_actions_paypal_installment_banner'$context$blocks);
  127.         
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  129.         
  130.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  131.     }
  132.     // line 24
  133.     public function block_page_checkout_aside_actions_paypal_express_button($context, array $blocks = [])
  134.     {
  135.         $macros $this->macros;
  136.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_aside_actions_paypal_express_button"));
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  139.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_aside_actions_paypal_express_button"));
  140.         // line 25
  141.         echo "        ";
  142.         // line 26
  143.         echo "        ";
  144.         $context["expressSettings"] = (($__internal_compile_1 sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse26)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[twig_constant("Swag\\PayPal\\Checkout\\ExpressCheckout\\ExpressCheckoutSubscriber::PAYPAL_EXPRESS_CHECKOUT_BUTTON_DATA_EXTENSION_ID")] ?? null) : null);
  145.         // line 27
  146.         echo "
  147.         ";
  148.         // line 28
  149.         if (sw_get_attribute($this->env$this->source, ($context["expressSettings"] ?? null), "cartEnabled", [], "any"falsefalsefalse28)) {
  150.             // line 29
  151.             echo "            ";
  152.             $this->loadTemplate("@SwagPayPal/storefront/component/ecs-spb-checkout/ecs-button.html.twig""@SwagPayPal/storefront/page/checkout/cart/index.html.twig"29)->display(twig_array_merge($context, ["button_class" => "checkout-aside-action"]));
  153.             // line 30
  154.             echo "        ";
  155.         }
  156.         // line 31
  157.         echo "    ";
  158.         
  159.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  160.         
  161.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  162.     }
  163.     // line 33
  164.     public function block_page_checkout_aside_actions_paypal_installment_banner($context, array $blocks = [])
  165.     {
  166.         $macros $this->macros;
  167.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  168.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_aside_actions_paypal_installment_banner"));
  169.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  170.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_aside_actions_paypal_installment_banner"));
  171.         // line 34
  172.         echo "        ";
  173.         // line 35
  174.         echo "        ";
  175.         $context["installmentBanner"] = (($__internal_compile_2 sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse35)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[twig_constant("Swag\\PayPal\\Installment\\Banner\\InstallmentBannerSubscriber::PAYPAL_INSTALLMENT_BANNER_DATA_EXTENSION_ID")] ?? null) : null);
  176.         // line 36
  177.         echo "
  178.         ";
  179.         // line 37
  180.         if ( !(null === ($context["installmentBanner"] ?? null))) {
  181.             // line 38
  182.             echo "            <div class=\"checkout-aside-action\"
  183.                  data-swag-paypal-installment-banner=\"true\"
  184.                  data-swag-pay-pal-installment-banner-options=\"";
  185.             // line 40
  186.             echo sw_escape_filter($this->envcall_user_func_array($this->env->getFilter('json_encode')->getCallable(), [($context["installmentBanner"] ?? null)]), "html"nulltrue);
  187.             echo "\">
  188.             </div>
  189.         ";
  190.         }
  191.         // line 43
  192.         echo "    ";
  193.         
  194.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  195.         
  196.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  197.     }
  198.     public function getTemplateName()
  199.     {
  200.         return "@SwagPayPal/storefront/page/checkout/cart/index.html.twig";
  201.     }
  202.     public function isTraitable()
  203.     {
  204.         return false;
  205.     }
  206.     public function getDebugInfo()
  207.     {
  208.         return array (  226 => 43,  220 => 40,  216 => 38,  214 => 37,  211 => 36,  208 => 35,  206 => 34,  196 => 33,  186 => 31,  183 => 30,  180 => 29,  178 => 28,  175 => 27,  172 => 26,  170 => 25,  160 => 24,  150 => 33,  147 => 32,  145 => 24,  139 => 22,  129 => 21,  119 => 18,  112 => 14,  107 => 11,  105 => 10,  102 => 9,  99 => 8,  97 => 7,  78 => 6,  72 => 4,  62 => 3,  39 => 2,);
  209.     }
  210.     public function getSourceContext()
  211.     {
  212.         return new Source("{% sw_extends '@Storefront/storefront/page/checkout/cart/index.html.twig' %}
  213. {% block page_checkout_cart_table_items %}
  214.     {{ parent() }}
  215.     {% block page_checkout_cart_table_items_paypal_installment_banner %}
  216.         {# @var \\Swag\\PayPal\\Installment\\Banner\\BannerData installmentBanner #}
  217.         {% set installmentBanner = page.extensions[constant('Swag\\\\PayPal\\\\Installment\\\\Banner\\\\InstallmentBannerSubscriber::PAYPAL_INSTALLMENT_BANNER_DATA_CART_PAGE_EXTENSION_ID')] %}
  218.         {% if installmentBanner is not null %}
  219.             <div class=\"form-row\">
  220.                 <div class=\"col\"
  221.                      data-swag-paypal-installment-banner=\"true\"
  222.                      data-swag-pay-pal-installment-banner-options=\"{{ installmentBanner|json_encode }}\">
  223.                 </div>
  224.             </div>
  225.         {% endif %}
  226.     {% endblock %}
  227. {% endblock %}
  228. {% block page_checkout_aside_actions %}
  229.     {{ parent() }}
  230.     {% block page_checkout_aside_actions_paypal_express_button %}
  231.         {# @var \\Swag\\PayPal\\Checkout\\ExpressCheckout\\ExpressCheckoutButtonData expressSettings #}
  232.         {% set expressSettings = page.extensions[constant('Swag\\\\PayPal\\\\Checkout\\\\ExpressCheckout\\\\ExpressCheckoutSubscriber::PAYPAL_EXPRESS_CHECKOUT_BUTTON_DATA_EXTENSION_ID')] %}
  233.         {% if expressSettings.cartEnabled %}
  234.             {% sw_include '@SwagPayPal/storefront/component/ecs-spb-checkout/ecs-button.html.twig' with {button_class: 'checkout-aside-action'} %}
  235.         {% endif %}
  236.     {% endblock %}
  237.     {% block page_checkout_aside_actions_paypal_installment_banner %}
  238.         {# @var \\Swag\\PayPal\\Installment\\Banner\\BannerData installmentBanner #}
  239.         {% set installmentBanner = page.extensions[constant('Swag\\\\PayPal\\\\Installment\\\\Banner\\\\InstallmentBannerSubscriber::PAYPAL_INSTALLMENT_BANNER_DATA_EXTENSION_ID')] %}
  240.         {% if installmentBanner is not null %}
  241.             <div class=\"checkout-aside-action\"
  242.                  data-swag-paypal-installment-banner=\"true\"
  243.                  data-swag-pay-pal-installment-banner-options=\"{{ installmentBanner|json_encode }}\">
  244.             </div>
  245.         {% endif %}
  246.     {% endblock %}
  247. {% endblock %}
  248. ""@SwagPayPal/storefront/page/checkout/cart/index.html.twig""/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/SwagPayPal/src/Resources/views/storefront/page/checkout/cart/index.html.twig");
  249.     }
  250. }