var/cache/dev_h1f2002fa6d81d589ce0a577e6f1db41b/twig/08/085ca2d1a70b499e9d94b85e08da0c7f7f8d2e4adc4ec77320a5e98823774d38.php line 51

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. /* @PremsDiscountCategory6/storefront/page/content/index.html.twig */
  16. class __TwigTemplate_c1515e1340179cb5aa08398f0d354ce25a959c47d42e98cf1f34319e1229fc1c 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.             'layout_head_stylesheet' => [$this'block_layout_head_stylesheet'],
  26.             'base_flashbags' => [$this'block_base_flashbags'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@Storefront/storefront/page/content/index.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PremsDiscountCategory6/storefront/page/content/index.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PremsDiscountCategory6/storefront/page/content/index.html.twig"));
  41.         $this->parent $this->loadTemplate("@Storefront/storefront/page/content/index.html.twig""@PremsDiscountCategory6/storefront/page/content/index.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 3
  49.     public function block_layout_head_stylesheet($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_stylesheet"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_stylesheet"));
  56.         // line 4
  57.         echo "    ";
  58.         $this->displayParentBlock("layout_head_stylesheet"$context$blocks);
  59.         echo "
  60.     ";
  61.         // line 5
  62.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse5), "premsProductDiscounts", [], "any"falsefalsefalse5)) {
  63.             // line 6
  64.             echo "
  65.     ";
  66.         }
  67.         
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  69.         
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  71.     }
  72.     // line 10
  73.     public function block_base_flashbags($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_flashbags"));
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_flashbags"));
  80.         // line 11
  81.         echo "    ";
  82.         $this->displayParentBlock("base_flashbags"$context$blocks);
  83.         echo "
  84.     ";
  85.         // line 12
  86.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse12), "premsProductDiscounts", [], "any"falsefalsefalse12)) {
  87.             // line 13
  88.             echo "        <div class=\"flashbags container\">
  89.             ";
  90.             // line 14
  91.             $context['_parent'] = $context;
  92.             $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse14), "premsProductDiscounts", [], "any"falsefalsefalse14), "all", [], "any"falsefalsefalse14));
  93.             $context['loop'] = [
  94.               'parent' => $context['_parent'],
  95.               'index0' => 0,
  96.               'index'  => 1,
  97.               'first'  => true,
  98.             ];
  99.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  100.                 $length count($context['_seq']);
  101.                 $context['loop']['revindex0'] = $length 1;
  102.                 $context['loop']['revindex'] = $length;
  103.                 $context['loop']['length'] = $length;
  104.                 $context['loop']['last'] = === $length;
  105.             }
  106.             foreach ($context['_seq'] as $context["_key"] => $context["productDiscount"]) {
  107.                 // line 15
  108.                 echo "                ";
  109.                 if ((sw_get_attribute($this->env$this->source$context["productDiscount"], "showDiscountInfoboxInListing", [], "any"falsefalsefalse15) &&  !sw_get_attribute($this->env$this->source$context["productDiscount"], "isUpprice", [], "any"falsefalsefalse15))) {
  110.                     // line 16
  111.                     echo "                    <style type=\"text/css\">
  112.                         .prems-listing-discount-";
  113.                     // line 17
  114.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["productDiscount"], "id", [], "any"falsefalsefalse17), "html"nulltrue);
  115.                     echo ".alert {
  116.                             background-color: ";
  117.                     // line 18
  118.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["productDiscount"], "listingInfoboxTextColor", [], "any"falsefalsefalse18), "html"nulltrue);
  119.                     echo "
  120.                         }
  121.                         .prems-listing-discount-";
  122.                     // line 20
  123.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["productDiscount"], "id", [], "any"falsefalsefalse20), "html"nulltrue);
  124.                     echo ".alert .icon {
  125.                             color: ";
  126.                     // line 21
  127.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["productDiscount"], "detailpageInfoboxBackgroundColor", [], "any"falsefalsefalse21), "html"nulltrue);
  128.                     echo "
  129.                         }
  130.                         .prems-listing-discount-";
  131.                     // line 23
  132.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["productDiscount"], "id", [], "any"falsefalsefalse23), "html"nulltrue);
  133.                     echo " .alert-content-container {
  134.                             background-color: ";
  135.                     // line 24
  136.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["productDiscount"], "detailpageInfoboxBackgroundColor", [], "any"falsefalsefalse24), "html"nulltrue);
  137.                     echo "; color: ";
  138.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["productDiscount"], "listingInfoboxTextColor", [], "any"falsefalsefalse24), "html"nulltrue);
  139.                     echo "
  140.                         }
  141.                         .prems-listing-discount-";
  142.                     // line 26
  143.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["productDiscount"], "id", [], "any"falsefalsefalse26), "html"nulltrue);
  144.                     echo " .alert-content-container h2 {
  145.                             color: ";
  146.                     // line 27
  147.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["productDiscount"], "listingInfoboxTextColor", [], "any"falsefalsefalse27), "html"nulltrue);
  148.                     echo "
  149.                         }
  150.                     </style>
  151.                     <div role=\"alert\" class=\"prems-listing-discount-";
  152.                     // line 30
  153.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["productDiscount"], "id", [], "any"falsefalsefalse30), "html"nulltrue);
  154.                     echo " alert alert-has-icon\">
  155.                         ";
  156.                     // line 31
  157.                     ((function () use ($context$blocks) {
  158.                         $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  159.                         $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  160.                         return $this->loadTemplate($includeTemplate ?? null"@PremsDiscountCategory6/storefront/page/content/index.html.twig"31);
  161.                     })())->display(twig_array_merge($context, ["name" => "info"]));
  162.                     // line 32
  163.                     echo "                        <div class=\"alert-content-container\">
  164.                             <div class=\"alert-content\">
  165.                                 <h2>";
  166.                     // line 34
  167.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["productDiscount"], "translated", [], "any"falsefalsefalse34), "listingInfoboxTitle", [], "any"falsefalsefalse34), "html"nulltrue);
  168.                     echo "</h2>
  169.                                 <p>";
  170.                     // line 35
  171.                     echo sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["productDiscount"], "translated", [], "any"falsefalsefalse35), "listingInfoboxText", [], "any"falsefalsefalse35);
  172.                     echo "</p>
  173.                             </div>
  174.                         </div>
  175.                     </div>
  176.                 ";
  177.                 }
  178.                 // line 40
  179.                 echo "            ";
  180.                 ++$context['loop']['index0'];
  181.                 ++$context['loop']['index'];
  182.                 $context['loop']['first'] = false;
  183.                 if (isset($context['loop']['length'])) {
  184.                     --$context['loop']['revindex0'];
  185.                     --$context['loop']['revindex'];
  186.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  187.                 }
  188.             }
  189.             $_parent $context['_parent'];
  190.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productDiscount'], $context['_parent'], $context['loop']);
  191.             $context array_intersect_key($context$_parent) + $_parent;
  192.             // line 41
  193.             echo "        </div>
  194.     ";
  195.         }
  196.         
  197.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  198.         
  199.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  200.     }
  201.     public function getTemplateName()
  202.     {
  203.         return "@PremsDiscountCategory6/storefront/page/content/index.html.twig";
  204.     }
  205.     public function isTraitable()
  206.     {
  207.         return false;
  208.     }
  209.     public function getDebugInfo()
  210.     {
  211.         return array (  212 => 41,  198 => 40,  190 => 35,  186 => 34,  182 => 32,  174 => 31,  170 => 30,  164 => 27,  160 => 26,  153 => 24,  149 => 23,  144 => 21,  140 => 20,  135 => 18,  131 => 17,  128 => 16,  125 => 15,  108 => 14,  105 => 13,  103 => 12,  98 => 11,  88 => 10,  76 => 6,  74 => 5,  69 => 4,  59 => 3,  36 => 2,);
  212.     }
  213.     public function getSourceContext()
  214.     {
  215.         return new Source("{% sw_extends '@Storefront/storefront/page/content/index.html.twig' %}
  216. {% block layout_head_stylesheet %}
  217.     {{ parent() }}
  218.     {% if page.extensions.premsProductDiscounts %}
  219.     {% endif %}
  220. {% endblock %}
  221. {% block base_flashbags %}
  222.     {{ parent() }}
  223.     {% if page.extensions.premsProductDiscounts %}
  224.         <div class=\"flashbags container\">
  225.             {% for productDiscount in page.extensions.premsProductDiscounts.all %}
  226.                 {% if productDiscount.showDiscountInfoboxInListing and not productDiscount.isUpprice %}
  227.                     <style type=\"text/css\">
  228.                         .prems-listing-discount-{{ productDiscount.id }}.alert {
  229.                             background-color: {{ productDiscount.listingInfoboxTextColor }}
  230.                         }
  231.                         .prems-listing-discount-{{ productDiscount.id }}.alert .icon {
  232.                             color: {{ productDiscount.detailpageInfoboxBackgroundColor }}
  233.                         }
  234.                         .prems-listing-discount-{{ productDiscount.id }} .alert-content-container {
  235.                             background-color: {{ productDiscount.detailpageInfoboxBackgroundColor }}; color: {{ productDiscount.listingInfoboxTextColor }}
  236.                         }
  237.                         .prems-listing-discount-{{ productDiscount.id }} .alert-content-container h2 {
  238.                             color: {{ productDiscount.listingInfoboxTextColor }}
  239.                         }
  240.                     </style>
  241.                     <div role=\"alert\" class=\"prems-listing-discount-{{ productDiscount.id }} alert alert-has-icon\">
  242.                         {% sw_icon 'info' %}
  243.                         <div class=\"alert-content-container\">
  244.                             <div class=\"alert-content\">
  245.                                 <h2>{{ productDiscount.translated.listingInfoboxTitle }}</h2>
  246.                                 <p>{{ productDiscount.translated.listingInfoboxText|raw }}</p>
  247.                             </div>
  248.                         </div>
  249.                     </div>
  250.                 {% endif %}
  251.             {% endfor %}
  252.         </div>
  253.     {% endif %}
  254. {% endblock %}
  255. ""@PremsDiscountCategory6/storefront/page/content/index.html.twig""/var/customers/webs/iab/htdocs/custom/plugins/PremsDiscountCategory6/src/Resources/views/storefront/page/content/index.html.twig");
  256.     }
  257. }