<?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;
/* @TdsOrlob/storefront/component/product/listing.html.twig */
class __TwigTemplate_0184da811154ba9de0757e3cbd5da1a155644db4bb90c3f6b34ffe7b9f7e2cb1 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'element_product_listing_wrapper_content' => [$this, 'block_element_product_listing_wrapper_content'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/component/product/listing.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", "@TdsOrlob/storefront/component/product/listing.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@TdsOrlob/storefront/component/product/listing.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/component/product/listing.html.twig", "@TdsOrlob/storefront/component/product/listing.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_element_product_listing_wrapper_content($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", "element_product_listing_wrapper_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "element_product_listing_wrapper_content"));
// line 5
echo "
\t";
// line 6
if (((0 === twig_compare(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 6), "name", [], "any", false, false, false, 6), "Admin Kategorie")) && (0 === twig_compare(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "currentCustomerGroup", [], "any", false, false, false, 6), "name", [], "any", false, false, false, 6), "Admin")))) {
// line 7
echo "\t
\t\t\t";
// line 8
$this->loadTemplate("@TdsOrlob/storefront/component/product/listing-admin.html.twig", "@TdsOrlob/storefront/component/product/listing.html.twig", 8)->display($context);
// line 9
echo "
\t";
} elseif (((0 === twig_compare(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 10
($context["page"] ?? null), "cmsPage", [], "any", false, false, false, 10), "name", [], "any", false, false, false, 10), "Admin Kategorie")) && (0 !== twig_compare(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "currentCustomerGroup", [], "any", false, false, false, 10), "name", [], "any", false, false, false, 10), "Admin")))) {
// line 11
echo "\t
\t\t\t<div style=\"text-align: center;\">
\t\t\t\t<b style=\"font-size: 24px\">Hinweis:</b><br><br>Das ist unser Adminbereich. Btte log dich als Admin User im Frontend an. Falls du noch keine Admin User hast, dann erstelle einen Kunden und setze die Kundengruppe auf Admin.<br><br>
\t\t\t\t<div>
\t\t\t\t\t<a class=\"btn btn-primary\" href=\"/account/login\" target=\"_self\">Anmeldung/Registrierung</a><br>
\t\t\t\t</div>
\t\t\t</div>
\t";
} elseif ((0 === twig_compare(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 19
($context["context"] ?? null), "currentCustomerGroup", [], "any", false, false, false, 19), "id", [], "any", false, false, false, 19), "cfbd5018d38d41d8adca10d94fc8bdd6"))) {
// line 20
echo "\t
\t\t<div style=\"text-align: center;\"></b>
\t\t<br>
\t\t<br>
\t\t\t<b style=\"font-size: 24px\">Hinweis:</b>
\t\t<br>
\t\t<br>Für eine komplette Einsicht unserer Artikel ist eine Registrierung als Händler erforderlich! Zur Anmeldung und Registrierung gelangen Sie über folgenden Link:<br>
\t\t<br>
\t\t<div>
\t\t\t<a class=\"btn btn-primary\" href=\"/account/login\" target=\"_self\">Anmeldung/Registrierung</a>
\t\t\t<br></div>
\t\t</div>
\t\t\t\t
\t";
} else {
// line 34
echo "\t
\t\t";
// line 35
$this->displayParentBlock("element_product_listing_wrapper_content", $context, $blocks);
echo "
\t\t
\t";
}
// line 38
echo "\t
\t
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@TdsOrlob/storefront/component/product/listing.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 120 => 38, 114 => 35, 111 => 34, 95 => 20, 93 => 19, 83 => 11, 81 => 10, 78 => 9, 76 => 8, 73 => 7, 71 => 6, 68 => 5, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/component/product/listing.html.twig' %}
{% block element_product_listing_wrapper_content %}
{# \t{{dump(page.cmsPage.name, context.currentCustomerGroup.name)}} #}
\t{% if page.cmsPage.name == 'Admin Kategorie' && context.currentCustomerGroup.name == 'Admin' %}
\t
\t\t\t{% sw_include '@Storefront/storefront/component/product/listing-admin.html.twig' %}
\t{% elseif page.cmsPage.name == 'Admin Kategorie' && context.currentCustomerGroup.name != 'Admin' %}
\t
\t\t\t<div style=\"text-align: center;\">
\t\t\t\t<b style=\"font-size: 24px\">Hinweis:</b><br><br>Das ist unser Adminbereich. Btte log dich als Admin User im Frontend an. Falls du noch keine Admin User hast, dann erstelle einen Kunden und setze die Kundengruppe auf Admin.<br><br>
\t\t\t\t<div>
\t\t\t\t\t<a class=\"btn btn-primary\" href=\"/account/login\" target=\"_self\">Anmeldung/Registrierung</a><br>
\t\t\t\t</div>
\t\t\t</div>
\t{% elseif context.currentCustomerGroup.id =='cfbd5018d38d41d8adca10d94fc8bdd6' %}
\t
\t\t<div style=\"text-align: center;\"></b>
\t\t<br>
\t\t<br>
\t\t\t<b style=\"font-size: 24px\">Hinweis:</b>
\t\t<br>
\t\t<br>Für eine komplette Einsicht unserer Artikel ist eine Registrierung als Händler erforderlich! Zur Anmeldung und Registrierung gelangen Sie über folgenden Link:<br>
\t\t<br>
\t\t<div>
\t\t\t<a class=\"btn btn-primary\" href=\"/account/login\" target=\"_self\">Anmeldung/Registrierung</a>
\t\t\t<br></div>
\t\t</div>
\t\t\t\t
\t{% else %}
\t
\t\t{{ parent() }}
\t\t
\t{% endif %}
\t
\t
{% endblock %}
", "@TdsOrlob/storefront/component/product/listing.html.twig", "/home/fasflpog/shopware/custom/plugins/TdsOrlob/src/Resources/views/storefront/component/product/listing.html.twig");
}
}