  <?php $u_info = get_user_info_by_slug($slug); ?>
<div class="topMenu">
	<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
	  <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['first_name'])?$u_info['first_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">
	      	<ul class="navbar-nav">
		        <?php if(get_user_pricing_by_id($id,'home')==1): ?>
						<li><a href="<?php echo base_url($slug); ?>"  class="<?= isset($page_title) && $page_title=="My Info"?"active":'';?>">Home</a></li>
					<?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,'testimonial')==1): ?>
						<li><a href="<?php echo base_url('about-'.$slug); ?>" class="<?= isset($page_title) && $page_title=="About"?"active":'';?>">About</a></li>
					<?php endif ?>

					<?php if(get_user_pricing_by_id($id,'resume')==1||get_user_pricing_by_id($id,'skills')==1): ?>
						<li><a href="<?php echo base_url('resume-'.$slug); ?>" class="<?= isset($page_title) && $page_title=="Resume"?"active":'';?>">Resume</a></li>
					<?php endif ?>

					<?php if(get_user_pricing_by_id($id,'portfolio')==1): ?>
						<li><a href="<?php echo base_url('portfolio-'.$slug); ?>" class="<?= isset($page_title) && $page_title=="Portfolio"?"active":'';?>">Portfolios</a></li>
					<?php endif ?>

					<?php if(get_user_pricing_by_id($id,'blog')==1): ?>
						<li><a href="<?php echo base_url('blog-'.$slug); ?>" class="<?= isset($page_title) && $page_title=="Blog"?"active":'';?>">Blog</a></li>
					<?php endif ?>

					<?php if(get_user_pricing_by_id($id,'appointment')==1): ?>
						<li><a href="<?php echo base_url('appointment-'.$slug); ?>" class="<?= isset($page_title) && $page_title=="Appointment"?"active":'';?>">Appointment</a></li>
					<?php endif ?>

					<?php if(get_user_pricing_by_id($id,'contact')==1): ?>
						<li><a href="<?php echo base_url('contact-'.$slug); ?>" class="<?= isset($page_title) && $page_title=="Contact"?"active":'';?>">Contact</a></li>
					<?php endif ?>
	       </ul>
	      <!-- <span class="navbar-text">
	        Navbar text with an inline element
	      </span> -->
	    </div>
	  </div>
	</nav>
</div>