<?php
use Twig\Environment;
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;
/* @App/Templates/corporate.html.twig */
class __TwigTemplate_baeaff23c5600fc832686702ca8d0dcb extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "@FoxHabbitBasis/Layout/layout.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", "@App/Templates/corporate.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/Templates/corporate.html.twig"));
$this->parent = $this->loadTemplate("@FoxHabbitBasis/Layout/layout.html.twig", "@App/Templates/corporate.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 3
echo "
\t";
// line 4
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 4, $this->source); })())) {
// line 5
echo "\t\t<div class=\"alert alert-dark m-0\">
\t\t\tBeginn Header-Bereich
\t\t</div>
\t";
}
// line 9
echo "\t";
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 9, $this->source); })()) || twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "header"), "getCount", [], "method", false, false, true, 9))) {
// line 10
echo "\t\t";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "header", ["limit" => 1, "allowed" => ["basisbundle-header", "basisbundle-header-slider", "basisbundle-section-placeholder", "appbundle-header-series"]]);
// line 18
echo "
\t";
}
// line 20
echo "\t";
if ( !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "header"), "getCount", [], "method", false, false, true, 20)) {
// line 21
echo "\t ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "header_placeholder", ["type" => "basisbundle-section-placeholder"]);
echo "
\t";
}
// line 23
echo "
\t";
// line 24
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 24, $this->source); })())) {
// line 25
echo "\t\t<div class=\"alert alert-dark m-0\">
\t\t\tEnde Header-Bereich
\t\t\t<hr>
\t\t\tBeginn Content-Bereich
\t\t</div>
\t";
}
// line 33
echo "
";
// line 35
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 35, $this->source); })()), "getProperty", ["navRoot"], "method", false, false, true, 35) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 35, $this->source); })()), "getProperty", ["navRoot"], "method", false, false, true, 35), "getId", [], "method", false, false, true, 35) != twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 35, $this->source); })()), "getId", [], "method", false, false, true, 35)))) {
// line 36
echo " ";
$context["snippets"] = ["snippetBreadcrumb"];
// line 37
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["snippets"]) || array_key_exists("snippets", $context) ? $context["snippets"] : (function () { throw new RuntimeError('Variable "snippets" does not exist.', 37, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["snippetProperty"]) {
// line 38
echo " ";
$context["snippet"] = twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 38, $this->source); })()), "getProperty", [$context["snippetProperty"]], "method", false, false, true, 38);
// line 39
echo " ";
if ((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 39, $this->source); })())) {
// line 40
echo " ";
echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 40, $this->source); })()), 40, $this->source), ["pageDocument" => (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 40, $this->source); })())]);
echo "
";
} else {
// line 42
echo " ";
$context["snippet"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig($this->sandbox->ensureToStringAllowed($context["snippetProperty"], 42, $this->source));
// line 43
echo " ";
if ((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 43, $this->source); })())) {
// line 44
echo " ";
echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 44, $this->source); })()), 44, $this->source), ["pageDocument" => (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 44, $this->source); })())]);
echo "
";
}
// line 46
echo " ";
}
// line 47
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['snippetProperty'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 48
echo " ";
}
// line 49
echo "
<!-- start-index -->
\t";
// line 51
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "content", ["allowed" => ["basisbundle-section", "basisbundle-section-inter-section", "basisbundle-section-anchor", "basisbundle-section-snippet", "basisbundle-section-slider", "basisbundle-section-placeholder", "appbundle-section-welding-systems-finder"]]);
// line 60
echo "
<!-- end-index -->
\t";
// line 63
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 63, $this->source); })())) {
// line 64
echo "\t\t<div class=\"alert alert-dark m-0\">
\t\t\tEnde Content-Bereich
\t\t\t<hr>
\t\t</div>
\t";
}
// line 70
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@App/Templates/corporate.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 186 => 70, 178 => 64, 176 => 63, 171 => 60, 169 => 51, 165 => 49, 162 => 48, 156 => 47, 153 => 46, 147 => 44, 144 => 43, 141 => 42, 135 => 40, 132 => 39, 129 => 38, 124 => 37, 121 => 36, 118 => 35, 115 => 33, 105 => 25, 103 => 24, 100 => 23, 94 => 21, 91 => 20, 87 => 18, 84 => 10, 81 => 9, 75 => 5, 73 => 4, 70 => 3, 60 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@FoxHabbitBasis/Layout/layout.html.twig' %}
{% block content %}
\t{% if editmode %}
\t\t<div class=\"alert alert-dark m-0\">
\t\t\tBeginn Header-Bereich
\t\t</div>
\t{% endif %}
\t{% if editmode or pimcore_areablock('header').getCount() %}
\t\t{{pimcore_areablock('header', {
\t\t\tlimit: 1,
\t\t\tallowed: [
\t\t\t\t'basisbundle-header',
\t\t\t\t'basisbundle-header-slider',
\t\t\t\t'basisbundle-section-placeholder',
'appbundle-header-series'
]
\t\t})}}
\t{% endif %}
\t{% if not pimcore_areablock('header').getCount() %}
\t {{pimcore_area('header_placeholder',{type:'basisbundle-section-placeholder'})}}
\t{% endif %}
\t{% if editmode %}
\t\t<div class=\"alert alert-dark m-0\">
\t\t\tEnde Header-Bereich
\t\t\t<hr>
\t\t\tBeginn Content-Bereich
\t\t</div>
\t{% endif %}
{# No Breadcrumb on the home page #}
{% if document.getProperty('navRoot') and document.getProperty('navRoot').getId() != document.getId() %}
{% set snippets = ['snippetBreadcrumb'] %}
{% for snippetProperty in snippets %}
{% set snippet = document.getProperty(snippetProperty) %}
{% if snippet %}
{{pimcore_inc(snippet, { pageDocument: document})}}
{% else %}
{% set snippet = pimcore_website_config(snippetProperty) %}
{% if snippet %}
{{pimcore_inc(snippet, { pageDocument: document})}}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
<!-- start-index -->
\t{{pimcore_areablock('content', {
\t\t\tallowed: [
\t\t\t\t'basisbundle-section',
\t\t\t\t'basisbundle-section-inter-section',
\t\t\t\t'basisbundle-section-anchor',
\t\t\t\t'basisbundle-section-snippet',
\t\t\t\t'basisbundle-section-slider',
\t\t\t\t'basisbundle-section-placeholder',
\t\t\t\t'appbundle-section-welding-systems-finder',]
\t})}}
<!-- end-index -->
\t{% if editmode %}
\t\t<div class=\"alert alert-dark m-0\">
\t\t\tEnde Content-Bereich
\t\t\t<hr>
\t\t</div>
\t{% endif %}
{% endblock %}
", "@App/Templates/corporate.html.twig", "/srv/httpd/vhosts/lorch-test/releases/51/src/AppBundle/Resources/views/Templates/corporate.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 4, "set" => 36, "for" => 37);
static $filters = array();
static $functions = array("pimcore_areablock" => 9, "pimcore_area" => 21, "pimcore_inc" => 40, "pimcore_website_config" => 42);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'for'],
[],
['pimcore_areablock', 'pimcore_area', 'pimcore_inc', 'pimcore_website_config']
);
} 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;
}
}
}