advert()->findBySection('slider', true);
$nbAdverts = count($adverts);
$activeClass = 'active';
if ($nbAdverts > 0) {
?>
advert($advert)->display(); ?>
renderHtml($this->settings['home_page_html']); ?>
settings['hpfeat_nb']) {
$tabs[] = array(
'type' => 'homepage',
'show' => 'featured',
'title' => $this->_('Featured Listings'),
'limit' => $this->settings['hpfeat_nb'],
'carousel' => (bool)$this->settings['hpfeat_carousel'],
'class' => $this->settings['hpfeat_box'],
'tabbed' => $this->settings['hpfeat_tabbed'],
);
}
if ($this->settings['recent_nb']) {
$tabs[] = array(
'type' => 'recent',
'title' => $this->_('Recently Listed'),
'limit' => $this->settings['recent_nb'],
'carousel' => (bool)$this->settings['recent_carousel'],
'class' => $this->settings['recent_box'],
'tabbed' => $this->settings['recent_tabbed'],
);
}
if ($this->settings['ending_nb']) {
$tabs[] = array(
'type' => 'ending',
'title' => $this->_('Ending Soon'),
'limit' => $this->settings['ending_nb'],
'carousel' => (bool)$this->settings['ending_carousel'],
'class' => $this->settings['ending_box'],
'tabbed' => $this->settings['ending_tabbed'],
);
}
if ($this->settings['popular_nb']) {
$tabs[] = array(
'type' => 'popular',
'title' => $this->_('Popular Listings'),
'limit' => $this->settings['popular_nb'],
'carousel' => (bool)$this->settings['popular_carousel'],
'class' => $this->settings['popular_box'],
'tabbed' => $this->settings['popular_tabbed'],
);
}
if (count($tabs) > 0) {
foreach ($tabs as $tab) {
if (!$tab['tabbed']) {
?>
action('listings', 'browse', 'listings',
array(
'type' => $tab['type'],
'carousel' => $tab['carousel'],
'class' => $tab['class'],
'limit' => $tab['limit'])); ?>
action('listings', 'browse', 'listings',
array(
'type' => $tab['type'],
'carousel' => $tab['carousel'],
'class' => $tab['class'],
'limit' => $tab['limit'])); ?>