This commit is contained in:
Kevin Adametz 2020-02-14 10:19:06 +01:00
parent ee89626864
commit a37785b391
23 changed files with 1398 additions and 254 deletions

View file

@ -8,7 +8,9 @@
<!--[if IE 8 ]><html class="ie ie8" lang="de"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="de"><!--<![endif]-->
<head>
<title>{% block page_title %}{{ page is defined ? page.pagetitle : 'Kulturreisen vom Reiseveranstalter STERN TOURS aus Berlin' }}{% endblock page_title %}</title>
<title>{% block page_title %}
{{ page is defined ? page.pagetitle : iq_page_title is defined ? iq_page_title : 'Kulturreisen vom Reiseveranstalter STERN TOURS aus Berlin' }}
{% endblock page_title %}</title>
{% block metatags %}
<meta charset="utf-8">
@ -17,20 +19,18 @@
{% block meta_description -%}
{%- if page is defined and page.description is not empty -%}
<meta name="description" content="{{ page.description }}" >
{%- elseif app.debug -%}
<!-- <meta name="description" > {% if page is not defined %} muss im Twig-Seitentemplate im Block meta_description festgelegt werden.{% else %} fehlt, da das Feld "description" im page Eintrag mit der ID {{ page.id }} leer ist.{% endif %} -->
{%- endif -%}
{%- if iq_page_description is defined and iq_page_description is not empty -%}
<meta name="description" content="{{ iq_page_description }}" >
{%- endif -%}
{%- endblock %}
{% block meta_keywords -%}
{%- if page is defined and page.keywords is not empty -%}
<meta name="keywords" content="{{ page.keywords }}" >
{%- elseif app.debug -%}
<!-- <meta name="keywords" > {% if page is not defined %} muss im Twig-Seitentemplate im Block meta_keywords festgelegt werden.{% else %} fehlt, da das Feld "keywords" im page Eintrag mit der ID {{ page.id }} leer ist.{% endif %} -->
{%- endif -%}
{%- endblock %}
{% block meta_robots %}
<meta name="robots" content="follow,index" />
{% if app.debug %}<!-- Falls der meta-robots-Tag für diese Seite falsch ist, kann der Block "meta_robots" im Twig-Template überschrieben werden -->{% endif %}
{% endblock %}
{% endblock %}

View file

@ -66,7 +66,7 @@
<table class="table table-condensed table-vertical-middle">
{% for key, val in local %}
<tr>
<td class="text-left" style="width: 50%">{{ val.day }} <span class="text-muted pull-right"> {{ key }}</span></td>
<td class="text-left" style="width: 50%">{{ val.day }} <span class="text-muted pull-right"> {{ val.date }}</span></td>
{% if val.active == 0 %}
<td colspan="3">geschlossen</td>
{% else %}
@ -107,7 +107,7 @@
<table class="table table-condensed table-vertical-middle">
{% for key, val in phone %}
<tr>
<td class="text-left" style="width: 50%">{{ val.day }} <span class="text-muted pull-right"> {{ key }}</span></td>
<td class="text-left" style="width: 50%">{{ val.day }} <span class="text-muted pull-right"> {{ val.date }}</span></td>
{% if val.active == 0 %}
<td colspan="3">geschlossen</td>
{% else %}

View file

@ -1,7 +1,15 @@
FOLGENDE REISE WURDE GEBUCHT:
URL: {{ travel_program_url }}
Anfrage Nr
{{ lead_id }}
CRM: {{ crm_url }}
URL
{{ travel_program_url }}
CRM
{{ crm_v1_url }}
{{ crm_v3_url }}
{% include 'default/email/components/bookingSummary.txt.twig' %}

View file

@ -1,7 +1,9 @@
Folgende Wohnung wurde gemietet
URL: {{ lodging_url }}
URL:
{{ lodging_url }}
CRM: {{ crm_url }}
CRM:
{{ crm_url }}
{% include 'default/email/components/fewoBookingSummary.txt.twig' %}

View file

@ -142,9 +142,9 @@
<tr>
<td>Anrede</td>
<td>
{% if booking.salutation == 1 %}
{% if booking.salutationId == 1 %}
Herr
{% elseif booking.salutation == 2 %}
{% elseif booking.salutationId == 2 %}
Frau
{% endif %}
</td>
@ -163,7 +163,7 @@
</tr>
<tr>
<td>Straße, Hausnummer</td>
<td>{{ booking.street }} {{ booking.houseNr }}</td>
<td>{{ booking.street }}</td>
</tr>
<tr>
<td>PLZ</td>
@ -175,7 +175,7 @@
</tr>
<tr>
<td>Land</td>
<td>{{ booking.country }}</td>
<td>{{ booking.countryId }}</td>
</tr>
<tr>
<td>Telefon tagsüber</td>
@ -187,7 +187,7 @@
</tr>
<tr>
<td>E-Mail-Adresse</td>
<td>{{ booking.mail }}</td>
<td>{{ booking.email }}</td>
</tr>
</tbody>
</table>

