<?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/page/product-detail/index.html.twig */
class __TwigTemplate_21c7665b1542d1368c972af3ca5aadeb28b9f1fed6371146f915e82ea014b504 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_product_detail_media' => [$this, 'block_page_product_detail_media'],
'page_product_detail' => [$this, 'block_page_product_detail'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@IntediaDoofinderSW6/storefront/page/product-detail/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", "@TdsOrlob/storefront/page/product-detail/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", "@TdsOrlob/storefront/page/product-detail/index.html.twig"));
$this->parent = $this->loadTemplate("@IntediaDoofinderSW6/storefront/page/product-detail/index.html.twig", "@TdsOrlob/storefront/page/product-detail/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_page_product_detail_media($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", "page_product_detail_media"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_media"));
// line 4
echo "
<div class=\"col-lg-7 product-detail-media\">
";
// line 7
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 7), "media", [], "any", false, false, false, 7)) {
// line 8
echo "
";
// line 9
$this->loadTemplate("@TdsOrlob/storefront/element/cms-element-image-gallery.html.twig", "@TdsOrlob/storefront/page/product-detail/index.html.twig", 9)->display(twig_array_merge($context, ["mediaItems" => // line 10
($context["mediaItems"] ?? null), "zoom" => true, "zoomModal" => true, "displayMode" => "contain", "gutter" => 5, "minHeight" => "430px", "navigationArrows" => "inside", "navigationDots" => "inside", "galleryPosition" => "left", "isProduct" => true, "fallbackImageTitle" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 20
($context["page"] ?? null), "product", [], "any", false, false, false, 20), "translated", [], "any", false, false, false, 20), "name", [], "any", false, false, false, 20), "startIndexThumbnails" => (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 21
($context["page"] ?? null), "product", [], "any", false, false, false, 21), "cover", [], "any", false, false, false, 21), "position", [], "any", false, false, false, 21) + 1), "startIndexSlider" => (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 22
($context["page"] ?? null), "product", [], "any", false, false, false, 22), "cover", [], "any", false, false, false, 22), "position", [], "any", false, false, false, 22) + 1)]));
// line 24
echo "
";
}
// line 26
echo "
";
// line 27
if (((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 27), "categoryTree", [], "any", false, false, false, 27) && sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["shopware"] ?? null), "config", [], "any", false, false, false, 27), "TdsOrlob", [], "any", false, false, false, 27), "config", [], "any", false, false, false, 27), "salesCategoryId", [], "any", false, false, false, 27)) && twig_in_filter(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 28
($context["shopware"] ?? null), "config", [], "any", false, false, false, 28), "TdsOrlob", [], "any", false, false, false, 28), "config", [], "any", false, false, false, 28), "salesCategoryId", [], "any", false, false, false, 28), sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 28), "categoryTree", [], "any", false, false, false, 28)))) {
// line 29
echo "
<div class=\"sales-badge\">
<img src=\"";
// line 31
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/sales-badge.png", "@TdsOrlob"), "html", null, true);
echo "\" alt=\"Sale\" class=\"sales-badge-icon\"/>
</div>
";
}
// line 35
echo "
";
// line 36
if (((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 36), "categoryTree", [], "any", false, false, false, 36) && sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["shopware"] ?? null), "config", [], "any", false, false, false, 36), "TdsOrlob", [], "any", false, false, false, 36), "config", [], "any", false, false, false, 36), "newCategoryId", [], "any", false, false, false, 36)) && twig_in_filter(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 37
($context["shopware"] ?? null), "config", [], "any", false, false, false, 37), "TdsOrlob", [], "any", false, false, false, 37), "config", [], "any", false, false, false, 37), "newCategoryId", [], "any", false, false, false, 37), sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "product", [], "any", false, false, false, 37), "categoryTree", [], "any", false, false, false, 37)))) {
// line 38
echo "
<div class=\"new-badge\">
<img src=\"";
// line 40
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/new-badge.png", "@TdsOrlob"), "html", null, true);
echo "\" alt=\"New\" class=\"new-badge-icon\"/>
</div>
";
}
// line 44
echo "
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 50
public function block_page_product_detail($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", "page_product_detail"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail"));
// line 51
echo "
";
// line 52
if ((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, 52), "id", [], "any", false, false, false, 52), "cfbd5018d38d41d8adca10d94fc8bdd6"))) {
// line 53
echo " <div style=\"text-align: center;\"></b>
<br>
<br>
<b style=\"font-size: 24px\">Hinweis:</b>
<br>
<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>
<br>
<div>
<a class=\"btn btn-primary\" href=\"/account/login\" target=\"_self\">Anmeldung/Registrierung</a>
<br></div>
</div>
";
} else {
// line 65
echo "
";
// line 66
$this->displayParentBlock("page_product_detail", $context, $blocks);
echo "
";
}
// line 69
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@TdsOrlob/storefront/page/product-detail/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 174 => 69, 168 => 66, 165 => 65, 151 => 53, 149 => 52, 146 => 51, 136 => 50, 123 => 44, 116 => 40, 112 => 38, 110 => 37, 109 => 36, 106 => 35, 99 => 31, 95 => 29, 93 => 28, 92 => 27, 89 => 26, 85 => 24, 83 => 22, 82 => 21, 81 => 20, 80 => 10, 79 => 9, 76 => 8, 74 => 7, 69 => 4, 59 => 3, 36 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
{% block page_product_detail_media %}
<div class=\"col-lg-7 product-detail-media\">
{% if page.product.media %}
{% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
'mediaItems': mediaItems,
'zoom': true,
'zoomModal': true,
'displayMode': 'contain',
'gutter': 5,
'minHeight': '430px',
'navigationArrows': 'inside',
'navigationDots': 'inside',
'galleryPosition': 'left',
'isProduct': true,
'fallbackImageTitle': page.product.translated.name,
'startIndexThumbnails': page.product.cover.position + 1,
'startIndexSlider': page.product.cover.position + 1
} %}
{% endif %}
{% if page.product.categoryTree and shopware.config.TdsOrlob.config.salesCategoryId
and shopware.config.TdsOrlob.config.salesCategoryId in page.product.categoryTree %}
<div class=\"sales-badge\">
<img src=\"{{ asset('assets/sales-badge.png', '@TdsOrlob') }}\" alt=\"Sale\" class=\"sales-badge-icon\"/>
</div>
{% endif %}
{% if page.product.categoryTree and shopware.config.TdsOrlob.config.newCategoryId
and shopware.config.TdsOrlob.config.newCategoryId in page.product.categoryTree %}
<div class=\"new-badge\">
<img src=\"{{ asset('assets/new-badge.png', '@TdsOrlob') }}\" alt=\"New\" class=\"new-badge-icon\"/>
</div>
{% endif %}
</div>
{% endblock %}
{% block page_product_detail %}
{% if context.currentCustomerGroup.id =='cfbd5018d38d41d8adca10d94fc8bdd6' %}
<div style=\"text-align: center;\"></b>
<br>
<br>
<b style=\"font-size: 24px\">Hinweis:</b>
<br>
<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>
<br>
<div>
<a class=\"btn btn-primary\" href=\"/account/login\" target=\"_self\">Anmeldung/Registrierung</a>
<br></div>
</div>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
", "@TdsOrlob/storefront/page/product-detail/index.html.twig", "/home/fasflpog/shopware/custom/plugins/TdsOrlob/src/Resources/views/storefront/page/product-detail/index.html.twig");
}
}