var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/37/370abe4ae47bf4c9b3d118d82013ef73c7e4f3cee574c8647d4abc337a025e0c.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @MoorlFoundation/storefront/page/content/detail.html.twig */
  16. class __TwigTemplate_1cfd940911ce4fe400d0c5c0a1fdde1c27e3b63072846551aa3abbf82ba272e9 extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'page_content_section' => [$this'block_page_content_section'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@Storefront/storefront/page/content/detail.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MoorlFoundation/storefront/page/content/detail.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MoorlFoundation/storefront/page/content/detail.html.twig"));
  40.         $this->parent $this->loadTemplate("@Storefront/storefront/page/content/detail.html.twig""@MoorlFoundation/storefront/page/content/detail.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_page_content_section($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_section"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_section"));
  55.         // line 4
  56.         echo "    ";
  57.         $context["mfs"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["section"] ?? null), "customFields", [], "any"falsefalsefalse4), "moorl_section_config", [], "any"falsefalsefalse4);
  58.         // line 5
  59.         echo "    ";
  60.         $context["cond1"] = ( !sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "salesChannel", [], "any"falsefalsefalse5) || twig_in_filter(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse5), "id", [], "any"falsefalsefalse5), sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "salesChannel", [], "any"falsefalsefalse5)));
  61.         // line 6
  62.         echo "    ";
  63.         $context["cond2"] = ( !sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "customerGroup", [], "any"falsefalsefalse6) || twig_in_filter(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "currentCustomerGroup", [], "any"falsefalsefalse6), "id", [], "any"falsefalsefalse6), sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "customerGroup", [], "any"falsefalsefalse6)));
  64.         // line 7
  65.         echo "
  66.     ";
  67.         // line 8
  68.         if ((($context["cond1"] ?? null) && ($context["cond2"] ?? null))) {
  69.             // line 9
  70.             echo "        ";
  71.             if (sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "color", [], "any"falsefalsefalse9)) {
  72.                 $context["sectionClasses"] = twig_array_merge([=> ("text-" sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "color", [], "any"falsefalsefalse9))], ($context["sectionClasses"] ?? null));
  73.             }
  74.             // line 10
  75.             echo "        ";
  76.             if (sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "backgroundColor", [], "any"falsefalsefalse10)) {
  77.                 $context["sectionClasses"] = twig_array_merge([=> ("bg-" sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "backgroundColor", [], "any"falsefalsefalse10))], ($context["sectionClasses"] ?? null));
  78.             }
  79.             // line 11
  80.             echo "        ";
  81.             if (sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "top", [], "any"falsefalsefalse11)) {
  82.                 $context["sectionClasses"] = twig_array_merge([=> (("moorl-separator-" sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "top", [], "any"falsefalsefalse11)) . "-top")], ($context["sectionClasses"] ?? null));
  83.             }
  84.             // line 12
  85.             echo "        ";
  86.             if (sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "bottom", [], "any"falsefalsefalse12)) {
  87.                 $context["sectionClasses"] = twig_array_merge([=> (("moorl-separator-" sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "bottom", [], "any"falsefalsefalse12)) . "-bottom")], ($context["sectionClasses"] ?? null));
  88.             }
  89.             // line 13
  90.             echo "        ";
  91.             if (sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "offsetTop", [], "any"falsefalsefalse13)) {
  92.                 $context["sectionClasses"] = twig_array_merge([=> (("moorl-offset-" sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "offsetTop", [], "any"falsefalsefalse13)) . "-top")], ($context["sectionClasses"] ?? null));
  93.             }
  94.             // line 14
  95.             echo "        ";
  96.             if (sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "offsetBottom", [], "any"falsefalsefalse14)) {
  97.                 $context["sectionClasses"] = twig_array_merge([=> (("moorl-offset-" sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "offsetBottom", [], "any"falsefalsefalse14)) . "-bottom")], ($context["sectionClasses"] ?? null));
  98.             }
  99.             // line 15
  100.             echo "        ";
  101.             if (sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "separatorBackground", [], "any"falsefalsefalse15)) {
  102.                 $context["sectionClasses"] = twig_array_merge([=> ("bg-moorl-separator-" sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "separatorBackground", [], "any"falsefalsefalse15))], ($context["sectionClasses"] ?? null));
  103.             }
  104.             // line 16
  105.             echo "        ";
  106.             if (sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "fixedBackground", [], "any"falsefalsefalse16)) {
  107.                 $context["sectionClasses"] = twig_array_merge([=> "bg-fixed"], ($context["sectionClasses"] ?? null));
  108.             }
  109.             // line 17
  110.             echo "        ";
  111.             if (sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "backgroundPaint", [], "any"falsefalsefalse17)) {
  112.                 $context["sectionClasses"] = twig_array_merge([=> "moorl-paint"=> ("moorl-paint-" sw_get_attribute($this->env$this->source, ($context["mfs"] ?? null), "backgroundPaint", [], "any"falsefalsefalse17))], ($context["sectionClasses"] ?? null));
  113.             }
  114.             // line 18
  115.             echo "
  116.         ";
  117.             // line 19
  118.             $this->displayParentBlock("page_content_section"$context$blocks);
  119.             echo "
  120.     ";
  121.         }
  122.         
  123.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  124.         
  125.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  126.     }
  127.     public function getTemplateName()
  128.     {
  129.         return "@MoorlFoundation/storefront/page/content/detail.html.twig";
  130.     }
  131.     public function isTraitable()
  132.     {
  133.         return false;
  134.     }
  135.     public function getDebugInfo()
  136.     {
  137.         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,);
  138.     }
  139.     public function getSourceContext()
  140.     {
  141.         return new Source("{% sw_extends \"@Storefront/storefront/page/content/detail.html.twig\" %}
  142. {% block page_content_section %}
  143.     {% set mfs = section.customFields.moorl_section_config %}
  144.     {% set cond1 = not mfs.salesChannel or context.salesChannel.id in mfs.salesChannel %}
  145.     {% set cond2 = not mfs.customerGroup or context.currentCustomerGroup.id in mfs.customerGroup %}
  146.     {% if cond1 and cond2 %}
  147.         {% if mfs.color %}{% set sectionClasses = [\"text-#{mfs.color}\"]|merge(sectionClasses) %}{% endif %}
  148.         {% if mfs.backgroundColor %}{% set sectionClasses = [\"bg-#{mfs.backgroundColor}\"]|merge(sectionClasses) %}{% endif %}
  149.         {% if mfs.top %}{% set sectionClasses = [\"moorl-separator-#{mfs.top}-top\"]|merge(sectionClasses) %}{% endif %}
  150.         {% if mfs.bottom %}{% set sectionClasses = [\"moorl-separator-#{mfs.bottom}-bottom\"]|merge(sectionClasses) %}{% endif %}
  151.         {% if mfs.offsetTop %}{% set sectionClasses = [\"moorl-offset-#{mfs.offsetTop}-top\"]|merge(sectionClasses) %}{% endif %}
  152.         {% if mfs.offsetBottom %}{% set sectionClasses = [\"moorl-offset-#{mfs.offsetBottom}-bottom\"]|merge(sectionClasses) %}{% endif %}
  153.         {% if mfs.separatorBackground %}{% set sectionClasses = [\"bg-moorl-separator-#{mfs.separatorBackground}\"]|merge(sectionClasses) %}{% endif %}
  154.         {% if mfs.fixedBackground %}{% set sectionClasses = [\"bg-fixed\"]|merge(sectionClasses) %}{% endif %}
  155.         {% if mfs.backgroundPaint %}{% set sectionClasses = [\"moorl-paint\",\"moorl-paint-#{mfs.backgroundPaint}\"]|merge(sectionClasses) %}{% endif %}
  156.         {{ parent() }}
  157.     {% endif %}
  158. {% endblock %}
  159. ""@MoorlFoundation/storefront/page/content/detail.html.twig""/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/MoorlFoundation/src/Resources/views/storefront/page/content/detail.html.twig");
  160.     }
  161. }