  <?php $u_info = get_user_info_by_slug($slug); ?>
  <div class="topMenu fixed">
	  <nav class="navbar navbar-expand-lg style_4 <?= isset($u_info['themes']) && $u_info['themes']==0?"navbar-light bg-light":"navbar-dark bg-dark";?> " id="nav-bar">
	    <div class="container style_4">
	        <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 foreach (my_menu_features() as $key => $features_slug): ?>
						<?php if(check_active_features($id,$features_slug)==1): ?>
							<?php if($features_slug == 'home'): ?>
								<a href="<?php echo base_url('profile/'.$slug); ?>"  class="<?= isset($page_title) && $page_title=="My Info"?"active":'';?> nav-link"><?= get_features_name($features_slug);?></a>
							<?php else: ?>
							<a href="<?php echo base_url("{$features_slug}/{$slug}"); ?>"  class="<?= isset($page_title) && $page_title==ucfirst($features_slug)?"active":'';?> nav-link"><?= get_features_name($features_slug);?> </a>
							<?php endif; ?>
						<?php endif; ?>
					<?php endforeach ?>

	           </ul>
	           <ul class="navbar-nav ml-auto">
	           	<?php if(auth('user_login')==TRUE): ?>
	           		<a class="nav-link dashbaord_btn" href="<?= base_url('dashboard');?>" title="<?= lang('dashboard'); ?>"><?= lang('dashboard'); ?></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>	       
