<?php
/**
* Contao Open Source CMS
*
* Copyright (C) 2005-2013 Leo Feyer
*
* @package Comments
* @link https://contao.org
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Run in a custom namespace, so the class can be replaced
*/
namespace hideaway;
/**
* Class CeHideawayList
*
* @copyright Leo Feyer 2005-2013
* @author Leo Feyer <https://contao.org>
* @package Comments
*/
class CeHideawayExperienceList extends \ContentElement
{
/**
* Template
* @var string
*/
protected $strTemplate = 'ce_hideaway_experience_list';
/**
* Display a wildcard in the back end
* @return string
*/
public function generate()
{
if (TL_MODE == 'BE')
{
$objTemplate = new \BackendTemplate('be_wildcard');
$objTemplate->wildcard = '### Hideaway Experience List ###';
$objTemplate->title = $this->headline;
return $objTemplate->parse();
}
return parent::generate();
}
/**
* Generate the module
*/
protected function compile()
{
global $objPage;
$this->import('Hideaway');
$this->Template->entries = $this->Hideaway->getNavigationExperience($this->hideaway_jumpto, $this->hideaway_filter_target);
}
}