<section class="themestyle_7">
<?php $this->load->view(get_view_layouts_by_slug($slug).'/subMenu.php'); ?>
	<div class="style7Banner overlays homeStyle userBanner" style="background: url(<?= get_user_layout_img($id,'home')?>)">
		<div class="style7_HomeContest">
			<div class="container">
				<div class="row">
					<div class="col-sm-12 col-lg-12">
						<div class="homeContent style_7Home text-center">
							<div class="" data-aos="fade-down" data-aos-delay="300">
								<div class="home_profile">
									<img src="<?= base_url($user['thumb']) ;?>" alt="">
								</div>
								<h1><?= !empty($user['name'])?$user['name']:$user['username']; ?></h1>   
							</div> 
							
						</div>
					</div>
				</div>
			</div> 
		</div>

		<div class="singleHeading">
			<?php if(isset($type_slug) && $type_slug=="category"){  ?>
				<h2><?= lang('categories');?> : <?= isset($posts[0]['cat_name'])?$posts[0]['cat_name']:'';?></h2>
			<?php  }else if(isset($type_slug) && $type_slug=="Tags"){ ?>
				<h2><?= lang('tags');?> : <?= isset($posts[0]['tag_name'])?$posts[0]['tag_name']:'';?></h2>
			<?php } ?>
		</div>
		<a href="#blog" class="scrollto nav-link scroll-button smoothscroll">

			<span class="fa fa-angle-down"></span>
		</a>

	</div>

	

<?php if(get_user_pricing_by_id($id,'blog')==1 && is_active($id,'blog') ==1): ?>
	<?php if(count($posts) > 0): ?>
		<section class="default-section blog-section " id="blog">
			<div class="container">
				<div class="blog themestyle_7">
					<div class="row">
						<?php include 'blog_list.php'; ?>
					</div>
				</div>
			</div>
		</section>

	<?php endif;?>
<?php endif;?>

</section>