
<?php if ($route != 'thread' && isset($light_config['dock_switch']) && $light_config['dock_switch'] == 1) { ?>
  <style>
    @media screen and (max-width: 992px) {
    #footer{padding-bottom: 4rem !important};
    }
  </style>
<div class="position-fixed w-100 header_fiexd bottom-nav d-lg-none bottom-nav-bt" >

  <div class="row mx-0 text-center align-items-center" style="height: 55px;">
      <a href="./" class="col" data-active="index">
          <div>
              <i class="iconfont icon-dockhome"></i>
          </div>
          <div class="nav_font">
              <?php echo lang('dock_home');?>
          </div>
      </a>
<?php if (isset($light_config['disc_page']) && $light_config['disc_page'] == 1 && $light_config['disc_page_index'] == 0) { ?>
      <a href="<?php echo url('discovery');?>" class="col" data-active="discovery">
          <div>
              <i class="iconfont icon-dockfenlei"></i>
          </div>
          <div class="nav_font">
            <?php echo $light_config['disc_page_title'];?>
          </div>
      </a>
      <?php }else if(isset($light_config['disc_page']) && $light_config['disc_page'] && $light_config['disc_page_index']){ ?>
        <a href="<?php echo url('bbs');?>" class="col" data-active="bbs" >
          <div>
              <i class="iconfont icon-dockfenlei"></i>
          </div>
          <div class="nav_font">
              论坛
          </div>
      </a>
      <?php }else{ ?>
        <a href="javascript:;" class="col" data-toggle="modal" data-target="#forum">
          <div>
              <i class="iconfont icon-dockfenlei"></i>
          </div>
          <div class="nav_font">
              <?php echo lang('dock_category');?>
          </div>
      </a>
        <?php } ?>
  <?php if($uid){ ?>
  <a href="<?php echo url("thread-create-$fid");?>" class="col">
      <button type="button" class="btn btn-primary jb-blue"><i class="iconfont icon-dockfatie"></i></button>
  </a>
  <?php  } ?>
  <?php if (isset($light_config['dock_func_3']) && $light_config['dock_func_3'] == 1) { ?>  
      <a href="<?php echo url("my-notice");?>" class="col" data-active="notice">
          <div>
              <i class="iconfont icon-dockxiaoxi"></i>
              <?php
              if(getUnread_notices($user['uid'])) { ?>
                <span class="badge jb-red badge-pill position-absolute" ><?php echo getUnread_notices($user['uid']); ?></span>
          <?php  } ?>
          </div>
          <div class="nav_font">
              <?php echo lang('dock_notice');?>
          </div>
      </a>
      <?php } else {?>
      <a href="<?php echo url("search");?>" class="col" data-active="search">
        <div>
            <i class="iconfont icon-docksousuo"></i>
        </div>
        <div class="nav_font">
            <?php echo lang('dock_search');?>
        </div>
    </a>
    <?php } ?>
      <a href="<?php echo url("my");?>" class="col" data-active="my">
          <div>
              <i class="iconfont icon-dockmy"></i>
              
          </div>
          <div class="nav_font" >
              <?php echo lang('dock_my');?>
          </div>
      </a>
  </div>
</div> 
<?php if(empty($uid) && in_array($route, array('index'))) { ?>
<div  class="position-fixed header_fiexd text-center hidden-lg" style="width: 100%; height: 100px; bottom: 0;"><a href="<?php echo url('user-login');?>" role="button" class="btn btn-primary jb-blue rounded-pill"  style="box-shadow: 0 1px 3px rgba(26,26,26,.1);
"><?php echo lang('dock_login');?></a></div>
<?php  }?>

<div class="modal fade " id="forum" style="display: none;" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
  <div class="modal-content overflow-hidden">
    <div class="modal-header position-relative d-block p-0">
      <div class="modal-title text-center py-5  jb-cyan">
        <div class="h3"><?php echo lang('dock_section');?></div>
      <div class="h5 mt-3"><?= lang('dock_section_1');?><span class="badge jb-pink mx-2"><?php echo count($forumlist_show);?></span><?= lang('dock_section_2');?></div>
      </div>
      
      <button type="button" class="close position-absolute " style="top: 10px;right: 15px;color: var(--white);" data-dismiss="modal" aria-label="Close">
        <span aria-hidden="true">×</span>
      </button>
    </div>
    <div class="modal-body">
          <?php foreach($forumlist_show as $_forum) { ?>
          <!--{hook header_nav_forumlist_loop_start.htm}-->
            <div class="py-1">
            <a class="nav-link rounded media w-100 bg-light d-flex justify-content-between"
              href="<?php echo url("forum-$_forum[fid]");?>">
              <div>
                <span class="font-weight-bold"><?php echo $_forum['name'];?></span>
                <span class="d-block text-muted mt-2 w-100 text-truncate">
                  <span class="mr-3"><i class="far fa-comment-alt"></i> <?php echo lang('mb_threads');?>:<b><?php echo $_forum['threads'];?></b></span>
                  <span><i class="far fa-comments"></i> <?php echo lang('mb_todayposts');?><b><?php echo $_forum['todayposts'];?></b></span>
                </span>
              </div>
              <div>
                <img class="avatar-3 mt-2" src="<?php echo $_forum['icon_url'];?>">

              </div>
            </a>
          </div>
          <!--{hook header_nav_forumlist_loop_end.htm}-->
          <?php } ?>	
          
        
    </div>
  </div>
</div>
</div>  
<?php }?>

