var/cache/dev_h24eaf6979abf10b67456256024eb9e5e/twig/21/2113113165ca3810addde56ace0907bfef6c6377e8f4aa4c474a8fa7ed420145.php line 60

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. /* @ProcBasicElements/storefront/page/content/detail.html.twig */
  16. class __TwigTemplate_6804818b76e6bdb7eb9ec0c28c90a6a7 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ProcBasicElements/storefront/page/content/detail.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ProcBasicElements/storefront/page/content/detail.html.twig"));
  40.         $this->parent $this->loadTemplate("@Storefront/storefront/page/content/detail.html.twig""@ProcBasicElements/storefront/page/content/detail.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 4
  48.     public function block_page_content_section($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_section"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_section"));
  55.         // line 5
  56.         echo "    ";
  57.         $context["additionalSectionCls"] = "";
  58.         // line 6
  59.         echo "    ";
  60.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["section"] ?? null), "customFields", [], "any"falsefalsefalse6), "procClassValue", [], "any"falsefalsefalse6), "sectionCls", [], "any"falsefalsefalse6)) {
  61.             // line 7
  62.             echo "        ";
  63.             $context["additionalSectionCls"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["section"] ?? null), "customFields", [], "any"falsefalsefalse7), "procClassValue", [], "any"falsefalsefalse7), "sectionCls", [], "any"falsefalsefalse7);
  64.             // line 8
  65.             echo "    ";
  66.         }
  67.         // line 9
  68.         echo "    <div class=\"cms-section ";
  69.         echo sw_escape_filter($this->envtwig_join_filter(($context["sectionClasses"] ?? null), " "), "html"nulltrue);
  70.         if (($context["additionalSectionCls"] ?? null)) {
  71.             echo " ";
  72.             echo sw_escape_filter($this->env, ($context["additionalSectionCls"] ?? null), "html"nulltrue);
  73.         }
  74.         echo "\"
  75.          style=\"";
  76.         // line 10
  77.         if (($context["sectionBgColor"] ?? null)) {
  78.             echo "background-color: ";
  79.             echo sw_escape_filter($this->env, ($context["sectionBgColor"] ?? null), "html"nulltrue);
  80.             echo ";";
  81.         }
  82.         if (($context["sectionBgImg"] ?? null)) {
  83.             echo "background-image: url(";
  84.             echo sw_escape_filter($this->env, ($context["sectionBgImg"] ?? null), "html"nulltrue);
  85.             echo ");background-size: ";
  86.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["section"] ?? null), "backgroundMediaMode", [], "any"falsefalsefalse10), "html"nulltrue);
  87.             echo ";";
  88.         }
  89.         echo "\">
  90.         ";
  91.         // line 12
  92.         ((function () use ($context$blocks) {
  93.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  94.             $includeTemplate $finder->find((("@Storefront/storefront/section/cms-section-" sw_get_attribute($this->env$this->source, ($context["section"] ?? null), "type", [], "any"falsefalsefalse12)) . ".html.twig"));
  95.             return $this->loadTemplate($includeTemplate ?? null"@ProcBasicElements/storefront/page/content/detail.html.twig"12);
  96.         })())->display(twig_array_merge($context, ["additionalSectionCls" => ($context["additionalSectionCls"] ?? null)]));
  97.         // line 13
  98.         echo "    </div>
  99. ";
  100.         
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  102.         
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  104.     }
  105.     public function getTemplateName()
  106.     {
  107.         return "@ProcBasicElements/storefront/page/content/detail.html.twig";
  108.     }
  109.     public function isTraitable()
  110.     {
  111.         return false;
  112.     }
  113.     public function getDebugInfo()
  114.     {
  115.         return array (  113 => 13,  105 => 12,  89 => 10,  80 => 9,  77 => 8,  74 => 7,  71 => 6,  68 => 5,  58 => 4,  35 => 2,);
  116.     }
  117.     public function getSourceContext()
  118.     {
  119.         return new Source("{% sw_extends '@Storefront/storefront/page/content/detail.html.twig' %}
  120. {# add an additional class on the cms-section #}
  121. {% block page_content_section %}
  122.     {% set additionalSectionCls = '' %}
  123.     {% if(section.customFields.procClassValue.sectionCls) %}
  124.         {% set additionalSectionCls = section.customFields.procClassValue.sectionCls %}
  125.     {% endif %}
  126.     <div class=\"cms-section {{ sectionClasses|join(' ') }}{% if additionalSectionCls %} {{ additionalSectionCls }}{% endif %}\"
  127.          style=\"{% if sectionBgColor %}background-color: {{ sectionBgColor }};{% endif %}{% if sectionBgImg %}background-image: url({{ sectionBgImg }});background-size: {{ section.backgroundMediaMode }};{% endif %}\">
  128.         {% sw_include \"@Storefront/storefront/section/cms-section-\" ~ section.type ~ \".html.twig\" with {additionalSectionCls} %}
  129.     </div>
  130. {% endblock %}
  131. ""@ProcBasicElements/storefront/page/content/detail.html.twig""/var/www/html/htdocs/custom/plugins/ProcBasicElements/src/Resources/views/storefront/page/content/detail.html.twig");
  132.     }
  133. }