<div class="panel clearfix b-a">
  <span class="arrow top" style="left:15px;">
  </span>
  <div class="panel-heading no-border clearfix">
    <a href="/{$languageURL}user/{$user.username}/" class="pull-left thumb-lg avatar m-r-md" target="_blank">
      {if $user.avatar != ''}
      <img alt="{$user.username}" src="{$data_server}uploads/users/{$user.user_id}/A_{$user.avatar}" style="border-radius:4px;" />
      {else}
      <img alt="{$user.username}" src="{$template_data}img/default-user.jpg" style="border-radius:4px;" />
      {/if}
    </a>


    <div class="clear">
      <span class="h3 block text-left">
        <a href="/{$languageURL}user/{$user.username}/" target="_blank">{$user.nickname}</a>
      </span>
      <small class="block m-t-xs">
        {foreach from=$user_badges item=b name=foo}
        <img src="{$data_server}{$b.photo}" height="18" width="18" alt="{$b.name|escape}" title="{$b.name|escape}"  data-toggle="tooltip" data-placement="bottom" data-original-title="{$b.name|escape}" />
        {if $smarty.foreach.foo.last}{/if}
        {/foreach}
      </small>

      <p class="block m-t-sm m-b-xs text-muted" style="line-height:18px;">
        {if $user.profile_title != ''}{$user.profile_title}{else}作者太懒了，没填签名呢{/if}
      </p>
      <p class="block m-b-xs">
        <span class="text-muted">所在城市：</span>{if $user.live_city != ''}{$user.live_city}{else}未填写{/if}
      </p>
    </div>
  </div>

  <div class="text-center b-t  p-l p-r clearfix">
    <div class="row row-sm">
      {if $items}
      {foreach from=$items item=i name=foo}
      <div class="p-t-sm p-b-sm col-xs-4">
        <a href="/{$languageURL}items/{$i.id}" class="block" title="{$i.name}" target="_blank">
          <img src="{$data_server}uploads/items/{$i.id}/{$i.thumbnail}" class="img-responsive" />
        </a>
      </div>
      {/foreach}
      {else}
      <div class="p-t-sm p-b-sm col-xs-12">还没有作品</div>
      {/if}
    </div>
  </div>



  <div class="text-center b-t clearfix">
    <div class="p-t-sm p-b-sm col-xs-4 b-r">
      <div class="h3">
        {$allRows}
      </div>
      <small class="text-muted">
        作品
      </small>
    </div>
    <div class="p-t-sm p-b-sm col-xs-4 b-r">
      <div class="h3">
        {$user.sales}
      </div>
      <small class="text-muted">
        销量
      </small>
    </div>
    <div class="p-t-sm p-b-sm col-xs-4">
      <div class="h3">
        {if $follow.to < '1'}0{else}{$follow.toto_count}{/if}
      </div>
      <small class="text-muted">
        粉丝
      </small>
    </div>
  </div>
</div>