<?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;
/* @ProcBasicElements/storefront/page/content/detail.html.twig */
class __TwigTemplate_6804818b76e6bdb7eb9ec0c28c90a6a7 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_content_section' => [$this, 'block_page_content_section'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/page/content/detail.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", "@ProcBasicElements/storefront/page/content/detail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ProcBasicElements/storefront/page/content/detail.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/page/content/detail.html.twig", "@ProcBasicElements/storefront/page/content/detail.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 4
public function block_page_content_section($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_content_section"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_content_section"));
// line 5
echo " ";
$context["additionalSectionCls"] = "";
// line 6
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "customFields", [], "any", false, false, false, 6), "procClassValue", [], "any", false, false, false, 6), "sectionCls", [], "any", false, false, false, 6)) {
// line 7
echo " ";
$context["additionalSectionCls"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "customFields", [], "any", false, false, false, 7), "procClassValue", [], "any", false, false, false, 7), "sectionCls", [], "any", false, false, false, 7);
// line 8
echo " ";
}
// line 9
echo " <div class=\"cms-section ";
echo sw_escape_filter($this->env, twig_join_filter(($context["sectionClasses"] ?? null), " "), "html", null, true);
if (($context["additionalSectionCls"] ?? null)) {
echo " ";
echo sw_escape_filter($this->env, ($context["additionalSectionCls"] ?? null), "html", null, true);
}
echo "\"
style=\"";
// line 10
if (($context["sectionBgColor"] ?? null)) {
echo "background-color: ";
echo sw_escape_filter($this->env, ($context["sectionBgColor"] ?? null), "html", null, true);
echo ";";
}
if (($context["sectionBgImg"] ?? null)) {
echo "background-image: url(";
echo sw_escape_filter($this->env, ($context["sectionBgImg"] ?? null), "html", null, true);
echo ");background-size: ";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "backgroundMediaMode", [], "any", false, false, false, 10), "html", null, true);
echo ";";
}
echo "\">
";
// line 12
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find((("@Storefront/storefront/section/cms-section-" . sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "type", [], "any", false, false, false, 12)) . ".html.twig"));
return $this->loadTemplate($includeTemplate ?? null, "@ProcBasicElements/storefront/page/content/detail.html.twig", 12);
})())->display(twig_array_merge($context, ["additionalSectionCls" => ($context["additionalSectionCls"] ?? null)]));
// line 13
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@ProcBasicElements/storefront/page/content/detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 113 => 13, 105 => 12, 89 => 10, 80 => 9, 77 => 8, 74 => 7, 71 => 6, 68 => 5, 58 => 4, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/content/detail.html.twig' %}
{# add an additional class on the cms-section #}
{% block page_content_section %}
{% set additionalSectionCls = '' %}
{% if(section.customFields.procClassValue.sectionCls) %}
{% set additionalSectionCls = section.customFields.procClassValue.sectionCls %}
{% endif %}
<div class=\"cms-section {{ sectionClasses|join(' ') }}{% if additionalSectionCls %} {{ additionalSectionCls }}{% endif %}\"
style=\"{% if sectionBgColor %}background-color: {{ sectionBgColor }};{% endif %}{% if sectionBgImg %}background-image: url({{ sectionBgImg }});background-size: {{ section.backgroundMediaMode }};{% endif %}\">
{% sw_include \"@Storefront/storefront/section/cms-section-\" ~ section.type ~ \".html.twig\" with {additionalSectionCls} %}
</div>
{% endblock %}
", "@ProcBasicElements/storefront/page/content/detail.html.twig", "/var/www/html/htdocs/custom/plugins/ProcBasicElements/src/Resources/views/storefront/page/content/detail.html.twig");
}
}