<?php 
	$arg['category__in'] = $tab['post_cats'];
	$query = new \WP_Query( $arg ); ?>
	
	<?php if ( $query->have_posts() ) : ?>
	<div role="tabpanel" class="tab-pane fade <?php echo esc_attr(($j > 1) ? '' : 'show active'); ?>" id="tab-<?php echo esc_attr($this->get_id() . $j); ?>">
	<div class="row">
		<div class="col-lg-7">
			<div class="tab-content featured-post"  >
				<?php $i = 0; while ($query->have_posts()) : $query->the_post(); $i++; ?>
					<div class="tab-pane ts-overlay-style fade <?php echo esc_attr(($i == 1) ? 'show active' : ''); ?>" id="nav-post-tab-<?php echo esc_attr($this->get_id()); ?>-<?php echo esc_attr($i . $j); ?>" role="tabpanel" aria-labelledby="nav-<?php echo esc_attr($this->get_id()); ?>-<?php echo esc_attr($i . $j); ?>-tab">
						<?php require VINKMAG_THEME_DIR . '/template-parts/blogs/contents/content-style3-e.php'; ?>
					</div>
				<?php endwhile; 
				wp_reset_query(); ?>
			</div>
		</div>
		<div class="col-lg-5">
			<div class="nav post-list-box"   role="tablist">
				<?php $i = 0; while ($query->have_posts()) : $query->the_post(); $i++; ?>
					<a class="nav-item nav-link <?php echo esc_attr(($i == 1) ? 'active' : ''); ?>" 
					id="nav-<?php echo esc_attr($this->get_id()); ?>-<?php echo esc_attr($i . $j); ?>-tab" 
					data-toggle="tab" 
					href="#nav-post-tab-<?php echo esc_attr($this->get_id()); ?>-<?php echo esc_attr($i . $j); ?>" role="tab" aria-controls="nav-post-tab-<?php echo esc_attr($this->get_id()); ?>-<?php echo esc_attr($i . $j); ?>"
					aria-selected="true">
						<div class="post-content media">
						<img 
							class="d-flex" 
							src="<?php echo esc_url(vinkmag_post_thumbnail(get_the_ID())); ?>" 
							alt="<?php echo esc_attr(vinkmag_alt(get_the_ID())); ?>">
							<div class="media-body align-self-center">
								<h4 class="post-title">
								
									<?php echo esc_html(vinkmag_limited_title(get_the_title(),  $settings['post_title_crop'])); ?>
								</h4>
								<span class="post-date-info">
									<i class="fa fa-clock-o"></i>
									<?php echo get_the_date(); ?>
								</span>
							</div>
						</div>
					</a>
				<?php endwhile; ?>
			</div>
		</div>
	</div>
	</div>
<?php endif; ?>