  <?php $u_info = get_user_info_by_slug($slug); ?>
  <div class="style7_userMenu">
	  <nav class="navbar navbar-expand-lg">
	    <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" id="navbarText">
	          <div class="TopMenu">
	            <ul class="navbar-nav topNav ml-auto" id="nav">

	              <?php if(get_user_pricing_by_id($id,'home')==1 && is_active($id,'home') ==1): ?>
		              <a href="<?php echo base_url($slug); ?>" class="nav-link <?= isset($page_title) && $page_title=="My Info"?"active":'';?>"><?= get_features_name('home');?></a>
		          <?php endif ?>

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

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

		          	<?php endif ?>

		         


	              <?php if(get_user_pricing_by_id($id,'resume')==1 && is_active($id,'resume')==1): ?>
		             <a href="#resume"  class="scrollto nav-link"><?= get_features_name('resume');?></a>
		          <?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): ?>
			          <li class="nav-item">
			          	<a href="<?= base_url('appointment/'.$slug); ?>"  class="nav-link <?= isset($page_title) && $page_title=="Appointment"?"active":'';?>"><?= get_features_name('appointment');?></a>
			          </li>
			        <?php endif ?>

		      	<?php if(get_user_pricing_by_id($id,'contacts')==1 && is_active($id,'contacts') ==1): ?>
			      <li class="nav-item">
			      	<a href="<?= base_url('contact/'.$slug); ?>" class="nav-link <?= isset($page_title) && $page_title=="Contacts"?"active":'';?>"><?= get_features_name('contacts');?></a>
			      </li>
			  	<?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>	       
