var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/02/028461b36723ef8de0bfd9a746c9644018539182fd444bf63d82347236d16d42.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. /* @MolliePayments/storefront/page/checkout/cart/index.html.twig */
  16. class __TwigTemplate_e4f039f7bfe0fe2db136fe5a4865f309afca2ba720dd24ee355d0b059210cc02 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_shipping_costs_form_group_payment_method' => [$this'block_page_checkout_cart_shipping_costs_form_group_payment_method'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@Storefront/storefront/page/checkout/cart/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""@MolliePayments/storefront/page/checkout/cart/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""@MolliePayments/storefront/page/checkout/cart/index.html.twig"));
  40.         $this->parent $this->loadTemplate("@Storefront/storefront/page/checkout/cart/index.html.twig""@MolliePayments/storefront/page/checkout/cart/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_page_checkout_cart_shipping_costs_form_group_payment_method($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""page_checkout_cart_shipping_costs_form_group_payment_method"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs_form_group_payment_method"));
  55.         // line 4
  56.         echo "    <div class=\"form-group\">
  57.         <label for=\"paymentMethodId\">";
  58.         // line 5
  59.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.paymentMethod"));
  60.         echo "</label>
  61.         <select class=\"custom-select\" type=\"text\" id=\"paymentMethodId\" name=\"paymentMethodId\">
  62.             ";
  63.         // line 7
  64.         $context['_parent'] = $context;
  65.         $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "paymentMethods", [], "any"falsefalsefalse7));
  66.         foreach ($context['_seq'] as $context["_key"] => $context["payment"]) {
  67.             // line 8
  68.             echo "                <option value=\"";
  69.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["payment"], "id", [], "any"falsefalsefalse8), "html"nulltrue);
  70.             echo "\"
  71.                     ";
  72.             // line 9
  73.             if ((sw_get_attribute($this->env$this->source$context["payment"], "id", [], "any"falsefalsefalse9) == sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "paymentMethod", [], "any"falsefalsefalse9), "id", [], "any"falsefalsefalse9))) {
  74.                 echo " selected=\"selected\"";
  75.             }
  76.             echo ">
  77.                     ";
  78.             // line 10
  79.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["payment"], "translated", [], "any"falsefalsefalse10), "name", [], "any"falsefalsefalse10), "html"nulltrue);
  80.             echo "
  81.                     ";
  82.             // line 12
  83.             if ((twig_in_filter("MolliePayments"sw_get_attribute($this->env$this->source$context["payment"], "handlerIdentifier", [], "any"falsefalsefalse12)) && (sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "isMollieTestMode", [], "any"falsefalsefalse12) == true))) {
  84.                 // line 13
  85.                 echo "                        (";
  86.                 echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("molliePayments.testMode.label"), "html"nulltrue);
  87.                 echo ")
  88.                     ";
  89.             }
  90.             // line 15
  91.             echo "                </option>
  92.             ";
  93.         }
  94.         $_parent $context['_parent'];
  95.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['payment'], $context['_parent'], $context['loop']);
  96.         $context array_intersect_key($context$_parent) + $_parent;
  97.         // line 17
  98.         echo "        </select>
  99.     </div>
  100. ";
  101.         
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  103.         
  104.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  105.     }
  106.     public function getTemplateName()
  107.     {
  108.         return "@MolliePayments/storefront/page/checkout/cart/index.html.twig";
  109.     }
  110.     public function isTraitable()
  111.     {
  112.         return false;
  113.     }
  114.     public function getDebugInfo()
  115.     {
  116.         return array (  111 => 17,  104 => 15,  98 => 13,  96 => 12,  91 => 10,  85 => 9,  80 => 8,  76 => 7,  71 => 5,  68 => 4,  58 => 3,  35 => 2,);
  117.     }
  118.     public function getSourceContext()
  119.     {
  120.         return new Source("{% sw_extends '@Storefront/storefront/page/checkout/cart/index.html.twig' %}
  121. {% block page_checkout_cart_shipping_costs_form_group_payment_method %}
  122.     <div class=\"form-group\">
  123.         <label for=\"paymentMethodId\">{{ \"checkout.paymentMethod\"|trans|sw_sanitize }}</label>
  124.         <select class=\"custom-select\" type=\"text\" id=\"paymentMethodId\" name=\"paymentMethodId\">
  125.             {% for payment in page.paymentMethods %}
  126.                 <option value=\"{{ payment.id }}\"
  127.                     {% if payment.id == context.paymentMethod.id %} selected=\"selected\"{% endif %}>
  128.                     {{ payment.translated.name }}
  129.                     {% if \"MolliePayments\" in payment.handlerIdentifier and page.isMollieTestMode == true %}
  130.                         ({{ \"molliePayments.testMode.label\"|trans }})
  131.                     {% endif %}
  132.                 </option>
  133.             {% endfor %}
  134.         </select>
  135.     </div>
  136. {% endblock %}
  137. ""@MolliePayments/storefront/page/checkout/cart/index.html.twig""/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/MolliePayments/src/Resources/views/storefront/page/checkout/cart/index.html.twig");
  138.     }
  139. }