system/modules/hideaway/templates/ce_hideaway_list.html5 line 37

Open in your IDE?
  1. <?php
  2. $types = array(
  3. 'hotel' => 'Hotel',
  4. 'trip' => 'Ausflug',
  5. 'travel' => 'Rundreise',
  6. 'combi' => 'Kombinationsreise'
  7. );
  8. ?>
  9. <div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
  10. <?php if ($this->headline): ?>
  11. <<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
  12. <?php endif; ?>
  13. <?php
  14. if ($this->experience) {
  15. $title = ($this->experience['row']['headline'] ? $this->experience['row']['headline'] : $this->experience['row']['title']);
  16. $description = $this->experience['row']['description'];
  17. } elseif ($this->target) {
  18. $title = ($this->target['row']['headline'] ? $this->target['row']['headline'] : $this->target['row']['title']);
  19. $description = $this->target['row']['teaser_list'];
  20. }
  21. if (isset($this->experience) || isset($this->target)):
  22. if ($this->dont_modify_meta == false)
  23. {
  24. global $objPage;
  25. $objPage->pageTitle = $title;
  26. $GLOBALS['TL_HEAD'][] = '<meta property="og:title" content="'.$title.'">';
  27. $GLOBALS['TL_HEAD'][] = '<meta property="og:url" content="'.$this->replaceInsertTags('{{env::url}}').'/'.$this->replaceInsertTags('{{env::request}}').'">';
  28. }
  29. ?>
  30. <?php if ($title): ?><h1><?= $title; ?></h1><?php endif ?>
  31. <?php if ($description): ?><div class="description narrow"><?php echo $description; ?></div><?php endif ?>
  32. <?php endif; ?>
  33. <?php if (count($this->entries)): ?>
  34. <ul id="hideaway_list">
  35. <?php foreach($this->entries as $entry): ?>
  36. <li class="entry mix <?= $entry['type'] ?> <?= 'region_id_'.($entry['row']['region'] ? $entry['row']['region'] : $entry['row']['main_region']) ?>">
  37. <div class="inner">
  38. <div class="type"><?= $types[$entry['type']] ?></div>
  39. <figure><a href="<?= $entry['url'] ?>"><img src="<?= ($entry['image_path'] ? $this->getImage($entry['image_path'], 570,375, 'center_center') : 'files/layout/images/no_image.jpg'); ?>" alt="<?= $entry['image_meta']['de']['title'] ?>"></a></figure>
  40. <div class="typo_wrap">
  41. <h2><?php echo $entry['row']['title'] ?></h2>
  42. <?= (substr($entry['row']['teaser'], 0, 1) == '<' ? $entry['row']['teaser'] : '<p class="teaser">'.nl2br($entry['row']['teaser']).'</p>') ?>
  43. </div>
  44. <p class="more"><a href="<?php echo $entry['url'] ?>" class="btn btn-default btn-sm"><span>mehr</span></a></p>
  45. </div>
  46. </li>
  47. <?php endforeach ?>
  48. </ul>
  49. <?php else: ?>
  50. <p class="no_result msg">Leider keine passenden Treffer gefunden.</p>
  51. <?php endif; ?>
  52. </div>