<?php
$types = array(
'hotel' => 'Hotel',
'trip' => 'Ausflug',
'travel' => 'Rundreise',
'combi' => 'Kombinationsreise'
);
?>
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
<?php
if ($this->experience) {
$title = ($this->experience['row']['headline'] ? $this->experience['row']['headline'] : $this->experience['row']['title']);
$description = $this->experience['row']['description'];
} elseif ($this->target) {
$title = ($this->target['row']['headline'] ? $this->target['row']['headline'] : $this->target['row']['title']);
$description = $this->target['row']['teaser_list'];
}
if (isset($this->experience) || isset($this->target)):
if ($this->dont_modify_meta == false)
{
global $objPage;
$objPage->pageTitle = $title;
$GLOBALS['TL_HEAD'][] = '<meta property="og:title" content="'.$title.'">';
$GLOBALS['TL_HEAD'][] = '<meta property="og:url" content="'.$this->replaceInsertTags('{{env::url}}').'/'.$this->replaceInsertTags('{{env::request}}').'">';
}
?>
<?php if ($title): ?><h1><?= $title; ?></h1><?php endif ?>
<?php if ($description): ?><div class="description narrow"><?php echo $description; ?></div><?php endif ?>
<?php endif; ?>
<?php if (count($this->entries)): ?>
<ul id="hideaway_list">
<?php foreach($this->entries as $entry): ?>
<li class="entry mix <?= $entry['type'] ?> <?= 'region_id_'.($entry['row']['region'] ? $entry['row']['region'] : $entry['row']['main_region']) ?>">
<div class="inner">
<div class="type"><?= $types[$entry['type']] ?></div>
<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>
<div class="typo_wrap">
<h2><?php echo $entry['row']['title'] ?></h2>
<?= (substr($entry['row']['teaser'], 0, 1) == '<' ? $entry['row']['teaser'] : '<p class="teaser">'.nl2br($entry['row']['teaser']).'</p>') ?>
</div>
<p class="more"><a href="<?php echo $entry['url'] ?>" class="btn btn-default btn-sm"><span>mehr</span></a></p>
</div>
</li>
<?php endforeach ?>
</ul>
<?php else: ?>
<p class="no_result msg">Leider keine passenden Treffer gefunden.</p>
<?php endif; ?>
</div>