<?php /* Smarty version 2.6.22, created on 2014-03-11 10:50:40
         compiled from /home/hamyarwp/public_html/market/zipmarket/apps/users/views/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', '/home/hamyarwp/public_html/market/zipmarket/apps/users/views/index.html', 16, false),array('modifier', 'escape', '/home/hamyarwp/public_html/market/zipmarket/apps/users/views/index.html', 25, false),array('modifier', 'date_format', '/home/hamyarwp/public_html/market/zipmarket/apps/users/views/index.html', 161, false),)), $this); ?>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['root_path'])."/zipmarket/apps/users/views/elite_profile.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
     <div id="content">
      <div class="container">
        <div class="content">
	  		<?php echo $this->_tpl_vars['errorMessage']; ?>

<div class="content-s">
  <div class="item-preview content-box arrow-to-sidebar">
  <?php if ($this->_tpl_vars['user']['homeimage'] != ''): ?>
    <img alt="<?php echo $this->_tpl_vars['user']['username']; ?>
" height="242" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['user']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['user']['homeimage']; ?>
" width="590" />
    <?php else: ?>
	<img alt="<?php echo $this->_tpl_vars['user']['username']; ?>
" height="242" src="<?php echo $this->_tpl_vars['data_server']; ?>
img/default-Home2.jpg" width="590" />
  <?php endif; ?>
  </div>

   <?php if ($this->_tpl_vars['user']['profile_title'] != ''): ?><h2 class="underlined"><?php echo $this->_tpl_vars['user']['profile_title']; ?>
</h2><?php endif; ?>
   <?php if ($this->_tpl_vars['user']['profile_desc'] != ''): ?><div class="user-bio"><?php echo ((is_array($_tmp=$this->_tpl_vars['user']['profile_desc'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</div><?php endif; ?>
  
<?php if ($this->_tpl_vars['collections']): ?>
 <h2 class="underlined"><?php echo $this->_tpl_vars['lang']['public_collections']; ?>
</h2>
  <div class="profile_collections">
   <?php $_from = $this->_tpl_vars['collections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?> 
    <div class="collection_box">
  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
collections/view/<?php echo $this->_tpl_vars['c']['id']; ?>
">
  	  		<?php if ($this->_tpl_vars['c']['photo'] != ''): ?>
	  			<img alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" class="img" height="140" src="<?php echo $this->_tpl_vars['data_server']; ?>
/uploads/collections/<?php echo $this->_tpl_vars['c']['photo']; ?>
" width="260" />
            <?php else: ?>
  	  			<img alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" class="img" height="140" src="<?php echo $this->_tpl_vars['data_server']; ?>
img/default-collection.jpg" width="260" />
	  		<?php endif; ?>
            <p>
          <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
collections/view/<?php echo $this->_tpl_vars['c']['id']; ?>
"><?php echo $this->_tpl_vars['c']['name']; ?>
</a><br>
        <span>
       <?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1;
$this->_sections['foo']['loop'] = is_array($_loop=6) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?><?php if ($this->_tpl_vars['c']['rating'] >= $this->_sections['foo']['index']): ?><img src="/static/img/star-on.png" alt="" /><?php else: ?><img src="/static/img/star-off.png" alt="" /><?php endif; ?><?php endfor; endif; ?>
     </span>
    </p>
   </div>
    <?php endforeach; endif; unset($_from); ?>
  </div>
  
<?php else: ?>
        <?php if (check_login_bool ( ) && $this->_tpl_vars['user']['user_id'] == $_SESSION['user']['user_id']): ?>  
    <br><div class="tip" style="line-height:23px;text-align:justify;">
      آیا می خواهید یک مجموعه برای نمایش در صفحه پروفایل خود داشته باشید . 
	  <a href="/user/bookmarks/" class="">ساخت یک مجموعه</a> محصولات مورد علاقه شما با نمایش عکس . سه مورد مجموعه شما در اینجا دیده می شوند .
    </div>
	    <?php endif; ?>
	
<?php endif; ?>
  <br style="clear: both;">
</div>

<div class="sidebar-l sidebar-right">
  <div class="author-info">
    
<div class="avatar-wrapper">
    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['user']['username']; ?>
/" class="avatar" >
	<?php if ($this->_tpl_vars['user']['avatar'] != ''): ?> 
    <img alt="<?php echo $this->_tpl_vars['user']['username']; ?>
"  height="80" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['user']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['user']['avatar']; ?>
" width="80" />
	<?php else: ?>
	<img alt="<?php echo $this->_tpl_vars['user']['username']; ?>
" height="80" src="<?php echo $this->_tpl_vars['data_server']; ?>
img/default-user.jpg" width="80" />
	<?php endif; ?>
</a>
</div>
    <div class="details">
      <h2><?php echo $this->_tpl_vars['user']['username']; ?>
</h2>
        <ul class="badges">
            <?php $_from = $this->_tpl_vars['user_badges']; 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['b']):
        $this->_foreach['foo']['iteration']++;
?>
		      	<img src="<?php echo $this->_tpl_vars['data_server']; ?>
<?php echo $this->_tpl_vars['b']['photo']; ?>
" height="20" width="20" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['b']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['b']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
		      	<?php if (($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?> <br /> <?php endif; ?>
	      	<?php endforeach; endif; unset($_from); ?>
        </ul>
<?php if ($this->_tpl_vars['user']['power_elite_author'] == 'true'): ?>
      <div class="power-elite-author">
	<?php if ($this->_tpl_vars['user']['items'] != '0'): ?> 
  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/portfolio/<?php echo $this->_tpl_vars['user']['username']; ?>
/" role="button" class="btn-icon portfolio"><?php echo $this->_tpl_vars['lang']['view_portfolio']; ?>
</a><?php else: ?>
    <?php endif; ?>
	<?php if (check_login_bool ( ) && $_SESSION['user']['user_id'] != $this->_tpl_vars['user']['user_id']): ?>
        <?php echo '<a href="/'; ?>
<?php echo $this->_tpl_vars['languageURL']; ?>
users/<?php echo $this->_tpl_vars['user']['username']; ?>
/?follow<?php echo '" id="follow-user" onclick="$.ajax({complete:function(request){jQuery(&quot;#ajax-feedback&quot;).animate({&quot;height&quot;: &quot;toggle&quot;, &quot;opacity&quot;: &quot;toggle&quot;}, &quot;slow&quot;); }, dataType:\'script\', type:\'post\', url:\'/'; ?>
<?php echo $this->_tpl_vars['langaugeURL']; ?>
users/<?php echo $this->_tpl_vars['user']['username']; ?>
/?follow<?php echo '\'}); jQuery(&quot;#ajax-feedback&quot;).hide(); jQuery(&quot;#ajax-feedback&quot;).animate({&quot;height&quot;: &quot;toggle&quot;, &quot;opacity&quot;: &quot;toggle&quot;}, &quot;slow&quot;);; return false;">'; ?>

          <button id="follow" class="auto-width no-margin" type="submit"><?php if ($this->_tpl_vars['user']['is_follow']): ?><?php echo $this->_tpl_vars['lang']['unfollow']; ?>
<?php else: ?><?php echo $this->_tpl_vars['lang']['follow']; ?>
<?php endif; ?></button>
        </a>   
	<?php endif; ?>
      </div>
<?php else: ?>
	<?php if ($this->_tpl_vars['user']['items'] != '0'): ?> 
  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/portfolio/<?php echo $this->_tpl_vars['user']['username']; ?>
/" role="button" class="btn-icon portfolio">نمونه کارها</a><?php else: ?>
    <?php endif; ?>
	<?php if (check_login_bool ( ) && $_SESSION['user']['user_id'] != $this->_tpl_vars['user']['user_id']): ?>
        <?php echo '<a href="/'; ?>
<?php echo $this->_tpl_vars['languageURL']; ?>
users/<?php echo $this->_tpl_vars['user']['username']; ?>
/?follow<?php echo '" id="follow-user" onclick="$.ajax({complete:function(request){jQuery(&quot;#ajax-feedback&quot;).animate({&quot;height&quot;: &quot;toggle&quot;, &quot;opacity&quot;: &quot;toggle&quot;}, &quot;slow&quot;); }, dataType:\'script\', type:\'post\', url:\'/'; ?>
<?php echo $this->_tpl_vars['langaugeURL']; ?>
users/<?php echo $this->_tpl_vars['user']['username']; ?>
/?follow<?php echo '\'}); jQuery(&quot;#ajax-feedback&quot;).hide(); jQuery(&quot;#ajax-feedback&quot;).animate({&quot;height&quot;: &quot;toggle&quot;, &quot;opacity&quot;: &quot;toggle&quot;}, &quot;slow&quot;);; return false;">'; ?>

          <button id="follow" class="auto-width no-margin" type="submit"><?php if ($this->_tpl_vars['user']['is_follow']): ?>دنبال کردن<?php else: ?>دنبال کردن<?php endif; ?></button>
        </a>   
	<?php endif; ?>
<?php endif; ?>
    </div>
  </div>
<div class="sidebar-stats--vertical-space">
      <div class="sidebar-stats__box--sales">
        <div>
          <span><?php echo $this->_tpl_vars['user']['sales']; ?>
</span>
          <small><?php echo $this->_tpl_vars['lang']['sales']; ?>
</small>
        </div>
      </div>
      <div class="sidebar-stats__box--followers">
        <div>
          <span class="js-follower-count"><?php if ($this->_tpl_vars['follow']['to'] < '1'): ?>0<?php else: ?><?php echo $this->_tpl_vars['follow']['toto_count']; ?>
<?php endif; ?></span>
          <small class="js-follower-wording"><?php echo $this->_tpl_vars['lang']['followers']; ?>
</small>
        </div>
      </div>
    </div>
  <div class="clear"></div><br />
<?php if ($this->_tpl_vars['user']['votes'] > 2): ?>
<div class="content-box vertical-space">
        <div class="rating-detailed">
    <div class="rating-detailed__header">
      <strong class="rating-detailed__title">امتیاز خریدار :</strong>
      <div class="rating-detailed__stars">
<?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1;
$this->_sections['foo']['loop'] = is_array($_loop=6) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?><?php if ($this->_tpl_vars['user']['rating'] >= $this->_sections['foo']['index']): ?><img src="/static/img/large-star-on.png" alt="" /><?php else: ?><img src="/static/img/large-star-off.png" alt="" /><?php endif; ?>
<?php endfor; endif; ?>
      </div>
      <small class="rating-detailed__average">
        <?php echo $this->_tpl_vars['user']['rating']; ?>
 average based on <?php echo $this->_tpl_vars['user']['votes']; ?>
 ratings.
      </small>
    </div>
  </div>
</div>
<?php else: ?> 
<div class="content-box vertical-space">
  <div class="rating-detailed">
    <strong>امتیاز خریدار :</strong> &nbsp;&nbsp;<small>نمایش : حداقل بالای 3 امتیاز</small>
  </div>
</div>
<?php endif; ?> 

    <?php if ($this->_tpl_vars['user']['items'] != '0'): ?> 
      <div class="content-box vertical-space">
      <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
rss/?user=<?php echo $this->_tpl_vars['user']['user_id']; ?>
" class="rss-feed-link"><?php echo $this->_tpl_vars['lang']['user_rss']; ?>
 <?php echo $this->_tpl_vars['user']['username']; ?>
 در خبر خوان</a>
      </div>
	<?php endif; ?>
	<?php if ($this->_tpl_vars['featureItem']): ?>  
	   <div class="content-box vertical-space featured-file">
        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['featureItem']['id']; ?>
" onclick="">
          <img data-tooltip="<?php echo ((is_array($_tmp=$this->_tpl_vars['featureItem']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['featureItem']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" class="landscape-image-magnifier preload no_preview" data-item-author="توسط <?php echo $this->_tpl_vars['user']['username']; ?>
" data-item-category="<?php $_from = $this->_tpl_vars['featureItem']['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['e']):
?><?php $_from = $this->_tpl_vars['e']; 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['c']):
        $this->_foreach['foo']['iteration']++;
?><?php echo $this->_tpl_vars['categories'][$this->_tpl_vars['c']]['name']; ?>
 <?php if (! ($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?> \ <?php endif; ?><?php endforeach; endif; unset($_from); ?><?php endforeach; endif; unset($_from); ?>" data-item-cost="<?php echo $this->_tpl_vars['featureItem']['price']; ?>
 <?php echo $this->_tpl_vars['currency']['symbol']; ?>
" data-item-name="<?php echo ((is_array($_tmp=$this->_tpl_vars['featureItem']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" data-item-cost="" data-preview-height="" data-preview-url="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['featureItem']['id']; ?>
/preview.jpg" data-preview-width="" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['featureItem']['id']; ?>
/<?php echo $this->_tpl_vars['featureItem']['thumbnail']; ?>
" title="" border="0" height="80" width="80">
         </a>        <p style="line-height:25px;">
          <small><?php echo $this->_tpl_vars['lang']['feature_file']; ?>
</small>
          <br>
          <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['featureItem']['id']; ?>
"><?php echo $this->_tpl_vars['featureItem']['name']; ?>
</a>
          <br>
          <?php echo $this->_tpl_vars['featureItem']['sales']; ?>
 <?php echo $this->_tpl_vars['lang']['sales']; ?>

        </p>
      </div>
	<?php endif; ?>
 <dl class="content-box country-info" style="line-height:23px;font-size:12px;">
 <?php if ($this->_tpl_vars['user']['live_city'] != ''): ?>
      <dt><small><?php echo $this->_tpl_vars['lang']['lives_in']; ?>
:</small></dt>
      <dd><?php echo $this->_tpl_vars['user']['live_city']; ?>
</dd>
 <?php endif; ?>
 <?php if ($this->_tpl_vars['user']['country_id'] != '0'): ?>
      <dt><small><?php echo $this->_tpl_vars['lang']['country']; ?>
:</small></dt>
      <dd><?php echo $this->_tpl_vars['user']['country']['name']; ?>
</dd>
 <?php endif; ?>

    <dt><small><?php echo $this->_tpl_vars['lang']['member_since']; ?>
:</small></dt>
    <dd><?php echo ((is_array($_tmp=$this->_tpl_vars['user']['register_datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, 'j F Y') : smarty_modifier_date_format($_tmp, 'j F Y')); ?>
</dd>

 <?php if ($this->_tpl_vars['user']['freelance'] == 'true'): ?>
      <dt><small>Freelance:</small></dt>
	  <dd><?php echo $this->_tpl_vars['lang']['i_am_available']; ?>
</dd>
 <?php endif; ?>
	
  <?php if ($this->_tpl_vars['user']['last_login_datetime'] != ''): ?>
    <dt><small>آخرین ورود :</small></dt>
    <dd><?php echo ((is_array($_tmp=$this->_tpl_vars['user']['last_login_datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "l, j F Y H:i:s") : smarty_modifier_date_format($_tmp, "l, j F Y H:i:s")); ?>
</dd>
  <?php endif; ?>
  </dl>
 
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['root_path'])."/zipmarket/apps/users/views/social_profile.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

 <?php if (check_login_bool ( ) && $this->_tpl_vars['user']['user_id'] == $_SESSION['user']['user_id']): ?><?php else: ?>
<?php if (check_login_bool ( )): ?>
    <h2 class="box-heading"><?php echo $this->_tpl_vars['lang']['email']; ?>
 <?php echo $this->_tpl_vars['user']['username']; ?>
</h2>
    <div class="content-box">
        <p>
         <?php echo $this->_tpl_vars['lang']['profile_email_info']; ?>

        </p>
        <form action="" class="contact_form" method="post">
          <fieldset class="horizontal-form">
            <div class="input-group">
              <label for="from"><?php echo $this->_tpl_vars['lang']['from']; ?>
</label>
              <div class="inputs">
                <input type="email" value="<?php echo $_SESSION['user']['email']; ?>
" name="from" id="from" disabled />
              </div>
            </div>

            <div class="input-group">
              <label for="message"><?php echo $this->_tpl_vars['lang']['message']; ?>
</label>
              <div class="inputs">
                <textarea name="message" id="message"></textarea>
              </div>
            </div>
          </fieldset>
          <div class="form-submit"><input type="hidden" name="send_email" value="yes" />
           <button type="submit"  name="send_email" value="yes" class="btn-icon subscribe-mail no-margin"><?php echo $this->_tpl_vars['lang']['send']; ?>
</button>
          </div>   
		</form>
	</div>
<?php else: ?>
<h2 class="box-heading">ارسال ایمیل به <?php echo $this->_tpl_vars['user']['username']; ?>
</h2>
<div class="content-box">
        <p>
          برای تماس با این نویسنده باید ابتدا <a href="/sign_in/">ورود کنید</a> .
        </p>
</div>
<?php endif; ?>
<?php endif; ?>
 </div>
   </div>
  </div>
    </div>

<?php if ($this->_tpl_vars['follow']['to'] < 1 && $this->_tpl_vars['follow']['from'] < 1): ?><?php else: ?>
      <div class="followings">
    <div class="inner-container">
      <div class="container">
          <div class="followed" id="bottom_follower_info">
            <h2 class="decorator follower-count"><?php if ($this->_tpl_vars['follow']['toto'] < '1'): ?>0<?php else: ?><?php echo $this->_tpl_vars['follow']['toto_count']; ?>
<?php endif; ?> <?php echo $this->_tpl_vars['lang']['followers']; ?>
</h2>
        <div class="center-image-container">
			<?php if ($this->_tpl_vars['follow']['to']): ?>
				<?php $_from = $this->_tpl_vars['follow']['to']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['f']):
?>
			<a class="avatar" title="<?php echo $this->_tpl_vars['f']['username']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['f']['username']; ?>
">
			<?php if ($this->_tpl_vars['f']['avatar'] != ''): ?>  
			<img class="" height="80" width="80" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['f']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['f']['avatar']; ?>
" alt="<?php echo $this->_tpl_vars['f']['username']; ?>
"></img>
			<?php else: ?>
			<img class="" height="80" width="80" src="<?php echo $this->_tpl_vars['data_server']; ?>
img/default-user.jpg" alt="<?php echo $this->_tpl_vars['f']['username']; ?>
"></img>
			<?php endif; ?>
			</a>
				<?php endforeach; endif; unset($_from); ?>
			<?php endif; ?>
			<?php if ($this->_tpl_vars['follow']['to_count'] > 8): ?>
			  <strong> . . . </strong>
		  <?php endif; ?>
        </div>
          </div>
          <div class="following">
            <h2 class="decorator"><?php echo $this->_tpl_vars['lang']['authors_i_follow']; ?>
: <?php if ($this->_tpl_vars['follow']['fromfrom'] < '1'): ?>0<?php else: ?><?php echo $this->_tpl_vars['follow']['fromfrom_count']; ?>
<?php endif; ?> </h2>
            <div class="center-image-container">
		<?php if ($this->_tpl_vars['follow']['from']): ?>
			<?php $_from = $this->_tpl_vars['follow']['from']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['f']):
?>
			<a class="avatar" title="<?php echo $this->_tpl_vars['f']['username']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['f']['username']; ?>
">
			<?php if ($this->_tpl_vars['f']['avatar'] != ''): ?>  
			<img class="" height="80" width="80" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['f']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['f']['avatar']; ?>
" alt="<?php echo $this->_tpl_vars['f']['username']; ?>
"></img>
			<?php else: ?>
			<img class="" height="80" width="80" src="<?php echo $this->_tpl_vars['data_server']; ?>
img/default-user.jpg" alt="<?php echo $this->_tpl_vars['f']['username']; ?>
"></img>
			<?php endif; ?>
			</a>
			<?php endforeach; endif; unset($_from); ?>
		<?php endif; ?>
		<?php if ($this->_tpl_vars['follow']['from_count'] > 8): ?>
			<strong> . . . </strong>
		<?php endif; ?>
            </div>
          </div>
      </div>
    </div>
  </div>
 <?php endif; ?>