var/cache/dev_h7c987e168e0fffb75676c4822b2502a6/twig/21/214856bba08f4a7bae54228f79eae0a15a9e39745ddc7fc1780b3ee4e9e17f09.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/base.html.twig */
  16. class __TwigTemplate_3788469b870caea23cb3899583a94fc7 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_main' => [$this'block_base_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@DreiscSeoPro/storefront/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MolliePayments/storefront/base.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MolliePayments/storefront/base.html.twig"));
  40.         $this->parent $this->loadTemplate("@DreiscSeoPro/storefront/base.html.twig""@MolliePayments/storefront/base.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_base_main($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_main"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_main"));
  55.         // line 4
  56.         echo "
  57.     ";
  58.         // line 7
  59.         echo "    ";
  60.         $context["onlyShowHere"] = ["frontend.checkout.confirm.page" => """frontend.checkout.cart.page" => "cart""frontend.navigation.page" => "plp""frontend.account.edit-order.page" => """frontend.detail.page" => "pdp"];
  61.         // line 14
  62.         echo "
  63.     ";
  64.         // line 16
  65.         $context["currentRoute"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsefalse16), "attributes", [], "any"falsefalsefalse16), "get", [=> "_route"], "method"falsefalsefalse16);
  66.         // line 17
  67.         echo "    ";
  68.         $context["includeJsInHeader"] = false;
  69.         // line 18
  70.         echo "
  71.     ";
  72.         // line 20
  73.         echo "    ";
  74.         if ((((($context["currentRoute"] ?? null) == "frontend.checkout.cart.page") || (($context["currentRoute"] ?? null) == "frontend.checkout.confirm.page")) || (($context["currentRoute"] ?? null) == "frontend.account.edit-order.page"))) {
  75.             // line 21
  76.             echo "        ";
  77.             $context["includeJsInHeader"] = true;
  78.             // line 22
  79.             echo "    ";
  80.         }
  81.         // line 23
  82.         echo "
  83.     ";
  84.         // line 25
  85.         echo "    ";
  86.         if (((($context["mollie_applepaydirect_enabled"] ?? null) == true) || (($context["mollie_applepay_enabled"] ?? null) == true))) {
  87.             // line 26
  88.             echo "        ";
  89.             if ((twig_in_filter(($context["currentRoute"] ?? null), twig_get_array_keys_filter(($context["onlyShowHere"] ?? null))) && !twig_in_filter((($__internal_compile_0 = ($context["onlyShowHere"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[($context["currentRoute"] ?? null)] ?? null) : null), ($context["mollie_applepaydirect_restrictions"] ?? null)))) {
  90.                 // line 27
  91.                 echo "            ";
  92.                 $context["includeJsInHeader"] = true;
  93.                 // line 28
  94.                 echo "        ";
  95.             }
  96.             // line 29
  97.             echo "        ";
  98.             if (!twig_in_filter("offcanvas", ($context["mollie_applepaydirect_restrictions"] ?? null))) {
  99.                 // line 30
  100.                 echo "            ";
  101.                 $context["includeJsInHeader"] = true;
  102.                 // line 31
  103.                 echo "        ";
  104.             }
  105.             // line 32
  106.             echo "    ";
  107.         }
  108.         // line 33
  109.         echo "
  110.     <script>
  111.         window.mollie_javascript_use_shopware = '";
  112.         // line 35
  113.         echo sw_escape_filter($this->env, ($context["mollie_javascript_use_shopware"] ?? null), "html"nulltrue);
  114.         echo "'
  115.     </script>
  116.     ";
  117.         // line 38
  118.         if (((($context["mollie_javascript_use_shopware"] ?? null) != "1") && (($context["includeJsInHeader"] ?? null) == true))) {
  119.             // line 39
  120.             echo "        <script src=\"";
  121.             echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/molliepayments/mollie-payments.js""asset"), "html"nulltrue);
  122.             echo "\"></script>
  123.     ";
  124.         }
  125.         // line 41
  126.         echo "
  127.     ";
  128.         // line 42
  129.         $this->displayParentBlock("base_main"$context$blocks);
  130.         echo "
  131. ";
  132.         
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  134.         
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136.     }
  137.     public function getTemplateName()
  138.     {
  139.         return "@MolliePayments/storefront/base.html.twig";
  140.     }
  141.     public function isTraitable()
  142.     {
  143.         return false;
  144.     }
  145.     public function getDebugInfo()
  146.     {
  147.         return array (  144 => 42,  141 => 41,  135 => 39,  133 => 38,  127 => 35,  123 => 33,  120 => 32,  117 => 31,  114 => 30,  111 => 29,  108 => 28,  105 => 27,  102 => 26,  99 => 25,  96 => 23,  93 => 22,  90 => 21,  87 => 20,  84 => 18,  81 => 17,  79 => 16,  75 => 14,  72 => 7,  68 => 4,  58 => 3,  35 => 2,);
  148.     }
  149.     public function getSourceContext()
  150.     {
  151.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  152. {% block base_main %}
  153.     {# pages where apple pay requires js with their mollie_applepaydirect_restrictions names as values #}
  154.     {% set onlyShowHere = {
  155.         'frontend.checkout.confirm.page' : '',
  156.         'frontend.checkout.cart.page' : 'cart',
  157.         'frontend.navigation.page' : 'plp',
  158.         'frontend.account.edit-order.page' : '',
  159.         'frontend.detail.page' : 'pdp'
  160.     } %}
  161.     {% set currentRoute = app.request.attributes.get('_route') %}
  162.     {% set includeJsInHeader = false %}
  163.     {# js always required on this pages #}
  164.     {% if currentRoute == 'frontend.checkout.cart.page' or currentRoute == 'frontend.checkout.confirm.page'  or currentRoute == 'frontend.account.edit-order.page' %}
  165.         {% set includeJsInHeader = true %}
  166.     {% endif %}
  167.     {# requirement check for apple pay direct #}
  168.     {% if mollie_applepaydirect_enabled == true or mollie_applepay_enabled == true %}
  169.         {% if currentRoute in onlyShowHere|keys and onlyShowHere[currentRoute] not in mollie_applepaydirect_restrictions %}
  170.             {% set includeJsInHeader = true %}
  171.         {% endif %}
  172.         {% if 'offcanvas' not in mollie_applepaydirect_restrictions %}
  173.             {% set includeJsInHeader = true %}
  174.         {% endif %}
  175.     {% endif %}
  176.     <script>
  177.         window.mollie_javascript_use_shopware = '{{ mollie_javascript_use_shopware }}'
  178.     </script>
  179.     {% if mollie_javascript_use_shopware != '1' and includeJsInHeader == true %}
  180.         <script src=\"{{ asset('bundles/molliepayments/mollie-payments.js', 'asset') }}\"></script>
  181.     {% endif %}
  182.     {{ parent() }}
  183. {% endblock %}""@MolliePayments/storefront/base.html.twig""/var/www/vhosts/devmt.de/httpdocs/shopware-ce/custom/plugins/MolliePayments/src/Resources/views/storefront/base.html.twig");
  184.     }
  185. }