<?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;
/* @TcinnThemeWareModern/storefront/component/product/description.html.twig */
class __TwigTemplate_7506968d8527d51a0ce8007bed7b2a56 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'component_product_description_title' => [$this, 'block_component_product_description_title'],
'component_product_description_content' => [$this, 'block_component_product_description_content'],
'component_product_description_content_properties' => [$this, 'block_component_product_description_content_properties'],
'page_product_detail_properties_title' => [$this, 'block_page_product_detail_properties_title'],
'page_product_detail_properties_info' => [$this, 'block_page_product_detail_properties_info'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/component/product/description.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@TcinnThemeWareModern/storefront/component/product/description.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@TcinnThemeWareModern/storefront/component/product/description.html.twig"));
// line 12
$context["twtProductDetailDescriptionTitleShow"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "twt-product-detail-description-title-show");
// line 13
$context["twtProductDetailProductVideosPosition"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "twt-product-detail-product-videos-position");
// line 14
$context["twtProductDetailProductVideosShow"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "twt-product-detail-product-videos-show");
// line 15
$context["twtProductDetailPropertiesHeadlineShow"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "twt-product-detail-properties-headline-show");
// line 16
$context["twtProductDetailPropertiesInfoShow"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "twt-product-detail-properties-info-show");
// line 17
$context["twtProductDetailPropertiesPosition"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "twt-product-detail-properties-position");
// line 18
$context["twtProductDetailTabProductVideosShow"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "twt-product-detail-tab-product-videos-show");
// line 2
$this->parent = $this->loadTemplate("@Storefront/storefront/component/product/description.html.twig", "@TcinnThemeWareModern/storefront/component/product/description.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 24
public function block_component_product_description_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_description_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_description_title"));
// line 25
echo " ";
// line 26
echo " ";
if ((($context["twtProductDetailDescriptionTitleShow"] ?? null) == 1)) {
// line 27
echo " ";
// line 28
echo "
";
} elseif (( // line 29
($context["twtProductDetailDescriptionTitleShow"] ?? null) == 3)) {
// line 30
echo " ";
// line 31
echo " <div class=\"h3 product-detail-description-title\">
";
// line 32
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["product"] ?? null), "translated", [], "any", false, false, false, 32), "name", [], "any", false, false, false, 32), "html", null, true);
echo "
</div>
";
} elseif (( // line 35
($context["twtProductDetailDescriptionTitleShow"] ?? null) == 4)) {
// line 36
echo " ";
// line 37
echo " <div class=\"h3 product-detail-description-title\">
";
// line 38
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.descriptionTitle"));
echo "
</div>
";
} else {
// line 42
echo "
";
// line 44
echo " ";
$this->displayParentBlock("component_product_description_title", $context, $blocks);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 50
public function block_component_product_description_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_description_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_description_content"));
// line 51
echo " ";
// line 52
echo " ";
$this->displayParentBlock("component_product_description_content", $context, $blocks);
echo "
";
// line 55
echo " ";
if ((((($context["twtProductDetailProductVideosShow"] ?? null) == 2) && (($context["twtProductDetailProductVideosPosition"] ?? null) == 2)) && (($context["twtProductDetailTabProductVideosShow"] ?? null) == 1))) {
// line 56
echo " ";
$__internal_compile_0 = null;
try {
$__internal_compile_0 = $this->loadTemplate("@TcinnThemeWareModern/storefront/themeware/product-detail/twt-product-videos.html.twig", "@TcinnThemeWareModern/storefront/component/product/description.html.twig", 56);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_0) {
$__internal_compile_0->display(twig_array_merge($context, ["type" => "component", "position" => "description"]));
}
// line 60
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 66
public function block_component_product_description_content_properties($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_description_content_properties"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "component_product_description_content_properties"));
// line 67
echo " ";
// line 68
echo " ";
if ((((($context["twtProductDetailProductVideosShow"] ?? null) == 2) && (($context["twtProductDetailProductVideosPosition"] ?? null) == 1)) && (($context["twtProductDetailTabProductVideosShow"] ?? null) == 1))) {
// line 69
echo " ";
$__internal_compile_1 = null;
try {
$__internal_compile_1 = $this->loadTemplate("@TcinnThemeWareModern/storefront/themeware/product-detail/twt-product-videos.html.twig", "@TcinnThemeWareModern/storefront/component/product/description.html.twig", 69);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_compile_1) {
$__internal_compile_1->display(twig_array_merge($context, ["type" => "component", "position" => "description"]));
}
// line 73
echo " ";
}
// line 74
echo "
";
// line 76
echo " ";
if (((($context["twtProductDetailPropertiesPosition"] ?? null) != 2) && (($context["twtProductDetailPropertiesHeadlineShow"] ?? null) != 1))) {
// line 77
echo " ";
$this->displayBlock('page_product_detail_properties_title', $context, $blocks);
// line 82
echo " ";
}
// line 83
echo "
";
// line 85
echo " ";
if ((($context["twtProductDetailPropertiesPosition"] ?? null) == 2)) {
// line 86
echo " ";
// line 87
echo " ";
} else {
// line 88
echo "
";
// line 90
echo " ";
$this->displayParentBlock("component_product_description_content_properties", $context, $blocks);
echo "
";
}
// line 92
echo "
";
// line 94
echo " ";
if (((($context["twtProductDetailPropertiesPosition"] ?? null) != 2) && (($context["twtProductDetailPropertiesInfoShow"] ?? null) != 1))) {
// line 95
echo " ";
$this->displayBlock('page_product_detail_properties_info', $context, $blocks);
// line 100
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 77
public function block_page_product_detail_properties_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_properties_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_properties_title"));
// line 78
echo " <div class=\"h4 twt-product-properties-description-title\">
";
// line 79
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("twt.detail.headlineProperties"));
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 95
public function block_page_product_detail_properties_info($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_properties_info"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_properties_info"));
// line 96
echo " <div class=\"twt-product-detail-properties-info\">
";
// line 97
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("twt.detail.infoProperties"));
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@TcinnThemeWareModern/storefront/component/product/description.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 304 => 97, 301 => 96, 291 => 95, 278 => 79, 275 => 78, 265 => 77, 254 => 100, 251 => 95, 248 => 94, 245 => 92, 239 => 90, 236 => 88, 233 => 87, 231 => 86, 228 => 85, 225 => 83, 222 => 82, 219 => 77, 216 => 76, 213 => 74, 210 => 73, 199 => 69, 196 => 68, 194 => 67, 184 => 66, 173 => 60, 162 => 56, 159 => 55, 153 => 52, 151 => 51, 141 => 50, 127 => 44, 124 => 42, 117 => 38, 114 => 37, 112 => 36, 110 => 35, 104 => 32, 101 => 31, 99 => 30, 97 => 29, 94 => 28, 92 => 27, 89 => 26, 87 => 25, 77 => 24, 66 => 2, 64 => 18, 62 => 17, 60 => 16, 58 => 15, 56 => 14, 54 => 13, 52 => 12, 39 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/component/product/description.html.twig' %}
{# ThemeWare® HC-Architecture® via configuration #}
{# TODO: prüfen... #}
{# ThemeWare: Description component on cms product page #}
{# INFO: Please note this is also available as \"page/product-detail/description.html.twig\" since SW6.4 #}
{# ---------------- START: SET TEMPLATE VARS ---------------- #}
{# ThemeWare: Set theme variables #}
{% set twtProductDetailDescriptionTitleShow = theme_config('twt-product-detail-description-title-show') %}
{% set twtProductDetailProductVideosPosition = theme_config('twt-product-detail-product-videos-position') %}
{% set twtProductDetailProductVideosShow = theme_config('twt-product-detail-product-videos-show') %}
{% set twtProductDetailPropertiesHeadlineShow = theme_config('twt-product-detail-properties-headline-show') %}
{% set twtProductDetailPropertiesInfoShow = theme_config('twt-product-detail-properties-info-show') %}
{% set twtProductDetailPropertiesPosition = theme_config('twt-product-detail-properties-position') %}
{% set twtProductDetailTabProductVideosShow = theme_config('twt-product-detail-tab-product-videos-show') %}
{# ---------------- END: SET TEMPLATE VARS ---------------- #}
{# ThemeWare: Adjustments in the description tab #}
{# HC-Architecture @Doku #}
{% block component_product_description_title %}
{# ThemeWare: Adjustments to the product-detail-description-title #}
{% if twtProductDetailDescriptionTitleShow == 1 %}
{# ThemeWare: Block cleared #}
{% elseif twtProductDetailDescriptionTitleShow == 3 %}
{# ThemeWare: Show product name only #}
<div class=\"h3 product-detail-description-title\">
{{ product.translated.name }}
</div>
{% elseif twtProductDetailDescriptionTitleShow == 4 %}
{# ThemeWare: Show descriptionTitle only #}
<div class=\"h3 product-detail-description-title\">
{{ \"detail.descriptionTitle\"|trans|sw_sanitize }}
</div>
{% else %}
{# Default block #}
{{ parent() }}
{% endif %}
{% endblock %}
{# ThemeWare: Adjustment of the description content #}
{% block component_product_description_content %}
{# Default block #}
{{ parent() }}
{# ThemeWare: Add product videos below properties (only if the videos tab is not displayed) #}
{% if twtProductDetailProductVideosShow == 2 and twtProductDetailProductVideosPosition == 2 and twtProductDetailTabProductVideosShow == 1 %}
{% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-videos.html.twig' ignore missing with {
type: 'component',
position: 'description'
} %}
{% endif %}
{% endblock %}
{# ThemeWare: Adjustment of the properties in description tab #}
{# HC-Architecture @Doku #}
{% block component_product_description_content_properties %}
{# ThemeWare: Add product videos above properties (only if the videos tab is not displayed) #}
{% if twtProductDetailProductVideosShow == 2 and twtProductDetailProductVideosPosition == 1 and twtProductDetailTabProductVideosShow == 1 %}
{% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-videos.html.twig' ignore missing with {
type: 'component',
position: 'description'
} %}
{% endif %}
{# ThemeWare: Add properties headline #}
{% if twtProductDetailPropertiesPosition != 2 and twtProductDetailPropertiesHeadlineShow != 1 %}
{% block page_product_detail_properties_title %}
<div class=\"h4 twt-product-properties-description-title\">
{{ \"twt.detail.headlineProperties\"|trans|sw_sanitize }}
</div>
{% endblock %}
{% endif %}
{# ThemeWare: Show properties in individuell tab if configured #}
{% if twtProductDetailPropertiesPosition == 2 %}
{# ThemeWare: Block cleared #}
{% else %}
{# Default block > load \"@Storefront/storefront/component/product/properties.html.twig' #}
{{ parent() }}
{% endif %}
{# ThemeWare: Add properties to offcanvas content #}
{% if twtProductDetailPropertiesPosition != 2 and twtProductDetailPropertiesInfoShow != 1 %}
{% block page_product_detail_properties_info %}
<div class=\"twt-product-detail-properties-info\">
{{ \"twt.detail.infoProperties\"|trans|sw_sanitize }}
</div>
{% endblock %}
{% endif %}
{% endblock %}", "@TcinnThemeWareModern/storefront/component/product/description.html.twig", "/var/customers/webs/kew/htdocs6/custom/plugins/TcinnThemeWareModern/src/Resources/views/storefront/component/product/description.html.twig");
}
}