<?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/document/category_page/default.html.twig */
class __TwigTemplate_ddc80679697f0591763950d55a354c3e 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/document/category_page/default.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/document/category_page/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", "@FactorySupport/document/category_page/default.html.twig"));
$this->parent = $this->loadTemplate("layout/default.html.twig", "@FactorySupport/document/category_page/default.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 "<main class=\"stereotaxicCategoryPage\" style=\"background-attachment: fixed;background-image: url(";
((CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 4, $this->source); })()), "getProperty", ["template_background_image"], "method", false, false, true, 4)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 4, $this->source); })()), "getProperty", ["template_background_image"], "method", false, false, true, 4), "getThumbnail", ["Stoelting_division_bg"], "method", false, false, true, 4), "html", null, true)) : (yield ""));
yield ") ;\">
<div class=\"container mt-5 mt-lg-5 mt-md-5\">
<div class=\"row\">
<div class=\"col-xl-10 offset-xl-1 offset-lg-0 col-lg-12 pb-3 pb-lg-3 pb-md-3\">
<div class=\"d-flex align-items-center\">
";
// line 9
$context["anyMaze"] = CoreExtension::inFilter("any-maze", Twig\Extension\CoreExtension::lower($this->env->getCharset(), $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 9, $this->source); })()), "getProperty", ["navigation_title"], "method", false, false, true, 9), 9, $this->source)));
// line 10
yield " <div class=\"category-breadcrumb-image mr-3 mr-lg-3 mr-md-3\">
";
// line 11
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 11, $this->source); })())) {
// line 12
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "categoryBreadcrumbImage");
yield "
";
} else {
// line 14
yield " <img style=\"width:80px;\" src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "categoryBreadcrumbImage"), "getThumbnail", ["Stoelting_category_breadcrumb"], "method", false, false, true, 14), 14, $this->source), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "categoryBreadcrumbImage"), "getAlt", [], "method", false, false, true, 14), 14, $this->source), "html", null, true);
yield "\">
";
}
// line 16
yield " </div>
<h2 class=\"d-none d-md-inline font-weight-bold border-2 border-bottom border-indigo w-100 custom-bradcrumb-padding\">
";
// line 18
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 18, $this->source); })())) {
// line 19
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "categoryBreadcrumbHeading", ["placeholder" => CoreExtension::getAttribute($this->env, $this->source, // line 20
(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 20, $this->source); })()), "getProperty", ["navigation_title"], "method", false, false, true, 20)]);
// line 21
yield "
";
} elseif ( !CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "categoryBreadcrumbHeading"), "isEmpty", [], "method", false, false, true, 22)) {
// line 23
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "categoryBreadcrumbHeading");
yield "
";
} else {
// line 25
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 25, $this->source); })()), "getProperty", ["navigation_title"], "method", false, false, true, 25), 25, $this->source), "html", null, true);
yield "
";
}
// line 27
yield " </h2>
<!--* ON MOBILE H3-->
<h3 class=\"d-inline d-md-none font-weight-bold border-2 border-bottom border-indigo w-100 custom-bradcrumb-padding\">
";
// line 30
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 30, $this->source); })())) {
// line 31
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "categoryBreadcrumbHeading--mobile", ["placeholder" => CoreExtension::getAttribute($this->env, $this->source, // line 32
(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 32, $this->source); })()), "getProperty", ["navigation_title"], "method", false, false, true, 32)]);
// line 33
yield "
";
} elseif ( !CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "categoryBreadcrumbHeading--mobile"), "isEmpty", [], "method", false, false, true, 34)) {
// line 35
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "categoryBreadcrumbHeading--mobile");
yield "
";
} else {
// line 37
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 37, $this->source); })()), "getProperty", ["navigation_title"], "method", false, false, true, 37), 37, $this->source), "html", null, true);
yield "
";
}
// line 39
yield " </h3>
</div>
</div>
</div>
<div class=\"row mt-5 mt-lg-5 mt-md-5 stereotaxicCategoryPage-products\">
<div class=\"col-xl-8 offset-xl-2\">
<div class=\"row align-items-start\">
";
// line 47
$context["fallbackImage"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/images/admin/empty_image.png");
// line 48
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["documents"]) || array_key_exists("documents", $context) ? $context["documents"] : (function () { throw new RuntimeError('Variable "documents" does not exist.', 48, $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["index"] => $context["page"]) {
// line 49
yield " ";
$context["image"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["page"], "image", [], "array", false, false, true, 49)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["page"], "image", [], "array", false, false, true, 49), "getThumbnail", ["Stoelting_neuroscience_circle"], "method", false, false, true, 49)) : ((isset($context["fallbackImage"]) || array_key_exists("fallbackImage", $context) ? $context["fallbackImage"] : (function () { throw new RuntimeError('Variable "fallbackImage" does not exist.', 49, $this->source); })())));
// line 50
yield "
<!-- include subtemplate 'category-item.html.twig' -->
";
// line 52
yield from $this->loadTemplate("Components/category-item.html.twig", "@FactorySupport/document/category_page/default.html.twig", 52)->unwrap()->yield(CoreExtension::merge($context, $context["page"]));
// line 53
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['index'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 55
yield " </div>
</div>
</div>
</div>
</main>
";
$__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/document/category_page/default.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 217 => 55, 202 => 53, 200 => 52, 196 => 50, 193 => 49, 175 => 48, 173 => 47, 163 => 39, 157 => 37, 151 => 35, 147 => 33, 145 => 32, 143 => 31, 141 => 30, 136 => 27, 130 => 25, 124 => 23, 120 => 21, 118 => 20, 116 => 19, 114 => 18, 110 => 16, 102 => 14, 96 => 12, 94 => 11, 91 => 10, 89 => 9, 80 => 4, 67 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout/default.html.twig' %}
{% block contentBlock %}
<main class=\"stereotaxicCategoryPage\" style=\"background-attachment: fixed;background-image: url({{ document.getProperty('template_background_image') ? document.getProperty('template_background_image').getThumbnail('Stoelting_division_bg') }}) ;\">
<div class=\"container mt-5 mt-lg-5 mt-md-5\">
<div class=\"row\">
<div class=\"col-xl-10 offset-xl-1 offset-lg-0 col-lg-12 pb-3 pb-lg-3 pb-md-3\">
<div class=\"d-flex align-items-center\">
{% set anyMaze = 'any-maze' in document.getProperty('navigation_title') | lower %}
<div class=\"category-breadcrumb-image mr-3 mr-lg-3 mr-md-3\">
{% if editmode %}
{{ pimcore_image('categoryBreadcrumbImage') }}
{% else %}
<img style=\"width:80px;\" src=\"{{ pimcore_image('categoryBreadcrumbImage').getThumbnail('Stoelting_category_breadcrumb') }}\" alt=\"{{ pimcore_image('categoryBreadcrumbImage').getAlt() }}\">
{% endif %}
</div>
<h2 class=\"d-none d-md-inline font-weight-bold border-2 border-bottom border-indigo w-100 custom-bradcrumb-padding\">
{% if editmode %}
{{ pimcore_input('categoryBreadcrumbHeading', {
placeholder: document.getProperty('navigation_title')
}) }}
{% elseif not pimcore_input('categoryBreadcrumbHeading').isEmpty() %}
{{ pimcore_input('categoryBreadcrumbHeading') }}
{% else %}
{{ document.getProperty('navigation_title') }}
{% endif %}
</h2>
<!--* ON MOBILE H3-->
<h3 class=\"d-inline d-md-none font-weight-bold border-2 border-bottom border-indigo w-100 custom-bradcrumb-padding\">
{% if editmode %}
{{ pimcore_input('categoryBreadcrumbHeading--mobile', {
placeholder: document.getProperty('navigation_title')
}) }}
{% elseif not pimcore_input('categoryBreadcrumbHeading--mobile').isEmpty() %}
{{ pimcore_input('categoryBreadcrumbHeading--mobile') }}
{% else %}
{{ document.getProperty('navigation_title') }}
{% endif %}
</h3>
</div>
</div>
</div>
<div class=\"row mt-5 mt-lg-5 mt-md-5 stereotaxicCategoryPage-products\">
<div class=\"col-xl-8 offset-xl-2\">
<div class=\"row align-items-start\">
{% set fallbackImage = asset('static/images/admin/empty_image.png') %}
{% for index, page in documents %}
{% set image = page['image'] ? page['image'].getThumbnail('Stoelting_neuroscience_circle') : fallbackImage %}
<!-- include subtemplate 'category-item.html.twig' -->
{% include \"Components/category-item.html.twig\" with page %}
{% endfor %}
</div>
</div>
</div>
</div>
</main>
{% endblock %}", "@FactorySupport/document/category_page/default.html.twig", "/var/www/webovi/stoelting/pimcore/templates/document/category_page/default.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 9, "if" => 11, "for" => 48, "include" => 52);
static $filters = array("escape" => 4, "lower" => 9);
static $functions = array("pimcore_image" => 12, "pimcore_input" => 19, "asset" => 47);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for', 'include'],
['escape', 'lower'],
['pimcore_image', 'pimcore_input', 'asset'],
$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;
}
}
}