633 lines
43 KiB
PHP
633 lines
43 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/iqTravelGuide.html.twig */
|
|
class __TwigTemplate_d5014358b667789bc0ac0de6699df5e895fad67f33d3aebc20777032a42f6447 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/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 " <section class=\"article clearfix\">
|
|
";
|
|
// line 5
|
|
if ((isset($context["api"]) || array_key_exists("api", $context))) {
|
|
// line 6
|
|
echo " <article role=\"article\" itemscope itemtype=\"http://schema.org/Article\">
|
|
";
|
|
// 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 " <header>
|
|
<div class=\"mediaTop\">
|
|
<div class=\"mediaTopImageItem\">
|
|
<picture>
|
|
";
|
|
// line 12
|
|
echo $this->extensions['AppBundle\Twig\AppExtension']->imageloaderFilter(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.', 12, $this->source); })()), "nodes_active", [], "any", false, false, false, 12), "image", [], "any", false, false, false, 12));
|
|
echo "
|
|
</picture>
|
|
</div>
|
|
<div class=\"mediaInfo\">
|
|
<p class=\"mediaTitle\">";
|
|
// line 16
|
|
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.', 16, $this->source); })()), "nodes_active", [], "any", false, false, false, 16), "image", [], "any", false, false, false, 16), "title", [], "any", false, false, false, 16), "html", null, true);
|
|
echo "</p>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
";
|
|
}
|
|
// 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 " <div class=\"wrapper-nav-tabs\">
|
|
<ul class=\"nav nav-tabs nav-justified list-nav-tabs\">
|
|
";
|
|
// 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 " <li class=\"active\">
|
|
<a href=\"#travel_guide_content_long\" aria-controls=\"travel_guide_content_long\" role=\"tab\" data-toggle=\"tab\">
|
|
Ausführliche Darstellung <i class=\"hidden-xs\">für Interessierte</i>
|
|
</a>
|
|
</li>
|
|
";
|
|
}
|
|
// 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 " <li class=\"";
|
|
if ( !twig_get_attribute($this->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 "\">
|
|
<a href=\"#travel_guide_content_short\" aria-controls=\"travel_guide_content_short\" role=\"tab\" data-toggle=\"tab\">
|
|
Zusammenfassung <i class=\"hidden-xs\">für eilige Leser</i>
|
|
</a>
|
|
</li>
|
|
";
|
|
}
|
|
// line 40
|
|
echo " </ul>
|
|
</div>
|
|
";
|
|
}
|
|
// line 43
|
|
echo "
|
|
";
|
|
// line 44
|
|
$context["site_has_h1"] = false;
|
|
// line 45
|
|
echo " <div class=\"tab-content\">
|
|
";
|
|
// 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 " <div role=\"tabpanel\" class=\"tab-pane active\" id=\"travel_guide_content_long\">
|
|
";
|
|
// 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 " <h2 class=\"h1l\">";
|
|
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 "</h2>
|
|
";
|
|
} else {
|
|
// line 51
|
|
echo " <h1 itemprop=\"headline\">";
|
|
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 "</h1>
|
|
";
|
|
// 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 " <div itemprop=\"author\" itemscope itemtype=\"http://schema.org/Person\">
|
|
<p class=\"author_name\" itemprop=\"name\" rel=\"author\">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 "</p>
|
|
<p class=\"author_description\" itemprop=\"description\">";
|
|
// 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 "</p>
|
|
</div>
|
|
|
|
";
|
|
}
|
|
// line 61
|
|
echo " <section itemprop=\"articleBody\">
|
|
";
|
|
// 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 "
|
|
</section>
|
|
</div>
|
|
";
|
|
}
|
|
// 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 " <div role=\"tabpanel\" class=\"tab-pane ";
|
|
if ( !twig_get_attribute($this->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 " <h2 class=\"h1l\">";
|
|
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 "</h2>
|
|
";
|
|
} else {
|
|
// line 71
|
|
echo " <h1 itemprop=\"headline\">";
|
|
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 "</h1>
|
|
";
|
|
// 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 " <div itemprop=\"author\" itemscope itemtype=\"http://schema.org/Person\">
|
|
<p class=\"author_name\" itemprop=\"name\" rel=\"author\">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 "</p>
|
|
<p class=\"author_description\" itemprop=\"description\">";
|
|
// 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 "</p>
|
|
</div>
|
|
";
|
|
}
|
|
// line 80
|
|
echo " <section itemprop=\"articleBody\">
|
|
";
|
|
// 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 "
|
|
</section>
|
|
</div>
|
|
";
|
|
}
|
|
// line 85
|
|
echo " </div>
|
|
|
|
";
|
|
// 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 " <div class=\"wrapper-nav-tabs\">
|
|
<ul class=\"nav nav-tabs nav-justified list-nav-tabs\">
|
|
";
|
|
// 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 " <li class=\"active\">
|
|
<a href=\"#travel_guide_content_long\" aria-controls=\"travel_guide_content_long\" role=\"tab\" data-toggle=\"tab\">
|
|
Ausführliche Darstellung <i class=\"hidden-xs\">für Interessierte</i>
|
|
</a>
|
|
</li>
|
|
";
|
|
}
|
|
// 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 " <li class=\"";
|
|
if ( !twig_get_attribute($this->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 "\">
|
|
<a href=\"#travel_guide_content_short\" aria-controls=\"travel_guide_content_short\" role=\"tab\" data-toggle=\"tab\">
|
|
Zusammenfassung <i class=\"hidden-xs\">für eilige Leser</i>
|
|
</a>
|
|
</li>
|
|
";
|
|
}
|
|
// line 104
|
|
echo " </ul>
|
|
</div>
|
|
";
|
|
}
|
|
// 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 " <section class=\"stern-faq\" itemscope itemtype=\"https://schema.org/FAQPage\">
|
|
<h2 class=\"h3 h3l\">Häufige Fragen zu Urlaubsreisen in Ägypten</h2>
|
|
<div class=\"panel-group\" id=\"accordion\" role=\"tablist\" aria-multiselectable=\"true\">
|
|
";
|
|
// 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 " <div class=\"panel panel-default\" itemscope itemprop=\"mainEntity\" itemtype=\"https://schema.org/Question\">
|
|
<div class=\"panel-heading\" role=\"tab\" id=\"headingFaq_";
|
|
// line 114
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 114), "html", null, true);
|
|
echo "\">
|
|
<h3 itemprop=\"name\" class=\"panel-title\">
|
|
<a role=\"button\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#collapseFaq_";
|
|
// line 116
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 116), "html", null, true);
|
|
echo "\" aria-expanded=\"true\" aria-controls=\"collapseFaq_";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 116), "html", null, true);
|
|
echo "\">
|
|
⭐ ";
|
|
// line 117
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "question", [], "any", false, false, false, 117), "html", null, true);
|
|
echo "
|
|
</a>
|
|
</h3>
|
|
</div>
|
|
<div id=\"collapseFaq_";
|
|
// line 121
|
|
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 "\" 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\">
|
|
<div class=\"panel-body\" itemprop=\"text\">
|
|
";
|
|
// line 123
|
|
echo twig_get_attribute($this->env, $this->source, $context["faq"], "answer_text", [], "any", false, false, false, 123);
|
|
echo "
|
|
</div>
|
|
</div>
|
|
</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['faq'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 128
|
|
echo " </div>
|
|
</section>
|
|
|
|
";
|
|
}
|
|
// line 132
|
|
echo " ";
|
|
}
|
|
// line 133
|
|
echo " </article>
|
|
";
|
|
}
|
|
// line 135
|
|
echo " </section>
|
|
<hr>
|
|
";
|
|
// 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 " <section class=\"clearfix\">
|
|
<div class=\"row\">
|
|
";
|
|
// 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 " <div class=\"col-md-4 col-sm-6\">
|
|
<div class=\"travel-wrapper get-box-link\">
|
|
<div class=\"item text-left item-relative\">
|
|
";
|
|
// 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 " <div class=\"item-img item-absolute\">
|
|
<div class=\"img-background lozad\" data-real-url=\"";
|
|
// line 147
|
|
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 "\" 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 ");\"></div>
|
|
</div>
|
|
";
|
|
}
|
|
// line 150
|
|
echo " <div class=\"box_mid\">
|
|
|
|
<div class=\"hl5\">";
|
|
// 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 "</div>
|
|
</div>
|
|
<a class=\"item-button is-box-link dobble_line\" href=\"";
|
|
// line 154
|
|
echo twig_escape_filter($this->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 "\">
|
|
<span>";
|
|
// 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 "</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
";
|
|
}
|
|
// 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 " </div>
|
|
</section>
|
|
";
|
|
}
|
|
|
|
$__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 %}
|
|
<section class=\"article clearfix\">
|
|
{% if(api is defined) %}
|
|
<article role=\"article\" itemscope itemtype=\"http://schema.org/Article\">
|
|
{% if(api.nodes_active.image.url is defined) %}
|
|
<header>
|
|
<div class=\"mediaTop\">
|
|
<div class=\"mediaTopImageItem\">
|
|
<picture>
|
|
{{ api.nodes_active.image|imageloader }}
|
|
</picture>
|
|
</div>
|
|
<div class=\"mediaInfo\">
|
|
<p class=\"mediaTitle\">{{ api.nodes_active.image.title }}</p>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
{% endif %}
|
|
|
|
{% if(api.sites is defined) %}
|
|
{% if(api.sites.long is defined and api.sites.short is defined) %}
|
|
<div class=\"wrapper-nav-tabs\">
|
|
<ul class=\"nav nav-tabs nav-justified list-nav-tabs\">
|
|
{% if(api.sites.long is defined) %}
|
|
<li class=\"active\">
|
|
<a href=\"#travel_guide_content_long\" aria-controls=\"travel_guide_content_long\" role=\"tab\" data-toggle=\"tab\">
|
|
Ausführliche Darstellung <i class=\"hidden-xs\">für Interessierte</i>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
{% if(api.sites.short is defined) %}
|
|
<li class=\"{% if(api.sites.long is not defined) %} active {% endif %}\">
|
|
<a href=\"#travel_guide_content_short\" aria-controls=\"travel_guide_content_short\" role=\"tab\" data-toggle=\"tab\">
|
|
Zusammenfassung <i class=\"hidden-xs\">für eilige Leser</i>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% set site_has_h1 = false %}
|
|
<div class=\"tab-content\">
|
|
{% if(api.sites.long is defined) %}
|
|
<div role=\"tabpanel\" class=\"tab-pane active\" id=\"travel_guide_content_long\">
|
|
{% if(site_has_h1) %}
|
|
<h2 class=\"h1l\">{{ api.sites.long.name }}</h2>
|
|
{% else %}
|
|
<h1 itemprop=\"headline\">{{ api.sites.long.name }}</h1>
|
|
{% set site_has_h1 = true %}
|
|
{% endif %}
|
|
{% if(api.sites.long.author_name is defined) %}
|
|
<div itemprop=\"author\" itemscope itemtype=\"http://schema.org/Person\">
|
|
<p class=\"author_name\" itemprop=\"name\" rel=\"author\">Autor dieses Artikels: {{api.sites.long.author_name}}</p>
|
|
<p class=\"author_description\" itemprop=\"description\">{{api.sites.long.author_description}}</p>
|
|
</div>
|
|
|
|
{% endif %}
|
|
<section itemprop=\"articleBody\">
|
|
{{ api.sites.long.full_text|raw|dkeywords|lozad }}
|
|
</section>
|
|
</div>
|
|
{% endif %}
|
|
{% if(api.sites.short is defined) %}
|
|
<div role=\"tabpanel\" class=\"tab-pane {% if(api.sites.long is not defined) %} active {% endif %}\" id=\"travel_guide_content_short\">
|
|
{% if(site_has_h1) %}
|
|
<h2 class=\"h1l\">{{ api.sites.short.name }}</h2>
|
|
{% else %}
|
|
<h1 itemprop=\"headline\">{{ api.sites.short.name }}</h1>
|
|
{% set site_has_h1 = true %}
|
|
{% endif %}
|
|
{% if(api.sites.short.author_name is defined) %}
|
|
<div itemprop=\"author\" itemscope itemtype=\"http://schema.org/Person\">
|
|
<p class=\"author_name\" itemprop=\"name\" rel=\"author\">Autor dieses Artikels: {{api.sites.short.author_name}}</p>
|
|
<p class=\"author_description\" itemprop=\"description\">{{api.sites.short.author_description}}</p>
|
|
</div>
|
|
{% endif %}
|
|
<section itemprop=\"articleBody\">
|
|
{{ api.sites.short.full_text|raw|dkeywords|lozad }}
|
|
</section>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% if(api.sites.long is defined and api.sites.short is defined) %}
|
|
<div class=\"wrapper-nav-tabs\">
|
|
<ul class=\"nav nav-tabs nav-justified list-nav-tabs\">
|
|
{% if(api.sites.long is defined) %}
|
|
<li class=\"active\">
|
|
<a href=\"#travel_guide_content_long\" aria-controls=\"travel_guide_content_long\" role=\"tab\" data-toggle=\"tab\">
|
|
Ausführliche Darstellung <i class=\"hidden-xs\">für Interessierte</i>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
{% if(api.sites.short is defined) %}
|
|
<li class=\"{% if(api.sites.long is not defined) %} active {% endif %}\">
|
|
<a href=\"#travel_guide_content_short\" aria-controls=\"travel_guide_content_short\" role=\"tab\" data-toggle=\"tab\">
|
|
Zusammenfassung <i class=\"hidden-xs\">für eilige Leser</i>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if(api.faqs is defined) %}
|
|
<section class=\"stern-faq\" itemscope itemtype=\"https://schema.org/FAQPage\">
|
|
<h2 class=\"h3 h3l\">Häufige Fragen zu Urlaubsreisen in Ägypten</h2>
|
|
<div class=\"panel-group\" id=\"accordion\" role=\"tablist\" aria-multiselectable=\"true\">
|
|
{% for faq in api.faqs %}
|
|
<div class=\"panel panel-default\" itemscope itemprop=\"mainEntity\" itemtype=\"https://schema.org/Question\">
|
|
<div class=\"panel-heading\" role=\"tab\" id=\"headingFaq_{{ faq.id }}\">
|
|
<h3 itemprop=\"name\" class=\"panel-title\">
|
|
<a role=\"button\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#collapseFaq_{{ faq.id }}\" aria-expanded=\"true\" aria-controls=\"collapseFaq_{{ faq.id }}\">
|
|
⭐ {{ faq.question }}
|
|
</a>
|
|
</h3>
|
|
</div>
|
|
<div id=\"collapseFaq_{{ faq.id }}\" class=\"panel-collapse collapse {% if(loop.index == 1) %} in {% endif %}\" role=\"tabpanel\" aria-labelledby=\"headingFaq_{{ faq.id }}\" itemscope itemprop=\"acceptedAnswer\" itemtype=\"https://schema.org/Answer\">
|
|
<div class=\"panel-body\" itemprop=\"text\">
|
|
{{ faq.answer_text|raw }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</section>
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
</article>
|
|
{% endif %}
|
|
</section>
|
|
<hr>
|
|
{% if(api is defined and api.children is defined and api.children is not empty) %}
|
|
<section class=\"clearfix\">
|
|
<div class=\"row\">
|
|
{% for child_page in api.children %}
|
|
{% if(child_page.active) %}
|
|
<div class=\"col-md-4 col-sm-6\">
|
|
<div class=\"travel-wrapper get-box-link\">
|
|
<div class=\"item text-left item-relative\">
|
|
{% if(child_page.box_image_url is defined and child_page.box_image_url is not empty) %}
|
|
<div class=\"item-img item-absolute\">
|
|
<div class=\"img-background lozad\" data-real-url=\"{{ child_page.box_image_url }}\" data-background-image=\"{{ child_page.box_image_url }}\" style=\"background-image:url({{ asset('images/placeholder-image.png') }});\"></div>
|
|
</div>
|
|
{% endif %}
|
|
<div class=\"box_mid\">
|
|
|
|
<div class=\"hl5\">{{ child_page.name }}</div>
|
|
</div>
|
|
<a class=\"item-button is-box-link dobble_line\" href=\"{{ child_page.url }}\" title=\"{{ child_page.name }}\">
|
|
<span>{{ child_page.name }}</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
</section>
|
|
{% endif %}
|
|
{% endblock %}", "default/pages/cms/iqTravelGuide.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/pages/cms/iqTravelGuide.html.twig");
|
|
}
|
|
}
|