<?php /* Smarty version 2.6.26, created on 2020-06-25 13:10:58
         compiled from controllers/listing_type.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'rlHook', 'controllers/listing_type.tpl', 3, false),array('function', 'paging', 'controllers/listing_type.tpl', 16, false),array('modifier', 'cat', 'controllers/listing_type.tpl', 10, false),array('modifier', 'count', 'controllers/listing_type.tpl', 16, false),array('modifier', 'regex_replace', 'controllers/listing_type.tpl', 27, false),array('modifier', 'replace', 'controllers/listing_type.tpl', 85, false),)), $this); ?>
<!-- listing type -->

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


<!-- search results -->
<?php if ($this->_tpl_vars['search_results']): ?>
	
	<?php if (! empty ( $this->_tpl_vars['listings'] )): ?>
	
		<?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, 'grid_navbar.tpl') : smarty_modifier_cat($_tmp, 'grid_navbar.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

		<?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, 'grid.tpl') : smarty_modifier_cat($_tmp, 'grid.tpl')), 'smarty_include_vars' => array('hl' => true,'grid_photo' => $this->_tpl_vars['listing_type']['Photo'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		<script type="text/javascript">flynaxTpl.highlightResults($('#autocomplete').val());</script>
		
		<!-- paging block -->
		<?php echo rlSmarty::paging(array('calc' => $this->_tpl_vars['pInfo']['calc'],'total' => count($this->_tpl_vars['listings']),'current' => $this->_tpl_vars['pInfo']['current'],'per_page' => $this->_tpl_vars['config']['listings_per_page'],'url' => $this->_tpl_vars['search_results_url'],'method' => $this->_tpl_vars['listing_type']['Submit_method']), $this);?>

		<!-- paging block end -->

	<?php else: ?>
		
		<div class="text-notice">
			<?php if ($this->_tpl_vars['listing_type']['Admin_only']): ?>
				<?php echo $this->_tpl_vars['lang']['no_listings_found_deny_posting']; ?>

			<?php else: ?>
            		
				<?php $this->assign('link', ((is_array($_tmp=((is_array($_tmp='<a href="')) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['add_listing_link']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['add_listing_link'])))) ? $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_found'])) ? $this->_run_mod_handler('regex_replace', true, $_tmp, '/\[(.+)\]/', $this->_tpl_vars['link']) : smarty_modifier_regex_replace($_tmp, '/\[(.+)\]/', $this->_tpl_vars['link'])); ?>


				<br />
				<?php $this->assign('link', ((is_array($_tmp=((is_array($_tmp='<span name="alter-save-search" class="')) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['listing_type']['Key']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['listing_type']['Key'])))) ? $this->_run_mod_handler('cat', true, $_tmp, '"><span class="link">$1</span></span>') : smarty_modifier_cat($_tmp, '"><span class="link">$1</span></span>'))); ?>
				<?php echo ((is_array($_tmp=$this->_tpl_vars['lang']['save_search_text'])) ? $this->_run_mod_handler('regex_replace', true, $_tmp, '/\[(.+)\]/', $this->_tpl_vars['link']) : smarty_modifier_regex_replace($_tmp, '/\[(.+)\]/', $this->_tpl_vars['link'])); ?>

			<?php endif; ?>
		</div>
		
	<?php endif; ?>
	
	<script class="fl-js-dynamic">flynaxTpl.searchFormBox();</script>

<!-- search results end -->
<?php else: ?>
<!-- browse/search forms mode -->

	<?php if ($this->_tpl_vars['advanced_search']): ?>
	
		<?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, 'advanced_search.tpl') : smarty_modifier_cat($_tmp, 'advanced_search.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

	<?php else: ?>
	
		<?php if (! empty ( $this->_tpl_vars['category']['des'] )): ?>
			<div class="category-description">
				<?php echo $this->_tpl_vars['category']['des']; ?>

			</div>
		<?php endif; ?>
		
		<?php if (! empty ( $this->_tpl_vars['listings'] )): ?>
		
			<?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, 'grid_navbar.tpl') : smarty_modifier_cat($_tmp, 'grid_navbar.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

			<?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, 'grid.tpl') : smarty_modifier_cat($_tmp, 'grid.tpl')), 'smarty_include_vars' => array('grid_photo' => $this->_tpl_vars['listing_type']['Photo'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
			
			<!-- paging block -->
			<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?>
				<?php echo rlSmarty::paging(array('calc' => $this->_tpl_vars['pInfo']['calc'],'total' => count($this->_tpl_vars['listings']),'current' => $this->_tpl_vars['pInfo']['current'],'per_page' => $this->_tpl_vars['config']['listings_per_page'],'url' => $this->_tpl_vars['category']['Path']), $this);?>

			<?php else: ?>
				<?php echo rlSmarty::paging(array('calc' => $this->_tpl_vars['pInfo']['calc'],'total' => count($this->_tpl_vars['listings']),'current' => $this->_tpl_vars['pInfo']['current'],'per_page' => $this->_tpl_vars['config']['listings_per_page'],'url' => ((is_array($_tmp='category=')) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['category']['ID']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['category']['ID']))), $this);?>

			<?php endif; ?>
			<!-- paging block end -->
		
		<?php else: ?>
			<?php if ($this->_tpl_vars['category']['Lock']): ?>
				<?php $this->assign('br_count', count($this->_tpl_vars['bread_crumbs'])); ?>
				<?php $this->assign('br_count', $this->_tpl_vars['br_count']-2); ?>
				
				<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?>
					<?php $this->assign('lock_link', ((is_array($_tmp=$this->_tpl_vars['rlBase'])) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['bread_crumbs'][$this->_tpl_vars['br_count']]['path']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['bread_crumbs'][$this->_tpl_vars['br_count']]['path']))); ?>
					<?php if ($this->_tpl_vars['listing_type']['Cat_postfix']): ?>
						<?php $this->assign('lock_link', ((is_array($_tmp=$this->_tpl_vars['lock_link'])) ? $this->_run_mod_handler('cat', true, $_tmp, '.html') : smarty_modifier_cat($_tmp, '.html'))); ?>
					<?php else: ?>
						<?php $this->assign('lock_link', ((is_array($_tmp=$this->_tpl_vars['lock_link'])) ? $this->_run_mod_handler('cat', true, $_tmp, '/') : smarty_modifier_cat($_tmp, '/'))); ?>
					<?php endif; ?>
				<?php else: ?>
					<?php $this->assign('lock_link', ((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['bread_crumbs'][$this->_tpl_vars['br_count']]['path']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['bread_crumbs'][$this->_tpl_vars['br_count']]['path']))); ?>
				<?php endif; ?>
                <?php $this->assign('replace_name', ('{')."name".('}')); ?>
				<?php $this->assign('replace', ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp='<a title="')) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['lang']['back_to_category']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['lang']['back_to_category'])))) ? $this->_run_mod_handler('replace', true, $_tmp, $this->_tpl_vars['replace_name'], $this->_tpl_vars['bread_crumbs'][$this->_tpl_vars['br_count']]['name']) : smarty_modifier_replace($_tmp, $this->_tpl_vars['replace_name'], $this->_tpl_vars['bread_crumbs'][$this->_tpl_vars['br_count']]['name'])))) ? $this->_run_mod_handler('cat', true, $_tmp, '" href="') : smarty_modifier_cat($_tmp, '" href="')))) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['lock_link']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['lock_link'])))) ? $this->_run_mod_handler('cat', true, $_tmp, '">') : smarty_modifier_cat($_tmp, '">')))) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['lang']['click_here']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['lang']['click_here'])))) ? $this->_run_mod_handler('cat', true, $_tmp, '</a>') : smarty_modifier_cat($_tmp, '</a>'))); ?>
				<div class="text-notice"><?php echo ((is_array($_tmp=$this->_tpl_vars['lang']['browse_category_locked'])) ? $this->_run_mod_handler('regex_replace', true, $_tmp, '/\[(.+)\]/', $this->_tpl_vars['replace']) : smarty_modifier_regex_replace($_tmp, '/\[(.+)\]/', $this->_tpl_vars['replace'])); ?>
</div>
			<?php else: ?>
				<div class="text-notice">
					<?php if ($this->_tpl_vars['listing_type']['Admin_only']): ?>
						<?php echo $this->_tpl_vars['lang']['no_listings_here_submit_deny']; ?>

					<?php else: ?>
						<?php $this->assign('link', ((is_array($_tmp=((is_array($_tmp='<a href="')) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['add_listing_link']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['add_listing_link'])))) ? $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 endif; ?>
				</div>
			<?php endif; ?>
		<?php endif; ?>
		
	<?php endif; ?>
	
<?php endif; ?>
<!-- browse mode -->

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


<!-- listing type end -->