<?php /* Smarty version 2.6.22, created on 2017-09-20 22:46:02
         compiled from D:%5CWWW%5Cdemo/templates/home/default%5Cindex%5Cindex.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'D:\\WWW\\demo/templates/home/default\\index\\index.html', 64, false),array('modifier', 'date_format', 'D:\\WWW\\demo/templates/home/default\\index\\index.html', 90, 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);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/js/index.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/jstemplate.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</head>
<body>
<div class="app" id="app">
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/mobile-nav.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- content -->
  <div id="content" class="app-content box-shadow-z4" role="main">
    <?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="app-body" id="view">
      <div class="clearfix grey-100 text-center">
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/banner.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      </div>
      <!-- ############ PAGE START-->
      <?php $_from = $this->_tpl_vars['htmlmb'][1]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['val']):
?>
      <div class="clearfix white p-t-md p-b-md p-xs-t p-xs-b pos-rlt" style="z-index: 2">
        <div class="container">
          <div class="row">
            <div class="col-xs-6 col-md-2 col-lg-2 m-t-xs">
              <h3 class="m-t-none m-b-none phone-h2">
                <i class="icon-handbag text-skin md-36"></i>
                <?php echo $this->_tpl_vars['val']['categories']['name']; ?>

              </h3>
            </div>
            <div class="col-xs-6 col-md-7 col-lg-7 small-nav hidden-sm-down">
              <?php $_from = $this->_tpl_vars['val']['categories_son']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['j']):
?>
              <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
categories/<?php echo $this->_tpl_vars['j']['id']; ?>
" target="_blank" class="btn btn-link shadow-skin">
                <i class="m-r-sm"></i><?php echo $this->_tpl_vars['j']['name']; ?>

              </a>
              <?php endforeach; endif; unset($_from); ?>
            </div>
            <div class="col-xs-6 col-md-3 col-lg-3 text-right">
              <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
upload/form/?category=1" target="_blank" class="btn phonebtn btn-outline rounded b-skin text-skin">
                <i class="i i-file-plus m-r-xs"></i>
                发布模板
              </a>
              <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
categories/1" class="btn phonebtn-icon btn-icon b-2x b-skin skin rounded hover">
                <i class="icon-gengduo hover-rotate"></i>
              </a>
            </div>
          </div>
          <div class="row m-t">
            <?php if ($this->_tpl_vars['val']['items']): ?>
            <?php $_from = $this->_tpl_vars['val']['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
            <div class="col-xs-6 col-sm-6 col-md-4">
              <section class="box mb-col b-a pos-rlt image">
                <div class="browser clearfix">
                  <span class="col-xs-3 col-sm-3">
                    <i class="yuan"></i>
                  </span>
                  <span class="col-xs-6 col-sm-6">
                    <em>
                    </em>
                  </span>
                  <span class="col-xs-3 col-sm-3 three">
                    <i class="icon-cross2"></i>
                    <i class="icon-check_box_outline_blank"></i>
                    <i class="icon-minus3"></i>
                  </span>
                </div>
                <div class="box-body pic">
                  <div class="img-container fx-img-rotate-l fx-opt-zoom-out">
                    <img data-original="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['i']['id']; ?>
/<?php echo $this->_tpl_vars['i']['thumbnail']; ?>
" src="/mbthemes/assets/images/load.png" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" class="img-responsive">
                    <div class="img-options opw">
                      <div class="img-options-content">
                        <?php if ($this->_tpl_vars['i']['demo_url']): ?>
                        <a data-toggle="ajaxModal" data-src="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/itempreview/<?php echo $this->_tpl_vars['i']['id']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/preview/<?php echo $this->_tpl_vars['i']['id']; ?>
" class="btn btn-lg skin m-r-md hidden-xs-down" title="在线演示">
                          <i class="icon-eye"></i>
                        </a>
                        <?php else: ?>
                        <?php endif; ?>
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="btn btn-lg danger" title="查看详情">
                          <i class="icon-magnifier-add"></i>
                        </a>
                      </div>
                    </div>
                    <span class="sale" title="销量">
                      <i class="icon-handbag m-r-xs"></i> <?php echo ((is_array($_tmp=$this->_tpl_vars['i']['sales'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>

                    </span>
                  </div>
                </div>
                <a class="ribbon ribbon-skin"><?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 if (($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?><?php echo $this->_tpl_vars['categories'][$this->_tpl_vars['c']]['name']; ?>
<?php endif; ?>
                  <?php endforeach; endif; unset($_from); ?>
                  <?php endforeach; endif; unset($_from); ?></a>
                <div class="mb-footer">
                  <!--<div class="text-muted m-b-xs">
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="m-r"><i class="icon-clock m-r-xs"></i> <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['i']['datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%m-%d") : smarty_modifier_date_format($_tmp, "%m-%d")))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="m-r"><i class="icon-bubbles m-r-xs"></i> <?php echo ((is_array($_tmp=$this->_tpl_vars['i']['comments'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><i class="icon-handbag m-r-xs"></i> <?php echo ((is_array($_tmp=$this->_tpl_vars['i']['sales'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                  </div>-->
                  <div class="h-2xx"><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="h5"><?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a></div>
                  <div class="clearfix m-t-xs">
                    <div class="pull-left m-r-sm dropdown myDrop">
                      <a data-toggle="ajaxUser" data-src="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/portfolio/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" class="pull-left myUserAjax">
                        <span class="w-32 avatar">
                          <?php if ($this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['avatar'] != ''): ?>
                          <img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['i']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['avatar']; ?>
" />
                          <?php else: ?>
                          <span class="circle skin _100 w-32 fs-80">
                            NP
                          </span>
                          <?php endif; ?>
                        </span>
                      </a>
                    </div>
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" target="_blank" class="pull-left m-t-sm clear">
                      <?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['nickname']; ?>

                    </a>
                    <div class="pull-right">
                      <div class="h-32"><span class="price-rmb text-skin"><small>￥</small><?php if ($this->_tpl_vars['i']['free_file'] == 'true'): ?>0<?php else: ?><?php echo $this->_tpl_vars['i']['price']; ?>
<?php endif; ?></span></div>
                    </div>
                  </div>
                </div>
              </section>
            </div>
            <?php endforeach; endif; unset($_from); ?>
            <?php endif; ?>
          </div>
        </div>
      </div>
      <?php endforeach; endif; unset($_from); ?>

      <div class="clearfix grey-100 p-t-lg p-b-md p-xs-t p-xs-b pos-rlt" style="z-index: 1">
        <div class="container">
          <div class="row">
            <div class="col-xs-6 col-md-3 col-lg-3">
              <h3 class="m-t-xs m-b-none phone-h2">
                <i class="icon-eyeglasses text-skin md-36"></i>
                最新上传
              </h3>
            </div>
            <div class="col-xs-6 col-md-6 col-lg-6 hidden-sm-down">
              <ul class="nav nav-tabs btn-group z0">
                <li class="nav-item">
                  <a class="btn tabsbtn active phonebtn p-x-md p-xs-x b-t-r-r b-b-r-r" href data-toggle="tab" data-target="#news">最新</a>
                </li>
                <li class="nav-item m-l-0">
                  <a class="btn tabsbtn phonebtn p-x-md p-xs-x text-skin no-radius" style="margin-left:-1px;" data-toggle="tab" data-target="#sales">销量</a>
                </li>
                <li class="nav-item m-l-0">
                  <a class="btn tabsbtn phonebtn p-x-md p-xs-x text-skin b-t-l-r b-b-l-r" style="margin-left:-1px;" data-toggle="tab" data-target="#frees">免费</a>
                </li>
              </ul>
            </div>
            <div class="col-xs-6 col-md-3 col-lg-3 text-right">
              <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
upload/form/?category=17" target="_blank" class="btn phonebtn btn-outline rounded b-skin text-skin">
                <i class="i i-file-plus m-r-xs"></i>
                发布作品
              </a>
              <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
categories/all/" class="btn phonebtn-icon btn-icon b-2x b-skin skin rounded hover" title="更多作品">
                <i class="icon-gengduo hover-rotate"></i>
              </a>
            </div>
          </div>


          <div class="tab-content">
            <div class="tab-pane animated fadeIn active" id="news">
              <?php if ($this->_tpl_vars['recentItems']): ?>
              <div class="row text-skin-hover m-t">
                <?php $_from = $this->_tpl_vars['recentItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
                <div class="col-xs-6 col-sm-6 col-md-3">
                  <div class="box mb-co-b b-a">
                    <div class="item dark">
                      <div class="img-container fx-img-rotate-l fx-opt-zoom-out">
                        <img data-original="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['i']['id']; ?>
/<?php echo $this->_tpl_vars['i']['thumbnail']; ?>
" src="/mbthemes/assets/images/load.png" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" class="img-responsive">
                        <div class="img-options">
                          <div class="img-options-content">
                            <?php if ($this->_tpl_vars['i']['demo_url']): ?>
                            <a data-toggle="ajaxModal" data-src="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/itempreview/<?php echo $this->_tpl_vars['i']['id']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/preview/<?php echo $this->_tpl_vars['i']['id']; ?>
" class="btn skin m-r-md hidden-xs-down" title="在线演示">
                              <i class="icon-eye"></i>
                            </a>
                            <?php else: ?>
                            <?php endif; ?>
                            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="btn danger text-white" title="查看详情">
                              <i class="icon-magnifier-add"></i>
                            </a>
                          </div>
                        </div>
                      </div>
                    </div>
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="md-btn md-raised md-fab md-mini m-r pos-rlt md-fab-offset pull-right white"><i class="icon-plus2 md-24"></i></a>
                    <div class="p-a">
                      <div class="text-muted">
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" title="更新日期" class="hidden-xs-down m-r"><i class="icon-clock m-r-xs"></i> <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['i']['datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%m-%d") : smarty_modifier_date_format($_tmp, "%m-%d")))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
#comment" target="_blank" title="评论" class="m-r"><i class="icon-bubbles m-r-xs"></i> <?php echo ((is_array($_tmp=$this->_tpl_vars['i']['comments'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" title="销量"><i class="icon-handbag m-r-xs"></i> <?php echo ((is_array($_tmp=$this->_tpl_vars['i']['sales'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                      </div>
                      <div class="h-2xx"><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" class="h6"><?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a></div>
                      <div class="clearfix m-t-xs">
                        <div class="pull-left m-r-sm dropdown myDrop">
                          <a data-toggle="ajaxUser" data-src="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/portfolio/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" class="pull-left myUserAjax">
                            <span class="w-32 avatar">
                              <?php if ($this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['avatar'] != ''): ?>
                              <img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['i']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['avatar']; ?>
" />
                              <?php else: ?>
                              <span class="circle skin _100 w-32 fs-80">
                                NP
                              </span>
                              <?php endif; ?>
                            </span>
                          </a>
                        </div>
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" target="_blank" class="username pull-left m-t-sm clear">
                          <?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['nickname']; ?>

                        </a>
                        <div class="pull-right">
                          <div class="h-32"><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="price">￥<span class="text-lg"> <?php if ($this->_tpl_vars['i']['free_file'] == 'true'): ?>0<?php else: ?><?php echo $this->_tpl_vars['i']['price']; ?>
<?php endif; ?></span></a></div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <?php endforeach; endif; unset($_from); ?>
              </div>
              <?php endif; ?>
            </div>
            <div class="tab-pane animated fadeIn" id="sales">
              <?php if ($this->_tpl_vars['hotItems']): ?>
              <div class="row text-skin-hover m-t">
                <?php $_from = $this->_tpl_vars['hotItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
                <div class="col-xs-6 col-sm-6 col-md-3">
                  <div class="box mb-co-b b-a">
                    <div class="item dark">
                      <div class="img-container fx-img-rotate-l fx-opt-zoom-out">
                        <img data-original="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['i']['id']; ?>
/<?php echo $this->_tpl_vars['i']['thumbnail']; ?>
" src="/mbthemes/assets/images/load.png" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" class="img-responsive">
                        <div class="img-options">
                          <div class="img-options-content">
                            <?php if ($this->_tpl_vars['i']['demo_url']): ?>
                            <a data-toggle="ajaxModal" data-src="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/itempreview/<?php echo $this->_tpl_vars['i']['id']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/preview/<?php echo $this->_tpl_vars['i']['id']; ?>
" class="btn skin m-r-md hidden-xs-down" title="在线演示">
                              <i class="icon-eye"></i>
                            </a>
                            <?php else: ?>
                            <a data-toggle="MobanBoxAjax" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/screenshots/<?php echo $this->_tpl_vars['i']['id']; ?>
" title="截图预览" class="btn skin m-r-md hidden-xs-down">
                              <i class="icon-eye"></i>
                            </a>
                            <?php endif; ?>
                            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="btn danger text-white" title="查看详情">
                              <i class="icon-magnifier-add"></i>
                            </a>
                          </div>
                        </div>
                      </div>
                    </div>
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="md-btn md-raised md-fab md-mini m-r pos-rlt md-fab-offset pull-right white"><i class="icon-plus2 md-24"></i></a>
                    <div class="p-a">
                      <div class="text-muted">
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" title="更新日期" class="hidden-xs-down m-r"><i class="icon-clock m-r-xs"></i> <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['i']['datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%m-%d") : smarty_modifier_date_format($_tmp, "%m-%d")))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
#comment" target="_blank" title="评论" class="m-r"><i class="icon-bubbles m-r-xs"></i> <?php echo ((is_array($_tmp=$this->_tpl_vars['i']['comments'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" title="销量"><i class="icon-handbag m-r-xs"></i> <?php echo ((is_array($_tmp=$this->_tpl_vars['i']['sales'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                      </div>
                      <div class="h-2xx"><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="h6"><?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a></div>
                      <div class="clearfix m-t-xs">
                        <div class="pull-left m-r-sm dropdown myDrop">
                          <a data-toggle="ajaxUser" data-src="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/portfolio/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" class="pull-left myUserAjax">
                            <span class="w-32 avatar">
                              <?php if ($this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['avatar'] != ''): ?>
                              <img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['i']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['avatar']; ?>
" />
                              <?php else: ?>
                              <span class="circle skin _100 w-32 fs-80">
                                NP
                              </span>
                              <?php endif; ?>
                            </span>
                          </a>
                        </div>
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" target="_blank" class="username pull-left m-t-sm clear">
                          <?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['nickname']; ?>

                        </a>
                        <div class="pull-right">
                          <div class="h-32"><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="price">￥<span class="text-lg"> <?php if ($this->_tpl_vars['i']['free_file'] == 'true'): ?>0<?php else: ?><?php echo $this->_tpl_vars['i']['price']; ?>
<?php endif; ?></span></a></div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <?php endforeach; endif; unset($_from); ?>
              </div>
              <?php endif; ?>
            </div>
            <div class="tab-pane" id="frees">
              <div class="row text-skin-hover m-t">
                <?php if ($this->_tpl_vars['freeItem']): ?>
                <?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']):
?>
                <div class="col-xs-6 col-sm-6 col-md-3">
                  <div class="box mb-co-b b-a">
                    <div class="item dark">
                      <div class="img-container fx-img-rotate-l fx-opt-zoom-out">
                        <img data-original="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['fi']['id']; ?>
/<?php echo $this->_tpl_vars['fi']['thumbnail']; ?>
" src="/mbthemes/assets/images/load.png" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['fi']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" class="img-responsive">
                        <div class="img-options">
                          <div class="img-options-content">
                            <?php if ($this->_tpl_vars['fi']['demo_url']): ?>
                            <a data-toggle="ajaxModal" data-src="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/itempreview/<?php echo $this->_tpl_vars['fi']['id']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/preview/<?php echo $this->_tpl_vars['fi']['id']; ?>
" class="btn skin m-r-md hidden-xs-down" title="在线演示">
                              <i class="icon-eye"></i>
                            </a>
                            <?php else: ?>
                            <a data-toggle="MobanBoxAjax" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/screenshots/<?php echo $this->_tpl_vars['fi']['id']; ?>
" title="截图预览" class="btn skin m-r-md hidden-xs-down">
                              <i class="icon-eye"></i>
                            </a>
                            <?php endif; ?>
                            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['fi']['id']; ?>
" target="_blank" class="btn danger text-white" title="查看详情">
                              <i class="icon-magnifier-add"></i>
                            </a>
                          </div>
                        </div>
                      </div>
                    </div>
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['fi']['id']; ?>
" target="_blank" class="md-btn md-raised md-fab md-mini m-r pos-rlt md-fab-offset pull-right white"><i class="icon-plus2 md-24"></i></a>
                    <div class="p-a">
                      <div class="text-muted">
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['fi']['id']; ?>
" target="_blank" title="更新日期" class="hidden-xs-down m-r"><i class="icon-clock m-r-xs"></i> <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['fi']['datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%m-%d") : smarty_modifier_date_format($_tmp, "%m-%d")))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['fi']['id']; ?>
#comment" target="_blank" title="评论" class="m-r"><i class="icon-bubbles m-r-xs"></i> <?php echo ((is_array($_tmp=$this->_tpl_vars['fi']['comments'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['fi']['id']; ?>
" target="_blank" title="销量"><i class="icon-handbag m-r-xs"></i> <?php echo ((is_array($_tmp=$this->_tpl_vars['fi']['sales'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                      </div>
                      <div class="h-2xx"><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['fi']['id']; ?>
" target="_blank" class="h6"><?php echo ((is_array($_tmp=$this->_tpl_vars['fi']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a></div>
                      <div class="clearfix m-t-xs">
                        <div class="pull-left m-r-sm dropdown myDrop">
                          <a data-toggle="ajaxUser" data-src="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/portfolio/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['fi']['user_id']]['username']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['fi']['user_id']]['username']; ?>
" class="pull-left myUserAjax">
                            <span class="w-32 avatar">
                              <?php if ($this->_tpl_vars['users'][$this->_tpl_vars['fi']['user_id']]['avatar'] != ''): ?>
                              <img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['fi']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['fi']['user_id']]['avatar']; ?>
" />
                              <?php else: ?>
                              <span class="circle skin _100 w-32 fs-80">
                                NP
                              </span>
                              <?php endif; ?>
                            </span>
                          </a>
                        </div>
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['fi']['user_id']]['username']; ?>
" class="username pull-left m-t-sm clear">
                          <?php echo $this->_tpl_vars['users'][$this->_tpl_vars['fi']['user_id']]['nickname']; ?>

                        </a>
                        <div class="pull-right">
                          <div class="h-32"><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['fi']['id']; ?>
" target="_blank" class="price">￥<span class="text-lg"> <?php if ($this->_tpl_vars['fi']['free_file'] == 'true'): ?>0<?php else: ?><?php echo $this->_tpl_vars['fi']['price']; ?>
<?php endif; ?></span></a></div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <?php endforeach; endif; unset($_from); ?>
                <?php endif; ?>
              </div>
            </div>
          </div>


        </div>
      </div>



      <?php if ($this->_tpl_vars['newAuthor']): ?>
      <div class="clearfix white p-t-lg p-b-md p-xs-t p-xs-b pos-rlt" style="z-index: 0">
        <div class="container">
          <div class="row">
            <div class="col-xs-6 col-sm-6 col-md-3">
              <h3 class="m-t-none m-b-none phone-h2">
                <i class="icon-user-following text-skin md-36"></i>
                设计师
              </h3>
            </div>
            <div class="col-md-6 small-nav hidden-sm-down">
              <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/top/" class="btn btn-link shadow-skin active">
                <i class="m-r-xs"></i>
                推荐
              </a>
              <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/top/" class="btn btn-link shadow-skin">
                <i class="m-r-xs"></i>
                最热
              </a>
              <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/top/" class="btn btn-link shadow-skin">
                <i class="m-r-xs"></i>
                最新
              </a>
            </div>
            <div class="col-xs-6 col-sm-6 col-md-3 text-right">
              <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
make_money/become_an_author" class="btn phonebtn btn-outline rounded b-skin text-skin">
                <i class="i i-file-plus m-r-xs"></i>
                成为作者
              </a>
              <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/top/" class="btn phonebtn-icon btn-icon b-2x b-skin skin rounded hover">
                <i class="icon-gengduo hover-rotate"></i>
              </a>
            </div>
          </div>
          <div class="row row-sm m-t-md ng-scope">
            <?php $_from = $this->_tpl_vars['newAuthor']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['j']):
?>
            <div class="col-xs-6 col-lg-3">
              <div class="list-item box user-items b-a au-no-s r m-b">
                <?php if ($this->_tpl_vars['j']['featured_author'] == 'true'): ?>
                <span class="label rounded skin pos-abt text-xs m-r-xs" style="top: -.75rem; right: 10%">
                  <b class="arrow bottom b-skin pull-in"></b>
                  推荐
                </span>
                <?php elseif ($this->_tpl_vars['j']['elite_author'] == 'true' || $this->_tpl_vars['j']['power_elite_author'] == 'true'): ?>
                <span class="label rounded danger pos-abt text-xs m-r-xs" style="top: -.75rem; right: 10%">
                  <b class="arrow bottom b-danger pull-in"></b>
                  精英
                </span>
                <?php else: ?>
                <?php endif; ?>

                <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['j']['username']; ?>
" target="_blank" title="<?php echo $this->_tpl_vars['j']['nickname']; ?>
" class="list-left">
                  <span class="w-64 avatar">
                    <?php if ($this->_tpl_vars['j']['avatar'] != ''): ?>
                    <img alt="<?php echo $this->_tpl_vars['j']['nickname']; ?>
" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['j']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['j']['avatar']; ?>
" />
                    <?php else: ?>
                    <span class="w-64 text-md circle skin avatar _100">
                      NP
                    </span>
                    <?php endif; ?>
                    <i class="on b-white bottom"></i>
                  </span>
                </a>
                <div class="list-body">
                  <div class="text-ellipsis text-lg">
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['j']['username']; ?>
" target="_blank"><?php echo $this->_tpl_vars['j']['nickname']; ?>
</a>
                  </div>
                  <?php if ($this->_tpl_vars['j']['featured_author'] == 'true'): ?>
                  <small class="text-muted text-ellipsis">推荐作者</small>
                  <?php elseif ($this->_tpl_vars['j']['elite_author'] == 'true' || $this->_tpl_vars['j']['power_elite_author'] == 'true'): ?>
                  <small class="text-muted text-ellipsis">精英作者</small>
                  <?php else: ?>
                  <small class="text-muted text-ellipsis">普通作者</small>
                  <?php endif; ?>
                </div>
              </div>
            </div>
            <?php endforeach; endif; unset($_from); ?>

          </div>
        </div>
      </div>
      <?php endif; ?>
    </div>
    <!-- ############ PAGE END-->
    <?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);
 ?>
  </div>
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/backtop.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/mb-settings.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- ############ LAYOUT END-->
</div>
<script type="text/javascript">
  <?php echo '
  $(function() {
    if ($.support.pjax) {
      $.pjax.defaults.maxCacheLength = 0;
      var container = $(\'#view\');
      $(document).on(\'click\', \'#pagination li a,.small-nav a,a[data-pjax], [data-pjax] a, a.navbar-brand\', function(event) {
        $.pjax.click(event, {
          container: container,
          timeout: 6000,
          fragment: \'#view\',
          show: \'fade\',
          cache: false,
          storage: true,
          scrollTo: false
        });
      });

      $(document).on(\'submit\',\'form#search,button.searchbtn\',function(event) {
        $.pjax.submit(event,{
          container: container,
          timeout: 6000,
          fragment: \'#view\',
          show: \'fade\',
          cache: false,
          storage: true,
          scrollTo: false
        });
      });

      $(document).on(\'pjax:start\', function() {
        $( document ).trigger( "pjaxStart" );
      });
      // fix js
      $(document).on(\'pjax:end\', function(event) {
        $( document ).trigger( "pjaxEnd" );
        $("img.img-responsive").lazyload({
          effect : "fadeIn",
          threshold : 200
        });
      });
    }
  });
  '; ?>

</script>

<script type="text/javascript">
  <?php echo '
  $(function() {
    $("img.img-responsive").lazyload({
      effect : "fadeIn",
      threshold : 200
    });
  });
  '; ?>

</script>
</body>
</html>