<?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;
/* @MoorlFoundation/storefront/page/content/detail.html.twig */
class __TwigTemplate_1cfd940911ce4fe400d0c5c0a1fdde1c27e3b63072846551aa3abbf82ba272e9 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@MoorlFoundation/storefront/page/content/detail.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@MoorlFoundation/storefront/page/content/detail.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/page/content/detail.html.twig", "@MoorlFoundation/storefront/page/content/detail.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_content_section($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_content_section"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_content_section"));
// line 4
echo " ";
$context["mfs"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "customFields", [], "any", false, false, false, 4), "moorl_section_config", [], "any", false, false, false, 4);
// line 5
echo " ";
$context["cond1"] = ( !sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "salesChannel", [], "any", false, false, false, 5) || twig_in_filter(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 5), "id", [], "any", false, false, false, 5), sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "salesChannel", [], "any", false, false, false, 5)));
// line 6
echo " ";
$context["cond2"] = ( !sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "customerGroup", [], "any", false, false, false, 6) || twig_in_filter(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "currentCustomerGroup", [], "any", false, false, false, 6), "id", [], "any", false, false, false, 6), sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "customerGroup", [], "any", false, false, false, 6)));
// line 7
echo "
";
// line 8
if ((($context["cond1"] ?? null) && ($context["cond2"] ?? null))) {
// line 9
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "color", [], "any", false, false, false, 9)) {
$context["sectionClasses"] = twig_array_merge([0 => ("text-" . sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "color", [], "any", false, false, false, 9))], ($context["sectionClasses"] ?? null));
}
// line 10
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "backgroundColor", [], "any", false, false, false, 10)) {
$context["sectionClasses"] = twig_array_merge([0 => ("bg-" . sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "backgroundColor", [], "any", false, false, false, 10))], ($context["sectionClasses"] ?? null));
}
// line 11
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "top", [], "any", false, false, false, 11)) {
$context["sectionClasses"] = twig_array_merge([0 => (("moorl-separator-" . sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "top", [], "any", false, false, false, 11)) . "-top")], ($context["sectionClasses"] ?? null));
}
// line 12
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "bottom", [], "any", false, false, false, 12)) {
$context["sectionClasses"] = twig_array_merge([0 => (("moorl-separator-" . sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "bottom", [], "any", false, false, false, 12)) . "-bottom")], ($context["sectionClasses"] ?? null));
}
// line 13
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "offsetTop", [], "any", false, false, false, 13)) {
$context["sectionClasses"] = twig_array_merge([0 => (("moorl-offset-" . sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "offsetTop", [], "any", false, false, false, 13)) . "-top")], ($context["sectionClasses"] ?? null));
}
// line 14
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "offsetBottom", [], "any", false, false, false, 14)) {
$context["sectionClasses"] = twig_array_merge([0 => (("moorl-offset-" . sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "offsetBottom", [], "any", false, false, false, 14)) . "-bottom")], ($context["sectionClasses"] ?? null));
}
// line 15
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "separatorBackground", [], "any", false, false, false, 15)) {
$context["sectionClasses"] = twig_array_merge([0 => ("bg-moorl-separator-" . sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "separatorBackground", [], "any", false, false, false, 15))], ($context["sectionClasses"] ?? null));
}
// line 16
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "fixedBackground", [], "any", false, false, false, 16)) {
$context["sectionClasses"] = twig_array_merge([0 => "bg-fixed"], ($context["sectionClasses"] ?? null));
}
// line 17
echo " ";
if (sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "backgroundPaint", [], "any", false, false, false, 17)) {
$context["sectionClasses"] = twig_array_merge([0 => "moorl-paint", 1 => ("moorl-paint-" . sw_get_attribute($this->env, $this->source, ($context["mfs"] ?? null), "backgroundPaint", [], "any", false, false, false, 17))], ($context["sectionClasses"] ?? null));
}
// line 18
echo "
";
// line 19
$this->displayParentBlock("page_content_section", $context, $blocks);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@MoorlFoundation/storefront/page/content/detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 130 => 19, 127 => 18, 122 => 17, 117 => 16, 112 => 15, 107 => 14, 102 => 13, 97 => 12, 92 => 11, 87 => 10, 82 => 9, 80 => 8, 77 => 7, 74 => 6, 71 => 5, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends \"@Storefront/storefront/page/content/detail.html.twig\" %}
{% block page_content_section %}
{% set mfs = section.customFields.moorl_section_config %}
{% set cond1 = not mfs.salesChannel or context.salesChannel.id in mfs.salesChannel %}
{% set cond2 = not mfs.customerGroup or context.currentCustomerGroup.id in mfs.customerGroup %}
{% if cond1 and cond2 %}
{% if mfs.color %}{% set sectionClasses = [\"text-#{mfs.color}\"]|merge(sectionClasses) %}{% endif %}
{% if mfs.backgroundColor %}{% set sectionClasses = [\"bg-#{mfs.backgroundColor}\"]|merge(sectionClasses) %}{% endif %}
{% if mfs.top %}{% set sectionClasses = [\"moorl-separator-#{mfs.top}-top\"]|merge(sectionClasses) %}{% endif %}
{% if mfs.bottom %}{% set sectionClasses = [\"moorl-separator-#{mfs.bottom}-bottom\"]|merge(sectionClasses) %}{% endif %}
{% if mfs.offsetTop %}{% set sectionClasses = [\"moorl-offset-#{mfs.offsetTop}-top\"]|merge(sectionClasses) %}{% endif %}
{% if mfs.offsetBottom %}{% set sectionClasses = [\"moorl-offset-#{mfs.offsetBottom}-bottom\"]|merge(sectionClasses) %}{% endif %}
{% if mfs.separatorBackground %}{% set sectionClasses = [\"bg-moorl-separator-#{mfs.separatorBackground}\"]|merge(sectionClasses) %}{% endif %}
{% if mfs.fixedBackground %}{% set sectionClasses = [\"bg-fixed\"]|merge(sectionClasses) %}{% endif %}
{% if mfs.backgroundPaint %}{% set sectionClasses = [\"moorl-paint\",\"moorl-paint-#{mfs.backgroundPaint}\"]|merge(sectionClasses) %}{% endif %}
{{ parent() }}
{% endif %}
{% endblock %}
", "@MoorlFoundation/storefront/page/content/detail.html.twig", "/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/MoorlFoundation/src/Resources/views/storefront/page/content/detail.html.twig");
}
}