<?php /* Smarty version 2.6.26, created on 2020-06-26 01:46:03
         compiled from blocks/dealer.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'rlHook', 'blocks/dealer.tpl', 27, false),array('modifier', 'strpos', 'blocks/dealer.tpl', 48, false),array('modifier', 'cat', 'blocks/dealer.tpl', 51, false),)), $this); ?>
<!-- account item -->

<article class="col-sm-4<?php if ($this->_tpl_vars['dealer']['Thumb_width'] <= 120): ?> col-md-<?php if ($this->_tpl_vars['side_bar_exists']): ?>6<?php else: ?>4<?php endif; ?> col-lg-4<?php else: ?><?php if (! $this->_tpl_vars['side_bar_exists']): ?> col-md-3<?php endif; ?><?php endif; ?>">
	<div class="main-container clearfix<?php if ($this->_tpl_vars['dealer']['Thumb_width'] > 120): ?> landscape<?php endif; ?><?php if (! $this->_tpl_vars['dealer']['Photo']): ?> no-picture<?php endif; ?>" <?php if ($this->_tpl_vars['dealer']['Thumb_width'] > 120): ?>style="width: <?php echo $this->_tpl_vars['dealer']['Thumb_width']; ?>
px;"<?php endif; ?>>
        <a title="<?php echo $this->_tpl_vars['dealer']['Full_name']; ?>
" href="<?php echo $this->_tpl_vars['dealer']['Personal_address']; ?>
">
    		<div class="picture" style="width: <?php echo $this->_tpl_vars['dealer']['Thumb_width']; ?>
px; height: <?php echo $this->_tpl_vars['dealer']['Thumb_height']; ?>
px;">
				<?php if ($this->_tpl_vars['dealer']['Photo']): ?>
                    <img alt="<?php echo $this->_tpl_vars['dealer']['Full_name']; ?>
"
                        src="<?php echo @RL_FILES_URL; ?>
<?php echo $this->_tpl_vars['dealer']['Photo']; ?>
"
                        <?php if ($this->_tpl_vars['dealer']['Photo_x2']): ?>srcset="<?php echo @RL_FILES_URL; ?>
<?php echo $this->_tpl_vars['dealer']['Photo_x2']; ?>
 2x"<?php endif; ?> />
                <?php endif; ?>
    		</div>
        </a>

		<div class="statistics">
			<ul>
				<li class="name">
					<a title="<?php echo $this->_tpl_vars['lang']['visit_owner_page']; ?>
" href="<?php echo $this->_tpl_vars['dealer']['Personal_address']; ?>
"><?php if ($this->_tpl_vars['dealer']['company_name']): ?><?php echo $this->_tpl_vars['dealer']['company_name']; ?>
<?php else: ?><?php echo $this->_tpl_vars['dealer']['Full_name']; ?>
<?php endif; ?></a>
				</li>
								<?php echo rlHook::load(array('name' => 'accountAfterStats'), $this);?>

			</ul>

			<?php if ($this->_tpl_vars['dealer']['Listings_count']): ?>
				<div class="counter">
					<span><?php echo $this->_tpl_vars['dealer']['Listings_count']; ?>
</span>
					<span><?php echo $this->_tpl_vars['lang']['listings']; ?>
</span>
				</div>
			<?php endif; ?>
		</div>
	</div>

	<ul class="info">
		<li class="fields">
			<?php $this->assign('phone', false); ?>
			<?php $this->assign('inline_fields', false); ?>

			<?php $_from = $this->_tpl_vars['dealer']['fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['field'] => $this->_tpl_vars['item']):
?>
				<?php if ($this->_tpl_vars['item']['Key'] == 'First_name' || $this->_tpl_vars['item']['Key'] == 'Last_name' || $this->_tpl_vars['item']['Key'] == 'company_name'): ?><?php continue; ?><?php endif; ?>

				<?php if (! empty ( $this->_tpl_vars['item']['value'] ) && $this->_tpl_vars['item']['Details_page']): ?>
					<?php if (((is_array($_tmp=$this->_tpl_vars['item']['Key'])) ? $this->_run_mod_handler('strpos', true, $_tmp, 'phone') : strpos($_tmp, 'phone')) || $this->_tpl_vars['item']['Type'] == 'phone'): ?>
						<?php $this->assign('phone', $this->_tpl_vars['item']['value']); ?>
					<?php else: ?>
						<?php $this->assign('inline_fields', ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['inline_fields'])) ? $this->_run_mod_handler('cat', true, $_tmp, ', ') : smarty_modifier_cat($_tmp, ', ')))) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['item']['value']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['item']['value']))); ?>
						<span><?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, 'field_out_value.tpl') : smarty_modifier_cat($_tmp, 'field_out_value.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></span>
					<?php endif; ?>
				<?php endif; ?>
			<?php endforeach; endif; unset($_from); ?>

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

		</li>

		<?php if ($this->_tpl_vars['phone']): ?>
			<li class="tel">
				<a dir="ltr" href="<?php if ($this->_tpl_vars['allow_contacts']): ?>tel:<?php echo $this->_tpl_vars['phone']; ?>
<?php else: ?>javascript://<?php endif; ?>"><?php echo $this->_tpl_vars['phone']; ?>
</a>
			</li>
		<?php endif; ?>
	</ul>
</article>

<!-- account item end -->