  <?php $u_info = get_user_info_by_slug($slug); ?>
  <div class="topMenu menu_style_3">
	  <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">
	               <?php if(get_user_pricing_by_id($id,'home')==1 && is_active($id,'home')==1): ?>
		              <a href="#home" class="scrollto nav-link"><?= get_features_name('home');?></a>
		          <?php endif ?>

	              <?php if(get_user_pricing_by_id($id,'about')==1 || get_user_pricing_by_id($id,'services')==1 || get_user_pricing_by_id($id,'review')==1): ?>

		              <?php if(is_active($id,'about')==1 || is_active($id,'services')==1 || is_active($id,'review')==1): ?>
			              <a href="#about" class="scrollto nav-link"><?= get_features_name('about');?></a>
			          <?php endif ?>

		          <?php endif ?>

	              <?php if(get_user_pricing_by_id($id,'resume')==1||get_user_pricing_by_id($id,'skills')==1): ?>

	              <?php if(is_active($id,'resume')==1||is_active($id,'skills')==1): ?>
		              <a href="#resume"  class="scrollto nav-link"><?= get_features_name('resume');?></a>
		          <?php endif ?>

		          <?php endif ?>

	             <?php if(get_user_pricing_by_id($id,'portfolio')==1 && is_active($id,'portfolio')==1): ?>
		              <a href="#portfolio"  class="scrollto nav-link"><?= get_features_name('portfolio');?></a>
		          <?php endif ?>
	              <?php if(get_user_pricing_by_id($id,'blog')==1 && is_active($id,'blog')==1): ?>
		              <a href="#blog" class="scrollto nav-link"><?= get_features_name('blog');?></a> 
		          <?php endif ?>

	              <?php if(get_user_pricing_by_id($id,'appointment')==1 && is_active($id,'appointment')==1): ?>
		              <a href="#appointment"  class="scrollto nav-link"><?= get_features_name('appointment');?></a>
		          <?php endif ?>

	              <?php if(get_user_pricing_by_id($id,'contacts')==1 && is_active($id,'contacts')==1): ?>
		              <a href="#contact" class="scrollto nav-link"><?= get_features_name('contacts');?></a>
		          <?php endif ?>
	           </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>	       
