  <?php $u_info = get_user_info_by_slug($slug); ?>
  <div class="topMenu">
	  <nav class="navbar navbar-expand-lg <?= isset($u_info['themes']) && $u_info['themes']==0?"navbar-light bg-light":"navbar-dark bg-dark";?>" 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">
	          <span class="navbar-toggler-icon"></span>
	        </button>
	      <div class="collapse navbar-collapse" id="navbarText">
	          <div class="mainMenu">
	            <ul class="navbar-nav topNav" id="nav">
	              <a href="<?php echo base_url($slug); ?>#home" class=" nav-link"><?= get_features_name('home');?></a>
	              <a href="<?php echo base_url($slug); ?>#about" class=" nav-link"><?= get_features_name('about');?></a>
	              <a href="<?php echo base_url($slug); ?>#resume"  class=" nav-link"><?= get_features_name('resume');?></a>
	              <a href="<?php echo base_url($slug); ?>#portfolio"  class=" nav-link"><?= get_features_name('portfolio');?></a>
	              <a href="<?php echo base_url($slug); ?>#blog" class=" nav-link active"><?= get_features_name('blog');?></a> 
	              <a href="<?php echo base_url($slug); ?>#appointment"  class=" nav-link"><?= get_features_name('appointment');?></a>
	              <a href="<?php echo base_url($slug); ?>#contact" class=" nav-link"><?= get_features_name('contacts');?></a>
	           </ul>
	           <ul class="navbar-nav ml-auto">
	           	<?php if(auth('user_login')==TRUE): ?>
	           		<a class="nav-link" href="<?= base_url('dashboard');?>" title="log out"><i class="fa fa-sign-out"></i></a>
	           		<?php else: ?>
	           			<a class="nav-link" href="<?= base_url('login');?>" title="login"><i class="fa fa-sign-in"></i></a>
	           		<?php endif; ?>
			        
			    </ul>
	          </div>
	      </div>
	    </div>
	  </nav>
</div>	       