90 lines
4.1 KiB
Twig
90 lines
4.1 KiB
Twig
{% extends get_base_template() %}
|
|
|
|
{% block body %}
|
|
|
|
<h1>{{ page.pagetitle|default(page.title) }}</h1>
|
|
|
|
<section class="clearfix">
|
|
{#{% for i in 0..page.children|length//3 %}#}
|
|
<div class="row">
|
|
|
|
{% for child_page in page.children if child_page.slug == "nilschiff-ss-sudan" %}
|
|
<div class="col-md-12 col-sm-12">
|
|
<div class="travel-wrapper get-box-link">
|
|
<div class="item text-left">
|
|
<div class="item-img" style="height: 220px;">
|
|
<div class="lb">
|
|
{% if child_page.boxStar is not empty %}
|
|
<div class="cstar_left">{{ child_page.boxStar|raw }}</div>
|
|
{% endif %}
|
|
{% if child_page.travelProgram is not empty and child_page.travelProgram.lowestPrice > 0 %}
|
|
<div class="cprice">ab {{ child_page.travelProgram.lowestPrice|number_format }} € p.P.</div>
|
|
{% endif %}
|
|
{% if child_page.boxDiscount is not empty %}
|
|
<div class="cdiscount">{{ child_page.boxDiscount|raw }}</div>
|
|
{% endif %}
|
|
{% if child_page.model == 'feedback'%}
|
|
<div class="cdiscount">{{ child_page.date|date }}</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% if child_page.boxImageUrl is not empty %}
|
|
{% set image_url = child_page.boxImageUrl %}
|
|
{% set image_alt = child_page.travelProgram.title|default(page.title) %}
|
|
{% else %}
|
|
{% set image_url = asset('/bundles/app/images/no-picture.png')%}
|
|
{% set image_alt = 'Kein Vorschaubild vorhanden' %}
|
|
{% endif %}
|
|
<div class="img-background lozad" data-background-image="{{ image(image_url|trim('/')).cropResize(960).guess(90) }}" style="background-image:url({{ asset('images/placeholder-image.png') }}); height: 220px;"></div>
|
|
<noscript>
|
|
<img width="234" height="180" src="{{ image(image_url|trim('/')).cropResize(960).guess(90) }}" class="img-responsiv img-responsiv-item" style="">
|
|
</noscript>
|
|
|
|
</div>
|
|
<div class="box_mid">
|
|
<div class="hl5">{{ child_page.title }}</div>
|
|
<p>{{ child_page.boxBody ?? child_page.description }}</p>
|
|
</div>
|
|
<a class="item-button is-box-link dobble_line" href="{{ child_page.urlPath }}" title="{{ child_page.title }}">
|
|
<span>{{ child_page.title }}</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</section>
|
|
|
|
<section class="clearfix content-pane">
|
|
<h2 class="h3 h3l">Unsere beliebtesten Kulturreisen</h2>
|
|
{#{% for i in 0..page.children|length//3 %}#}
|
|
<div class="row">
|
|
{% for child_page in child_pages if child_page.status == 1 and child_page.travelProgram is not empty %}
|
|
{% include 'default/components/pageBox.html.twig' %}
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% if mediated_child_pages is not empty %}
|
|
|
|
<h2 class="h3 h3l">
|
|
Vermittelte Rundreisen vom {{ page.country is not empty ? (page.country.name ~ '-') }}Spezialisten
|
|
STERN TOURS aus Berlin
|
|
</h2>
|
|
|
|
<div class="row">
|
|
{% for child_page in mediated_child_pages %}
|
|
|
|
{% include 'default/components/pageBox.html.twig' %}
|
|
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
<section class="clearfix">
|
|
<hr class="primary">
|
|
{{ page.content|raw|keywords|lozad }}
|
|
</section>
|
|
{% endblock %}
|
|
|