View file

@ -29,7 +29,7 @@
<div class="carousel-inner">
{% for lodging_image in slider_imgs %}
<div class="item{% if loop.first %} active{% endif %}">
<div class="fill" style="background-image:url({{ asset('_uploads/images/' ~ lodging_image.file) }});">
<div class="fill" style="background-image:url({{ asset('_uploads/images/' ~ lodging_image.file) }});background-position: center {{ travel_program_image.position }}">
<span class="image-title">{{ lodging_image.fileName }}</span>
</div>
</div>

View file

@ -2,8 +2,8 @@
{% block body %}
<section class="clearfix">
{% set site_has_h1 = false %}
{% if(api is defined) %}
{% if api.sites|length > 1 %}
<div class="wrapper-nav-tabs">
<ul class="nav nav-tabs nav-justified list-nav-tabs">
@ -20,11 +20,15 @@
{% endfor %}
</ul>
</div>
<div class="tab-content">
{% for site in api.sites %}
<div role="tabpanel" class="tab-pane {% if loop.index==1 %} active {% endif %}" id="travel_guide_content_{{ site.id }}">
<h1>{{ site.name }}</h1>
{% if(site_has_h1) %}
<h2 class="h1l">{{ site.name }}</h2>
{% else %}
<h1>{{ site.name }}</h1>
{% set site_has_h1 = true %}
{% endif %}
{{ site.full_text|raw|keywords|lozad }}
</div>
{% endfor %}
@ -47,7 +51,12 @@
</div>
{% else %}
{% for site in api.sites %}
<h1>{{ site.name }}</h1>
{% if(site_has_h1) %}
<h2 class="h1l">{{ site.name }}</h2>
{% else %}
<h1>{{ site.name }}</h1>
{% set site_has_h1 = true %}
{% endif %}
{{ site.full_text|raw|keywords|lozad }}
{% endfor %}
{% endif %}
@ -56,7 +65,6 @@
<hr>
{% if(api is defined and api.children is defined and api.children is not empty) %}
<section class="clearfix">
<h2></h2>
<div class="row">
{% for child_page in api.children %}
{% if(child_page.active) %}

View file

@ -6,13 +6,13 @@
<div class="wrapper-nav-tabs">
<ul class="nav nav-tabs nav-justified list-nav-tabs">
<li class="active">
<a href="#travel_guide_short_content" aria-controls="travel_guide_short_content" role="tab" data-toggle="tab">
Kurzer Inhalt
<a href="#travel_guide_long_content" aria-controls="travel_guide_long_content" role="tab" data-toggle="tab">
Ausführliche Darstellung <i class="hidden-xs">für Interessierte</i>
</a>
</li>
<li>
<a href="#travel_guide_long_content" aria-controls="travel_guide_long_content" role="tab" data-toggle="tab">
Langer Inhalt
<a href="#travel_guide_short_content" aria-controls="travel_guide_short_content" role="tab" data-toggle="tab">
Zusammenfassung <i class="hidden-xs">für eilige Leser</i>
</a>
</li>
</ul>
@ -30,13 +30,13 @@
<div class="wrapper-nav-tabs">
<ul class="nav nav-tabs nav-justified list-nav-tabs">
<li class="active">
<a href="#travel_guide_short_content" aria-controls="travel_guide_short_content" role="tab" data-toggle="tab">
Kurzer Inhalt
<a href="#travel_guide_long_content" aria-controls="travel_guide_long_content" role="tab" data-toggle="tab">
Ausführliche Darstellung <i class="hidden-xs">für Interessierte</i>
</a>
</li>
<li>
<a href="#travel_guide_long_content" aria-controls="travel_guide_long_content" role="tab" data-toggle="tab">
Langer Inhalt
<a href="#travel_guide_short_content" aria-controls="travel_guide_short_content" role="tab" data-toggle="tab">
Zusammenfassung <i class="hidden-xs">für eilige Leser</i>
</a>
</li>
</ul>

View file

