<?php /* Smarty version 2.6.22, created on 2016-01-09 06:09:48
         compiled from E:/xampp/htdocs/templates/home/default%5Cusers%5Cportfolio.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\\users\\portfolio.html', 37, false),)), $this); ?>
<span class="arrow top pull-left b-white b-dk"></span>
<div class="box white no-shadow lt w-xxl lt m-b-0 pos-rlt">
  <div class=" p-a">
    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['user']['username']; ?>
/" class="pull-left w-64 avatar m-r-md" target="_blank">
      <?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']; ?>
" style="border-radius:4px;" />
      <?php else: ?>
      <span class="w-64 skin avatar text" style="border-radius:4px;" alt="<?php echo $this->_tpl_vars['user']['username']; ?>
">
        <span class="price opacity" style="vertical-align: 0%;">NOPIC</span>
      </span>
      <?php endif; ?>
    </a>
    <?php if ($this->_tpl_vars['user']['username'] == admin): ?>
    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['user']['username']; ?>
/" target="_blank" title="网站管理员" class="ribbon right ribbon-danger text-sm
    " style="top: 18px">
      网站管理员
    </a>
    <?php elseif ($this->_tpl_vars['user']['featured_author'] == 'true'): ?>
    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['user']['username']; ?>
/" target="_blank" title="推荐作者" class="ribbon right ribbon-info text-sm
    " style="top: 18px">
      推荐作者
    </a>
    <?php elseif ($this->_tpl_vars['user']['elite_author'] == 'true' || $this->_tpl_vars['user']['power_elite_author'] == 'true'): ?>
    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['user']['username']; ?>
/" target="_blank" title="精英作者" class="ribbon right ribbon-accent text-sm
    " style="top: 18px">
      精英作者
    </a>
    <?php else: ?>
    <?php endif; ?>

    <div class="clear">
      <span class="h3 block text-left">
        <?php echo $this->_tpl_vars['user']['nickname']; ?>

      </span>
      <small class="block m-t-xs">
        <?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="18" width="18" 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)); ?>
"  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); ?>
      </small>

      <p class="block m-t-sm m-b-xs text-muted" style="line-height:18px;">
        <?php if ($this->_tpl_vars['user']['profile_title'] != ''): ?><?php echo $this->_tpl_vars['user']['profile_title']; ?>
<?php else: ?>作者太懒了，没填签名呢<?php endif; ?>
      </p>
    </div>
  </div>

  <div class="text-center b-t  p-l p-r clearfix">
    <div class="row row-sm">
      <?php if ($this->_tpl_vars['items']): ?>
      <?php $_from = $this->_tpl_vars['items']; 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['i']):
        $this->_foreach['foo']['iteration']++;
?>
      <div class="p-t-sm p-b-sm col-xs-4">
        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" class="block" title="<?php echo $this->_tpl_vars['i']['name']; ?>
" target="_blank">
          <img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['i']['id']; ?>
/<?php echo $this->_tpl_vars['i']['thumbnail']; ?>
" class="img-responsive" />
        </a>
      </div>
      <?php endforeach; endif; unset($_from); ?>
      <?php else: ?>
      <div class="p-t-sm p-b-sm col-xs-12">还没有作品</div>
      <?php endif; ?>
    </div>
  </div>



  <div class="text-center b-t clearfix">
    <div class="p-y-sm col-xs-4 b-r">
      <div class="h4">
        <?php echo $this->_tpl_vars['allRows']; ?>

      </div>
      <small class="text-muted">
        作品
      </small>
    </div>
    <div class="p-y-sm col-xs-4 b-r">
      <div class="h4">
        <?php echo $this->_tpl_vars['user']['sales']; ?>

      </div>
      <small class="text-muted">
        销量
      </small>
    </div>
    <div class="p-y-sm col-xs-4">
      <div class="h4">
        <?php if ($this->_tpl_vars['follow']['to'] < '1'): ?>0<?php else: ?><?php echo $this->_tpl_vars['follow']['toto_count']; ?>
<?php endif; ?>
      </div>
      <small class="text-muted">
        粉丝
      </small>
    </div>
  </div>
</div>