Skip to content
wiki.fftac.org

Searchform

**Site relevance:** Anti-Christ.org

**Memory type:** theme source memory

**Source path:** Anti-Christ.org/wp-content/themes/antichrist-engine/searchform.php

**Size:** 1.4 KB

Summary

Custom search form template.

Source Preview

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

<?php
/**
 * Custom search form template.
 *
 * @package Antichrist_Engine
 */

if (!defined('ABSPATH')) {
    exit;
}

$form_aria_label = '';
$field_id        = wp_unique_id('site-search-field-');

if (isset($args['aria_label'])) {
    $form_aria_label = (string) $args['aria_label'];
}
?>
<form role="search" method="get" class="site-search-form" action="<?php echo esc_url(home_url('/')); ?>"<?php echo $form_aria_label ? ' aria-label="' . esc_attr($form_aria_label) . '"' : ''; ?>>
    <div class="site-search-form__row">
        <label for="<?php echo esc_attr($field_id); ?>">
            <span class="screen-reader-text"><?php esc_html_e('Search the site', 'antichrist-engine'); ?></span>
            <input
                id="<?php echo esc_attr($field_id); ?>"
                class="site-search-form__field"
                type="search"
                name="s"
                value="<?php echo esc_attr(get_search_query()); ?>"
                placeholder="<?php esc_attr_e('Search claims, sources, publications, or programs', 'antichrist-engine'); ?>"
            >
        </label>
        <button class="search-submit" type="submit"><?php esc_html_e('Search', 'antichrist-engine'); ?></button>
    </div>
    <p class="site-search-form__hint"><?php esc_html_e('Tip: the header Research Navigator jumps straight to high-value records, while this form scans the wider site index.', 'antichrist-engine'); ?></p>
</form>