@ -49,9 +49,9 @@
<div id="myCarousel" class="carousel slide">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
{% for travel_program_image in travel_program.images %}
<li data-target="#myCarousel" data-slide-to="{{ loop.index-1 }}" {% if loop.first %}class="active"{% endif %}></li>
{% endfor %}
</ol>
<!-- Wrapper for Slides -->
<div class="carousel-inner">
@ -62,10 +62,10 @@
{% set image_url = asset('uploads/travel_program/' ~ travel_program_image.fileNameWithExtension) %}
<div class="fill lozad"
data-background-image="{{ image(image_url|trim('/')).cropResize(848).guess(75) }}"
style="background-image:url({{ asset('images/placeholder-image.png') }})"></div>
style="background-image:url({{ asset('images/placeholder-image.png') }});background-position: center {{ travel_program_image.position }}"></div>
<noscript>
<div class="fill"
style="background-image:url({{ image(image_url|trim('/')).cropResize(848).guess(75) }})"></div>
style="background-image:url({{ image(image_url|trim('/')).cropResize(848).guess(75) }}); background-position: center {{ travel_program_image.position }};"></div>
</noscript>
</div>

View file

@ -2,28 +2,33 @@
{% block body %}
<section class="clearfix">
{% set site_has_h1 = false %}
{% if(api is defined) %}
{% if api.sites|length > 1 %}
<div class="wrapper-nav-tabs">
<ul class="nav nav-tabs nav-justified list-nav-tabs">
{% for site in api.sites %}
<li class="">
<li class="{% if loop.index==1 %} active {% endif %}">
<a href="#travel_guide_content_{{ site.id }}" aria-controls="travel_guide_content_{{ site.id }}" role="tab" data-toggle="tab">
{% if(site.scope == 0) %}
Kurzer Inhalt
Zusammenfassung <i class="hidden-xs">für eilige Leser</i>
{% else %}
Langer Inhalt
Ausführliche Darstellung <i class="hidden-xs">für Interessierte</i>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
</div>
<div class="tab-content">
{% for site in api.sites %}
<div role="tabpanel" class="tab-pane active" id="travel_guide_content_{{ site.id }}">
<div role="tabpanel" class="tab-pane {% if loop.index==1 %} active {% endif %}" id="travel_guide_content_{{ site.id }}">
{% if(site_has_h1) %}
<h2 class="h1l">{{ site.name }}</h2>
{% else %}
<h1>{{ site.name }}</h1>
{% set site_has_h1 = true %}
{% endif %}
{{ site.full_text|raw|keywords|lozad }}
</div>
{% endfor %}
@ -32,12 +37,12 @@
<div class="wrapper-nav-tabs">
<ul class="nav nav-tabs nav-justified list-nav-tabs">
{% for site in api.sites %}
<li class="">
<li class="{% if loop.index==1 %} active {% endif %}">
<a href="#travel_guide_content_{{ site.id }}" aria-controls="travel_guide_content_{{ site.id }}" role="tab" data-toggle="tab">
{% if(site.scope == 0) %}
Kurzer Inhalt
Zusammenfassung <i class="hidden-xs">für eilige Leser</i>
{% else %}
Langer Inhalt
Ausführliche Darstellung <i class="hidden-xs">für Interessierte</i>
{% endif %}
</a>
</li>
@ -46,6 +51,12 @@
</div>
{% else %}
{% for site in api.sites %}
{% if(site_has_h1) %}
<h2 class="h1l">{{ site.name }}</h2>
{% else %}
<h1>{{ site.name }}</h1>
{% set site_has_h1 = true %}
{% endif %}
{{ site.full_text|raw|keywords|lozad }}
{% endfor %}
{% endif %}
@ -53,42 +64,41 @@
</section>
<hr>
{% if(api is defined and api.children is defined and api.children is not empty) %}
<section class="clearfix">
<h2></h2>
<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">
{% if(false and child_page.box_image_url is defined and child_page.box_image_url is not empty) %}
<div class="item-img" style="height: 220px;">
{% 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 %}
<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>
<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">
{% if(false and child_page.box_image_url is defined and child_page.box_image_url is not empty) %}
<div class="item-img" style="height: 220px;">
{% 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 %}
<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>
{% endif %}
<div class="box_mid">
<div class="hl5">{{ child_page.name }}</div>
<p>{{ child_page.description }}</p>
</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>
{% endif %}
<div class="box_mid">
<div class="hl5">{{ child_page.name }}</div>
<p>{{ child_page.description }}</p>
</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 %}
{% endfor %}
</div>
</section>
{% endif %}
{% endblock %}