-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathsearch.php
53 lines (37 loc) · 1.21 KB
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* The template for displaying search results pages.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
*
* @package axio
*/
get_header(); ?>
<div id="primary" class="primary primary--search">
<div class="heading heading--search">
<h1 class="heading__title">
<?php echo esc_html(ask__('Title: Search')) . ': '; ?>
<?php echo esc_html(get_search_query()); ?>
</h1>
<?php if (!have_posts()) : ?>
<div class="heading__description">
<p role="status"><?php ask_e('Search: Nothing found description'); ?></p>
</div>
<?php if (class_exists('X_Search_Form')) : ?>
<?php X_Search_Form::render(); ?>
<?php endif; ?>
<?php endif; ?>
</div>
<?php if (have_posts()) : ?>
<div class="teaser-container js-teaser-container">
<?php while (have_posts()) : the_post(); ?>
<?php if (class_exists('X_Teaser')) : ?>
<?php X_Teaser::render(['id' => get_the_ID()]); ?>
<?php endif; ?>
<?php endwhile; ?>
</div>
<?php X_Posts_Nav_Numeric::render(); ?>
<?php endif; ?>
</div><!-- #primary -->
<?php
get_footer();