<?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;
/* document/document.html.twig */
class __TwigTemplate_2a1a0d685e11712adfd1126ce2624aa2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'main_content' => [$this, 'block_main_content'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "document.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", "document/document.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document/document.html.twig"));
$this->parent = $this->loadTemplate("document.html.twig", "document/document.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 4
public function block_main_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", "main_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
// line 5
echo "
";
// line 6
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 6, $this->source); })())) {
// line 7
echo " <div style=\"height:100px;\"></div>
";
}
// line 9
echo "
";
// line 10
$context["contentBlock1"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "contentblock1");
echo "
";
// line 11
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "contentblock1"), "iterator", [], "any", false, false, false, 11));
$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["i"]) {
echo "
";
// line 12
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 12, $this->source); })())) {
// line 13
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "blocktype", ["store" => [0 => [0 => "panel-12-with-headlines", 1 => "1-spaltig mit Headlines"], 1 => [0 => "panel-12", 1 => "1-spaltig volle Breite"], 2 => [0 => "panel-6-6", 1 => "2-spaltig, 50/50 Aufteilung"], 3 => [0 => "panel-6-6-slidein", 1 => "2-spaltig animierte Boxen"], 4 => [0 => "panel-6-6-circles", 1 => "2-spaltig runder Hintergrund"], 5 => [0 => "panel-4-8", 1 => "2-spaltig, 30/70 Aufteilung"], 6 => [0 => "panel-3-3-3-3", 1 => "4-spaltig"], 7 => [0 => "panel-slider-gallery", 1 => "Bildergalerie"], 8 => [0 => "panel-booking", 1 => "Buchungstool toubiz.de"], 9 => [0 => "horizontal-line", 1 => "Horizontale Linie"]], "defaultValue" => "panel-12", "width" => 300, "reload" => true]);
// line 29
echo "
";
}
// line 31
echo "
";
// line 32
if ( !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "blocktype"), "isEmpty", [], "method", false, false, false, 32)) {
echo "
";
// line 33
echo twig_replace_filter(twig_include($this->env, $context, (("_includes/content-blocks/" . twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "blocktype"), "getData", [], "method", false, false, false, 33)) . ".html.twig")), ["7SCHWABEN" => "<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>"]);
echo "
";
}
// line 35
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['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 36
echo "
";
// line 37
echo twig_include($this->env, $context, "_includes/apartmentsSlider.html.twig");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "document/document.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 141 => 37, 138 => 36, 124 => 35, 119 => 33, 115 => 32, 112 => 31, 108 => 29, 105 => 13, 103 => 12, 84 => 11, 80 => 10, 77 => 9, 73 => 7, 71 => 6, 68 => 5, 58 => 4, 35 => 2,);
}
public function getSourceContext()
{
return new Source("
{% extends 'document.html.twig' %}
{% block main_content %}
{% if editmode %}
<div style=\"height:100px;\"></div>
{% endif %}
{% set contentBlock1 = pimcore_block('contentblock1') %}
{% for i in pimcore_block('contentblock1').iterator %}
{% if editmode %}
{{ pimcore_select('blocktype', {
\"store\": [
[\"panel-12-with-headlines\", \"1-spaltig mit Headlines\"],
[\"panel-12\", \"1-spaltig volle Breite\"],
[\"panel-6-6\", \"2-spaltig, 50/50 Aufteilung\"],
[\"panel-6-6-slidein\", \"2-spaltig animierte Boxen\"],
[\"panel-6-6-circles\", \"2-spaltig runder Hintergrund\"],
[\"panel-4-8\", \"2-spaltig, 30/70 Aufteilung\"],
[\"panel-3-3-3-3\", \"4-spaltig\"],
[\"panel-slider-gallery\", \"Bildergalerie\"],
[\"panel-booking\", \"Buchungstool toubiz.de\"],
[\"horizontal-line\", \"Horizontale Linie\"]
],
\"defaultValue\": \"panel-12\",
\"width\": 300,
\"reload\": true
}) }}
{% endif %}
{% if not pimcore_select('blocktype').isEmpty() %}
{{ include('_includes/content-blocks/' ~ pimcore_select('blocktype').getData() ~ '.html.twig') | replace({'7SCHWABEN': '<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>'}) | raw }}
{% endif %}
{% endfor %}
{{ include('_includes/apartmentsSlider.html.twig') }}
{% endblock %}
", "document/document.html.twig", "/var/www/vhosts/das7schwaben.de/httpdocs/pimcore_x/templates/document/document.html.twig");
}
}