| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * The template for displaying all single posts |
|---|
| 4 | * |
|---|
| 5 | * @subpackage SEO Digital Marketing |
|---|
| 6 | * @since 1.0 |
|---|
| 7 | */ |
|---|
| 8 | |
|---|
| 9 | get_header(); ?> |
|---|
| 10 | |
|---|
| 11 | <?php |
|---|
| 12 | $seo_digital_marketing_post_sidebar = get_option( 'seo_digital_marketing_single_post_sidebar' ); |
|---|
| 13 | if ( '1' == $seo_digital_marketing_post_sidebar ) { |
|---|
| 14 | $seo_digital_marketing_column = 'col-lg-12 col-md-12'; |
|---|
| 15 | } else { |
|---|
| 16 | $seo_digital_marketing_column = 'col-lg-8 col-md-8'; |
|---|
| 17 | } |
|---|
| 18 | ?> |
|---|
| 19 | |
|---|
| 20 | <main id="content" class="mt-5"> |
|---|
| 21 | <div class="container"> |
|---|
| 22 | <div class="content-area entry-content"> |
|---|
| 23 | <div id="main" class="site-main" role="main"> |
|---|
| 24 | <div class="row m-0"> |
|---|
| 25 | <div class="content_area <?php echo esc_attr( $seo_digital_marketing_column ); ?>"> |
|---|
| 26 | <section id="post_section"> |
|---|
| 27 | <?php |
|---|
| 28 | /* Start the Loop */ |
|---|
| 29 | while ( have_posts() ) : the_post(); |
|---|
| 30 | |
|---|
| 31 | get_template_part( 'template-parts/post/single-page' ); |
|---|
| 32 | |
|---|
| 33 | // If comments are open or we have at least one comment, load up the comment template. |
|---|
| 34 | if ( comments_open() || get_comments_number() ) : |
|---|
| 35 | comments_template(); |
|---|
| 36 | endif; |
|---|
| 37 | |
|---|
| 38 | the_post_navigation( array( |
|---|
| 39 | 'prev_text' => '<span class="screen-reader-text">' . __( 'Previous Post', 'seo-digital-marketing' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Previous', 'seo-digital-marketing' ) . '</span>', |
|---|
| 40 | 'next_text' => '<span class="screen-reader-text">' . __( 'Next Post', 'seo-digital-marketing' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Next', 'seo-digital-marketing' ) . '</span> ', |
|---|
| 41 | ) ); |
|---|
| 42 | |
|---|
| 43 | endwhile; // End of the loop. |
|---|
| 44 | ?> |
|---|
| 45 | </section> |
|---|
| 46 | </div> |
|---|
| 47 | <?php if ( '1' != $seo_digital_marketing_post_sidebar ) {?> |
|---|
| 48 | <div id="sidebar" class="col-lg-4 col-md-4"><?php dynamic_sidebar('sidebar-1'); ?></div> |
|---|
| 49 | <?php } ?> |
|---|
| 50 | </div> |
|---|
| 51 | </div> |
|---|
| 52 | </div> |
|---|
| 53 | </div> |
|---|
| 54 | </main> |
|---|
| 55 | |
|---|
| 56 | <?php get_footer(); |
|---|