system/modules/hideaway/templates/ce_hideaway_country_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'] : 'Reiseziel '.$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_'.$_COOKIE['target']] ? $this->entry['row']['description_'.$_COOKIE['target']] : $this->entry['row']['description_family']) ?>
  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. <!-- Kundenbewertungen -->
  38. {{insert_content::357}}
  39. <!-- Steps -->
  40. {{insert_content::412}}
  41. <!-- Bereich oben: Custom Content oberhalb der Regionen -->
  42. <?php if ($this->countryContentTop): ?>
  43. <div class="country-content-top">
  44. <?= $this->countryContentTop ?>
  45. </div>
  46. <?php endif ?>
  47. <!-- CTA Box -->
  48. <section class="cta_box <?= $this->class ?> my-4"<?= $this->cssID ?>>
  49. <div class="cta_box__inner">
  50. <div class="bg-yellow-soft p-4 d-md-flex align-items-center gap-y-2">
  51. <div class="col-md-6">
  52. <div class="text-center">
  53. <h2 class="cta_box__headline mt-0">Infos & Preise für eure <?= $this->entry['row']['title'] ?>-Reise?</h2>
  54. </div>
  55. </div>
  56. <div class="col-md-6 mt-3 mt-md-0">
  57. <div class="text-center">
  58. <div class="cta_box__buttons">
  59. <a href="{{link_url::kontakt}}?subject=<?= urlencode($this->entry['row']['title']) ?>" class="btn btn-secondary">Infos & Preise unverbindlich anfordern</a>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </section>
  66. <!-- REGIONS -->
  67. <?php $this->insert('ce_hideaway_regions', ['regions' => $this->regions, 'isSingleRegion' => $this->isSingleRegion, 'class' => $this->class, 'country' => $this->entry['row']['title']]) ?>
  68. <!-- REGIONS END -->
  69. <!-- Newsletter -->
  70. {{insert_content::359}}
  71. <!-- Hotel -->
  72. <?php if ($this->hotels): ?>
  73. <div class="hotels mt-4 mt-md-5 mt-lg-6">
  74. <h2 class="center">Kinderfreundliche Unterkünfte in <?= $this->entry['row']['title'] ?></h2>
  75. <div class="flexslider">
  76. <ul>
  77. <?php foreach($this->hotels as $hotel): ?>
  78. <li class="hotel">
  79. <div class="inner">
  80. <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>
  81. <div class="typo_wrap">
  82. <h3><?= $hotel['row']['title'] ?></h3>
  83. <?= (substr($hotel['row']['teaser'], 0, 1) == '<' ? $hotel['row']['teaser'] : '<p class="teaser">'.nl2br($hotel['row']['teaser']).'</p>') ?>
  84. </div>
  85. <p class="more"><a href="<?= $hotel['url'] ?>" class="btn btn-default btn-sm"><span>mehr</span></a></p>
  86. </div>
  87. </li>
  88. <?php endforeach ?>
  89. </ul>
  90. </div>
  91. </div>
  92. <?php endif ?>
  93. <!-- Rundreisen -->
  94. <?php if ($this->travels): ?>
  95. <div class="travels">
  96. <h2 class="center">Rundreisen für Familien</h2>
  97. <div class="flexslider">
  98. <ul>
  99. <?php foreach($this->travels as $travel): ?>
  100. <li class="region">
  101. <div class="inner">
  102. <figure><a href="<?= $travel['url'] ?>"><img src="<?= ($travel['image_path'] ? $this->getImage($travel['image_path'], 380,250, 'center_center') : 'files/layout/images/no_image.jpg'); ?>"></a></figure>
  103. <div class="typo_wrap">
  104. <h3><span><?= $travel['row']['title'] ?></span></h3>
  105. <?= (substr($travel['row']['teaser'], 0, 1) == '<' ? $travel['row']['teaser'] : '<p class="teaser">'.nl2br($travel['row']['teaser']).'</p>') ?>
  106. </div>
  107. <p class="more"><a href="<?= $travel['url'] ?>" class="btn btn-default btn-sm"><span>mehr</span></a></p>
  108. </div>
  109. </li>
  110. <?php endforeach ?>
  111. </ul>
  112. </div>
  113. </div>
  114. <?php endif ?>
  115. <!-- Kombinationsreisen -->
  116. <?php $this->insert('ce_hideaway_combis', ['combis' => $this->combis, 'class' => $this->class, 'country' => $this->entry['row']['title']]) ?>
  117. <!-- Ausflüge -->
  118. <?php $this->insert('ce_hideaway_trips', ['trips' => $this->trips, 'class' => $this->class, 'country' => $this->entry['row']['title']]) ?>
  119. <!-- Bereich unten: Custom Content unterhalb der Produkte -->
  120. <?php if ($this->countryContentBottom): ?>
  121. <div class="country-content-bottom">
  122. <?= $this->countryContentBottom ?>
  123. </div>
  124. <?php endif ?>
  125. </div>
  126. </div>
  127. <!-- Form -->
  128. {{insert_content::360}}
  129. <script>
  130. var subject = '<?= $this->entry['row']['title'] ?>';
  131. document.addEventListener('DOMContentLoaded', function() {
  132. var form = document.querySelector('.form_inquiry');
  133. if (form) {
  134. var subjectField = form.querySelector('input[name="thema"]');
  135. if (subjectField) {
  136. subjectField.value = subject;
  137. subjectField.parentElement.classList.add('floating-label--focused');
  138. }
  139. }
  140. });
  141. </script>
  142. <!-- FAQ -->
  143. {{insert_article::89}}