<?php /* Smarty version 2.6.22, created on 2016-01-01 02:00:11
         compiled from E:/xampp/htdocs/templates/home/default%5Cusers%5Cfree_file.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\\free_file.html', 30, false),array('modifier', 'date_format', 'E:/xampp/htdocs/templates/home/default\\users\\free_file.html', 49, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<link href="<?php echo $this->_tpl_vars['template_data']; ?>
css/custom/ucenter.css" rel="stylesheet" />
<link href="<?php echo $this->_tpl_vars['template_data']; ?>
css/custom/mobile.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/pagenav.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="pagetit">
  <div class="navblock">
    <ul class="titnav clr">
      <li><a href="/" title="主页">主页</a></li>
      <li class="pipe">&gt;</li>
      <li><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
categories/all/" title="文件">文件</a></li>
      <li class="pipe">&gt;</li>
      <li>免费作品</li>
    </ul>
    <h2>免费作品</h2>
  </div>
</div>
<div class="ucbg">
  <div class="ucblock clr">
    <?php if ($this->_tpl_vars['paging']): ?>
      <div class="pagecontrols clr"><div class="pagination"><?php echo $this->_tpl_vars['paging']; ?>
</div></div>
    <?php endif; ?>

    <?php if ($this->_tpl_vars['freeItem']): ?>
      <ul class="topauthorlist clr">
      <?php $_from = $this->_tpl_vars['freeItem']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['fi']):
?>
        <li class="authoritem landscape-image-magnifier">
          <a class="avatar" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['fi']['id']; ?>
" onclick="">
        <img alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['fi']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" border="0" class="preload no_preview" data-item-author="作者 <?php echo $this->_tpl_vars['users'][$this->_tpl_vars['fi']['user_id']]['nickname']; ?>
" data-item-category="<?php $_from = $this->_tpl_vars['i']['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['fi']['price']; ?>
" data-item-name="<?php echo ((is_array($_tmp=$this->_tpl_vars['fi']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" data-preview-height="" data-preview-url="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['fi']['id']; ?>
/<?php echo $this->_tpl_vars['i']['theme_preview']; ?>
" data-preview-width="" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['fi']['id']; ?>
/<?php echo $this->_tpl_vars['fi']['thumbnail']; ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['fi']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" item-type-free="1" />
        </a>
          <div class="itemdetail">
            <h3><a title="<?php echo $this->_tpl_vars['fi']['name']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['u']['username']; ?>
"><?php echo $this->_tpl_vars['fi']['name']; ?>
</a></h3>
          </div>
          <div class="sales">
            <p class="nums"><span><?php echo $this->_tpl_vars['fi']['sales']; ?>
</span>销量</p>
          </div>
          <div class="itemstars">
            <div style="width:<?php echo $this->_tpl_vars['fi']['rating']*2; ?>
0%;" class="starnums"><span class="allstars"></span></div>
            <div class="starsbg"></div>
          </div>
        </li>
      <?php endforeach; endif; unset($_from); ?>
      </ul>
        <!--
          <small class="meta">
            <strong><?php echo $this->_tpl_vars['u']['items']; ?>
</strong>作品<br>
            <strong><?php echo $this->_tpl_vars['u']['followers']; ?>
</strong>粉丝<br>
            注册时间：<?php echo ((is_array($_tmp=$this->_tpl_vars['u']['register_datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
<br>
            <?php if ($this->_tpl_vars['u']['custom_made'] == 'true'): ?> 可承接威客工作<br><?php endif; ?>
          </small>-->
    <?php else: ?>
      <div class="content-box vertical-space"><?php echo $this->_tpl_vars['lang']['no_users']; ?>
</div>
    <?php endif; ?>
    <?php if ($this->_tpl_vars['paging']): ?>
      <div class="pagecontrols clr"><div class="pagination"><?php echo $this->_tpl_vars['paging']; ?>
</div></div>
    <?php endif; ?>
  </div>
  <script>
  <?php echo '
  seajs.use(["jq", "pageui"], function($, ui){
    ui.navSearchHide();
    ui.imgMagnifier("li.landscape-image-magnifier");
  });
  '; ?>

  </script>
  </div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>