<?php /* Smarty version 2.6.26, created on 2020-06-25 13:11:46
         compiled from blocks/featured_item.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'rlHook', 'blocks/featured_item.tpl', 24, false),array('modifier', 'strip_tags', 'blocks/featured_item.tpl', 39, false),array('modifier', 'in_array', 'blocks/featured_item.tpl', 61, false),)), $this); ?>
<?php echo ''; ?><?php 
global $page_info;

$block = $this -> get_template_vars('block');
$side_bar_exists = $this -> get_template_vars('side_bar_exists');
$class = 'col-md-3 col-sm-4';

if ($page_info['Key'] == 'home') {
	if (in_array($block['Side'], array('middle_left', 'middle_right'))) {
		$class = 'col-md-6 col-sm-4';
	}
} else {
	if ( in_array($block['Side'], array('middle', 'bottom', 'top'))) {
		$class = $side_bar_exists ? 'col-sm-4' : 'col-md-3 col-sm-4';
	} elseif (in_array($block['Side'], array('middle_left', 'middle_right'))) {
		$class = 'col-md-12 col-sm-4';
	}
}

$this -> assign('box_item_class', $class);
 ?><?php echo ''; ?><?php echo rlHook::load(array('name' => 'featuredItemTop'), $this);?><?php echo '<li '; ?><?php if ($this->_tpl_vars['featured_listing']['ID']): ?><?php echo 'id="fli_'; ?><?php echo $this->_tpl_vars['featured_listing']['ID']; ?><?php echo '"'; ?><?php endif; ?><?php echo ' class="'; ?><?php echo $this->_tpl_vars['box_item_class']; ?><?php echo ''; ?><?php if (! $this->_tpl_vars['featured_listing']['Main_photo']): ?><?php echo ' no-picture'; ?><?php endif; ?><?php echo '">'; ?><?php if ($this->_tpl_vars['listing_types'][$this->_tpl_vars['type']]['Photo']): ?><?php echo '<div class="picture"><a title="'; ?><?php echo $this->_tpl_vars['featured_listing']['listing_title']; ?><?php echo '" '; ?><?php if ($this->_tpl_vars['config']['featured_new_window']): ?><?php echo 'target="_blank"'; ?><?php endif; ?><?php echo ' href="'; ?><?php echo $this->_tpl_vars['featured_listing']['url']; ?><?php echo '"><img src="'; ?><?php if ($this->_tpl_vars['featured_listing']['Main_photo']): ?><?php echo ''; ?><?php echo @RL_FILES_URL; ?><?php echo ''; ?><?php echo $this->_tpl_vars['featured_listing']['Main_photo']; ?><?php echo ''; ?><?php else: ?><?php echo ''; ?><?php echo $this->_tpl_vars['rlTplBase']; ?><?php echo 'img/blank_10x7.gif'; ?><?php endif; ?><?php echo '"'; ?><?php if ($this->_tpl_vars['featured_listing']['Main_photo_x2']): ?><?php echo 'srcset="'; ?><?php echo @RL_FILES_URL; ?><?php echo ''; ?><?php echo $this->_tpl_vars['featured_listing']['Main_photo_x2']; ?><?php echo ' 2x"'; ?><?php endif; ?><?php echo 'alt="'; ?><?php echo $this->_tpl_vars['featured_listing']['listing_title']; ?><?php echo '" />'; ?><?php echo rlHook::load(array('name' => 'tplFeaturedItemPhoto'), $this);?><?php echo '</a></div>'; ?><?php endif; ?><?php echo '<ul class="ad-info"><li class="title" title="'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['featured_listing']['fields']['title']['value'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)); ?><?php echo '"><a class="ad-link" '; ?><?php if ($this->_tpl_vars['config']['featured_new_window']): ?><?php echo 'target="_blank"'; ?><?php endif; ?><?php echo ' href="'; ?><?php echo $this->_tpl_vars['featured_listing']['url']; ?><?php echo '">'; ?><?php echo $this->_tpl_vars['featured_listing']['listing_title']; ?><?php echo '</a></li>'; ?><?php if ($this->_tpl_vars['featured_listing']['fields']['bedrooms']['value'] || $this->_tpl_vars['featured_listing']['fields']['bathrooms']['value'] || $this->_tpl_vars['featured_listing']['fields']['square_feet']['value']): ?><?php echo '<li class="services">'; ?><?php echo ''; ?><?php if ($this->_tpl_vars['featured_listing']['fields']['bedrooms']['value']): ?><?php echo '<span title="'; ?><?php echo $this->_tpl_vars['featured_listing']['fields']['bedrooms']['name']; ?><?php echo '" class="badrooms">'; ?><?php echo $this->_tpl_vars['featured_listing']['fields']['bedrooms']['value']; ?><?php echo '</span>'; ?><?php endif; ?><?php echo ''; ?><?php if ($this->_tpl_vars['featured_listing']['fields']['bathrooms']['value']): ?><?php echo '<span title="'; ?><?php echo $this->_tpl_vars['featured_listing']['fields']['bathrooms']['name']; ?><?php echo '" class="bathrooms">'; ?><?php echo $this->_tpl_vars['featured_listing']['fields']['bathrooms']['value']; ?><?php echo '</span>'; ?><?php endif; ?><?php echo ''; ?><?php if ($this->_tpl_vars['featured_listing']['fields']['square_feet']['value']): ?><?php echo '<span title="'; ?><?php echo $this->_tpl_vars['featured_listing']['fields']['square_feet']['name']; ?><?php echo '" class="square_feet">'; ?><?php echo $this->_tpl_vars['featured_listing']['fields']['square_feet']['value']; ?><?php echo '</span>'; ?><?php endif; ?><?php echo ''; ?><?php echo '</li>'; ?><?php endif; ?><?php echo '<li class="fields">'; ?><?php $_from = $this->_tpl_vars['featured_listing']['fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['fieldsF'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['fieldsF']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['field'] => $this->_tpl_vars['item']):
        $this->_foreach['fieldsF']['iteration']++;
?><?php echo ''; ?><?php if (empty ( $this->_tpl_vars['item']['value'] ) || ! $this->_tpl_vars['item']['Details_page'] || ( $this->_tpl_vars['item']['Key'] == $this->_tpl_vars['config']['price_tag_field'] || ((is_array($_tmp=$this->_tpl_vars['item']['Key'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['tpl_settings']['listing_grid_except_fields']) : in_array($_tmp, $this->_tpl_vars['tpl_settings']['listing_grid_except_fields'])) )): ?><?php echo ''; ?><?php continue; ?><?php echo ''; ?><?php endif; ?><?php echo '<span id="flf_'; ?><?php echo $this->_tpl_vars['featured_listing']['ID']; ?><?php echo '_'; ?><?php echo $this->_tpl_vars['item']['Key']; ?><?php echo '">'; ?><?php echo $this->_tpl_vars['item']['value']; ?><?php echo '</span>'; ?><?php endforeach; endif; unset($_from); ?><?php echo '</li><li class="two-inline price_tag"><nav id="fav_'; ?><?php echo $this->_tpl_vars['featured_listing']['ID']; ?><?php echo '" class="favorite add" title="'; ?><?php echo $this->_tpl_vars['lang']['add_to_favorites']; ?><?php echo '"><span class="icon"></span></span></nav>'; ?><?php if ($this->_tpl_vars['featured_listing']['fields'][$this->_tpl_vars['config']['price_tag_field']]['value']): ?><?php echo '<div><span>'; ?><?php echo $this->_tpl_vars['featured_listing']['fields'][$this->_tpl_vars['config']['price_tag_field']]['value']; ?><?php echo '</span>'; ?><?php if ($this->_tpl_vars['featured_listing']['sale_rent'] == 2 && $this->_tpl_vars['featured_listing']['fields']['time_frame']['value']): ?><?php echo '&nbsp;/ '; ?><?php echo $this->_tpl_vars['featured_listing']['fields']['time_frame']['value']; ?><?php echo ''; ?><?php endif; ?><?php echo '</div>'; ?><?php endif; ?><?php echo '</li>'; ?><?php echo '</ul></li>'; ?><?php echo rlHook::load(array('name' => 'featuredItemBottom'), $this);?><?php echo ''; ?>
