HEX
Server: Apache
System: Linux 162-240-236-42.bluehost.com 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: bt667 (1004)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/bt667/public_html/wp-content/themes/news-event/search.php
<?php
/**
 * The template for displaying search results pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
 *
 * @package News Event
 */
use NewsEvent\CustomizerDefault as NEV;
get_header();
	?>
		<div id="theme-content">
			<?php
				/**
				 * hook - news_event_before_main_content
				 * 
				 */
				do_action( 'news_event_before_main_content' );
			?>
			<main id="primary" class="site-main <?php echo esc_attr( 'width-' . news_event_get_section_width_layout_val() ); ?>">
				<div class="news-event-container">
					<div class="row">
						<div class="secondary-left-sidebar">
							<?php
								get_sidebar('left');
							?>
						</div>
						<div class="primary-content">
							<div class="news-list layout--two">
							<?php
								/**
								 * hook - news_event_before_inner_content
								 * 
								 */
								do_action( 'news_event_before_inner_content' );
								
								if ( have_posts() ) : ?>
									<header class="page-header">
										<h1 class="page-title news-event-block-title">
											<?php
												$prefix = '<span class="search-page-title-prefix">'. esc_html__( 'Search Results for', 'news-event' ) .'</span>';
												/* translators: %s: search query. */
												printf( esc_html( '%s %s' ), $prefix, '<span class="search-page-title-suffix">' . get_search_query() . '</span>' );
											?>
										</h1>
									</header><!-- .page-header -->
									<div class="post-inner-wrapper">
										<div class="news-list-wrap column--one">
											<?php
												/* Start the Loop */
												while ( have_posts() ) :
													the_post();
													/**
													 * Run the loop for the search to output the results.
													 * If you want to overload this in a child theme then include a file
													 * called content-search.php and that will be used instead.
													 */
													get_template_part( 'template-parts/content', 'search' );

												endwhile;
											?>
										</div>
										<?php
											if( have_posts() ) :
												/**
												 * hook - news_event_pagination_link_hook
												 * 
												 * @package News Event
												 * @since 1.0.0
												 */
												do_action( 'news_event_pagination_link_hook' );
											endif;
										?>
									</div>
									<?php
									else :
										get_template_part( 'template-parts/content', 'none' );
									endif;
									?>
							</div>
						</div>
						<div class="secondary-sidebar">
							<?php get_sidebar(); ?>
						</div>
					</div>
				</div>
			</main><!-- #main -->
			<?php get_sidebar(); ?>
		</div><!-- #theme-content -->
	<?php
get_footer();