system/modules/hideaway/templates/ce_hideaway_region_content_reader.html5 line 10

Open in your IDE?
  1. <?php
  2. global $objPage;
  3. $_COOKIE['country'] = $this->entry['row']['title'];
  4. $metaTitle = ($this->entry['row']['meta_title'] ? $this->entry['row']['meta_title'] : 'Reiseregion '.$this->entry['row']['title']);
  5. $metaKeywords = $this->entry['row']['meta_keywords'];
  6. $metaDescription = ($this->entry['row']['meta_description'] ? $this->entry['row']['meta_description'] : strip_tags($this->entry['row']['teaser']));
  7. $objPage->pageTitle = $metaTitle;
  8. $objPage->description = $metaDescription;
  9. $GLOBALS['TL_KEYWORDS'] = $metaKeywords;
  10. $GLOBALS['TL_HEAD'][] = '<meta property="og:title" content="'.$metaTitle.'">';
  11. $GLOBALS['TL_HEAD'][] = '<meta property="og:url" content="'.$this->replaceInsertTags('{{env::url}}').'/'.$this->replaceInsertTags('{{env::request}}').'">';
  12. $GLOBALS['TL_HEAD'][] = '<meta property="og:description" content="'.$metaDescription.'">';
  13. if ($this->entry['image_path']) $GLOBALS['TL_HEAD'][] = '<meta property="og:image" content="'.$this->replaceInsertTags('{{env::url}}').'/'.$this->entry['image_path'].'">';
  14. else $GLOBALS['TL_HEAD'][] = '<meta property="og:image" content="'.$this->replaceInsertTags('{{env::url}}').'/files/layout/images/hideaway4you_logo.png">';
  15. ?>
  16. <div class="container">
  17. <div class="<?php echo $this->class; ?> reader block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
  18. <div class="row">
  19. <div class="col-md-6">
  20. <h2>Warum <?= $this->entry['row']['title'] ?> das perfekte Reiseziel für Familien ist</h2>
  21. <div class="description">
  22. <?= $this->entry['row']['description'] ?>
  23. </div>
  24. </div>
  25. <div class="col-md-6 pt-5">
  26. <?php if ($this->entry['row']['highlight']): ?>
  27. <div class="box-highlight">
  28. <h3>Highlights</h3>
  29. <div class="has-checklist type-check-filled">
  30. <?= (substr($this->entry['row']['highlight'], 0, 1) == '<' ? $this->entry['row']['highlight'] : nl2br($this->entry['row']['highlight'])) ?>
  31. </div>
  32. </div>
  33. <?php endif ?>
  34. <?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 ?>
  35. </div>
  36. </div>
  37. <?php /* Gut zu wissen Box
  38. <?php if ($this->entry['row']['worth_knowing_teaser']): ?>
  39. <section class="worth-knowing my-4">
  40. <div class="box-info d-flex gap-3 p-4">
  41. <div class="shrink-0">
  42. <i class="icon-info-circle fs-3"></i>
  43. </div>
  44. <div>
  45. <h3 class="mt-0">Gut zu wissen</h3>
  46. <?= $this->entry['row']['worth_knowing_teaser'] ?>
  47. <?php if ($this->entry['row']['worth_knowing']): ?>
  48. <div class="worth-knowing__more mt-2">
  49. <?= $this->entry['row']['worth_knowing'] ?>
  50. </div>
  51. <?php endif ?>
  52. </div>
  53. </div>
  54. </section>
  55. <?php endif ?>
  56. */ ?>
  57. <!-- Kundenbewertungen -->
  58. {{insert_content::357}}
  59. <!-- Steps -->
  60. {{insert_content::412}}
  61. <!-- CTA Box -->
  62. <section class="cta_box <?= $this->class ?> my-4"<?= $this->cssID ?>>
  63. <div class="cta_box__inner">
  64. <div class="bg-yellow-soft p-4 d-md-flex align-items-center gap-y-2">
  65. <div class="col-md-6">
  66. <div class="text-center">
  67. <h2 class="cta_box__headline mt-0">Infos & Preise für eure <?= $this->entry['row']['title'] ?>-Reise?</h2>
  68. </div>
  69. </div>
  70. <div class="col-md-6 mt-3 mt-md-0">
  71. <div class="text-center">
  72. <div class="cta_box__buttons">
  73. <a href="{{link_url::kontakt}}?subject=<?= urlencode($this->entry['row']['title']) ?>" class="btn btn-secondary">Infos & Preise unverbindlich anfordern</a>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </section>
  80. <!-- Bereich oben: Custom Content oberhalb der Hotels -->
  81. <?php if ($this->regionContentTop): ?>
  82. <div class="region-content-top">
  83. <?= $this->regionContentTop ?>
  84. </div>
  85. <?php endif ?>
  86. <?php if ($this->hotels): ?>
  87. <div class="regions mt-4 mt-md-5 mt-lg-6">
  88. <h2 class="center">Hotels</h2>
  89. <div class="flexslider">
  90. <ul>
  91. <?php foreach($this->hotels as $hotel): ?>
  92. <li class="hotel">
  93. <div class="inner">
  94. <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>
  95. <div class="typo_wrap">
  96. <h3><?= $hotel['row']['title'] ?></h3>
  97. <?= (substr($hotel['row']['teaser'], 0, 1) == '<' ? $hotel['row']['teaser'] : '<p class="teaser">'.nl2br($hotel['row']['teaser']).'</p>') ?>
  98. </div>
  99. <p class="more"><a href="<?= $hotel['url'] ?>" class="btn btn-default btn-sm"><span>mehr</span></a></p>
  100. </div>
  101. </li>
  102. <?php endforeach ?>
  103. </ul>
  104. </div>
  105. </div>
  106. <?php endif ?>
  107. <!-- Rundreisen -->
  108. <?php $this->insert('ce_hideaway_travels', ['travels' => $this->travels, 'class' => $this->class, 'country' => $this->entry['row']['title']]) ?>
  109. <?php /*
  110. <?php if ($this->trips): ?>
  111. <div class="trips">
  112. <h2 class="center">Ausflüge</h2>
  113. <div class="flexslider">
  114. <ul>
  115. <?php foreach($this->trips as $trip): ?>
  116. <li class="region">
  117. <div class="inner">
  118. <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>
  119. <div class="typo_wrap">
  120. <h3><?= $trip['row']['title'] ?></h3>
  121. <?= (substr($trip['row']['teaser'], 0, 1) == '<' ? $trip['row']['teaser'] : '<p class="teaser">'.nl2br($trip['row']['teaser']).'</p>') ?>
  122. </div>
  123. <p class="more"><a href="<?= $trip['url'] ?>" class="btn btn-default btn-sm"><span>mehr</span></a></p>
  124. </div>
  125. </li>
  126. <?php endforeach ?>
  127. </ul>
  128. </div>
  129. </div>
  130. <?php endif ?>
  131. <?php if ($this->combis): ?>
  132. <div class="combis combis_list">
  133. <h2 class="center">Kombinationsreisen</h2>
  134. <div class="flexslider">
  135. <ul id="hideaway_list">
  136. <?php foreach($this->combis as $entry): ?>
  137. <li class="entry mix <?= $entry['type'] ?> <?= 'region_id_'.($entry['row']['region'] ? $entry['row']['region'] : $entry['row']['main_region']) ?>">
  138. <div class="inner">
  139. <div class="type">Kombinationsreise</div>
  140. <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>
  141. <div class="typo_wrap">
  142. <h2><?= $entry['row']['title'] ?></h2>
  143. <?= (substr($entry['row']['teaser'], 0, 1) == '<' ? $entry['row']['teaser'] : '<p class="teaser">'.nl2br($entry['row']['teaser']).'</p>') ?>
  144. </div>
  145. <p class="more"><a href="<?= $entry['url'] ?>" class="btn btn-default btn-sm"><span>mehr</span></a></p>
  146. </div>
  147. </li>
  148. <?php endforeach ?>
  149. </ul>
  150. </div>
  151. </div>
  152. <?php endif; ?>
  153. */ ?>
  154. <!-- Ausflüge -->
  155. <?php $this->insert('ce_hideaway_trips', ['trips' => $this->trips, 'class' => $this->class, 'country' => $this->entry['row']['title']]) ?>
  156. <!-- Kombinationsreisen -->
  157. <?php $this->insert('ce_hideaway_combis', ['combis' => $this->combis, 'class' => $this->class, 'country' => $this->entry['row']['title']]) ?>
  158. <!-- Bereich unten: Custom Content unterhalb der Produkte -->
  159. <?php if ($this->regionContentBottom): ?>
  160. <div class="region-content-bottom">
  161. <?= $this->regionContentBottom ?>
  162. </div>
  163. <?php endif ?>
  164. </div>
  165. </div>
  166. <!-- Form -->
  167. {{insert_content::360}}
  168. <script>
  169. var subject = '<?= $this->entry['row']['title'] ?>';
  170. document.addEventListener('DOMContentLoaded', function() {
  171. var form = document.querySelector('.form_inquiry');
  172. if (form) {
  173. var subjectField = form.querySelector('input[name="thema"]');
  174. if (subjectField) {
  175. subjectField.value = subject;
  176. subjectField.parentElement.classList.add('floating-label--focused');
  177. }
  178. }
  179. });
  180. </script>
  181. <!-- FAQ -->
  182. <div class="bg-default-10 py-4 py-md-5">
  183. <div class="container">
  184. {{insert_article::89}}
  185. </div>
  186. </div>