<?php
global $objPage;
$_COOKIE['country'] = $this->entry['row']['title'];
$metaTitle = ($this->entry['row']['meta_title'] ? $this->entry['row']['meta_title'] : 'Reiseregion '.$this->entry['row']['title']);
$metaKeywords = $this->entry['row']['meta_keywords'];
$metaDescription = ($this->entry['row']['meta_description'] ? $this->entry['row']['meta_description'] : strip_tags($this->entry['row']['teaser']));
$objPage->pageTitle = $metaTitle;
$objPage->description = $metaDescription;
$GLOBALS['TL_KEYWORDS'] = $metaKeywords;
$GLOBALS['TL_HEAD'][] = '<meta property="og:title" content="'.$metaTitle.'">';
$GLOBALS['TL_HEAD'][] = '<meta property="og:url" content="'.$this->replaceInsertTags('{{env::url}}').'/'.$this->replaceInsertTags('{{env::request}}').'">';
$GLOBALS['TL_HEAD'][] = '<meta property="og:description" content="'.$metaDescription.'">';
if ($this->entry['image_path']) $GLOBALS['TL_HEAD'][] = '<meta property="og:image" content="'.$this->replaceInsertTags('{{env::url}}').'/'.$this->entry['image_path'].'">';
else $GLOBALS['TL_HEAD'][] = '<meta property="og:image" content="'.$this->replaceInsertTags('{{env::url}}').'/files/layout/images/hideaway4you_logo.png">';
?>
<div class="container">
<div class="<?php echo $this->class; ?> reader block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<div class="row">
<div class="col-md-6">
<h2>Warum <?= $this->entry['row']['title'] ?> das perfekte Reiseziel für Familien ist</h2>
<div class="description">
<?= $this->entry['row']['description'] ?>
</div>
</div>
<div class="col-md-6 pt-5">
<?php if ($this->entry['row']['highlight']): ?>
<div class="box-highlight">
<h3>Highlights</h3>
<div class="has-checklist type-check-filled">
<?= (substr($this->entry['row']['highlight'], 0, 1) == '<' ? $this->entry['row']['highlight'] : nl2br($this->entry['row']['highlight'])) ?>
</div>
</div>
<?php endif ?>
<?php if ($this->entry['map_path']): ?><figure class="mt-3 mt-md-5"><img src="<?= $this->entry['map_path'] ?>" alt="<?= $this->entry['map_meta']['de']['title'] ?>"></figure><?php endif ?>
</div>
</div>
<?php /* Gut zu wissen Box
<?php if ($this->entry['row']['worth_knowing_teaser']): ?>
<section class="worth-knowing my-4">
<div class="box-info d-flex gap-3 p-4">
<div class="shrink-0">
<i class="icon-info-circle fs-3"></i>
</div>
<div>
<h3 class="mt-0">Gut zu wissen</h3>
<?= $this->entry['row']['worth_knowing_teaser'] ?>
<?php if ($this->entry['row']['worth_knowing']): ?>
<div class="worth-knowing__more mt-2">
<?= $this->entry['row']['worth_knowing'] ?>
</div>
<?php endif ?>
</div>
</div>
</section>
<?php endif ?>
*/ ?>
<!-- Kundenbewertungen -->
{{insert_content::357}}
<!-- Steps -->
{{insert_content::412}}
<!-- CTA Box -->
<section class="cta_box <?= $this->class ?> my-4"<?= $this->cssID ?>>
<div class="cta_box__inner">
<div class="bg-yellow-soft p-4 d-md-flex align-items-center gap-y-2">
<div class="col-md-6">
<div class="text-center">
<h2 class="cta_box__headline mt-0">Infos & Preise für eure <?= $this->entry['row']['title'] ?>-Reise?</h2>
</div>
</div>
<div class="col-md-6 mt-3 mt-md-0">
<div class="text-center">
<div class="cta_box__buttons">
<a href="{{link_url::kontakt}}?subject=<?= urlencode($this->entry['row']['title']) ?>" class="btn btn-secondary">Infos & Preise unverbindlich anfordern</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Bereich oben: Custom Content oberhalb der Hotels -->
<?php if ($this->regionContentTop): ?>
<div class="region-content-top">
<?= $this->regionContentTop ?>
</div>
<?php endif ?>
<?php if ($this->hotels): ?>
<div class="regions mt-4 mt-md-5 mt-lg-6">
<h2 class="center">Hotels</h2>
<div class="flexslider">
<ul>
<?php foreach($this->hotels as $hotel): ?>
<li class="hotel">
<div class="inner">
<figure><a href="<?= $hotel['url'] ?>"><img src="<?= ($hotel['image_path'] ? $this->getImage($hotel['image_path'], 380, 250, 'center_center') : 'files/layout/images/no_image.jpg'); ?>"></a></figure>
<div class="typo_wrap">
<h3><?= $hotel['row']['title'] ?></h3>
<?= (substr($hotel['row']['teaser'], 0, 1) == '<' ? $hotel['row']['teaser'] : '<p class="teaser">'.nl2br($hotel['row']['teaser']).'</p>') ?>
</div>
<p class="more"><a href="<?= $hotel['url'] ?>" class="btn btn-default btn-sm"><span>mehr</span></a></p>
</div>
</li>
<?php endforeach ?>
</ul>
</div>
</div>
<?php endif ?>
<!-- Rundreisen -->
<?php $this->insert('ce_hideaway_travels', ['travels' => $this->travels, 'class' => $this->class, 'country' => $this->entry['row']['title']]) ?>
<?php /*
<?php if ($this->trips): ?>
<div class="trips">
<h2 class="center">Ausflüge</h2>
<div class="flexslider">
<ul>
<?php foreach($this->trips as $trip): ?>
<li class="region">
<div class="inner">
<figure><a href="<?= $trip['url'] ?>"><img src="<?= ($trip['image_path'] ? $this->getImage($trip['image_path'], 380, 250, 'center_center') : 'files/layout/images/no_image.jpg'); ?>"></a></figure>
<div class="typo_wrap">
<h3><?= $trip['row']['title'] ?></h3>
<?= (substr($trip['row']['teaser'], 0, 1) == '<' ? $trip['row']['teaser'] : '<p class="teaser">'.nl2br($trip['row']['teaser']).'</p>') ?>
</div>
<p class="more"><a href="<?= $trip['url'] ?>" class="btn btn-default btn-sm"><span>mehr</span></a></p>
</div>
</li>
<?php endforeach ?>
</ul>
</div>
</div>
<?php endif ?>
<?php if ($this->combis): ?>
<div class="combis combis_list">
<h2 class="center">Kombinationsreisen</h2>
<div class="flexslider">
<ul id="hideaway_list">
<?php foreach($this->combis as $entry): ?>
<li class="entry mix <?= $entry['type'] ?> <?= 'region_id_'.($entry['row']['region'] ? $entry['row']['region'] : $entry['row']['main_region']) ?>">
<div class="inner">
<div class="type">Kombinationsreise</div>
<figure><a href="<?= $entry['url'] ?>"><img src="<?= ($entry['image_path'] ? $this->getImage($entry['image_path'], 380, 250, 'center_center') : 'files/layout/images/no_image.jpg'); ?>" alt="<?= $entry['image_meta']['de']['title'] ?>"></a></figure>
<div class="typo_wrap">
<h2><?= $entry['row']['title'] ?></h2>
<?= (substr($entry['row']['teaser'], 0, 1) == '<' ? $entry['row']['teaser'] : '<p class="teaser">'.nl2br($entry['row']['teaser']).'</p>') ?>
</div>
<p class="more"><a href="<?= $entry['url'] ?>" class="btn btn-default btn-sm"><span>mehr</span></a></p>
</div>
</li>
<?php endforeach ?>
</ul>
</div>
</div>
<?php endif; ?>
*/ ?>
<!-- Ausflüge -->
<?php $this->insert('ce_hideaway_trips', ['trips' => $this->trips, 'class' => $this->class, 'country' => $this->entry['row']['title']]) ?>
<!-- Kombinationsreisen -->
<?php $this->insert('ce_hideaway_combis', ['combis' => $this->combis, 'class' => $this->class, 'country' => $this->entry['row']['title']]) ?>
<!-- Bereich unten: Custom Content unterhalb der Produkte -->
<?php if ($this->regionContentBottom): ?>
<div class="region-content-bottom">
<?= $this->regionContentBottom ?>
</div>
<?php endif ?>
</div>
</div>
<!-- Form -->
{{insert_content::360}}
<script>
var subject = '<?= $this->entry['row']['title'] ?>';
document.addEventListener('DOMContentLoaded', function() {
var form = document.querySelector('.form_inquiry');
if (form) {
var subjectField = form.querySelector('input[name="thema"]');
if (subjectField) {
subjectField.value = subject;
subjectField.parentElement.classList.add('floating-label--focused');
}
}
});
</script>
<!-- FAQ -->
<div class="bg-default-10 py-4 py-md-5">
<div class="container">
{{insert_article::89}}
</div>
</div>