  <?php $u_info = get_user_info_by_slug($slug); ?>
  <div class="userMenu fixed">
	  <nav class="navbar navbar-expand-lg <?= isset($u_info['themes']) && $u_info['themes']==1 || $u_info['themes']==2 || $u_info['themes']==4 || $u_info['themes']==7 || $u_info['themes']==8?"navbar-dark bg-dark":"navbar-light bg-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">
	          <span class="navbar-toggler-icon"></span>
	        </button>
	      <div class="collapse navbar-collapse" id="navbarText">
	          <div class="userMenuNav">
	            <ul class="navbar-nav topNav" id="">
	            <?php if(isset($u_info['layouts']) &&  $u_info['layouts']==1 || $u_info['layouts']==7 || $u_info['layouts']==4): ?>
	             	<?php if(get_user_pricing_by_id($id,'home')==1 && is_active($id,'home')==1): ?>
		              <a href="<?= base_url('services/'.$slug) ;?>" class="nav-link"><i class="fa fa-arrow-left"></i> &nbsp;<?= lang('back'); ?></a>
		          	<?php endif ?>
		      <?php else: ?>
		      	 	<?php if(get_user_pricing_by_id($id,'home')==1 && is_active($id,'home')==1): ?>
		              <a href="<?= base_url('profile/'.$slug) ;?>" class="nav-link"><i class="fa fa-arrow-left"></i> &nbsp;<?= lang('back'); ?></a>
		          	<?php endif; ?>
		      <?php endif; ?>

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

		              <?php if(is_active($id,'services')==1): ?>
			              <a href="javascript:;" class="active nav-link"><?= get_features_name('services');?></a>
			          <?php endif ?>

		          <?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>	       
