<h1>YANZ UPLOAD ANJG</h1><?php
/**
 * 404 - offers a search box and the newest stories instead of a dead end.
 *
 * @package TotalOnlineNews
 */
get_header();
?>
<div class="shell">
	<div class="ton-empty" style="margin-top:2rem">
		<h1><?php esc_html_e( 'That page could not be found', 'totalonlinenews' ); ?></h1>
		<p><?php esc_html_e( 'The story may have been moved or the link mistyped. Search the newsroom or start from the front page.', 'totalonlinenews' ); ?></p>
		<div style="max-width:26rem;margin:1.5rem auto 0"><?php get_search_form(); ?></div>
		<p style="margin-top:1.25rem"><a class="ton-btn" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e( 'Back to the front page', 'totalonlinenews' ); ?></a></p>
	</div>

	<?php $ton_recent = ton_latest_posts( 3 ); if ( $ton_recent ) : ?>
		<section class="ton-section" aria-labelledby="ton-404-latest">
			<div class="ton-section__head"><h2 class="ton-section__title" id="ton-404-latest"><?php esc_html_e( 'Latest News', 'totalonlinenews' ); ?></h2></div>
			<div class="ton-grid ton-grid--3" style="margin-top:1.25rem">
				<?php foreach ( $ton_recent as $ton_p ) : ?>
					<?php $GLOBALS['post'] = $ton_p; setup_postdata( $ton_p ); ?>
					<?php get_template_part( 'template-parts/card', null, array( 'variant' => 'card' ) ); ?>
					<?php wp_reset_postdata(); ?>
				<?php endforeach; ?>
			</div>
		</section>
	<?php endif; ?>
</div