<?php /* Smarty version 2.6.26, created on 2020-06-25 13:11:46
         compiled from /home3/bargaip4/public_html/gevimmo/plugins/listings_carousel/carousel.block_44.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'rlHook', '/home3/bargaip4/public_html/gevimmo/plugins/listings_carousel/carousel.block_44.tpl', 4, false),array('modifier', 'cat', '/home3/bargaip4/public_html/gevimmo/plugins/listings_carousel/carousel.block_44.tpl', 15, false),array('modifier', 'count', '/home3/bargaip4/public_html/gevimmo/plugins/listings_carousel/carousel.block_44.tpl', 27, false),array('modifier', 'regex_replace', '/home3/bargaip4/public_html/gevimmo/plugins/listings_carousel/carousel.block_44.tpl', 59, false),)), $this); ?>
<!-- carousel block -->

<?php if ($this->_tpl_vars['listings_carousel']): ?>
    <?php echo rlHook::load(array('name' => 'featuredTop'), $this);?>


	<?php $this->assign('carousel_option', $this->_tpl_vars['carousel_options'][$this->_tpl_vars['block']['ID']]); ?>
	<?php $this->assign('phrase_sale', 'listing_fields+name+sale_rent_1'); ?>
	
	<div class="carousel <?php echo $this->_tpl_vars['carousel_option']['Direction']; ?>
">
		<div id="carousel_<?php echo $this->_tpl_vars['block']['Key']; ?>
" class="carousel_block">
		<ul class="row featured clearfix with-pictures"><?php echo ''; ?><?php $_from = $this->_tpl_vars['listings_carousel']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['featured_listing']):
?><?php echo ''; ?><?php $this->assign('type', $this->_tpl_vars['featured_listing']['Listing_type']); ?><?php echo ''; ?><?php $this->assign('page_key', $this->_tpl_vars['listing_types'][$this->_tpl_vars['type']]['Page_key']); ?><?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>
		</div>
	</div>	

	<script type="text/javascript">
	<?php echo '
    
	if (typeof rlCarousel == "undefined") {
		var rlCarousel = new Array();
	}
	'; ?>
rlCarousel['carousel_<?php echo $this->_tpl_vars['block']['Key']; ?>
'] = <?php echo $this->_tpl_vars['carousel_option']['Number']; ?>
-<?php echo count($this->_tpl_vars['listings_carousel']); ?>
;<?php echo '		
	$(document).ready(function(){
		$("#'; ?>
carousel_<?php echo $this->_tpl_vars['block']['Key']; ?>
<?php echo '").carousel({
			options: '; ?>
'<?php echo $this->_tpl_vars['block']['options']; ?>
'<?php echo ',
			side_bar_exists: '; ?>
'<?php echo $this->_tpl_vars['side_bar_exists']; ?>
'<?php echo ',
			side_box: '; ?>
'<?php echo $this->_tpl_vars['block']['Side']; ?>
'<?php echo ',
			priceTag: '; ?>
<?php if ($this->_tpl_vars['tpl_settings']['featured_price_tag']): ?>true<?php else: ?>false<?php endif; ?><?php echo ',
			templateName: '; ?>
'<?php echo $this->_tpl_vars['tpl_settings']['name']; ?>
'<?php echo ',
			btnNext: ".next_'; ?>
carousel_<?php echo $this->_tpl_vars['block']['Key']; ?>
<?php echo '",
			btnPrev: ".prev_'; ?>
carousel_<?php echo $this->_tpl_vars['block']['Key']; ?>
<?php echo '",
			vertical: '; ?>
<?php if ($this->_tpl_vars['carousel_option']['Direction'] == 'vertical'): ?>true<?php else: ?>false<?php endif; ?><?php echo ',
			circular: '; ?>
<?php if ($this->_tpl_vars['carousel_option']['Round'] == 1): ?>true<?php else: ?>false<?php endif; ?><?php echo ',
			diraction: '; ?>
'<?php echo @RL_LANG_DIR; ?>
'<?php echo ',					
			visible: '; ?>
<?php echo $this->_tpl_vars['carousel_option']['Visible']; ?>
<?php echo ',
			scroll: '; ?>
<?php echo $this->_tpl_vars['carousel_option']['Per_slide']; ?>
<?php echo ',
			number: '; ?>
<?php echo $this->_tpl_vars['carousel_option']['Number']; ?>
<?php echo ',
			count: '; ?>
<?php echo count($this->_tpl_vars['listings_carousel']); ?>
<?php echo ',
			auto: '; ?>
<?php echo $this->_tpl_vars['carousel_option']['Delay']; ?>
<?php echo '000
			// auto: 0
		});
	});

	'; ?>

	</script>
<?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; ?>

<!-- carousel block end -->