system/modules/hideaway/templates/ce_hideaway_combi_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'] : 'Kombinationsreise '.$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 /* <p class="meta_info"><span>Dauer: <?= $this->entry['row']['duration'] ?> Tage</span></p> */ ?>
  51. <?php if ($this->entry['row']['teaser']): ?>
  52. <div class="highlights">
  53. <h4>Highlights</h4>
  54. <?= (substr($this->entry['row']['teaser'], 0, 1) == '<' ? $this->entry['row']['teaser'] : nl2br($this->entry['row']['teaser'])) ?>
  55. </div>
  56. <?php endif ?>
  57. <?php if ($this->entry['row']['testimonial']): ?>
  58. <div class="testimonial">
  59. <article>"<?= $this->entry['row']['testimonial'] ?>"</article>
  60. <author><?= $this->entry['row']['testimonial_author'] ?></author>
  61. </div>
  62. <?php endif ?>
  63. <ul class="cta">
  64. <li><a href="{{link_url::4}}?object=Kombinationsreise <?= $this->entry['row']['title'] ?>" class="btn orange">Kontaktieren Sie uns!</a></li>
  65. <li class="watchlist_btns"><a href="javascript:;" data-rel-type="combi" 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>
  66. <a style="display:none;" href="javascript:;" data-rel-type="combi" 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>
  67. </ul>
  68. {{file::hideaway4you/inc.like_toolbar.php?media=<?= $this->replaceInsertTags('{{env::url}}').'/'.$this->entry['image_path'] ?>}}
  69. </div>
  70. </div>
  71. <div class="description cols-2">
  72. <?= $this->entry['row']['description'] ?>
  73. </div>
  74. <?php if ($this->entry['row']['worth_knowing']): ?>
  75. <div class="box worth_knowing fullwith">
  76. <i class="icon-info-circle"></i>
  77. <div class="wrap">
  78. <?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 ?>
  79. <h3>Infos zur Kombinationsreise <?php /* <span class="meta_info">Dauer: <?= $this->entry['row']['duration'] ?> Tage</span> */ ?></h3>
  80. <div class="cols-2">
  81. <?= $this->entry['row']['worth_knowing'] ?>
  82. </div>
  83. </div>
  84. </div>
  85. <?php endif ?>
  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['title'] ?></div>
  94. <figure><a href="<?= $station['obj']['url'] ?>"><img src="<?= ($station['obj']['image_path'] ? $this->getImage($station['obj']['image_path'], 380,250, 'center_center') : 'files/layout/images/no_image.jpg'); ?>" alt="<?= $station['obj']['image_meta']['de']['title'] ?>"></a></figure>
  95. <div class="typo_wrap">
  96. <h3><?= $station['obj']['row']['title'] ?></h3>
  97. <?= (substr($station['obj']['row']['teaser'], 0, 1) == '<' ? $station['obj']['row']['teaser'] : '<p class="teaser">'.nl2br($station['obj']['row']['teaser']).'</p>') ?>
  98. </div>
  99. <p class="more"><a href="<?= $station['obj']['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. </div>
  107. <?php // var_dump($this->entry['row']);