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
if ((isset($context["api"]) || array_key_exists("api", $context))) {
// line 6
echo "
";
// line 7
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "nodes_active", [], "any", false, true, false, 7), "image", [], "any", false, true, false, 7), "url", [], "any", true, true, false, 7)) {
// line 8
echo "
";
}
// line 21
echo "
";
// line 22
if (twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", true, true, false, 22)) {
// line 23
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 23), "long", [], "any", true, true, false, 23) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 23), "short", [], "any", true, true, false, 23))) {
// line 24
echo "
";
// line 26
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 26), "long", [], "any", true, true, false, 26)) {
// line 27
echo " -
Ausführliche Darstellung für Interessierte
";
}
// line 33
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 33), "short", [], "any", true, true, false, 33)) {
// line 34
echo " - env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 34), "long", [], "any", true, true, false, 34)) {
echo " active ";
}
echo "\">
Zusammenfassung für eilige Leser
";
}
// line 40
echo "
";
}
// line 43
echo "
";
// line 44
$context["site_has_h1"] = false;
// line 45
echo "
";
// line 46
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 46), "long", [], "any", true, true, false, 46)) {
// line 47
echo "
";
// line 48
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.', 48, $this->source); })())) {
// line 49
echo "
";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 49, $this->source); })()), "sites", [], "any", false, false, false, 49), "long", [], "any", false, false, false, 49), "name", [], "any", false, false, false, 49), "html", null, true);
echo "
";
} else {
// line 51
echo "
";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 51, $this->source); })()), "sites", [], "any", false, false, false, 51), "long", [], "any", false, false, false, 51), "name", [], "any", false, false, false, 51), "html", null, true);
echo "
";
// line 52
$context["site_has_h1"] = true;
// line 53
echo " ";
}
// line 54
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 54), "long", [], "any", false, true, false, 54), "author_name", [], "any", true, true, false, 54)) {
// line 55
echo "
Autor dieses Artikels: ";
// line 56
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 56, $this->source); })()), "sites", [], "any", false, false, false, 56), "long", [], "any", false, false, false, 56), "author_name", [], "any", false, false, false, 56), "html", null, true);
echo "
";
// line 57
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 57, $this->source); })()), "sites", [], "any", false, false, false, 57), "long", [], "any", false, false, false, 57), "author_description", [], "any", false, false, false, 57), "html", null, true);
echo "
";
}
// line 61
echo "
";
// line 62
echo $this->extensions['AppBundle\Twig\AppExtension']->lozadFilter($this->extensions['AppBundle\Twig\AppExtension']->directKeywordsFilter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 62, $this->source); })()), "sites", [], "any", false, false, false, 62), "long", [], "any", false, false, false, 62), "full_text", [], "any", false, false, false, 62)));
echo "
";
}
// line 66
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 66), "short", [], "any", true, true, false, 66)) {
// line 67
echo "
env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 67), "long", [], "any", true, true, false, 67)) {
echo " active ";
}
echo "\" id=\"travel_guide_content_short\">
";
// line 68
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.', 68, $this->source); })())) {
// line 69
echo "
";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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); })()), "sites", [], "any", false, false, false, 69), "short", [], "any", false, false, false, 69), "name", [], "any", false, false, false, 69), "html", null, true);
echo "
";
} else {
// line 71
echo "
";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 71, $this->source); })()), "sites", [], "any", false, false, false, 71), "short", [], "any", false, false, false, 71), "name", [], "any", false, false, false, 71), "html", null, true);
echo "
";
// line 72
$context["site_has_h1"] = true;
// line 73
echo " ";
}
// line 74
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 74), "short", [], "any", false, true, false, 74), "author_name", [], "any", true, true, false, 74)) {
// line 75
echo "
Autor dieses Artikels: ";
// line 76
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 76, $this->source); })()), "sites", [], "any", false, false, false, 76), "short", [], "any", false, false, false, 76), "author_name", [], "any", false, false, false, 76), "html", null, true);
echo "
";
// line 77
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 77, $this->source); })()), "sites", [], "any", false, false, false, 77), "short", [], "any", false, false, false, 77), "author_description", [], "any", false, false, false, 77), "html", null, true);
echo "
";
}
// line 80
echo "
";
// line 81
echo $this->extensions['AppBundle\Twig\AppExtension']->lozadFilter($this->extensions['AppBundle\Twig\AppExtension']->directKeywordsFilter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 81, $this->source); })()), "sites", [], "any", false, false, false, 81), "short", [], "any", false, false, false, 81), "full_text", [], "any", false, false, false, 81)));
echo "
";
}
// line 85
echo "
";
// line 87
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 87), "long", [], "any", true, true, false, 87) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 87), "short", [], "any", true, true, false, 87))) {
// line 88
echo "
";
// line 90
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 90), "long", [], "any", true, true, false, 90)) {
// line 91
echo " -
Ausführliche Darstellung für Interessierte
";
}
// line 97
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 97), "short", [], "any", true, true, false, 97)) {
// line 98
echo " - env, $this->source, twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "sites", [], "any", false, true, false, 98), "long", [], "any", true, true, false, 98)) {
echo " active ";
}
echo "\">
Zusammenfassung für eilige Leser
";
}
// line 104
echo "
";
}
// line 107
echo "
";
// line 108
if (twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "faqs", [], "any", true, true, false, 108)) {
// line 109
echo "
Häufige Fragen zu Urlaubsreisen in Ägypten
";
// line 112
$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.', 112, $this->source); })()), "faqs", [], "any", false, false, false, 112));
$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["faq"]) {
// line 113
echo "
env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 114), "html", null, true);
echo "\">
env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 121), "html", null, true);
echo "\" class=\"panel-collapse collapse ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 121) == 1)) {
echo " in ";
}
echo "\" role=\"tabpanel\" aria-labelledby=\"headingFaq_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 121), "html", null, true);
echo "\" itemscope itemprop=\"acceptedAnswer\" itemtype=\"https://schema.org/Answer\">
";
// line 123
echo twig_get_attribute($this->env, $this->source, $context["faq"], "answer_text", [], "any", false, false, false, 123);
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['faq'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 128
echo "
";
}
// line 132
echo " ";
}
// line 133
echo "
";
}
// line 135
echo "
";
// line 137
if ((((isset($context["api"]) || array_key_exists("api", $context)) && twig_get_attribute($this->env, $this->source, ($context["api"] ?? null), "children", [], "any", true, true, false, 137)) && !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.', 137, $this->source); })()), "children", [], "any", false, false, false, 137)))) {
// line 138
echo "
";
// line 140
$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.', 140, $this->source); })()), "children", [], "any", false, false, false, 140));
foreach ($context['_seq'] as $context["_key"] => $context["child_page"]) {
// line 141
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["child_page"], "active", [], "any", false, false, false, 141)) {
// line 142
echo "
";
// line 145
if ((twig_get_attribute($this->env, $this->source, $context["child_page"], "box_image_url", [], "any", true, true, false, 145) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["child_page"], "box_image_url", [], "any", false, false, false, 145)))) {
// line 146
echo "
env, twig_get_attribute($this->env, $this->source, $context["child_page"], "box_image_url", [], "any", false, false, false, 147), "html", null, true);
echo "\" data-background-image=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["child_page"], "box_image_url", [], "any", false, false, false, 147), "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 ");\">
";
}
// line 150
echo "
";
// line 152
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["child_page"], "name", [], "any", false, false, false, 152), "html", null, true);
echo "
env, twig_get_attribute($this->env, $this->source, $context["child_page"], "url", [], "any", false, false, false, 154), "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, 154), "html", null, true);
echo "\">
";
// line 155
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["child_page"], "name", [], "any", false, false, false, 155), "html", null, true);
echo "
";
}
// line 161
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 162
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 ( 441 => 162, 435 => 161, 426 => 155, 420 => 154, 415 => 152, 411 => 150, 401 => 147, 398 => 146, 396 => 145, 391 => 142, 388 => 141, 384 => 140, 380 => 138, 378 => 137, 374 => 135, 370 => 133, 367 => 132, 361 => 128, 342 => 123, 331 => 121, 324 => 117, 318 => 116, 313 => 114, 310 => 113, 293 => 112, 288 => 109, 286 => 108, 283 => 107, 278 => 104, 266 => 98, 263 => 97, 255 => 91, 253 => 90, 249 => 88, 247 => 87, 243 => 85, 236 => 81, 233 => 80, 227 => 77, 223 => 76, 220 => 75, 217 => 74, 214 => 73, 212 => 72, 207 => 71, 201 => 69, 199 => 68, 192 => 67, 189 => 66, 182 => 62, 179 => 61, 172 => 57, 168 => 56, 165 => 55, 162 => 54, 159 => 53, 157 => 52, 152 => 51, 146 => 49, 144 => 48, 141 => 47, 139 => 46, 136 => 45, 134 => 44, 131 => 43, 126 => 40, 114 => 34, 111 => 33, 103 => 27, 101 => 26, 97 => 24, 94 => 23, 92 => 22, 89 => 21, 81 => 16, 74 => 12, 68 => 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 %}
{% if(api is defined) %}
{% if(api.nodes_active.image.url is defined) %}
{% endif %}
{% if(api.sites is defined) %}
{% if(api.sites.long is defined and api.sites.short is defined) %}
{% endif %}
{% set site_has_h1 = false %}
{% if(api.sites.long is defined) %}
{% if(site_has_h1) %}
{{ api.sites.long.name }}
{% else %}
{{ api.sites.long.name }}
{% set site_has_h1 = true %}
{% endif %}
{% if(api.sites.long.author_name is defined) %}
Autor dieses Artikels: {{api.sites.long.author_name}}
{{api.sites.long.author_description}}
{% endif %}
{{ api.sites.long.full_text|raw|dkeywords|lozad }}
{% endif %}
{% if(api.sites.short is defined) %}
{% if(site_has_h1) %}
{{ api.sites.short.name }}
{% else %}
{{ api.sites.short.name }}
{% set site_has_h1 = true %}
{% endif %}
{% if(api.sites.short.author_name is defined) %}
Autor dieses Artikels: {{api.sites.short.author_name}}
{{api.sites.short.author_description}}
{% endif %}
{{ api.sites.short.full_text|raw|dkeywords|lozad }}
{% endif %}
{% if(api.sites.long is defined and api.sites.short is defined) %}
{% endif %}
{% if(api.faqs is defined) %}
Häufige Fragen zu Urlaubsreisen in Ägypten
{% for faq in api.faqs %}
{{ faq.answer_text|raw }}
{% endfor %}
{% endif %}
{% 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(child_page.box_image_url is defined and child_page.box_image_url is not empty) %}
{% endif %}
{{ 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");
}
}