HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/dorsetandsomersetairambulance.org.uk/public_html/wp-content/themes/dw-focus/search.php
<?php
/**
 * The template for displaying Search Results pages
 *
 * @package DW Focus
 * @since DW Focus 1.2.6
 */

get_header(); ?>

<div class="container">
	<div class="content-inner">
		<div class="row">
			<div class="<?php dw_focus_primary_column_class(); ?>">
				<div id="primary" class="content-area">
					<main id="main" class="site-main" role="main">
						<header class="page-header">
							<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'dw-focus' ), '<span>' . esc_html( get_search_query() ) . '</span>' ); ?></h1>
						</header>
						<?php if ( have_posts() ) : ?>
						<div class="posts-inner layout-list">
							<div class="row">
							<?php $item_count = $wp_query->post_count; ?>
							<?php
							$i = 1;
							while ( have_posts() ) : the_post();
							?>
								<div class="col-md-12">
									<?php get_template_part( 'content', get_post_format() ); ?>
								</div>
							<?php if ( ( 0 === $i % ( 3 ) ) && ( $i < $item_count ) ) : ?>
							</div><div class="row">
							<?php endif; ?>
							<?php
							$i++;
							endwhile;
							?>
							</div>
						</div>
						<?php the_posts_pagination(); ?>
						<?php else : ?>
							<div class="alert alert-info"><?php esc_attr_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'dw-focus' ); ?></div>
							<?php get_search_form(); ?>
						<?php endif; ?>
					</main>
				</div>
			</div>
			<div class="<?php dw_focus_secondary_column_class(); ?>">
				<?php get_sidebar(); ?>
			</div>
		</div>
	</div>
</div>
<?php
if ( is_home() ) {
	get_sidebar( 'bottom' );
}
?>
<?php get_footer(); ?>