Server : Apache System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : andertr9 ( 1047) PHP Version : 8.2.18 Disable Function : NONE Directory : /home1/andertr9/www/wp-content/themes/ssp-starter/ |
Upload File : |
<?php /** * * The template for displaying blogs. * * @package WordPress * @subpackage SSP Starter * @since SSP Starter 1.0 */ get_header( ); ?> <div id="primary" class="content-area column eight"> <main id="main" class="site-main"> <header class="entry-header"> <?php $archives = ''; if ( is_day( )) { $archives = get_the_date( ); } elseif ( is_month( )) { $archives = get_the_date( _x( 'F Y' , 'monthly archives date format' , 'ssp' )); } else if ( is_year( )) { $archives = get_the_date( _x( 'Y' , 'yearly archives date format' , 'ssp' )); } ?> <h1 class="entry-title"> <?php echo $archives; ?> </h1> </header> <?php // Start the loop. ?> <?php if ( have_posts( )) : ?> <div class="blogs"> <?php while ( have_posts( )) : the_post( ); // Include the blog content template. get_template_part( 'template-parts/blog' , 'theme-1' ); // End the loop. endwhile; ?> </div> <?php else : ?> <?php endif; ?> <div class="post-links"> <?php previous_posts_link( '<span class="button"> Previous </span>' ); next_posts_link( '<span class="button"> Next </span>' , 0 ) ?> </div> </main><!-- .site-main --> </div><!-- .content-area --> <?php get_sidebar( ); get_footer( );