<?php /* Smarty version 2.6.26, created on 2017-03-20 01:44:33
         compiled from blocks/featured.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'rlHook', 'blocks/featured.tpl', 3, false),array('modifier', 'cat', 'blocks/featured.tpl', 19, false),array('modifier', 'regex_replace', 'blocks/featured.tpl', 32, false),)), $this); ?>
<!-- featured listings block -->

<?php echo rlHook::load(array('name' => 'featuredTop'), $this);?>


<?php $this->assign('page_key', $this->_tpl_vars['listing_types'][$this->_tpl_vars['type']]['Page_key']); ?>

<?php if (! empty ( $this->_tpl_vars['listings'] )): ?>

    <?php if (! $this->_tpl_vars['type']): ?>
        <?php $this->assign('direct_type', true); ?>
    <?php endif; ?>

	<ul class="row featured clearfix<?php if (! $this->_tpl_vars['type'] || $this->_tpl_vars['listing_types'][$this->_tpl_vars['type']]['Photo']): ?> with-pictures<?php else: ?> list<?php endif; ?>"><?php echo ''; ?><?php $_from = $this->_tpl_vars['listings']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['listingsF'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['listingsF']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['featured_listing']):
        $this->_foreach['listingsF']['iteration']++;
?><?php echo ''; ?><?php if ($this->_tpl_vars['direct_type']): ?><?php echo ''; ?><?php $this->assign('type', $this->_tpl_vars['featured_listing']['Listing_type']); ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=((is_array($_tmp='blocks')) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'featured_item.tpl') : smarty_modifier_cat($_tmp, 'featured_item.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><?php echo ''; ?><?php endforeach; endif; unset($_from); ?><?php echo ''; ?>
</ul>

<?php else: ?>

	<?php if ($this->_tpl_vars['listing_types'][$this->_tpl_vars['type']]['Page']): ?>
		<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?>
			<?php $this->assign('href', ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['rlBase'])) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['pages']['add_listing']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['pages']['add_listing'])))) ? $this->_run_mod_handler('cat', true, $_tmp, '.html') : smarty_modifier_cat($_tmp, '.html'))); ?>
		<?php else: ?>
			<?php $this->assign('href', ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['rlBase'])) ? $this->_run_mod_handler('cat', true, $_tmp, '?page=') : smarty_modifier_cat($_tmp, '?page=')))) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['pages']['add_listing']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['pages']['add_listing']))); ?>
		<?php endif; ?>
		<?php $this->assign('link', ((is_array($_tmp=((is_array($_tmp='<a href="')) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['href']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['href'])))) ? $this->_run_mod_handler('cat', true, $_tmp, '">$1</a>') : smarty_modifier_cat($_tmp, '">$1</a>'))); ?>
		<?php echo ((is_array($_tmp=$this->_tpl_vars['lang']['no_listings_here'])) ? $this->_run_mod_handler('regex_replace', true, $_tmp, '/\[(.+)\]/', $this->_tpl_vars['link']) : smarty_modifier_regex_replace($_tmp, '/\[(.+)\]/', $this->_tpl_vars['link'])); ?>

	<?php else: ?>
		<?php echo $this->_tpl_vars['lang']['no_listings_here_submit_deny']; ?>

	<?php endif; ?>
	
<?php endif; ?>

<!-- featured listings block end -->