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 "

"; 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 "

"; // 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 "
"; // 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 "

"; 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 "

"; // 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 "
"; ++$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 "
"; // 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 "
"; } // line 37 echo "
"; $__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 %}

{{ page.pagetitle|default(page.title) }}

{{ page.content|raw|keywords|lozad }}
{% if(page.slug == \"ferienwohnungen\")%} {% if lodgingGroups is not empty %} {% for lodgingGroup in lodgingGroups %}

{{ lodgingGroup.name }}

{% if lodgingGroup.lodgings is not empty %} {% for lodging in lodgingGroup.lodgings %} {% include 'default/components/pageLodgingBox.html.twig' %} {% endfor %} {% endif %}
{% endfor %} {% endif %} {% else %} {#{% for i in 0..page.children|length//3 %}#}
{% for child_page in page.children if child_page.status == 1 %} {% include 'default/components/pageBox.html.twig' %} {% endfor %}
{% endif %}
{% endblock %} ", "default/pages/cms/overview.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/pages/cms/overview.html.twig"); } }