<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* @FactorySupport/catalog/index.html.twig */
class __TwigTemplate_8a4ebf6ef2efbca562c67c73921ecdb9 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'contentBlock' => [$this, 'block_contentBlock'],
];
$this->sandbox = $this->env->getExtension(SandboxExtension::class);
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layout/default.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FactorySupport/catalog/index.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FactorySupport/catalog/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FactorySupport/catalog/index.html.twig"));
$this->parent = $this->loadTemplate("layout/default.html.twig", "@FactorySupport/catalog/index.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_contentBlock($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
// line 4
yield "
<div class=\"staticPage\">
<div class=\"container my-5 my-lg-5 my-md-5\">
<div class=\"row\">
<div class=\"col-lg-3\">
<h4 class=\"font-weight-bold text-uppercase\">";
// line 9
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "staticPage--heading", ["placeholder" => "Heading..."]);
yield "</h4>
";
// line 10
yield from $this->loadTemplate("document/static_page/sidebar/sidebar.html.twig", "@FactorySupport/catalog/index.html.twig", 10)->unwrap()->yield($context);
// line 11
yield " </div>
<div class=\"col-lg-8\">
<div class=\"mb-4 mb-lg-4 mb-md-4\">
<h1 class=\"font-italic font-weight-bold\">
";
// line 15
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "heading", ["height" => 150, "placeholder" => "Heading"]);
// line 19
yield "
</h1>
</div>
<div class=\"row\" data-form-has-error=\"";
// line 23
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["lastCatalog"]) || array_key_exists("lastCatalog", $context) ? $context["lastCatalog"] : (function () { throw new RuntimeError('Variable "lastCatalog" does not exist.', 23, $this->source); })()), 23, $this->source), "html", null, true);
yield "\">
";
// line 24
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 24, $this->source); })()));
$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["article"]) {
// line 25
yield " <div class=\"col-lg-3 col-md-4 col-sm-6 col-xs-12 mb-4 mb-lg-4 mb-md-4\">
";
// line 26
yield from $this->loadTemplate("catalog/snippets/catalog.html.twig", "@FactorySupport/catalog/index.html.twig", 26)->unwrap()->yield(CoreExtension::merge($context, $context["article"]));
// line 27
yield " </div>
";
// line 28
yield from $this->loadTemplate("catalog/snippets/modal.html.twig", "@FactorySupport/catalog/index.html.twig", 28)->unwrap()->yield(CoreExtension::merge($context, [$context["article"], (isset($context["addresses"]) || array_key_exists("addresses", $context) ? $context["addresses"] : (function () { throw new RuntimeError('Variable "addresses" does not exist.', 28, $this->source); })()), (isset($context["defaultShippingAddress"]) || array_key_exists("defaultShippingAddress", $context) ? $context["defaultShippingAddress"] : (function () { throw new RuntimeError('Variable "defaultShippingAddress" does not exist.', 28, $this->source); })()), (isset($context["modalForms"]) || array_key_exists("modalForms", $context) ? $context["modalForms"] : (function () { throw new RuntimeError('Variable "modalForms" does not exist.', 28, $this->source); })())]));
// line 29
yield " ";
++$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['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 30
yield " </div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@FactorySupport/catalog/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 152 => 30, 138 => 29, 136 => 28, 133 => 27, 131 => 26, 128 => 25, 111 => 24, 107 => 23, 101 => 19, 99 => 15, 93 => 11, 91 => 10, 87 => 9, 80 => 4, 67 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout/default.html.twig' %}
{% block contentBlock %}
<div class=\"staticPage\">
<div class=\"container my-5 my-lg-5 my-md-5\">
<div class=\"row\">
<div class=\"col-lg-3\">
<h4 class=\"font-weight-bold text-uppercase\">{{ pimcore_input('staticPage--heading',{placeholder: 'Heading...'}) }}</h4>
{% include 'document/static_page/sidebar/sidebar.html.twig' %}
</div>
<div class=\"col-lg-8\">
<div class=\"mb-4 mb-lg-4 mb-md-4\">
<h1 class=\"font-italic font-weight-bold\">
{{ pimcore_input('heading',{
\"height\": 150,
\"placeholder\": \"Heading\"
})
}}
</h1>
</div>
<div class=\"row\" data-form-has-error=\"{{ lastCatalog }}\">
{% for article in articles %}
<div class=\"col-lg-3 col-md-4 col-sm-6 col-xs-12 mb-4 mb-lg-4 mb-md-4\">
{% include 'catalog/snippets/catalog.html.twig' with article %}
</div>
{% include 'catalog/snippets/modal.html.twig' with [article,addresses,defaultShippingAddress,modalForms] %}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}", "@FactorySupport/catalog/index.html.twig", "/var/www/webovi/stoelting/pimcore/templates/catalog/index.html.twig");
}
public function checkSecurity()
{
static $tags = array("include" => 10, "for" => 24);
static $filters = array("escape" => 23);
static $functions = array("pimcore_input" => 9);
try {
$this->sandbox->checkSecurity(
['include', 'for'],
['escape'],
['pimcore_input'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}