HEX
Server: LiteSpeed
System: Linux s12873.lon1.stableserver.net 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: jairicem (1242)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/jairicem/basicconceptenergy.com/wp-content/themes/greenly/search.php
<?php
/**
 * The template for displaying search results pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
 *
 * @package WordPress
 * @subpackage Greenly
 * @since 1.0
 * @version 1.0
 */

get_header(); ?>
<div id="primary" class="content-area <?php if( cspt_check_sidebar() ) { ?>col-md-9 col-lg-9<?php } ?>">
	<main id="main" class="site-main">
	<?php
	if ( have_posts() ) :
		?>
		<div class="cspt-top-search-form">
			<?php get_search_form(); ?>
		</div>

		<?php
		/* Start the Loop */
		while ( have_posts() ) : the_post();
			get_template_part( 'theme-parts/search-results', 'style-1' );
		endwhile; // End of the loop.
		
		// Pagination
		cspt_pagination();
		
	else : ?>

		<?php
		$title	= cspt_get_base_option('no-results-title');
		$text	= cspt_get_base_option('no-results-text');
		?>
		
		<div class="search-no-results-content">
			<?php if( !empty($title) ) : ?>
			<h3 class="cspt-no-results-heading"><?php echo esc_html($title); ?></h3>
			<?php endif; ?>
			<?php if( !empty($text) ) : ?>
			<p class="cspt-no-results-text"><?php echo esc_html($text); ?></p>
			<?php endif; ?>
			<?php get_search_form(); ?>
		</div>
	
	<?php endif; ?>

	</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer();