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/iqTravelGuide.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/iqTravelGuide.html.twig")); $this->getParent($context)->display($context, array_merge($this->blocks, $blocks)); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } // line 3 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 4 echo "
"; // line 5 $context["site_has_h1"] = false; // line 6 echo " "; if ((isset($context["api"]) || array_key_exists("api", $context))) { // line 7 echo " "; if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["api"]) || array_key_exists("api", $context) ? $context["api"] : (function () { throw new RuntimeError('Variable "api" does not exist.', 7, $this->source); })()), "sites", [], "any", false, false, false, 7)) > 1)) { // line 8 echo "
"; // line 24 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["api"]) || array_key_exists("api", $context) ? $context["api"] : (function () { throw new RuntimeError('Variable "api" does not exist.', 24, $this->source); })()), "sites", [], "any", false, false, false, 24)); $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["site"]) { // line 25 echo "
env, $this->source, $context["loop"], "index", [], "any", false, false, false, 25) == 1)) { echo " active "; } echo "\" id=\"travel_guide_content_"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["site"], "id", [], "any", false, false, false, 25), "html", null, true); echo "\"> "; // line 26 if ((isset($context["site_has_h1"]) || array_key_exists("site_has_h1", $context) ? $context["site_has_h1"] : (function () { throw new RuntimeError('Variable "site_has_h1" does not exist.', 26, $this->source); })())) { // line 27 echo "

"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["site"], "name", [], "any", false, false, false, 27), "html", null, true); echo "

"; } else { // line 29 echo "

"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["site"], "name", [], "any", false, false, false, 29), "html", null, true); echo "

"; // line 30 $context["site_has_h1"] = true; // line 31 echo " "; } // line 32 echo " "; echo $this->extensions['AppBundle\Twig\AppExtension']->lozadFilter($this->extensions['AppBundle\Twig\AppExtension']->keywordsFilter(twig_get_attribute($this->env, $this->source, $context["site"], "full_text", [], "any", false, false, false, 32))); 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['site'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 35 echo "
"; } else { // line 53 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["api"]) || array_key_exists("api", $context) ? $context["api"] : (function () { throw new RuntimeError('Variable "api" does not exist.', 53, $this->source); })()), "sites", [], "any", false, false, false, 53)); foreach ($context['_seq'] as $context["_key"] => $context["site"]) { // line 54 echo " "; if ((isset($context["site_has_h1"]) || array_key_exists("site_has_h1", $context) ? $context["site_has_h1"] : (function () { throw new RuntimeError('Variable "site_has_h1" does not exist.', 54, $this->source); })())) { // line 55 echo "

"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["site"], "name", [], "any", false, false, false, 55), "html", null, true); echo "

"; } else { // line 57 echo "

"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["site"], "name", [], "any", false, false, false, 57), "html", null, true); echo "

"; // line 58 $context["site_has_h1"] = true; // line 59 echo " "; } // line 60 echo " "; echo $this->extensions['AppBundle\Twig\AppExtension']->lozadFilter($this->extensions['AppBundle\Twig\AppExtension']->keywordsFilter(twig_get_attribute($this->env, $this->source, $context["site"], "full_text", [], "any", false, false, false, 60))); echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['site'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 62 echo " "; } // line 63 echo " "; } // line 64 echo "

"; // line 66 if ((((isset($context["api"]) || array_key_exists("api", $context)) && twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "children", [], "any", true, true, false, 66)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["api"]) || array_key_exists("api", $context) ? $context["api"] : (function () { throw new RuntimeError('Variable "api" does not exist.', 66, $this->source); })()), "children", [], "any", false, false, false, 66)))) { // line 67 echo "
"; // line 69 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["api"]) || array_key_exists("api", $context) ? $context["api"] : (function () { throw new RuntimeError('Variable "api" does not exist.', 69, $this->source); })()), "children", [], "any", false, false, false, 69)); foreach ($context['_seq'] as $context["_key"] => $context["child_page"]) { // line 70 echo " "; if (twig_get_attribute($this->env, $this->source, $context["child_page"], "active", [], "any", false, false, false, 70)) { // line 71 echo "
"; // line 74 if (((false && twig_get_attribute($this->env, $this->source, $context["child_page"], "box_image_url", [], "any", true, true, false, 74)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["child_page"], "box_image_url", [], "any", false, false, false, 74)))) { // line 75 echo "
"; // line 76 if ((twig_get_attribute($this->env, $this->source, $context["child_page"], "box_image_url", [], "any", true, true, false, 76) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["child_page"], "box_image_url", [], "any", false, false, false, 76)))) { // line 77 echo " "; $context["image_url"] = twig_get_attribute($this->env, $this->source, $context["child_page"], "box_image_url", [], "any", false, false, false, 77); // line 78 echo " "; $context["image_alt"] = twig_get_attribute($this->env, $this->source, $context["child_page"], "name", [], "any", false, false, false, 78); // line 79 echo " "; } else { // line 80 echo " "; $context["image_url"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/app/images/no-picture.png"); // line 81 echo " "; $context["image_alt"] = "Kein Vorschaubild vorhanden"; // line 82 echo " "; } // line 83 echo "
env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['Gregwar\ImageBundle\Extensions\ImageTwig']->image(twig_trim_filter((isset($context["image_url"]) || array_key_exists("image_url", $context) ? $context["image_url"] : (function () { throw new RuntimeError('Variable "image_url" does not exist.', 83, $this->source); })()), "/")), "cropResize", [0 => 960], "method", false, false, false, 83), "guess", [0 => 90], "method", false, false, false, 83), "html", null, true); echo "\" style=\"background-image:url("; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/placeholder-image.png"), "html", null, true); echo "); height: 220px;\">
"; } // line 89 echo "
"; // line 90 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["child_page"], "name", [], "any", false, false, false, 90), "html", null, true); echo "

