sterntours/var/cache/dev/twig/83/8348acae02044a59f4dc6165eb2a6299a1e69ca0ed949e3d164e48bfdf675a84.php
2020-07-09 12:49:32 +02:00

263 lines
14 KiB
PHP

<?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;
/* default/pages/cms/overview.html.twig */
class __TwigTemplate_6cad8f8ed45430a2e3c71398f9df64d1cc696252e8c3d053307563211864555f extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate($this->extensions['AppBundle\Twig\AppExtension']->getBaseTemplate(), "default/pages/cms/overview.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/pages/cms/overview.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 8
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 9
echo " <h1>";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "pagetitle", [], "any", true, true, false, 9)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "pagetitle", [], "any", false, false, false, 9), twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 9, $this->source); })()), "title", [], "any", false, false, false, 9))) : (twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 9, $this->source); })()), "title", [], "any", false, false, false, 9))), "html", null, true);
echo "</h1>
<div id=\"section_order\">
<section class=\"clearfix\" id=\"section_order_second\">
";
// line 12
echo $this->extensions['AppBundle\Twig\AppExtension']->lozadFilter($this->extensions['AppBundle\Twig\AppExtension']->keywordsFilter(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 12, $this->source); })()), "content", [], "any", false, false, false, 12)));
echo "
</section>
<section class=\"clearfix\" id=\"section_order_first\">
";
// line 15
if ((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 15, $this->source); })()), "slug", [], "any", false, false, false, 15) == "ferienwohnungen")) {
// line 16
echo " ";
if ( !twig_test_empty((isset($context["lodgingGroups"]) || array_key_exists("lodgingGroups", $context) ? $context["lodgingGroups"] : (function () { throw new RuntimeError('Variable "lodgingGroups" does not exist.', 16, $this->source); })()))) {
// line 17
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["lodgingGroups"]) || array_key_exists("lodgingGroups", $context) ? $context["lodgingGroups"] : (function () { throw new RuntimeError('Variable "lodgingGroups" does not exist.', 17, $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["lodgingGroup"]) {
// line 18
echo " <h1>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["lodgingGroup"], "name", [], "any", false, false, false, 18), "html", null, true);
echo "</h1>
<div class=\"row\">
";
// line 21
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["lodgingGroup"], "lodgings", [], "any", false, false, false, 21))) {
// line 22
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["lodgingGroup"], "lodgings", [], "any", false, false, false, 22));
$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["lodging"]) {
// line 23
echo " ";
$this->loadTemplate("default/components/pageLodgingBox.html.twig", "default/pages/cms/overview.html.twig", 23)->display($context);
// line 24
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['lodging'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
echo " ";
}
// line 26
echo " </div>
";
++$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['lodgingGroup'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 28
echo " ";
}
// line 29
echo " ";
} else {
// line 30
echo " ";
// line 31
echo " <div class=\"row\">
";
// line 32
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 32, $this->source); })()), "children", [], "any", false, false, false, 32));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
foreach ($context['_seq'] as $context["_key"] => $context["child_page"]) {
if ((twig_get_attribute($this->env, $this->source, $context["child_page"], "status", [], "any", false, false, false, 32) == 1)) {
// line 33
echo " ";
$this->loadTemplate("default/components/pageBox.html.twig", "default/pages/cms/overview.html.twig", 33)->display($context);
// line 34
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child_page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
echo " </div>
";
}
// line 37
echo " </section>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "default/pages/cms/overview.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 195 => 37, 191 => 35, 181 => 34, 178 => 33, 167 => 32, 164 => 31, 162 => 30, 159 => 29, 156 => 28, 141 => 26, 138 => 25, 124 => 24, 121 => 23, 103 => 22, 101 => 21, 94 => 18, 76 => 17, 73 => 16, 71 => 15, 65 => 12, 58 => 9, 51 => 8, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends get_base_template() %}
{#
{% block nav_sidebar_widget %}
{% include 'default/components/sidebar/navSidebarWidget.html.twig' %}
{% endblock %}
#}
{% block body %}
<h1>{{ page.pagetitle|default(page.title) }}</h1>
<div id=\"section_order\">
<section class=\"clearfix\" id=\"section_order_second\">
{{ page.content|raw|keywords|lozad }}
</section>
<section class=\"clearfix\" id=\"section_order_first\">
{% if(page.slug == \"ferienwohnungen\")%}
{% if lodgingGroups is not empty %}
{% for lodgingGroup in lodgingGroups %}
<h1>{{ lodgingGroup.name }}</h1>
<div class=\"row\">
{% if lodgingGroup.lodgings is not empty %}
{% for lodging in lodgingGroup.lodgings %}
{% include 'default/components/pageLodgingBox.html.twig' %}
{% endfor %}
{% endif %}
</div>
{% endfor %}
{% endif %}
{% else %}
{#{% for i in 0..page.children|length//3 %}#}
<div class=\"row\">
{% for child_page in page.children if child_page.status == 1 %}
{% include 'default/components/pageBox.html.twig' %}
{% endfor %}
</div>
{% endif %}
</section>
</div>
{% endblock %}
", "default/pages/cms/overview.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/pages/cms/overview.html.twig");
}
}