  <?php $u_info = get_user_info_by_slug($slug); ?>
  <header class="header-area">
  	<div class="navbar-area">
  		<div class="topMenus">
  			<nav class="navbar navbar-expand-lg style_6 <?= isset($u_info['themes']) && $u_info['themes']==1 || $u_info['themes']==4?"dark":"light";?>" id="nav-bar">
  				<div class="container">
  					<a class="navbar-brand" href="<?php echo base_url($slug); ?>"> <img src="<?php echo base_url($u_info['thumb']); ?>" alt="" class="userProfile"> <?= !empty($u_info['name'])?$u_info['name']:$u_info['username']; ?></a>
  					<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
  						<i class="fa fa-bars"></i>
  					</button>
  					<div class="collapse navbar-collapse sub-menu-bar" id="navbarText">
  						<div class="mainMenu">
  							<ul class="navbar-nav topNav" id="nav">
                  <?php foreach (my_menu_features() as $key => $features_slug): ?>
                    <?php if(check_active_features($id,$features_slug)==1): ?>
                      <?php if($features_slug == 'home'): ?>
                        <li><a href="#<?= $features_slug ;?>"  class="scrollto nav-link"><?= get_features_name($features_slug);?></a></li>
                      <?php else: ?>
                        <li><a href="#<?= $features_slug ;?>"  class="scrollto nav-link"><?= get_features_name($features_slug);?> </a></li>
                      <?php endif; ?>
                    <?php endif; ?>
                  <?php endforeach ?>


  					</ul>
  					<ul class="navbar-nav ml-auto">
  						<?php if(auth('user_login')==TRUE): ?>
  							<li class="nav-item">
  								<a class="nav-link dashbaord_btn" href="<?= base_url('dashboard');?>" title="<?= lang('dashboard'); ?>"><?= lang('dashboard'); ?></a>
  							</li>
  							<?php else: ?>
  								<li class="nav-item">
  									<a class="nav-link" href="<?= base_url('login');?>" title="login"><i class="fa fa-sign-in"></i></a>
  								</li>
  							<?php endif; ?>

  						</ul>
  					</div>
  				</div>
  			</div>
  		</nav>
  	</div>	       
  </div> <!-- navbar area -->
</header>
