'; while ( have_posts() ) : the_post(); get_template_part( 'template-parts/posts/content', 'single' ); if( esc_attr(get_theme_mod( 'blogg_post_navigation', true ) ) ) { blogg_post_navigation(); } // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif; endwhile; echo '
'; get_sidebar(); echo '
'; break; case "single-right": // single right sidebar echo '
'; while ( have_posts() ) : the_post(); get_template_part( 'template-parts/posts/content', 'single' ); if( esc_attr(get_theme_mod( 'blogg_post_navigation', true ) ) ) { blogg_post_navigation(); } // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif; endwhile; echo '
'; get_sidebar(); echo '
'; break; default: // default echo '
'; while ( have_posts() ) : the_post(); get_template_part( 'template-parts/posts/content', 'single' ); if( esc_attr(get_theme_mod( 'blogg_post_navigation', true ) ) ) { blogg_post_navigation(); } // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif; endwhile; echo '
'; } get_footer();