"; // line 91 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["child_page"], "description", [], "any", false, false, false, 91), "html", null, true); echo "

env, twig_get_attribute($this->env, $this->source, $context["child_page"], "url", [], "any", false, false, false, 93), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["child_page"], "name", [], "any", false, false, false, 93), "html", null, true); echo "\"> "; // line 94 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["child_page"], "name", [], "any", false, false, false, 94), "html", null, true); echo "
"; } // line 100 echo " "; } $_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 101 echo "
"; } $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } public function getTemplateName() { return "default/pages/cms/iqTravelGuide.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 397 => 101, 391 => 100, 382 => 94, 376 => 93, 371 => 91, 367 => 90, 364 => 89, 357 => 85, 349 => 83, 346 => 82, 343 => 81, 340 => 80, 337 => 79, 334 => 78, 331 => 77, 329 => 76, 326 => 75, 324 => 74, 319 => 71, 316 => 70, 312 => 69, 308 => 67, 306 => 66, 302 => 64, 299 => 63, 296 => 62, 287 => 60, 284 => 59, 282 => 58, 277 => 57, 271 => 55, 268 => 54, 263 => 53, 258 => 50, 242 => 47, 238 => 45, 234 => 43, 232 => 42, 226 => 41, 219 => 40, 202 => 39, 196 => 35, 178 => 32, 175 => 31, 173 => 30, 168 => 29, 162 => 27, 160 => 26, 151 => 25, 134 => 24, 129 => 21, 113 => 18, 109 => 16, 105 => 14, 103 => 13, 97 => 12, 90 => 11, 73 => 10, 69 => 8, 66 => 7, 63 => 6, 61 => 5, 58 => 4, 51 => 3, 35 => 1,); } public function getSourceContext() { return new Source("{% extends get_base_template() %} {% block body %}
{% set site_has_h1 = false %} {% if(api is defined) %} {% if api.sites|length > 1 %}
{% for site in api.sites %}
{% if(site_has_h1) %}

{{ site.name }}

{% else %}

{{ site.name }}

{% set site_has_h1 = true %} {% endif %} {{ site.full_text|raw|keywords|lozad }}
{% endfor %}
{% else %} {% for site in api.sites %} {% if(site_has_h1) %}

{{ site.name }}

{% else %}

{{ site.name }}

{% set site_has_h1 = true %} {% endif %} {{ site.full_text|raw|keywords|lozad }} {% endfor %} {% endif %} {% endif %}

{% if(api is defined and api.children is defined and api.children is not empty) %}
{% for child_page in api.children %} {% if(child_page.active) %}
{% if(false and child_page.box_image_url is defined and child_page.box_image_url is not empty) %}
{% if child_page.box_image_url is defined and child_page.box_image_url is not empty %} {% set image_url = child_page.box_image_url %} {% set image_alt = child_page.name %} {% else %} {% set image_url = asset('/bundles/app/images/no-picture.png')%} {% set image_alt = 'Kein Vorschaubild vorhanden' %} {% endif %}
{% endif %}
{{ child_page.name }}

{{ child_page.description }}

{{ child_page.name }}
{% endif %} {% endfor %}
{% endif %} {% endblock %}", "default/pages/cms/iqTravelGuide.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/pages/cms/iqTravelGuide.html.twig"); } }