<?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/section/cms-section-default.html.twig */
class __TwigTemplate_156ce287ba1d2e6b18cf75e1c5b461e5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_content_section_default' => [$this, 'block_page_content_section_default'],
'section_default_content_block' => [$this, 'block_section_default_content_block'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/section/cms-section-default.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/section/cms-section-default.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/section/cms-section-default.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/section/cms-section-default.html.twig", "@ProcBasicElements/storefront/section/cms-section-default.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 3
public function block_page_content_section_default($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_default"));
$__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_default"));
// line 4
echo " ";
$context["layout"] = ((sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "sizingMode", [], "any", false, false, false, 4)) ? (twig_replace_filter(sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "sizingMode", [], "any", false, false, false, 4), ["_" => "-"])) : ("container"));
// line 5
echo " <div class=\"cms-section-default ";
echo sw_escape_filter($this->env, ($context["layout"] ?? null), "html", null, true);
echo "\">
";
// line 6
if (((((($context["additionalSectionCls"] ?? null) === "proc-slider") || (($context["additionalSectionCls"] ?? null) === "proc-headbanner-slider")) || (($context["additionalSectionCls"] ?? null) === "proc-slider-2")) || (($context["additionalSectionCls"] ?? null) === "proc-slider-3"))) {
// line 7
echo " ";
$context["centerItems"] = false;
// line 8
echo " ";
$context["config"] = ["centerItems" => ["value" => // line 10
($context["centerItems"] ?? null)], "title" => ["value" => null], "border" => ["value" => false], "rotate" => ["value" => false], "navigation" => ["value" => true], "navigationArrows" => ["value" => "inside"], "verticalAlign" => ["value" => "center"]];
// line 31
echo "
";
// line 32
$this->loadTemplate("@ProcBasicElements/storefront/section/cms-section-block-slider.html.twig", "@ProcBasicElements/storefront/section/cms-section-default.html.twig", 32)->display(twig_to_array(["additionalSectionCls" => // line 33
($context["additionalSectionCls"] ?? null), "sliderConfig" => // line 34
($context["config"] ?? null), "element" => ["data" => ["blocks" => sw_get_attribute($this->env, $this->source, // line 37
($context["section"] ?? null), "blocks", [], "any", false, false, false, 37)], "type" => "cms-slider"]]));
// line 42
echo " ";
} else {
// line 43
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, ($context["section"] ?? null), "blocks", [], "any", false, false, false, 43));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
// line 44
echo " ";
$this->displayBlock('section_default_content_block', $context, $blocks);
// line 47
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 48
echo " ";
}
// line 49
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 44
public function block_section_default_content_block($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", "section_default_content_block"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "section_default_content_block"));
// line 45
echo " ";
$this->loadTemplate("@Storefront/storefront/section/cms-section-block-container.html.twig", "@ProcBasicElements/storefront/section/cms-section-default.html.twig", 45)->display($context);
// line 46
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@ProcBasicElements/storefront/section/cms-section-default.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 159 => 46, 156 => 45, 146 => 44, 135 => 49, 132 => 48, 118 => 47, 115 => 44, 97 => 43, 94 => 42, 92 => 37, 91 => 34, 90 => 33, 89 => 32, 86 => 31, 84 => 10, 82 => 8, 79 => 7, 77 => 6, 72 => 5, 69 => 4, 59 => 3, 36 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/section/cms-section-default.html.twig' %}
{% block page_content_section_default %}
{% set layout = section.sizingMode ? section.sizingMode|replace({\"_\": \"-\"}) : \"container\" %}
<div class=\"cms-section-default {{ layout }}\">
{% if additionalSectionCls === 'proc-slider' or additionalSectionCls === 'proc-headbanner-slider' or additionalSectionCls === 'proc-slider-2' or additionalSectionCls === 'proc-slider-3' %}
{% set centerItems = false %}
{% set config = {
'centerItems': {
value: centerItems
},
'title': {
'value': null
},
'border': {
'value': false
},
'rotate': {
'value': false
},
'navigation': {
'value': true
},
'navigationArrows': {
'value': 'inside'
},
'verticalAlign': {
'value': 'center'
}
} %}
{% sw_include \"@ProcBasicElements/storefront/section/cms-section-block-slider.html.twig\" with {
additionalSectionCls: additionalSectionCls,
sliderConfig: config,
element: {
'data': {
'blocks': section.blocks
},
type: 'cms-slider'
}
} only %}
{% else %}
{% for block in section.blocks %}
{% block section_default_content_block %}
{% sw_include \"@Storefront/storefront/section/cms-section-block-container.html.twig\" %}
{% endblock %}
{% endfor %}
{% endif %}
</div>
{% endblock %}
", "@ProcBasicElements/storefront/section/cms-section-default.html.twig", "/var/www/html/htdocs/custom/plugins/ProcBasicElements/src/Resources/views/storefront/section/cms-section-default.html.twig");
}
}