var/cache/dev_h61dab171fcb3dd073fc68bfbeb4d9256/twig/66/666a60c3b2b4b7708c860043a31f778323f5ae099607b2828eb7542abb4e7c12.php line 40

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. /* @TrustedShopsEasyIntegrationS6/storefront/page/content/index.html.twig */
  16. class __TwigTemplate_497686cf902ec280fc9f5df593c0337a 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_head' => [$this'block_base_head'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@Storefront/storefront/page/content/index.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""@TrustedShopsEasyIntegrationS6/storefront/page/content/index.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""@TrustedShopsEasyIntegrationS6/storefront/page/content/index.html.twig"));
  40.         // line 3
  41.         $context["tsConfig"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"trustedShopsApp.config");
  42.         // line 4
  43.         $context["tsChannelId"] = (((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsetruefalse4), "id", [], "any"truetruefalse4) &&  !(null === sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsetruefalse4), "id", [], "any"falsefalsefalse4)))) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsetruefalse4), "id", [], "any"falsefalsefalse4)) : (null));
  44.         // line 2
  45.         $this->parent $this->loadTemplate("@Storefront/storefront/page/content/index.html.twig""@TrustedShopsEasyIntegrationS6/storefront/page/content/index.html.twig"2);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 6
  53.     public function block_base_head($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_head"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_head"));
  60.         // line 7
  61.         echo "    ";
  62.         $this->displayParentBlock("base_head"$context$blocks);
  63.         echo "
  64.     ";
  65.         // line 9
  66.         if ( !(null === ($context["tsChannelId"] ?? null))) {
  67.             // line 10
  68.             echo "        ";
  69.             if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["tsConfig"] ?? null), ($context["tsChannelId"] ?? null), [], "array"falsetruefalse10), "widgets", [], "any"truetruefalse10) &&  !(null === sw_get_attribute($this->env$this->source, (($__internal_compile_0 = ($context["tsConfig"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[($context["tsChannelId"] ?? null)] ?? null) : null), "widgets", [], "any"falsefalsefalse10)))) {
  70.                 // line 11
  71.                 echo "            ";
  72.                 if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["tsConfig"] ?? null), ($context["tsChannelId"] ?? null), [], "array"falsetruefalse11), "widgets", [], "any"truetruefalse11) && ((($__internal_compile_1 = ($context["expectedMapping"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[($context["tsChannelId"] ?? null)] ?? null) : null) === sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, (($__internal_compile_2 = ($context["tsConfig"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[($context["tsChannelId"] ?? null)] ?? null) : null), "widgets", [], "any"falsefalsefalse11), "eTrustedChannelRef", [], "any"falsefalsefalse11)))) {
  73.                     // line 12
  74.                     echo "                ";
  75.                     $context["widgetConfig"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, (($__internal_compile_3 = ($context["tsConfig"] ?? null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3[($context["tsChannelId"] ?? null)] ?? null) : null), "widgets", [], "any"falsefalsefalse12), "children", [], "any"falsefalsefalse12), 0, [], "any"falsefalsefalse12);
  76.                     // line 13
  77.                     echo "                ";
  78.                     $this->loadTemplate("@TrustedShopsEasyIntegrationS6/storefront/includes/script-assembler.html.twig""@TrustedShopsEasyIntegrationS6/storefront/page/content/index.html.twig"13)->display(twig_array_merge($context, ["scriptConfig" =>                     // line 14
  79. ($context["widgetConfig"] ?? null)]));
  80.                     // line 16
  81.                     echo "            ";
  82.                 }
  83.                 // line 17
  84.                 echo "        ";
  85.             }
  86.             // line 18
  87.             echo "    ";
  88.         }
  89.         
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  91.         
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  93.     }
  94.     public function getTemplateName()
  95.     {
  96.         return "@TrustedShopsEasyIntegrationS6/storefront/page/content/index.html.twig";
  97.     }
  98.     public function isTraitable()
  99.     {
  100.         return false;
  101.     }
  102.     public function getDebugInfo()
  103.     {
  104.         return array (  100 => 18,  97 => 17,  94 => 16,  92 => 14,  90 => 13,  87 => 12,  84 => 11,  81 => 10,  79 => 9,  73 => 7,  63 => 6,  52 => 2,  50 => 4,  48 => 3,  35 => 2,);
  105.     }
  106.     public function getSourceContext()
  107.     {
  108.         return new Source("{% sw_extends '@Storefront/storefront/page/content/index.html.twig' %}
  109. {% set tsConfig = config('trustedShopsApp.config') %}
  110. {% set tsChannelId = context.salesChannel.id ?? null %}
  111. {% block base_head %}
  112.     {{ parent() }}
  113.     {% if tsChannelId is not null %}
  114.         {% if tsConfig[tsChannelId].widgets is defined and tsConfig[tsChannelId].widgets is not null %}
  115.             {% if tsConfig[tsChannelId].widgets is defined and expectedMapping[tsChannelId] === tsConfig[tsChannelId].widgets.eTrustedChannelRef %}
  116.                 {% set widgetConfig = tsConfig[tsChannelId].widgets.children.0 %}
  117.                 {% sw_include '@Storefront/storefront/includes/script-assembler.html.twig' with {
  118.                     scriptConfig: widgetConfig
  119.                 } %}
  120.             {% endif %}
  121.         {% endif %}
  122.     {% endif %}
  123. {% endblock %}
  124. {#
  125. {% block cms_content %}
  126.     {{ parent() }}
  127.     {% if tsChannelId is not null %}
  128.         {% if tsConfig[tsChannelId].productReviewActive is defined and tsConfig[tsChannelId].productReviewActive is not null %}
  129.             <!-- added by Trusted Shops app: Start -->
  130.             <div class=\"ts-margin-container container\">
  131.                 <div class=\"row\">
  132.                     <div class=\"col-12\">
  133.                         {% sw_include '@Storefront/storefront/includes/widget-assembler.html.twig' with {
  134.                             widgets: tsConfig[tsChannelId].widgets.children.0.children,
  135.                             product: product,
  136.                             widgetLocationId: 'wdg-loc-lrm'
  137.                         } %}
  138.                     </div>
  139.                 </div>
  140.             </div>
  141.             <!-- End -->
  142.         {% endif %}
  143.     {% endif %}
  144. {% endblock %} #}
  145. ""@TrustedShopsEasyIntegrationS6/storefront/page/content/index.html.twig""/usr/www/users/betten/betten-abc-alt-und-tot.de/custom/apps/TrustedShopsEasyIntegrationS6/Resources/views/storefront/page/content/index.html.twig");
  146.     }
  147. }