var/cache/dev_h8a504f2468b79c92c87215f2f3293b0a/twig/1f/1f3ed382788ab396cd4f84b1cd0d3d6d7b0096c9e0c43f3f2026406e6b7504b5.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_f618168cae8bfc7479d9a39c32cf609f 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 "@NimbitsPriceOnRequestNext/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("@NimbitsPriceOnRequestNext/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 "    <script>
  57.         window.mollie_javascript_use_shopware = '";
  58.         // line 5
  59.         echo sw_escape_filter($this->env, ($context["mollie_javascript_use_shopware"] ?? null), "html"nulltrue);
  60.         echo "'
  61.     </script>
  62.     ";
  63.         // line 7
  64.         if ((($context["mollie_javascript_use_shopware"] ?? null) != "1")) {
  65.             // line 8
  66.             echo "        <script src=\"";
  67.             echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/molliepayments/static/js/mollie-payments.js""asset"), "html"nulltrue);
  68.             echo "\"></script>
  69.     ";
  70.         }
  71.         // line 10
  72.         echo "    ";
  73.         $this->displayParentBlock("base_main"$context$blocks);
  74.         echo "
  75. ";
  76.         
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78.         
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  80.     }
  81.     public function getTemplateName()
  82.     {
  83.         return "@MolliePayments/storefront/base.html.twig";
  84.     }
  85.     public function isTraitable()
  86.     {
  87.         return false;
  88.     }
  89.     public function getDebugInfo()
  90.     {
  91.         return array (  84 => 10,  78 => 8,  76 => 7,  71 => 5,  68 => 4,  58 => 3,  35 => 2,);
  92.     }
  93.     public function getSourceContext()
  94.     {
  95.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  96. {% block base_main %}
  97.     <script>
  98.         window.mollie_javascript_use_shopware = '{{ mollie_javascript_use_shopware }}'
  99.     </script>
  100.     {% if mollie_javascript_use_shopware != '1' %}
  101.         <script src=\"{{ asset('bundles/molliepayments/static/js/mollie-payments.js', 'asset') }}\"></script>
  102.     {% endif %}
  103.     {{ parent() }}
  104. {% endblock %}""@MolliePayments/storefront/base.html.twig""/home/bardahls/shopware/custom/plugins/MolliePayments/src/Resources/views/storefront/base.html.twig");
  105.     }
  106. }