

<div class="mega-menu row">

	<div class="col-3 sub-cats">
		
		<ol class="sub-nav">
			<?php echo $sub_menu; ?>
		</ol>
	
	</div>


	<div class="col-9 extend">
	<section class="col-6 featured">
		
		<?php $query = new WP_Query(array('cat' => $item->object_id, 'meta_key' => '_bunyad_featured_post', 'meta_value' => 1, 'order' => 'date', 'posts_per_page' => 1, 'ignore_sticky_posts' => 1)); ?>
		
		<span class="heading"><?php _ex('Featured', 'Categories Mega Menu', 'bunyad'); ?></span>
		
		<div class="highlights">
		
		<?php while ($query->have_posts()): $query->the_post(); ?>
			
			<article>
					
				<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" class="image-link">
					<?php the_post_thumbnail('main-block', array('class' => 'image', 'title' => strip_tags(get_the_title()))); ?>
				</a>
				
				<div class="meta">
					<time datetime="<?php echo get_the_date(__('Y-m-d\TH:i:sP', 'bunyad')); ?>"><?php echo get_the_date(); ?> </time>
					
					<?php echo apply_filters('bunyad_review_main_snippet', ''); ?>					
					
					<span class="comments"><a href="<?php echo esc_attr(get_comments_link()); ?>"><i class="fa fa-comments-o"></i>
							<?php echo get_comments_number(); ?></a></span>
					
				</div>
				
				<h2><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
				
			</article>
			
		<?php endwhile; wp_reset_postdata(); ?>
		
		</div>
	
	</section>  

	<section class="col-6 recent-posts">
	
		<span class="heading"><?php _ex('Recent', 'Categories Mega Menu', 'bunyad'); ?></span>
			
		<?php $query = new WP_Query(array('cat' => $item->object_id, 'posts_per_page' => 3, 'ignore_sticky_posts' => 1)); ?>
		
		<div class="posts-list">
	
			<?php while ($query->have_posts()): $query->the_post(); ?>
			
			<div class="post">
				<a href="<?php the_permalink() ?>"><?php the_post_thumbnail('post-thumbnail', array('title' => strip_tags(get_the_title()))); ?>
				
				<?php if (class_exists('Bunyad') && Bunyad::options()->review_show_widgets && Bunyad::posts()->meta('reviews')): ?>
					<div class="review rate-number"><span class="progress"></span>
						<span><?php echo Bunyad::posts()->meta('review_overall'); ?></span></div>
				<?php endif; ?>
				
				</a>
				
				<div class="content">
				
					<time datetime="<?php echo get_the_date('Y-m-d\TH:i:sP'); ?>"><?php echo get_the_date(); ?> </time>
				
					<span class="comments"><a href="<?php echo esc_attr(get_comments_link()); ?>"><i class="fa fa-comments-o"></i>
						<?php echo get_comments_number(); ?></a></span>
				
					<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(get_the_title() ? get_the_title() : get_the_ID()); ?>">
						<?php if (get_the_title()) the_title(); else the_ID(); ?></a>
																
				</div>
			</div>
			
			<?php endwhile; wp_reset_postdata(); ?>
			
		</div>
		
	</section>
	</div>
</div>
			