var/cache/dev_hc896b0aecebc6aae6bec469c82cd525f/twig/7e/7e29021825438a236efa50d2eb867145cd135d0b5a62dde6f7583fdb7a69427d.php line 53

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. /* @EfbStorefront/storefront/base.html.twig */
  16. class __TwigTemplate_589f74daaa5c3017553d01dff9ed8944 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_inner' => [$this'block_base_body_inner'],
  26.             'base_header' => [$this'block_base_header'],
  27.             'base_header_inner' => [$this'block_base_header_inner'],
  28.             'base_body_classes' => [$this'block_base_body_classes'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 2
  34.         return "@UandiEfbContactInfo/storefront/base.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EfbStorefront/storefront/base.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EfbStorefront/storefront/base.html.twig"));
  43.         $this->parent $this->loadTemplate("@UandiEfbContactInfo/storefront/base.html.twig""@EfbStorefront/storefront/base.html.twig"2);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 4
  51.     public function block_base_body_inner($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_inner"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_inner"));
  58.         // line 5
  59.         echo "    ";
  60.         $context["ga4PluginConfig"] = ["selectors" => (((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 6
  61. ($context["context"] ?? null), "salesChannel", [], "any"falsetruefalse6), "translated", [], "any"falsetruefalse6), "customFields", [], "any"falsetruefalse6), "custom_ga4_plugin_selectors", [], "any"truetruefalse6) &&  !(null === sw_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["context"] ?? null), "salesChannel", [], "any"falsetruefalse6), "translated", [], "any"falsetruefalse6), "customFields", [], "any"falsetruefalse6), "custom_ga4_plugin_selectors", [], "any"falsefalsefalse6)))) ? (sw_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["context"] ?? null), "salesChannel", [], "any"falsetruefalse6), "translated", [], "any"falsetruefalse6), "customFields", [], "any"falsetruefalse6), "custom_ga4_plugin_selectors", [], "any"falsefalsefalse6)) : (""))];
  62.         // line 8
  63.         echo "
  64.     <div
  65.         id=\"ga4-event-submission-plugin-config\"
  66.         style=\"height: 0; width: 0;\"
  67.         data-plugin-config='";
  68.         // line 12
  69.         echo $this->env->getFilter('json_encode')->getCallable()(($context["ga4PluginConfig"] ?? null));
  70.         echo "'
  71.     ></div>
  72.     ";
  73.         // line 15
  74.         $this->displayParentBlock("base_body_inner"$context$blocks);
  75.         echo "
  76. ";
  77.         
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  79.         
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81.     }
  82.     // line 18
  83.     public function block_base_header($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""base_header"));
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_header"));
  90.         // line 19
  91.         echo "    <section class=\"top-bar\">
  92.         <div class=\"container\">
  93.             ";
  94.         // line 21
  95.         $this->loadTemplate("@EfbStorefront/storefront/layout/header/top-bar.html.twig""@EfbStorefront/storefront/base.html.twig"21)->display($context);
  96.         // line 22
  97.         echo "        </div>
  98.     </section>
  99.     <header class=\"header-main\">
  100.         ";
  101.         // line 25
  102.         $this->displayBlock('base_header_inner'$context$blocks);
  103.         // line 28
  104.         echo "    </header>
  105. ";
  106.         
  107.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  108.         
  109.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  110.     }
  111.     // line 25
  112.     public function block_base_header_inner($context, array $blocks = [])
  113.     {
  114.         $macros $this->macros;
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_header_inner"));
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_header_inner"));
  119.         // line 26
  120.         echo "            ";
  121.         $this->displayParentBlock("base_header_inner"$context$blocks);
  122.         echo "
  123.         ";
  124.         
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  126.         
  127.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  128.     }
  129.     // line 32
  130.     public function block_base_body_classes($context, array $blocks = [])
  131.     {
  132.         $macros $this->macros;
  133.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  134.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_classes"));
  135.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_classes"));
  137.         // line 33
  138.         echo "    ";
  139.         $this->displayParentBlock("base_body_classes"$context$blocks);
  140.         echo "
  141.     ";
  142.         // line 34
  143.         if ( !sw_get_attribute($this->env$this->source, ($context["context"] ?? null), "customer", [], "any"falsefalsefalse34)) {
  144.             echo "is-guest";
  145.         }
  146.         
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  148.         
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  150.     }
  151.     public function getTemplateName()
  152.     {
  153.         return "@EfbStorefront/storefront/base.html.twig";
  154.     }
  155.     public function isTraitable()
  156.     {
  157.         return false;
  158.     }
  159.     public function getDebugInfo()
  160.     {
  161.         return array (  171 => 34,  166 => 33,  156 => 32,  143 => 26,  133 => 25,  122 => 28,  120 => 25,  115 => 22,  113 => 21,  109 => 19,  99 => 18,  87 => 15,  81 => 12,  75 => 8,  73 => 6,  71 => 5,  61 => 4,  38 => 2,);
  162.     }
  163.     public function getSourceContext()
  164.     {
  165.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  166. {% block base_body_inner %}
  167.     {% set ga4PluginConfig = {
  168.         selectors: context.salesChannel.translated.customFields.custom_ga4_plugin_selectors ?? ''
  169.     } %}
  170.     <div
  171.         id=\"ga4-event-submission-plugin-config\"
  172.         style=\"height: 0; width: 0;\"
  173.         data-plugin-config='{{ ga4PluginConfig|json_encode|raw }}'
  174.     ></div>
  175.     {{ parent() }}
  176. {% endblock %}
  177. {% block base_header %}
  178.     <section class=\"top-bar\">
  179.         <div class=\"container\">
  180.             {% sw_include '@Storefront/storefront/layout/header/top-bar.html.twig' %}
  181.         </div>
  182.     </section>
  183.     <header class=\"header-main\">
  184.         {% block base_header_inner %}
  185.             {{ parent() }}
  186.         {% endblock %}
  187.     </header>
  188. {% endblock %}
  189. {% block base_body_classes %}
  190.     {{ parent() }}
  191.     {% if not context.customer %}is-guest{% endif %}
  192. {% endblock %}""@EfbStorefront/storefront/base.html.twig""/var/www/share/efb-elektronik.dev.mc.emzcustomers.de/shopware6/custom/static-plugins/EfbStorefront/Resources/views/storefront/base.html.twig");
  193.     }
  194. }