KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
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/public_html/wp-content/themes/ssp-starter/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/andertr9/public_html/wp-content/themes/ssp-starter/blog.php
<?php
/**
 * Template Name: Blogs
 *
 * 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">

			<?php
  
				get_template_part( 'template-parts/content', 'page' );
  			
				$theme  = ( get_post_meta( get_the_ID( ) , 'blog-theme' , true )) ? get_post_meta( get_the_ID( ) , 'blog-theme' , true ) : 'theme-1';
        $count  = ( get_post_meta( get_the_ID( ) , 'post-count' , true )) ? get_post_meta( get_the_ID( ) , 'post-count' , true ) : 3;
        $page   = get_query_var( 'paged' );
        $page   = ( $page ) ? $page : 1;
        $offset = ( $page > 1 ) ? ( $page - 1 ) * $count : 0;
        $args   =  array(
          'posts_per_page' => $count,
          'offset' 				 => $offset,
        );              
        query_posts( $args );
        // 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 );
        // End the loop.
        endwhile;
  			
      ?>
      		</div>
       <?php else : ?>
       
       <?php endif; ?>
  
      <div class="post-links">
        <?php posts_nav_link( '' , '<span class="button"> Previous </span>' , '<span class="button"> Next </span>' ); wp_reset_query( ); ?>
      </div>             
  
    </main><!-- .site-main -->
  </div><!-- .content-area -->

<?php

get_sidebar( ); 
get_footer( );

Anon7 - 2021