<?php /* Smarty version 2.6.22, created on 2014-03-16 10:57:01
         compiled from /home/hamyarwp/public_html/market/zipmarket/apps/users/views/top.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', '/home/hamyarwp/public_html/market/zipmarket/apps/users/views/top.html', 38, false),)), $this); ?>
<div class="page-info">
    <div class="container">
      <div id="breadcrumbs">
        <a href="/" class="first">صفحه اصلی</a>
         /  <a href="/categories/all/">محصولات</a> /
      </div>
     <h1 class="page-title">بهترین کاربران ایران تم</h1>
    </div>
  </div>
<div id="content">
      <div class="container">
          

<div style="width:984px;" class="content-l">
    <div class="page-controls">  <div class="pagination"><?php echo $this->_tpl_vars['paging']; ?>
</div></div>

<?php if ($this->_tpl_vars['users']): ?>
  <ul class="item-grid">
    <?php $_from = $this->_tpl_vars['users']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['u']):
        $this->_foreach['foo']['iteration']++;
?>  <li>
  <div class="thumbnail">
    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['u']['username']; ?>
" class="avatar" title="<?php echo $this->_tpl_vars['u']['username']; ?>
">
							<?php if ($this->_tpl_vars['u']['avatar'] != ''): ?>  
							  <img alt="<?php echo $this->_tpl_vars['u']['username']; ?>
" class="" height="80" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['u']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['u']['avatar']; ?>
" width="80" />
							<?php else: ?>
								<img alt="<?php echo $this->_tpl_vars['u']['username']; ?>
" class="" height="80" src="<?php echo $this->_tpl_vars['data_server']; ?>
img/default-user.jpg" width="80" />
							<?php endif; ?>
</a>
  </div>

  <div class="user-info">
    <h3><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['u']['username']; ?>
"><?php echo ($this->_foreach['foo']['iteration']-1)+$this->_tpl_vars['number']; ?>
. <?php echo $this->_tpl_vars['u']['username']; ?>
</a></h3>
        <ul class="badges"> </ul>
  </div>

  <small class="meta">
    <strong><?php echo $this->_tpl_vars['u']['items']; ?>
</strong> محصول<br>
    <strong><?php echo $this->_tpl_vars['u']['followers']; ?>
</strong> دنبال کننده ها<br>
    Member Since: <?php echo ((is_array($_tmp=$this->_tpl_vars['u']['register_datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, 'j F Y') : smarty_modifier_date_format($_tmp, 'j F Y')); ?>
<br>
  <?php if ($this->_tpl_vars['u']['freelance'] == 'true'): ?>  Available for freelance work<br><?php endif; ?>
  </small>

  <div class="sale-info">
      <em class="sale-count"><?php echo $this->_tpl_vars['u']['sales']; ?>
</em>
      <small>فروش</small>
    <div class="rating">
      
<?php unset($this->_sections['foo1']);
$this->_sections['foo1']['name'] = 'foo1';
$this->_sections['foo1']['start'] = (int)1;
$this->_sections['foo1']['loop'] = is_array($_loop=6) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo1']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo1']['show'] = true;
$this->_sections['foo1']['max'] = $this->_sections['foo1']['loop'];
if ($this->_sections['foo1']['start'] < 0)
    $this->_sections['foo1']['start'] = max($this->_sections['foo1']['step'] > 0 ? 0 : -1, $this->_sections['foo1']['loop'] + $this->_sections['foo1']['start']);
else
    $this->_sections['foo1']['start'] = min($this->_sections['foo1']['start'], $this->_sections['foo1']['step'] > 0 ? $this->_sections['foo1']['loop'] : $this->_sections['foo1']['loop']-1);
if ($this->_sections['foo1']['show']) {
    $this->_sections['foo1']['total'] = min(ceil(($this->_sections['foo1']['step'] > 0 ? $this->_sections['foo1']['loop'] - $this->_sections['foo1']['start'] : $this->_sections['foo1']['start']+1)/abs($this->_sections['foo1']['step'])), $this->_sections['foo1']['max']);
    if ($this->_sections['foo1']['total'] == 0)
        $this->_sections['foo1']['show'] = false;
} else
    $this->_sections['foo1']['total'] = 0;
if ($this->_sections['foo1']['show']):

            for ($this->_sections['foo1']['index'] = $this->_sections['foo1']['start'], $this->_sections['foo1']['iteration'] = 1;
                 $this->_sections['foo1']['iteration'] <= $this->_sections['foo1']['total'];
                 $this->_sections['foo1']['index'] += $this->_sections['foo1']['step'], $this->_sections['foo1']['iteration']++):
$this->_sections['foo1']['rownum'] = $this->_sections['foo1']['iteration'];
$this->_sections['foo1']['index_prev'] = $this->_sections['foo1']['index'] - $this->_sections['foo1']['step'];
$this->_sections['foo1']['index_next'] = $this->_sections['foo1']['index'] + $this->_sections['foo1']['step'];
$this->_sections['foo1']['first']      = ($this->_sections['foo1']['iteration'] == 1);
$this->_sections['foo1']['last']       = ($this->_sections['foo1']['iteration'] == $this->_sections['foo1']['total']);
?>
<?php if ($this->_tpl_vars['u']['rating'] >= $this->_sections['foo1']['index']): ?><img src="/static/img/star-on.png" alt="" /><?php else: ?><img src="/static/img/star-off.png" alt="" /><?php endif; ?>
<?php endfor; endif; ?>
   </div>
  </div>
</li>
	<?php endforeach; endif; unset($_from); ?>
  </ul>
			<?php else: ?>
				<div class="content-box vertical-space"><?php echo $this->_tpl_vars['lang']['no_users']; ?>
</div>
			<?php endif; ?>

  <div class="pagination"><?php echo $this->_tpl_vars['paging']; ?>
</div>
</div>
<script>
 <?php echo ' marketplace.queue(function(){
    marketplace.initializers.topAuthors();
      new marketplace.PjaxPagination( \'#paginated-content-container\' ).setup();
  }); '; ?>

</script>

      </div>
    </div>