<?php /* Smarty version 2.6.26, created on 2020-06-25 21:49:31
         compiled from controllers/account_type.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cat', 'controllers/account_type.tpl', 8, false),array('modifier', 'count', 'controllers/account_type.tpl', 13, false),array('modifier', 'json_encode', 'controllers/account_type.tpl', 61, false),array('function', 'paging', 'controllers/account_type.tpl', 13, false),array('function', 'mapsAPI', 'controllers/account_type.tpl', 58, false),)), $this); ?>
<!-- accounts tpl -->

<?php if ($this->_tpl_vars['account_type']): ?>
	<!-- account details -->
	<?php if ($this->_tpl_vars['account']): ?>
		<!-- account listings -->
		<?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()));
$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'],'perPage' => $this->_tpl_vars['config']['listings_per_page'],'custom' => $this->_tpl_vars['account']['Own_address'],'customSubdomain' => $this->_tpl_vars['config']['account_wildcard']), $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'],'perPage' => $this->_tpl_vars['config']['listings_per_page'],'var' => 'id','url' => $this->_tpl_vars['account']['ID'],'full' => true), $this);?>

            <?php endif; ?>
			<!-- paging block end -->
		
		<?php else: ?>
			<div class="info"><?php echo $this->_tpl_vars['lang']['no_dealer_listings']; ?>
</div>
		<?php endif; ?>
		<!-- account listings end -->
	<?php else: ?>
		<?php if ($this->_tpl_vars['alphabet_dealers']): ?>
			<?php $this->assign('dealers', $this->_tpl_vars['alphabet_dealers']); ?>
		<?php endif; ?>

        <?php if ($this->_tpl_vars['config']['map_module']): ?>
        <script>var accounts_map_data = new Array();</script>
        <?php endif; ?>

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

			<script>var accounts_map = new Array();</script>
			<section id="accounts" class="grid row">
				<?php $_from = $this->_tpl_vars['dealers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['dealersF'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['dealersF']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['dealer']):
        $this->_foreach['dealersF']['iteration']++;
?>
					<?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, 'dealer.tpl') : smarty_modifier_cat($_tmp, 'dealer.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

                    <?php if ($this->_tpl_vars['dealer']['Loc_latitude'] && $this->_tpl_vars['dealer']['Loc_longitude'] && $this->_tpl_vars['config']['map_module']): ?>
                    <script class="fl-js-dynamic">
                    accounts_map_data.push(<?php echo '{'; ?>

                        latLng: [<?php echo $this->_tpl_vars['dealer']['Loc_latitude']; ?>
, <?php echo $this->_tpl_vars['dealer']['Loc_longitude']; ?>
],
                        preview: <?php echo '{'; ?>

                            component: 'account',
                            id: <?php echo $this->_tpl_vars['dealer']['ID']; ?>

                        <?php echo '}'; ?>

                    <?php echo '}'; ?>
);
                    </script>
                <?php endif; ?>
				<?php endforeach; endif; unset($_from); ?>
			</section>

            <?php if ($this->_tpl_vars['config']['map_module']): ?>
                <section id="accounts_map" class="hide"></section>

                <?php echo rlSmarty::mapsAPI(array('assign' => 'mapAPI'), $this);?>


                <script>
                rlConfig['map_api_css'] = <?php echo json_encode($this->_tpl_vars['mapAPI']['css']); ?>
;
                rlConfig['map_api_js'] = <?php echo json_encode($this->_tpl_vars['mapAPI']['js']); ?>
;
                </script>
            <?php endif; ?>

			<?php if ($this->_tpl_vars['alphabet_dealers']): ?>
				<?php echo rlSmarty::paging(array('calc' => $this->_tpl_vars['pInfo']['calc_alphabet'],'total' => count($this->_tpl_vars['dealers']),'current' => $this->_tpl_vars['pInfo']['current'],'per_page' => $this->_tpl_vars['config']['dealers_per_page'],'url' => $this->_tpl_vars['char'],'var' => 'character'), $this);?>

			<?php else: ?>
				<?php echo rlSmarty::paging(array('calc' => $this->_tpl_vars['pInfo']['calc'],'total' => count($this->_tpl_vars['dealers']),'current' => $this->_tpl_vars['pInfo']['current'],'per_page' => $this->_tpl_vars['config']['dealers_per_page'],'url' => $this->_tpl_vars['search_results_url']), $this);?>

			<?php endif; ?>
		<?php else: ?>
			<div class="info"><?php echo $this->_tpl_vars['lang']['no_dealers']; ?>
</div>
		<?php endif; ?>
		<!-- dealers list end -->
	<?php endif; ?>
<?php endif; ?>

<!-- accounts tpl end -->