<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
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;
/* @ATNTheme/storefront/component/product/card/box-standard.html.twig */
class __TwigTemplate_0a474e178fa7e86d198d0bd6e0b39422c0071af2f035bdf6fcba6237eab98767 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'component_product_box_content' => [$this, 'block_component_product_box_content'],
'component_product_box_variant_characteristics' => [$this, 'block_component_product_box_variant_characteristics'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@SwagCmsExtensions/storefront/component/product/card/box-standard.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", "@ATNTheme/storefront/component/product/card/box-standard.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ATNTheme/storefront/component/product/card/box-standard.html.twig"));
$this->parent = $this->loadTemplate("@SwagCmsExtensions/storefront/component/product/card/box-standard.html.twig", "@ATNTheme/storefront/component/product/card/box-standard.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_component_product_box_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", "component_product_box_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_box_content"));
// line 4
echo " ";
if ((( !($context["cover"] ?? null) && sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "coverId", [], "any", false, false, false, 4)) && (0 === twig_compare(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "translated", [], "any", false, false, false, 4), "name", [], "any", false, false, false, 4), "ATN Testprodukt")))) {
// line 5
echo " ";
$context["coverMediaCollection"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\MediaExtension']->searchMedia([0 => sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "coverId", [], "any", false, false, false, 5)], sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "context", [], "any", false, false, false, 5));
// line 6
echo " ";
$context["cover"] = sw_get_attribute($this->env, $this->source, ($context["coverMediaCollection"] ?? null), "get", [0 => sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "coverId", [], "any", false, false, false, 6)], "method", false, false, false, 6);
// line 7
echo " ";
}
// line 8
echo " ";
$this->displayParentBlock("component_product_box_content", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
public function block_component_product_box_variant_characteristics($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", "component_product_box_variant_characteristics"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_box_variant_characteristics"));
// line 12
echo "
";
// line 13
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "translated", [], "any", false, false, false, 13), "customFields", [], "any", false, false, false, 13), "custom_extra_property_1", [], "any", false, false, false, 13) || sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "translated", [], "any", false, false, false, 13), "customFields", [], "any", false, false, false, 13), "custom_extra_property_2", [], "any", false, false, false, 13))) {
// line 14
echo " <div class=\"product-properties my-3\">
<div class=\"product-property my-2\">";
// line 15
echo sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "translated", [], "any", false, false, false, 15), "customFields", [], "any", false, false, false, 15), "custom_extra_property_1", [], "any", false, false, false, 15);
echo "</div>
<div class=\"product-property my-2\">";
// line 16
echo sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "translated", [], "any", false, false, false, 16), "customFields", [], "any", false, false, false, 16), "custom_extra_property_2", [], "any", false, false, false, 16);
echo "</div>
</div>
";
}
// line 19
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@ATNTheme/storefront/component/product/card/box-standard.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 122 => 19, 116 => 16, 112 => 15, 109 => 14, 107 => 13, 104 => 12, 94 => 11, 81 => 8, 78 => 7, 75 => 6, 72 => 5, 69 => 4, 59 => 3, 36 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
{% block component_product_box_content %}
{% if not cover and product.coverId and product.translated.name =='ATN Testprodukt' %}
{% set coverMediaCollection = searchMedia([product.coverId], context.context) %}
{% set cover = coverMediaCollection.get(product.coverId) %}
{% endif %}
{{ parent() }}
{% endblock %}
{% block component_product_box_variant_characteristics %}
{% if product.translated.customFields.custom_extra_property_1 or product.translated.customFields.custom_extra_property_2 %}
<div class=\"product-properties my-3\">
<div class=\"product-property my-2\">{{ product.translated.customFields.custom_extra_property_1|raw }}</div>
<div class=\"product-property my-2\">{{ product.translated.customFields.custom_extra_property_2|raw }}</div>
</div>
{% endif %}
{# {% sw_include '@ATNTheme/storefront/component/product/properties/product-properties.html.twig' %} #}
{% endblock %}", "@ATNTheme/storefront/component/product/card/box-standard.html.twig", "/www/htdocs/w01c128a/atngmbh.webneo-demo.de/www/custom/plugins/ATNTheme/src/Resources/views/storefront/component/product/card/box-standard.html.twig");
}
}