var/cache/dev_h5b02c48344407d68d61eb74a0cdcd8b0/twig/a2/a2c214e82ac5aea53d7f75393f039a4238378c20507fbd92ca6c91807a37aade.php line 41

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. /* @IntediaDoofinderSW6/storefront/base.html.twig */
  16. class __TwigTemplate_ed579c2a42f5c8d1c5f25a0d000ae221 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_body_script' => [$this'block_base_body_script'],
  26.             'intedia_doofinder_include' => [$this'block_intedia_doofinder_include'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@SensusUptainConnect6/storefront/base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@IntediaDoofinderSW6/storefront/base.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@IntediaDoofinderSW6/storefront/base.html.twig"));
  41.         $this->parent $this->loadTemplate("@SensusUptainConnect6/storefront/base.html.twig""@IntediaDoofinderSW6/storefront/base.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_base_body_script($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_script"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_script"));
  56.         // line 4
  57.         echo "
  58.     ";
  59.         // line 5
  60.         $this->displayParentBlock("base_body_script"$context$blocks);
  61.         echo "
  62.     ";
  63.         // line 7
  64.         if (($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"IntediaDoofinderSW6.config.doofinderEnabled") && ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"IntediaDoofinderSW6.config.doofinderInjectionBlock") == 2))) {
  65.             // line 8
  66.             echo "
  67.         ";
  68.             // line 9
  69.             $this->displayBlock('intedia_doofinder_include'$context$blocks);
  70.             // line 12
  71.             echo "
  72.     ";
  73.         }
  74.         // line 14
  75.         echo "
  76. ";
  77.         
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  79.         
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81.     }
  82.     // line 9
  83.     public function block_intedia_doofinder_include($context, array $blocks = [])
  84.     {
  85.         $macros $this->macros;
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""intedia_doofinder_include"));
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""intedia_doofinder_include"));
  90.         // line 10
  91.         echo "            <template data-intedia-doofinder data-intedia-doofinder-options='{ \"layerType\": \"";
  92.         echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"IntediaDoofinderSW6.config.doofinderLayer"), "html"nulltrue);
  93.         echo "\", \"engineHash\": \"";
  94.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "footer", [], "any"falsefalsefalse10), "extensions", [], "any"falsefalsefalse10), "doofinder", [], "any"falsefalsefalse10), "hashId", [], "any"falsefalsefalse10), "html"nulltrue);
  95.         echo "\", \"installationId\": \"";
  96.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "footer", [], "any"falsefalsefalse10), "extensions", [], "any"falsefalsefalse10), "doofinder", [], "any"falsefalsefalse10), "storeId", [], "any"falsefalsefalse10), "html"nulltrue);
  97.         echo "\", \"doofinderRecommendation\": ";
  98.         if ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"IntediaDoofinderSW6.config.doofinderRecommendation")) {
  99.             echo "1";
  100.         } else {
  101.             echo "0";
  102.         }
  103.         echo ", \"csrfToken\": \"";
  104.         echo $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.checkout.product.add-by-number", ["mode" => "token"]);
  105.         echo "\", \"addToCartUrl\": \"";
  106.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.checkout.product.add-by-number");
  107.         echo "\", \"offCanvasUrl\": \"";
  108.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.cart.offcanvas");
  109.         echo "\" }'></template>
  110.         ";
  111.         
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113.         
  114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  115.     }
  116.     public function getTemplateName()
  117.     {
  118.         return "@IntediaDoofinderSW6/storefront/base.html.twig";
  119.     }
  120.     public function isTraitable()
  121.     {
  122.         return false;
  123.     }
  124.     public function getDebugInfo()
  125.     {
  126.         return array (  109 => 10,  99 => 9,  88 => 14,  84 => 12,  82 => 9,  79 => 8,  77 => 7,  72 => 5,  69 => 4,  59 => 3,  36 => 2,);
  127.     }
  128.     public function getSourceContext()
  129.     {
  130.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  131. {% block base_body_script %}
  132.     {{ parent() }}
  133.     {% if config('IntediaDoofinderSW6.config.doofinderEnabled') and config('IntediaDoofinderSW6.config.doofinderInjectionBlock') == 2 %}
  134.         {% block intedia_doofinder_include %}
  135.             <template data-intedia-doofinder data-intedia-doofinder-options='{ \"layerType\": \"{{ config('IntediaDoofinderSW6.config.doofinderLayer') }}\", \"engineHash\": \"{{ page.footer.extensions.doofinder.hashId }}\", \"installationId\": \"{{ page.footer.extensions.doofinder.storeId }}\", \"doofinderRecommendation\": {% if config('IntediaDoofinderSW6.config.doofinderRecommendation') %}1{% else %}0{% endif %}, \"csrfToken\": \"{{ sw_csrf('frontend.checkout.product.add-by-number', {\"mode\": \"token\"}) }}\", \"addToCartUrl\": \"{{ path('frontend.checkout.product.add-by-number') }}\", \"offCanvasUrl\": \"{{ path('frontend.cart.offcanvas') }}\" }'></template>
  136.         {% endblock %}
  137.     {% endif %}
  138. {% endblock %}""@IntediaDoofinderSW6/storefront/base.html.twig""/var/www/staging1.grimm-gastrobedarf.de/custom/plugins/IntediaDoofinderSW6/src/Resources/views/storefront/base.html.twig");
  139.     }
  140. }