<?php /* Smarty version 2.6.26, created on 2020-06-26 21:00:09
         compiled from /home3/bargaip4/public_html/gevimmo/plugins/fieldBoundBoxes/listings_by_field.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cat', '/home3/bargaip4/public_html/gevimmo/plugins/fieldBoundBoxes/listings_by_field.tpl', 9, false),array('modifier', 'count', '/home3/bargaip4/public_html/gevimmo/plugins/fieldBoundBoxes/listings_by_field.tpl', 15, false),array('modifier', 'regex_replace', '/home3/bargaip4/public_html/gevimmo/plugins/fieldBoundBoxes/listings_by_field.tpl', 71, false),array('function', 'paging', '/home3/bargaip4/public_html/gevimmo/plugins/fieldBoundBoxes/listings_by_field.tpl', 15, false),)), $this); ?>

<?php if (! empty ( $this->_tpl_vars['listings'] )): ?>
	<?php if (! empty ( $this->_tpl_vars['description'] )): ?>
		<div class="highlight" style="margin: 0 0 15px;">
			<?php echo $this->_tpl_vars['description']; ?>

		</div>
	<?php endif; ?>

	<?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)));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<script type="text/javascript">flynax.highlightSRGrid($('div.refine input[name="f\[keyword_search\]"]').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' => $_GET['nvar_2'],'controller' => $_GET['nvar_1'],'method' => $this->_tpl_vars['listing_type']['Submit_method']), $this);?>

	<!-- paging block end -->
<?php elseif ($this->_tpl_vars['options']): ?>
	<div class="field_bound_box categories">
		<ul>
			<li>
			<table class="fixed">
			<tr>
			<?php $_from = $this->_tpl_vars['options']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['fCats'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['fCats']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['option']):
        $this->_foreach['fCats']['iteration']++;
?>
				<td valign="top">
					<div class="item">
						<?php if (( $this->_tpl_vars['icons_position'] == 'left' || $this->_tpl_vars['icons_position'] == 'top' ) && $this->_tpl_vars['option']['Icon']): ?>
							<div style="<?php if ($this->_tpl_vars['icons_position'] == 'left'): ?>display: inline;<?php else: ?>display: block;<?php endif; ?>">
								<a class="category cat_icon" title="<?php echo $this->_tpl_vars['lang'][$this->_tpl_vars['option']['pName']]; ?>
" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['path']; ?>
/<?php echo $this->_tpl_vars['option']['Key']; ?>
<?php if ($this->_tpl_vars['html_postfix']): ?>.html<?php else: ?>/<?php endif; ?><?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['listings_by_field']; ?>
&amp;<?php echo $this->_tpl_vars['path']; ?>
=<?php echo $this->_tpl_vars['option']['Key']; ?>
<?php endif; ?>">
									<img src="<?php echo @RL_FILES_URL; ?>
<?php echo $this->_tpl_vars['option']['Icon']; ?>
" title="<?php echo $this->_tpl_vars['lang'][$this->_tpl_vars['option']['pName']]; ?>
" alt="<?php echo $this->_tpl_vars['lang'][$this->_tpl_vars['option']['pName']]; ?>
" />
								</a>
							</div>
						<?php endif; ?>

						<a class="category" title="<?php echo $this->_tpl_vars['lang'][$this->_tpl_vars['option']['pName']]; ?>
" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['path']; ?>
/<?php echo $this->_tpl_vars['option']['Key']; ?>
<?php if ($this->_tpl_vars['html_postfix']): ?>.html<?php else: ?>/<?php endif; ?><?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['listings_by_field']; ?>
&amp;<?php echo $this->_tpl_vars['path']; ?>
=<?php echo $this->_tpl_vars['option']['Key']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['lang'][$this->_tpl_vars['option']['pName']]; ?>
</a>
						<?php if ($this->_tpl_vars['show_count']): ?><span>(<b><?php echo $this->_tpl_vars['option']['Count']; ?>
</b>)</span><?php endif; ?>

						<?php if (( $this->_tpl_vars['icons_position'] == 'right' || $this->_tpl_vars['icons_position'] == 'bottom' ) && $this->_tpl_vars['option']['Icon']): ?>
							<div style="<?php if ($this->_tpl_vars['icons_position'] == 'right'): ?>display: inline;<?php else: ?>display: block;<?php endif; ?>">
								<a class="category cat_icon" title="<?php echo $this->_tpl_vars['lang'][$this->_tpl_vars['option']['pName']]; ?>
" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['path']; ?>
/<?php echo $this->_tpl_vars['option']['Key']; ?>
<?php if ($this->_tpl_vars['html_postfix']): ?>.html<?php else: ?>/<?php endif; ?><?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['listings_by_field']; ?>
&amp;<?php echo $this->_tpl_vars['path']; ?>
=<?php echo $this->_tpl_vars['option']['Key']; ?>
<?php endif; ?>">
									<img src="<?php echo @RL_URL_HOME; ?>
files/<?php echo $this->_tpl_vars['option']['Icon']; ?>
" title="<?php echo $this->_tpl_vars['lang'][$this->_tpl_vars['option']['pName']]; ?>
" alt="<?php echo $this->_tpl_vars['lang'][$this->_tpl_vars['option']['pName']]; ?>
" />
								</a>
							</div>
						<?php endif; ?>
					</div>
				</td>
				
				<?php if ($this->_foreach['fCats']['iteration']%$this->_tpl_vars['columns_number'] == 0 && ! ($this->_foreach['fCats']['iteration'] == $this->_foreach['fCats']['total'])): ?>
				</tr>
				<tr>
				<?php endif; ?>
			<?php endforeach; endif; unset($_from); ?>
			</tr>
			</table>
			</li>
		</ul>
		<div class="clear"></div>
	</div>
<?php else: ?>	

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

		<?php else: ?>
			<?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_found'])) ? $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; ?>
