Skip to content
wiki.fftac.org

Antichrist Net Search

**Site relevance:** Antichrist.net

**Memory type:** theme source memory

**Source path:** Antichrist.net/wp-content/themes/antichrist-net/search.php

**Size:** 1.2 KB

Summary

Search results template.

Source Preview

This source file is short enough to preview directly on its source-memory page.

<?php
/**
 * Search results template.
 *
 * @package AntichristNet
 */
get_header();
?>
<main id="primary" class="site-main container archive-layout">
	<?php acn_breadcrumbs(); ?>
	<header class="page-header narrow">
		<p class="kicker"><?php esc_html_e( 'Search', 'antichrist-net' ); ?></p>
		<h1><?php printf( esc_html__( 'Results for ā€œ%sā€', 'antichrist-net' ), esc_html( get_search_query() ) ); ?></h1>
		<?php get_search_form(); ?>
	</header>
	<?php if ( have_posts() ) : ?>
		<div class="post-list">
			<?php while ( have_posts() ) : the_post(); ?>
				<article <?php post_class( 'post-card post-card--no-thumb' ); ?>>
					<div class="post-card-content">
						<?php acn_entry_meta(); ?>
						<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
						<?php the_excerpt(); ?>
					</div>
				</article>
			<?php endwhile; ?>
		</div>
		<?php the_posts_pagination(); ?>
	<?php else : ?>
		<section class="empty-state">
			<h2><?php esc_html_e( 'Nothing matched.', 'antichrist-net' ); ?></h2>
			<p><?php esc_html_e( 'Try a different term, or start from the archive and glossary.', 'antichrist-net' ); ?></p>
		</section>
	<?php endif; ?>
</main>
<?php get_footer(); ?>