<?php /* Smarty version 2.6.22, created on 2016-01-08 17:14:15
         compiled from E:/xampp/htdocs/templates/home/default//html/pagenav-user-settings.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'string_format', 'E:/xampp/htdocs/templates/home/default//html/pagenav-user-settings.html', 30, false),)), $this); ?>
<div class="app-header navbar-md pos-fix no-radius black dk no-bg pree">
  <div class="container-fluid">
    <div class="navbar">
      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/logo.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      <!-- nabar right -->
      <ul class="nav navbar-nav pull-right">
        <li class="nav-item main-i hidden-md-up">
          <a data-toggle="modal" data-target="#aside" class="nav-link">
            <span><i class="nav-text icon-list"></i></span>
          </a>
        </li>
        <li class="nav-item main-i m-l-md hidden-md-up">
          <a data-toggle="collapse" data-target="#navbar-4" class="nav-link">
            <span><i class="nav-text icon-magnifier"></i></span>
          </a>
        </li>
        <li class="nav-item main-i dropdown hidden-xs-down">
          <a href class="nav-link" data-toggle="dropdown" title="账户余额">
            <i class="nav-text icon-wallet"></i>
            <span class="label up p-a-0 accent"></span>
          </a>
          <?php if (check_login_bool ( )): ?>
          <div class="dropdown-menu w-lg text-color no-borders no-shadow pull-right p-a-0 animated flipInX" style="border-radius0; right: -30px">
            <div class="box r-t r-b white-only m-b-0">
              <span class="arrow top pull-right b-white" style="right: 52px;"></span>
              <div class="box-body text-center">
                <h6 class="text-u-c p-v-sm m-a-0 m-t">我的账户</h6>
                <h3 class="m-a-0 m-l m-v p-t-md">
                  <sup class="price text-sm" style="top: -.3rem;">￥</sup>
                  <span class="h2 price"><?php echo ((is_array($_tmp=$_SESSION['user']['total'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</span>
                  <span class="text-xs">/ 可用</span>
                </h3>
              </div>
              <div class="box-footer p-t-sm p-b-md text-center">
                <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
deposit/" target="_blank" class="btn btn-fw p-y-xs skin">充值</a>
              </div>
            </div>
          </div>
          <?php else: ?>
          <div class="dropdown-menu pull-right dropdown-menu-scale white lt sub-drop b-skin">
            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
sign_in/" class="dropdown-item"><span class="nav-text">登录</span></a>
            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
sign_up/" class="dropdown-item"><span class="nav-text">注册</span></a>
          </div>
          <?php endif; ?>
        </li>
        <li class="nav-item main-i hidden-xs-down" data-toggle="tooltip" data-placement="bottom" title="控制面板" >
          <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
settings/" class="nav-link">
            <span><i class="nav-text icon-settings"></i></span>
          </a>
        </li>
        <?php if (check_login_bool ( )): ?>
        <li class="nav-item dropdown">
          <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $_SESSION['user']['username']; ?>
" class="nav-link dropdown-toggle" data-toggle="dropdown">
            <?php if ($_SESSION['user']['avatar'] != ''): ?>
            <span class="w-32 avatar">
              <img alt="<?php echo $this->_tpl_vars['user']['username']; ?>
" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $_SESSION['user']['user_id']; ?>
/A_<?php echo $_SESSION['user']['avatar']; ?>
" />
            </span>
            <?php else: ?>
            <span class="w-32 circle skin _100">
              NP
            </span>
            <?php endif; ?>
          </a>
          <div class="dropdown-menu w-xxl pull-right dropdown-menu-scale p-a-0">
            <div class="box white text-center m-b-0">
              <span class="arrow top pull-right b-skin" style="right: 42px;"></span>
              <div class="p-a skin b-b">
                <p>
                  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $_SESSION['user']['username']; ?>
" class="hover" title="个人主页">
                    <?php if ($_SESSION['user']['avatar'] != ''): ?>
                    <img alt="<?php echo $this->_tpl_vars['user']['username']; ?>
" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $_SESSION['user']['user_id']; ?>
/A_<?php echo $_SESSION['user']['avatar']; ?>
" class="img-circle w-96 b-a b-3x b-white hover-rotate360" />
                    <?php else: ?>
                    <span class="w-96 circle skin text-md b-a b-3x b-white hover-rotate360">
                      <span class="price opacity" style="vertical-align: 0%;">NOPIC</span>
                    </span>
                    <?php endif; ?>
                  </a>
                </p>
                <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $_SESSION['user']['username']; ?>
" class="h4 block">
                  <?php echo $_SESSION['user']['username']; ?>

                </a>
                <p class="m-b-0"><small><?php if ($_SESSION['user']['profile_title'] != ''): ?><?php echo $_SESSION['user']['profile_title']; ?>
<?php else: ?>您太懒了，未填写签名哦<?php endif; ?></small></p>
              </div>
              <div class="row white white-only lt wr no-gutter text-skin-hover">
                <div class="col-xs-4 b-r b-b">
                  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $_SESSION['user']['username']; ?>
" class="p-a block text-center">
                    <i class="icon-home md-24 text-muted m-v-sm"></i>
                    <span class="block">主页</span>
                  </a>
                </div>
                <div class="col-xs-4 b-r b-b">
                  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
author_dashboard/" class="p-a block text-center">
                    <i class="icon-speedometer md-24 text-muted m-v-sm"></i>
                    <span class="block">控制台</span>
                  </a>
                </div>
                <div class="col-xs-4 b-b">
                  <?php if ($_SESSION['user']['quiz'] == 'true'): ?>
                  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
upload/" class="p-a block text-center">
                    <i class="icon-note md-24 text-muted m-v-sm"></i>
                    <span class="block">发布作品</span>
                  </a>
                  <?php else: ?>
                  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
author_dashboard/" class="p-a block text-center">
                    <i class="icon-note md-24 text-muted m-v-sm"></i>
                    <span class="block">成为作者</span>
                  </a>
                  <?php endif; ?>
                </div>
                <div class="col-xs-4 b-r">
                  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
download/" class="p-a block text-center">
                    <i class="icon-cloud-download md-24 text-muted m-v-sm"></i>
                    <span class="block">已购买</span>
                  </a>
                </div>
                <div class="col-xs-4 b-r">
                  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/bookmarks/" class="p-a block text-center">
                    <i class="icon-star md-24 text-muted m-v-sm"></i>
                    <span class="block">书签</span>
                  </a>
                </div>
                <div class="col-xs-4">
                  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/logout/" class="p-a block text-center" id="sign-out-button">
                    <i class="icon-power md-24 text-muted m-v-sm"></i>
                    <span class="block text-sm">退出</span>
                  </a>
                </div>
              </div>
            </div>
          </div>
        </li>
        <?php else: ?>


        <li class="nav-item dropdown">
          <a href="#" class="nav-link dropdown-toggle clear" data-toggle="dropdown">
            <span class="circle skin _100 w-32">
              NP
            </span>
          </a>
          <!--<div class="dropdown-menu w-sm text-color no-borders pull-right p-a-0 animated flipInX">
            <div class="box r-t r-b m-b-0 skin">
              <span class="arrow top pull-right b-skin" style="right: 42px;"></span>
              <div class="box-body text-center">
                <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
sign_in/" class="dropdown-item"><span class="nav-text">登录</span></a>
                <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
sign_up/" class="dropdown-item m-t-xs"><span class="nav-text">注册</span></a>
              </div>
            </div>
          </div>-->
          <div class="dropdown-menu pull-right dropdown-menu-scale white lt sub-drop b-skin">
            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
sign_in/" class="dropdown-item"><span class="nav-text">登录</span></a>
            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
sign_up/" class="dropdown-item"><span class="nav-text">注册</span></a>
          </div>
        </li>
        <?php endif; ?>
      </ul>
      <!-- / navbar right -->
      <!-- navbar collapse -->
      <div class="collapse navbar-toggleable-sm" id="navbar-4" data-pjax>
        <!-- search form -->
        <form id="search" action="/<?php echo $this->_tpl_vars['languageURL']; ?>
search/" method="GET" class="navbar-form form-inline pull-right pull-none-sm navbar-item v-m m-s" role="search">
          <div class="form-group l-h m-a-0">
            <div class="input-group input-group-sm">
              <input type="text" class="form-control p-x b-a rounded" name="term" placeholder="Search projects..." />
              <span class="input-group-btn">
                <button type="submit" class="btn white b-a rounded no-b-l no-shadow"><i class="icon-magnifier"></i></button>
              </span>
            </div>
          </div>
        </form>
        <!-- / search form -->
        <!-- link and dropdown -->
        <!--<div class="nav h-nav navbar-nav pull-left hidden-sm-down b-skin m-l-md">

          <?php if ($this->_tpl_vars['mainCategories']): ?>
          <?php $_from = $this->_tpl_vars['mainCategories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?>
          <li class="nav-item dropdown main-nav myDrop">
            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
categories/<?php echo $this->_tpl_vars['c']['id']; ?>
" class="nav-link text-md dropdown-toggle">
              <?php echo $this->_tpl_vars['c']['name']; ?>

            </a>
            <?php if (isset ( $this->_tpl_vars['allCats'][$this->_tpl_vars['c']['id']] )): ?>
            <div class="dropdown-menu dropdown-menu-scale white-only lt sub-drop b-skin">
              <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
categories/<?php echo $this->_tpl_vars['c']['id']; ?>
?sort_by=sales_count&order=desc" class="dropdown-item p-y-sm"><span class="nav-text">热门作品</span></a>
              <?php $_from = $this->_tpl_vars['allCats'][$this->_tpl_vars['c']['id']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['s']):
?>
              <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
categories/<?php echo $this->_tpl_vars['s']['id']; ?>
" class="dropdown-item p-y-sm"><?php echo $this->_tpl_vars['s']['name']; ?>
</a>
              <?php endforeach; endif; unset($_from); ?>
            </div>
            <?php endif; ?>
          </li>
          <?php endforeach; endif; unset($_from); ?>
          <?php endif; ?>
        </div>-->
        <!-- / link and dropdown -->
      </div>
      <!-- / navbar collapse -->
    </div>
  </div>
</div>
<?php echo '
<style>
  body.container .app-header.pree {
    width: 100%;
    left: 0;
    right: 0;
  }
</style>
'; ?>