<div class="profile-wrapper">
	<?php $about_me = single_select_by_user_slug($slug,'home'); ?>
	<?php $u_info = get_user_info_by_slug($slug); ?>
	<?php $u_setting = get_user_settings($id); ?>
	<div class="navbar_top_menu">
		<div class="navbar_top_wrapper">
			<div class="navbar_img">
				<img src="<?php echo base_url(!empty($u_info['thumb'])?$u_info['thumb']:'assets/images/avatar.jpg'); ?>" alt="">
				<p><?= !empty($u_info['name'])?$u_info['name']:$u_info['username']; ?></p>
			</div>
			<a href="javascript:;" class="navBtn navOpen"><i class="fa fa-bars"></i></a>
		</div>
	</div>
	<div class="navArea <?= direction()=="rtl"?"navRight":"navLeft"?>">
		<div class="navIner">
			<div class="navbar_top_area">
				<div class="navHeader-img">
					<?php if(isset($u_setting['is_facebook']) && $u_setting['is_facebook'] ==1): ?>
						<a href="javascript:;" class="user_img_thumb" onclick="window.open('http://www.facebook.com/sharer.php?u=<?= base_url($u_info['username']);?>', 'sharer', 'toolbar=0,status=0,width=620,height=280');"><img src="<?php echo base_url(!empty($u_info['thumb'])?$u_info['thumb']:'assets/images/avatar.jpg'); ?>" alt=""></a>
						<div class="share_area">
							<a href="javascript:;" onclick="window.open('http://www.facebook.com/sharer.php?u=<?= base_url($u_info['username']);?>', 'sharer', 'toolbar=0,status=0,width=620,height=280');" class="facebook_share"><i class="fa fa-facebook"></i></a>
						</div>
					<?php else: ?>
						<a href="javascript:;" class="user_img_thumb"><img src="<?php echo base_url(!empty($u_info['thumb'])?$u_info['thumb']:'assets/images/avatar.jpg'); ?>" alt=""></a>
					<?php endif; ?>
					
				</div>
				<div class="typing_section home">
					<div class="cd-headline clip typing_data">
						<div class="cd-words-wrapper">
							<?php if(isset($about_me['designations'])): ?>
								<?php $designations = explode(',', $about_me['designations']);;?>
								<?php foreach ($designations as $key => $value): ?>
									<b><?= $value?></b>
								<?php endforeach ?>
							<?php endif;?>
						</div>
					</div>
				</div>
			</div>
			
			<div class="navMenu">
				<ul>

					<?php foreach (my_menu_features() as $key => $features_slug): ?>
						<?php if(check_active_features($id,$features_slug)==1): ?>
							<?php if($features_slug == 'home'): ?>
								<li><a href="<?php echo base_url('profile/'.$slug); ?>"  class="<?= isset($page_title) && $page_title=="My Info"?"active":'';?>"><?= get_features_name($features_slug);?></a></li>
							<?php else: ?>
								<li><a href="<?php echo base_url("{$features_slug}/{$slug}"); ?>"  class="<?= isset($page_title) && $page_title==ucfirst($features_slug)?"active":'';?>"><?= get_features_name($features_slug);?> </a></li>
							<?php endif; ?>
						<?php endif; ?>
					<?php endforeach ?>
					<li>
						<?php if(auth('user_login')==TRUE): ?>
	           			
		           		<a class="nav-link" 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; ?>
					</li>
					
					
				</ul>
			</div>
			<div class="copyRight">
				<p>&copy; <?= date('Y');?></p>
			</div>
		</div>
	</div>

<div class="contentArea <?= direction()=="rtl"?"navRight":"navLeft"?>">
<div id="myBar"><div class="scroll-line" ></div></div>
	<div class="wrapper <?= isset($is_flex) && $is_flex==0?"alignTop":"" ;?>">
