<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @PremsDiscountCategory6/storefront/page/content/index.html.twig */
class __TwigTemplate_c1515e1340179cb5aa08398f0d354ce25a959c47d42e98cf1f34319e1229fc1c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'layout_head_stylesheet' => [$this, 'block_layout_head_stylesheet'],
'base_flashbags' => [$this, 'block_base_flashbags'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/page/content/index.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PremsDiscountCategory6/storefront/page/content/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PremsDiscountCategory6/storefront/page/content/index.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/page/content/index.html.twig", "@PremsDiscountCategory6/storefront/page/content/index.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_layout_head_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_stylesheet"));
// line 4
echo " ";
$this->displayParentBlock("layout_head_stylesheet", $context, $blocks);
echo "
";
// line 5
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 5), "premsProductDiscounts", [], "any", false, false, false, 5)) {
// line 6
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 10
public function block_base_flashbags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_flashbags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_flashbags"));
// line 11
echo " ";
$this->displayParentBlock("base_flashbags", $context, $blocks);
echo "
";
// line 12
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 12), "premsProductDiscounts", [], "any", false, false, false, 12)) {
// line 13
echo " <div class=\"flashbags container\">
";
// line 14
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 14), "premsProductDiscounts", [], "any", false, false, false, 14), "all", [], "any", false, false, false, 14));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["productDiscount"]) {
// line 15
echo " ";
if ((sw_get_attribute($this->env, $this->source, $context["productDiscount"], "showDiscountInfoboxInListing", [], "any", false, false, false, 15) && !sw_get_attribute($this->env, $this->source, $context["productDiscount"], "isUpprice", [], "any", false, false, false, 15))) {
// line 16
echo " <style type=\"text/css\">
.prems-listing-discount-";
// line 17
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["productDiscount"], "id", [], "any", false, false, false, 17), "html", null, true);
echo ".alert {
background-color: ";
// line 18
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["productDiscount"], "listingInfoboxTextColor", [], "any", false, false, false, 18), "html", null, true);
echo "
}
.prems-listing-discount-";
// line 20
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["productDiscount"], "id", [], "any", false, false, false, 20), "html", null, true);
echo ".alert .icon {
color: ";
// line 21
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["productDiscount"], "detailpageInfoboxBackgroundColor", [], "any", false, false, false, 21), "html", null, true);
echo "
}
.prems-listing-discount-";
// line 23
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["productDiscount"], "id", [], "any", false, false, false, 23), "html", null, true);
echo " .alert-content-container {
background-color: ";
// line 24
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["productDiscount"], "detailpageInfoboxBackgroundColor", [], "any", false, false, false, 24), "html", null, true);
echo "; color: ";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["productDiscount"], "listingInfoboxTextColor", [], "any", false, false, false, 24), "html", null, true);
echo "
}
.prems-listing-discount-";
// line 26
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["productDiscount"], "id", [], "any", false, false, false, 26), "html", null, true);
echo " .alert-content-container h2 {
color: ";
// line 27
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["productDiscount"], "listingInfoboxTextColor", [], "any", false, false, false, 27), "html", null, true);
echo "
}
</style>
<div role=\"alert\" class=\"prems-listing-discount-";
// line 30
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["productDiscount"], "id", [], "any", false, false, false, 30), "html", null, true);
echo " alert alert-has-icon\">
";
// line 31
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@PremsDiscountCategory6/storefront/page/content/index.html.twig", 31);
})())->display(twig_array_merge($context, ["name" => "info"]));
// line 32
echo " <div class=\"alert-content-container\">
<div class=\"alert-content\">
<h2>";
// line 34
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["productDiscount"], "translated", [], "any", false, false, false, 34), "listingInfoboxTitle", [], "any", false, false, false, 34), "html", null, true);
echo "</h2>
<p>";
// line 35
echo sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["productDiscount"], "translated", [], "any", false, false, false, 35), "listingInfoboxText", [], "any", false, false, false, 35);
echo "</p>
</div>
</div>
</div>
";
}
// line 40
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productDiscount'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo " </div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@PremsDiscountCategory6/storefront/page/content/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/content/index.html.twig' %}
{% block layout_head_stylesheet %}
{{ parent() }}
{% if page.extensions.premsProductDiscounts %}
{% endif %}
{% endblock %}
{% block base_flashbags %}
{{ parent() }}
{% if page.extensions.premsProductDiscounts %}
<div class=\"flashbags container\">
{% for productDiscount in page.extensions.premsProductDiscounts.all %}
{% if productDiscount.showDiscountInfoboxInListing and not productDiscount.isUpprice %}
<style type=\"text/css\">
.prems-listing-discount-{{ productDiscount.id }}.alert {
background-color: {{ productDiscount.listingInfoboxTextColor }}
}
.prems-listing-discount-{{ productDiscount.id }}.alert .icon {
color: {{ productDiscount.detailpageInfoboxBackgroundColor }}
}
.prems-listing-discount-{{ productDiscount.id }} .alert-content-container {
background-color: {{ productDiscount.detailpageInfoboxBackgroundColor }}; color: {{ productDiscount.listingInfoboxTextColor }}
}
.prems-listing-discount-{{ productDiscount.id }} .alert-content-container h2 {
color: {{ productDiscount.listingInfoboxTextColor }}
}
</style>
<div role=\"alert\" class=\"prems-listing-discount-{{ productDiscount.id }} alert alert-has-icon\">
{% sw_icon 'info' %}
<div class=\"alert-content-container\">
<div class=\"alert-content\">
<h2>{{ productDiscount.translated.listingInfoboxTitle }}</h2>
<p>{{ productDiscount.translated.listingInfoboxText|raw }}</p>
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endblock %}
", "@PremsDiscountCategory6/storefront/page/content/index.html.twig", "/var/customers/webs/iab/htdocs/custom/plugins/PremsDiscountCategory6/src/Resources/views/storefront/page/content/index.html.twig");
}
}