ID, 'avenews_post_layout', true)); if ($avenews_post_layout == 'layout-1' || empty($avenews_post_layout)) { get_template_part('template-parts/single/banner/banner-layout-1'); } get_template_part('template-parts/content', get_post_type()); the_post_navigation( array( 'prev_text' => '' . esc_html__('Previous:', 'avenews') . ' %title', 'next_text' => '' . esc_html__('Next:', 'avenews') . ' %title', ) ); if ('post' === get_post_type()) : // Get Author Info & related/Author posts $show_author_info = avenews_get_option('show_author_info'); $show_related_posts = avenews_get_option('show_related_posts'); $show_author_posts = avenews_get_option('show_author_posts'); if ($show_author_info): get_template_part('template-parts/single/author-info'); endif; if ($show_related_posts): get_template_part('template-parts/single/related-posts'); endif; if ($show_author_posts): get_template_part('template-parts/single/author-posts'); endif; endif; // 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; // End of the loop. ?>