system/modules/hideaway/templates/ce_hideaway_hotel_reader.html5 line 8

Open in your IDE?
  1. <?php
  2. global $objPage;
  3. $metaTitle = ($this->entry['row']['meta_title'] ? $this->entry['row']['meta_title'] : 'Hotel '.$this->entry['row']['title']);
  4. $metaKeywords = $this->entry['row']['meta_keywords'];
  5. $metaDescription = ($this->entry['row']['meta_description'] ? $this->entry['row']['meta_description'] : strip_tags($this->entry['row']['teaser']));
  6. $objPage->pageTitle = $metaTitle;
  7. $objPage->description = $metaDescription;
  8. $GLOBALS['TL_KEYWORDS'] = $metaKeywords;
  9. $GLOBALS['TL_HEAD'][] = '<meta property="og:title" content="'.$metaTitle.'">';
  10. $GLOBALS['TL_HEAD'][] = '<meta property="og:url" content="'.$this->replaceInsertTags('{{env::url}}').'/'.$this->replaceInsertTags('{{env::request}}').'">';
  11. $GLOBALS['TL_HEAD'][] = '<meta property="og:description" content="'.$metaDescription.'">';
  12. if ($this->entry['image_path']) $GLOBALS['TL_HEAD'][] = '<meta property="og:image" content="'.$this->replaceInsertTags('{{env::url}}').'/'.$this->entry['image_path'].'">';
  13. else $GLOBALS['TL_HEAD'][] = '<meta property="og:image" content="'.$this->replaceInsertTags('{{env::url}}').'/files/layout/images/hideaway4you_logo.png">';
  14. ?>
  15. <ul class="breadcrumb">
  16. <li class="first"><a href="/">Home</a></li>
  17. <?php foreach($this->entry['breadcrumb'] as $bce): ?>
  18. <li><a href="<?php echo $bce['url'] ?>"><?php echo $bce['title'] ?></a></li>
  19. <?php endforeach ?>
  20. <li class="last"><span><?php echo $this->entry['row']['title'] ?><span></li>
  21. </ul>
  22. <div class="<?php echo $this->class; ?> reader block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
  23. <div class="row">
  24. <div class="col-sm-6">
  25. <div class="gallery">
  26. <?php if ($this->entry['image_path']): ?>
  27. <figure class="main_image"><img src="<?php echo $this->getImage($this->entry['image_path'], 750, false, 'box'); ?>" alt="<?= $this->entry['image_meta']['de']['title'] ?>"></figure>
  28. <?php endif ?>
  29. <?php if($this->entry['gallery']): ?>
  30. <div class="thumbails_wrapper">
  31. <div class="flexslider thumbnails">
  32. <ul>
  33. <?php foreach($this->entry['gallery'] as $img): ?>
  34. <li><figure>
  35. <a href="<?php echo $img['path']; ?>" data-lightbox="gallery" rel="group_gallery" title="<?= $img['meta']['de']['caption'] ?>"><img src="<?php echo $this->getImage($img['path'], 165,110, 'center_center'); ?>" alt="<?= $img['meta']['de']['title'] ?>"></a></li>
  36. </figure>
  37. <?php endforeach ?>
  38. </ul>
  39. </div>
  40. </div>
  41. <?php endif ?>
  42. </div>
  43. </div>
  44. <div class="col-sm-6">
  45. <?php if ($this->headline): ?>
  46. <<?php echo $this->hl; ?> class="page_headline"><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
  47. <?php endif; ?>
  48. <h1><?= ($this->entry['row']['headline'] ? $this->entry['row']['headline'] : $this->entry['row']['title']) ?><?php if ($this->entry['row']['rating'] > 0): ?><span class="rating_widget val_<?= number_format($this->entry['row']['rating'], 1, '_', '') ?>"><span></span></span><?php endif ?></h1>
  49. <?php if ($this->entry['row']['address']): ?>
  50. <p class="address"><?= $this->entry['row']['address'] ?></p>
  51. <?php endif ?>
  52. <?php if ($this->entry['row']['teaser']): ?>
  53. <div class="highlights">
  54. <h4>Highlights</h4>
  55. <?= (substr($this->entry['row']['teaser'], 0, 1) == '<' ? $this->entry['row']['teaser'] : nl2br($this->entry['row']['teaser'])) ?>
  56. </div>
  57. <?php endif ?>
  58. <?php if ($this->entry['row']['testimonial']): ?>
  59. <div class="testimonial">
  60. <article>"<?= $this->entry['row']['testimonial'] ?>"</article>
  61. <author><?= $this->entry['row']['testimonial_author'] ?></author>
  62. </div>
  63. <?php endif ?>
  64. <ul class="cta">
  65. <li><a href="{{link_url::4}}?object=<?= $this->entry['row']['title'] ?>" class="btn orange">Kontaktieren Sie uns!</a></li>
  66. <li class="watchlist_btns"><a href="javascript:;" data-rel-type="hotel" data-rel-id="<?php echo $this->entry['row']['id'] ?>" onclick="addWatchlist(this);" class="btn blue watchlist_add"><i class="icon-bookmark-add"></i>Auf den Merkzettel</a>
  67. <a style="display:none;" href="javascript:;" data-rel-type="hotel" data-rel-id="<?php echo $this->entry['row']['id'] ?>" onclick="removeWatchlist(this);" class="btn blue watchlist_remove"><i class="icon-bookmark-trash"></i>Vom Merkzettel entfernen</a></li>
  68. </ul>
  69. {{file::hideaway4you/inc.like_toolbar.php?media=<?= $this->replaceInsertTags('{{env::url}}').'/'.$this->entry['image_path'] ?>}}
  70. </div>
  71. </div>
  72. <div class="description cols-2">
  73. <?= $this->entry['row']['description'] ?>
  74. </div>
  75. <?php if ($this->entry['row']['worth_knowing']): ?>
  76. <div class="box worth_knowing fullwith">
  77. <i class="icon-info-circle"></i>
  78. <div class="wrap">
  79. <?php if ($this->entry['row']['video']): ?><a href="https://www.youtube.com/embed/<?= $this->entry['row']['video'] ?>?autoplay=1" class="btn video ico_only fancybox fancybox.iframe"><i class="icon-camera-movie"></i></a><?php endif ?>
  80. <h3>Infos zum Hotel</h3>
  81. <div class="cols-2">
  82. <?= $this->entry['row']['worth_knowing'] ?>
  83. </div>
  84. </div>
  85. </div>
  86. <?php endif ?>
  87. <?php if (count($this->related) > 1): ?>
  88. <div class="regions">
  89. <h2 class="center">Weitere Hotels</h2>
  90. <div class="flexslider">
  91. <ul>
  92. <?php foreach($this->related as $hotel):
  93. if ($this->entry['row']['title'] != $hotel['row']['title']): ?>
  94. <li class="hotel">
  95. <div class="inner">
  96. <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'); ?>" alt="<?= $hotel['image_meta']['de']['title'] ?>"></a></figure>
  97. <div class="typo_wrap">
  98. <h3><?= $hotel['row']['title'] ?></h3>
  99. <?= (substr($hotel['row']['teaser'], 0, 1) == '<' ? $hotel['row']['teaser'] : '<p class="teaser">'.nl2br($hotel['row']['teaser']).'</p>') ?>
  100. </div>
  101. <p class="more"><a href="<?= $hotel['url'] ?>" class="btn btn-default btn-sm"><span>mehr</span></a></p>
  102. </div>
  103. </li>
  104. <?php endif; endforeach ?>
  105. </ul>
  106. </div>
  107. </div>
  108. <?php endif ?>
  109. </div>