<?php $layout = get_layouts_by_slug($slug);?>
<?php foreach ($posts as $key=>$post) { ?>
	<div class=" col-lg-6 col-md-6 col-sm-6">
		<div class="single-blog style_1" data-aos="fade-up" data-aos-delay="<?= $key+1;?>00">
			<div class="blog-img">
				<?php if($post['is_video']==0): ?>
				<img src="<?= base_url(html_escape($post['thumb']));?>" alt="">
				<?php else: ?>
					<div class="videoWrapper">
						<iframe src="<?= html_escape($post['thumb']);?>" frameborder="0"></iframe>
					</div>
				<?php endif;?>
				<div class="post-category">
					<a href="<?= base_url('category-post/'.$slug.'/'.html_escape($post['cat_slug'])); ?>"><?= html_escape($post['cat_name']);?></a>
				</div>
			</div>
			<div class="blog-content">
				<div class="blog-title">
					<h4><a href="<?= base_url('post/'.$slug.'/'.$post['slug']);?>"><?= character_limiter(html_escape($post['title']),30);?></a></h4>
					<div class="meta">
						<ul>
							<li><i class="fa fa-calendar"></i> <?= cl_format(html_escape($post['created_at']));?></li>
							<li><i class="fa fa-eye"></i> <?= html_escape($post['hit']);?></li>
						</ul>
					</div>
				</div>
				<p><?= character_limiter(html_escape($post['overview']),80);?></p>
				<a href="<?= base_url('post/'.$slug.'/'.$post['slug']);?>" class="box_btn btn_style_<?= get_user_info_by_slug($slug)['btn_style'];?>"><?= !empty(lang('see_more'))?lang('see_more'):"See More"?></a>
			</div>
		</div>
	</div>
<?php } ?>