'; while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content', 'page' ); if ( comments_open() || get_comments_number() ) : comments_template(); endif; endwhile; echo '
'; get_sidebar( 'right' ); echo '
'; } else { if ( esc_attr(get_theme_mod('single_layout','right-column')) == 'left-column' ) : echo '
'; elseif ( esc_attr(get_theme_mod('single_layout','right-column')) == 'full-width' ) : echo '
'; else : echo '
'; endif; while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content', 'single' ); // show the comments form unless it is the quote post format if ( !has_post_format( 'quote' ) && comments_open() || get_comments_number() ) : comments_template(); endif; endwhile; echo '
'; if ( esc_attr(get_theme_mod('single_layout','right-column')) == 'left-column' ) : echo '
'; get_sidebar( 'left' ); echo '
'; endif; if ( esc_attr(get_theme_mod('single_layout','right-column')) == 'right-column' ) : echo '
'; get_sidebar( 'right' ); echo '
'; endif; } ?>