Current File : /home/pacjaorg/wpt.pacja.org/grants -mzee/wp-content/themes/forest-nature/search.php
<?php
/**
 * The template for displaying search results pages
 *
 * @subpackage Forest Nature
 * @since 1.0
 */

get_header(); ?>

<?php
	$forest_nature_post_sidebar = get_option( 'forest_nature_post_sidebar' );
	if ( '1' == $forest_nature_post_sidebar ) {
	$forest_nature_column = 'col-lg-12 col-md-12';
	} else { 
	$forest_nature_column = 'col-lg-8 col-md-8';
	}
?>

<main id="content" class="mt-5">
	<div class="container">
		<header class="page-header">
			<?php if ( have_posts() ) : ?>
				<h1 class="entry-title"><span><?php /* translators: %s: search term */
	            	printf( esc_html__( 'Results For: %s','forest-nature'), esc_html( get_search_query() ) ); ?>  </span>
	            </h1>
			<?php else : ?>
				<h2 class="page-title"><span><?php esc_html_e( 'Nothing Found', 'forest-nature' ); ?></span></h2>
			<?php endif; ?>
		</header>
		<div class="content-area">
			<div id="main" class="site-main" role="main">
		      	<div class="row m-0">
		    		<div class="content_area <?php echo esc_html( $forest_nature_column ); ?>">
				    	<section id="post_section">
							<?php
								if ( have_posts() ) :
								/* Start the Loop */
								while ( have_posts() ) : the_post();

									$forest_nature_post_option = get_theme_mod( 'forest_nature_post_option','simple_post');
									if($forest_nature_post_option == 'simple_post'){

										get_template_part( 'template-parts/post/content' );

									}else if($forest_nature_post_option == 'grid_post'){

										get_template_part( 'template-parts/post/grid-content' );
									}

								endwhile; // End of the loop.

								else : ?>

								<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'forest-nature' ); ?></p>
								<?php
									get_search_form();

								endif;
							?>
							<div class="navigation">
				                <?php
				                    // Previous/next page navigation.
				                    the_posts_pagination( array(
				                        'prev_text'          => __( 'Previous page', 'forest-nature' ),
				                        'next_text'          => __( 'Next page', 'forest-nature' ),
				                        'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'forest-nature' ) . ' </span>',
				                    ) );
				                ?>
				                <div class="clearfix"></div>
				            </div>
						</section>
					</div>
					<?php if ( '1' != $forest_nature_post_sidebar ) {?>
						<div id="sidebar" class="col-lg-4 col-md-4"><?php dynamic_sidebar('sidebar-1'); ?></div>
					<?php } ?>
				</div>
			</div>
		</div>
	</div>
</main>

<?php get_footer();
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!