<?php
$in_feed_ad_cycle = (int) trim( get_option( 'st-data216', '' ) ); 
$show_in_feed_ad = false;

$hide_excerpt_on_pc = (bool) trim( get_option( 'st-data202', '' ) );

$amp = amp_is_amp() ? 'amp' : null;
?>

<?php if ( $cat_group_query->have_posts() ): ?>
	<div class="kanren shortcode-kanren">
		<?php while ( $cat_group_query->have_posts() ): $cat_group_query->the_post(); ?>
			<?php if ( $show_in_feed_ad ): ?>
				<?php if ( ( $cat_group_query->current_post + 1 ) % $in_feed_ad_cycle === 0 && is_active_sidebar( 26 ) && ! amp_is_amp() ): ?>
					<div class="st-infeed-adunit">
						<?php if ( function_exists( 'dynamic_sidebar' ) && dynamic_sidebar( 26 ) ): else: ?><?php endif; ?>
					</div>
				<?php endif; ?>
			<?php endif; ?>

			<div class="no-thumbitiran">
				<?php st_get_template_part( 'st-shortcode-single-category', $amp ); ?>

				<h5 class="kanren-t"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>

				<?php if ( ! $hide_excerpt_on_pc && ! st_is_mobile() ): ?>
					<div class="smanone st-excerpt">
						<?php the_excerpt(); ?>
					</div>
				<?php endif; ?>
			</div>

		<?php endwhile; ?>
	</div>
<?php else: ?>
<?php endif; ?>
