<div class="clearfix pos-rlt box-canvas" style="z-index: 99;background-image: url({if $user.homeimage != ''}{$data_server}uploads/users/{$user.user_id}/A_{$user.homeimage}{else}/mbthemes/assets/images/bg/3.jpg{/if})">
  {include file="$template_path/html/pagenav-user.html"}
  <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="/{$languageURL}user/{$user.username}/" class="hover">
            {if $user.avatar != ''}
            <img alt="{$user.username}" src="{$data_server}uploads/users/{$user.user_id}/A_{$user.avatar}" class="img-circle w-128 b-4x b-rgba-white b-a hover-rotate360" />
            {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>
            {/if}
          </a>
        </p>
        <a class="text-2x m-b-xs block">{$user.nickname}</a>
        <p class="block m-t-sm">
          {foreach from=$user_badges item=b name=foo}
          <img src="{$data_server}{$b.photo}" class="bphoto m-l-xs m-r-xs" width="24" height="24" alt="{$b.name|escape}" title="" data-toggle="tooltip" data-placement="bottom" data-original-title="{$b.name|escape}" />
          {if $smarty.foreach.foo.last}{/if}
          {/foreach}
        </p>
        <p><small class="h-1x text-grey">{if $user.profile_title != ''}{$user.profile_title}{else}作者太懒了，没填签名呢{/if}</small></p>
        <div class="m-b-md">
          {if $user.behance != '' || $user.deviantart!= '' || $user.digg != '' || $user.dribbble != '' || $user.weibo != '' || $user.tencent != '' || $user.forrst != '' || $user.github != '' || $user.baidu != '' || $user.lastfm != '' || $user.netease != '' || $user.sohu != '' || $user.reddit != '' || $user.tumblr != '' || $user.renren != '' || $user.vimeo != '' || $user.youtube != ''}


          {if $user.weibo != ''}
          <a href="http://weibo.com/{$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>
          {/if}
          {if $user.qq != ''}
          <a target="_blank" href="{$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>
          {/if}

          {if $user.weixin != ''}
          <a href="http://open.weixin.qq.com/qr/code/?username={$user.weixin}" title="微信号：{$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>
          {/if}

          {/if}
        </div>
        <div class="text-center">

          {if check_login_bool() && $smarty.session.user.user_id != $user.user_id}
          <a href="/{$languageURL}users/{$user.username}/?follow" id="follow-user">
            <button id="follow" class="btn btn-sm rounded btn-outline p-x-lg {if $user.is_follow}skin{else}b-skin text-skin{/if}" type="submit">{if $user.is_follow}<i class="icon-minus3 m-r-xs"></i>取消关注{else}<i class="icon-plus2 m-r-xs"></i>关注Ta{/if}</button>
          </a>

          <script type="text/javascript">
            {literal}
            seajs.use(["jq", "modules/follow"], function($, follow){
              follow.followBtnInit($("#follow-user"), "/{/literal}{$languageURL}users/{$user.username}/?follow{literal}");
            });
            {/literal}
          </script>
          {elseif check_login_bool() && $smarty.session.user.user_id == $user.user_id}
          <a href="/{$languageURL}edit/" class="btn rounded btn-outline p-x-lg skin">
            编辑资料
          </a>
          {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>
          {/if}
        </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">{$allRows}</span>
              <span>作品</span>
            </a>
            <a class="p-x inline">
              <span class="price h3 block _800">{$user.sales}</span>
              <span>销量</span>
            </a>
            <a class="p-x inline b-r">
              <span class="price h3 block _800">{if $follow.toto < '1'}0{else}{$follow.toto_count}{/if}</span>
              <span>粉丝</span>
            </a>
            <a class="p-x inline b-r">
              <span class="price h3 block _800">{if $follow.fromfrom < '1'}0{else}{$follow.fromfrom_count}{/if}</span>
              <span>关注</span>
            </a>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="covers grey dk block"></div>
  <canvas class="cover block"></canvas>
</div>