<?php /* Smarty version 2.6.22, created on 2015-12-29 13:00:02
         compiled from E:/xampp/htdocs/templates/home/default//html/user-top.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'E:/xampp/htdocs/templates/home/default//html/user-top.html', 20, false),)), $this); ?>
<div class="clearfix pos-rlt box-canvas" style="z-index: 99;background-image: url(<?php if ($this->_tpl_vars['user']['homeimage'] != ''): ?><?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']; ?>
<?php else: ?>/mbthemes/assets/images/bg/3.jpg<?php endif; ?>)">
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/pagenav-user.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <div class="box p-b-lg m-b-0 no-shadow grey dk no-bg b-t">
    <div class="clearfix pos-rlt p-t-lg b-t" style="z-index: 3">
      <div class="p-x-md p-b-lg text-center">
        <p>
          <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['user']['username']; ?>
/" class="hover">
            <?php if ($this->_tpl_vars['user']['avatar'] != ''): ?>
            <img alt="<?php echo $this->_tpl_vars['user']['username']; ?>
" 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']; ?>
" class="img-circle w-128 b-4x b-rgba-white b-a hover-rotate360" />
            <?php else: ?>
                  <span class="w-128 circle skin text-lg b-4x b-rgba-white b-a">
                    <span class="price opacity" style="vertical-align: 2%;">NOPIC</span>
                  </span>
            <?php endif; ?>
          </a>
        </p>
        <a class="text-2x m-b-xs block"><?php echo $this->_tpl_vars['user']['nickname']; ?>
</a>
        <p class="block m-t-sm">
          <?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']; ?>
" class="bphoto m-l-xs m-r-xs" width="24" height="24" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['b']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" title="" data-toggle="tooltip" data-placement="bottom" data-original-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'])): ?><?php endif; ?>
          <?php endforeach; endif; unset($_from); ?>
        </p>
        <p><small class="h-1x text-grey"><?php if ($this->_tpl_vars['user']['profile_title'] != ''): ?><?php echo $this->_tpl_vars['user']['profile_title']; ?>
<?php else: ?>作者太懒了，没填签名呢<?php endif; ?></small></p>
        <div class="m-b-md">
          <?php if ($this->_tpl_vars['user']['behance'] != '' || $this->_tpl_vars['user']['deviantart'] != '' || $this->_tpl_vars['user']['digg'] != '' || $this->_tpl_vars['user']['dribbble'] != '' || $this->_tpl_vars['user']['weibo'] != '' || $this->_tpl_vars['user']['tencent'] != '' || $this->_tpl_vars['user']['forrst'] != '' || $this->_tpl_vars['user']['github'] != '' || $this->_tpl_vars['user']['baidu'] != '' || $this->_tpl_vars['user']['lastfm'] != '' || $this->_tpl_vars['user']['netease'] != '' || $this->_tpl_vars['user']['sohu'] != '' || $this->_tpl_vars['user']['reddit'] != '' || $this->_tpl_vars['user']['tumblr'] != '' || $this->_tpl_vars['user']['renren'] != '' || $this->_tpl_vars['user']['vimeo'] != '' || $this->_tpl_vars['user']['youtube'] != ''): ?>


          <?php if ($this->_tpl_vars['user']['weibo'] != ''): ?>
          <a href="http://weibo.com/<?php echo $this->_tpl_vars['user']['weibo']; ?>
" title="新浪微博" target="_blank" class="btn btn-icon btn-social rounded white m-r-sm">
            <i class="icon-weibo text-grey"></i>
            <i class="icon-weibo orange-700"></i>
          </a>
          <?php endif; ?>
          <?php if ($this->_tpl_vars['user']['qq'] != ''): ?>
          <a target="_blank" href="<?php echo $this->_tpl_vars['user']['qq']; ?>
" title="联系QQ" class="btn btn-icon btn-social rounded white m-r-sm">
            <i class="icon-qq text-grey"></i>
            <i class="icon-qq blue"></i>
          </a>
          <?php endif; ?>

          <?php if ($this->_tpl_vars['user']['weixin'] != ''): ?>
          <a href="http://open.weixin.qq.com/qr/code/?username=<?php echo $this->_tpl_vars['user']['weixin']; ?>
" title="微信号：<?php echo $this->_tpl_vars['user']['weixin']; ?>
" target="_blank" class="btn btn-icon btn-social rounded white m-r-xs">
            <i class="icon-weixin text-grey"></i>
            <i class="icon-weixin green"></i>
          </a>
          <?php endif; ?>

          <?php endif; ?>
        </div>
        <div class="text-center">

          <?php if (check_login_bool ( ) && $_SESSION['user']['user_id'] != $this->_tpl_vars['user']['user_id']): ?>
          <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/<?php echo $this->_tpl_vars['user']['username']; ?>
/?follow" id="follow-user">
            <button id="follow" class="btn btn-sm rounded btn-outline p-x-lg <?php if ($this->_tpl_vars['user']['is_follow']): ?>skin<?php else: ?>b-skin text-skin<?php endif; ?>" type="submit"><?php if ($this->_tpl_vars['user']['is_follow']): ?><i class="icon-minus3 m-r-xs"></i>取消关注<?php else: ?><i class="icon-plus2 m-r-xs"></i>关注Ta<?php endif; ?></button>
          </a>

          <script type="text/javascript">
            <?php echo '
            seajs.use(["jq", "modules/follow"], function($, follow){
              follow.followBtnInit($("#follow-user"), "/'; ?>
<?php echo $this->_tpl_vars['languageURL']; ?>
users/<?php echo $this->_tpl_vars['user']['username']; ?>
/?follow<?php echo '");
            });
            '; ?>

          </script>
          <?php elseif (check_login_bool ( ) && $_SESSION['user']['user_id'] == $this->_tpl_vars['user']['user_id']): ?>
          <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
edit/" class="btn rounded btn-outline p-x-lg skin">
            编辑资料
          </a>
          <?php else: ?>
          <button class="btn btn-sm rounded btn-outline p-x-lg b-skin text-skin" type="submit" data-toggle="modal" data-target="#myModal" data-toggle="tooltip" data-placement="bottom" data-original-title="您需要登录后才可以添加关注">
            <i class="icon-plus2 m-r-xs fs-16"></i>关注Ta
          </button>
          <?php endif; ?>
        </div>
      </div>
      <div class="row no-gutter">
        <div class="container">
          <div class="col-md-6 col-md-offset-3 text-center text-skin-hover">
            <a class="p-x inline b-r">
              <span class="price h3 block _800"><?php echo $this->_tpl_vars['allRows']; ?>
</span>
              <span>作品</span>
            </a>
            <a class="p-x inline">
              <span class="price h3 block _800"><?php echo $this->_tpl_vars['user']['sales']; ?>
</span>
              <span>销量</span>
            </a>
            <a class="p-x inline b-r">
              <span class="price h3 block _800"><?php if ($this->_tpl_vars['follow']['toto'] < '1'): ?>0<?php else: ?><?php echo $this->_tpl_vars['follow']['toto_count']; ?>
<?php endif; ?></span>
              <span>粉丝</span>
            </a>
            <a class="p-x inline b-r">
              <span class="price h3 block _800"><?php if ($this->_tpl_vars['follow']['fromfrom'] < '1'): ?>0<?php else: ?><?php echo $this->_tpl_vars['follow']['fromfrom_count']; ?>
<?php endif; ?></span>
              <span>关注</span>
            </a>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="covers grey dk block"></div>
  <canvas class="cover block"></canvas>
</div>