system/modules/hideaway/templates/ce_hideaway_trip_reader.html5 line 36

Open in your IDE?
  1. <?php
  2. global $objPage;
  3. $metaTitle = ($this->entry['row']['meta_title'] ? $this->entry['row']['meta_title'] : 'Ausflug '.$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']) ?></h1>
  49. <p class="info"><?= $this->entry['row']['info'] ?></p>
  50. <?php if ($this->entry['row']['teaser']): ?>
  51. <div class="highlights">
  52. <h4>Highlights</h4>
  53. <?= (substr($this->entry['row']['teaser'], 0, 1) == '<' ? $this->entry['row']['teaser'] : nl2br($this->entry['row']['teaser'])) ?>
  54. </div>
  55. <?php endif ?>
  56. <?php if ($this->entry['row']['testimonial']): ?>
  57. <div class="testimonial">
  58. <article>"<?= $this->entry['row']['testimonial'] ?>"</article>
  59. <author><?= $this->entry['row']['testimonial_author'] ?></author>
  60. </div>
  61. <?php endif ?>
  62. <ul class="cta">
  63. <li><a href="{{link_url::4}}?object=Ausflug <?= $this->entry['row']['title'] ?>" class="btn orange">Kontaktieren Sie uns!</a></li>
  64. <li class="watchlist_btns"><a href="javascript:;" data-rel-type="trip" 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>
  65. <a style="display:none;" href="javascript:;" data-rel-type="trip" 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>
  66. </ul>
  67. {{file::hideaway4you/inc.like_toolbar.php?media=<?= $this->replaceInsertTags('{{env::url}}').'/'.$this->entry['image_path'] ?>}}
  68. </div>
  69. </div>
  70. <div class="description cols-2">
  71. <?= $this->entry['row']['description'] ?>
  72. </div>
  73. <?php if ($this->entry['row']['worth_knowing']): ?>
  74. <div class="box worth_knowing fullwith">
  75. <i class="icon-info-circle"></i>
  76. <div class="wrap">
  77. <?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 ?>
  78. <h3>Infos zum Ausflug</h3>
  79. <div class="cols-2">
  80. <?= $this->entry['row']['worth_knowing'] ?>
  81. </div>
  82. </div>
  83. </div>
  84. <?php endif ?>
  85. <?php if ($this->entry['stations']): ?>
  86. <div class="stations">
  87. <h2 class="center">Stationen</h2>
  88. <div class="flexslider">
  89. <ul>
  90. <?php foreach($this->entry['stations'] as $station): ?>
  91. <li class="station <?= $station['type'] ?>">
  92. <div class="inner">
  93. <div class="day"><?= $station['pos'] ?></div>
  94. <figure><a href="<?= $station['image_path'] ?>" data-lightbox="station" rel="group_station" title="<?= $station['image_meta']['de']['caption'] ?>"><img src="<?= ($station['image_path'] ? $this->getImage($station['image_path'], 380,250, 'center_center') : 'files/layout/images/no_image.jpg'); ?>" alt="<?= $station['image_meta']['de']['title'] ?>"></a></figure>
  95. <div class="typo_wrap">
  96. <h3><?= $station['location'] ?></h3>
  97. <?= (substr($station['teaser'], 0, 1) == '<' ? $station['teaser'] : '<p class="teaser">'.nl2br($station['teaser']).'</p>') ?>
  98. </div>
  99. </div>
  100. </li>
  101. <?php endforeach ?>
  102. </ul>
  103. </div>
  104. </div>
  105. <?php endif ?>
  106. </div>