<?php
/**
* Template part for displaying posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Shop Toolkit
*/
$shop_toolkit_blog_style = get_theme_mod('shop_toolkit_blog_style', 'grid');
if ($shop_toolkit_blog_style == 'grid' && !is_single()) :
get_template_part('template-parts/content', 'grid');
else :
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if (is_single() || is_sticky()) : ?>
<?php get_template_part('template-parts/content', 'single'); ?>
<?php else : ?>
<?php get_template_part('template-parts/content', 'blog'); ?>
<?php endif; ?>
</article><!-- #post-<?php the_ID(); ?> -->
<?php endif; ?>