<h1>YANZ UPLOAD ANJG</h1><?php
/**
 * Search results.
 *
 * @package TotalOnlineNews
 */
get_header();
?>
<div class="shell">
	<?php ton_breadcrumbs(); ?>
	<header class="ton-archive__head">
		<h1><?php printf( esc_html__( 'Search results for "%s"', 'totalonlinenews' ), esc_html( get_search_query() ) ); ?></h1>
		<p class="ton-archive__meta"><?php printf( esc_html( _n( '%s result', '%s results', (int) $GLOBALS['wp_query']->found_posts, 'totalonlinenews' ) ), esc_html( number_format_i18n( (int) $GLOBALS['wp_query']->found_posts ) ) ); ?></p>
		<div style="max-width:32rem;margin-top:1rem"><?php get_search_form(); ?></div>
	</header>
	<?php if ( have_posts() ) : ?>
		<div class="ton-grid ton-grid--3">
			<?php while ( have_posts() ) : the_post(); ?>
				<?php get_template_part( 'template-parts/card', null, array( 'variant' => 'card' ) ); ?>
			<?php endwhile; ?>
		</div>
		<?php ton_pagination(); ?>
	<?php else : ?>
		<div class="ton-empty">
			<h2><?php esc_html_e( 'No stories matched that search', 'totalonlinenews' ); ?></h2>
			<p><?php esc_html_e( 'Try a different word or browse the categories above.', 'totalonlinenews' ); ?></p>
		</div>
	<?php endif; ?>
</div