-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
55 lines (35 loc) · 1.01 KB
/
search.php
File metadata and controls
55 lines (35 loc) · 1.01 KB
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
54
55
<?php
/**
* The template for displaying search results pages.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
*
* @package agt
*/
get_header(); ?>
<?php Aucor_Hero::render(); ?>
<div id="primary" class="primary primary--search">
<?php if (have_posts()) : ?>
<div class="teaser-container">
<?php while (have_posts()) : the_post(); ?>
<?php Aucor_Teaser::render(['id' => get_the_ID()]); ?>
<?php endwhile; ?>
</div>
<?php Aucor_Posts_Nav_Numeric::render(); ?>
<?php else : ?>
<article class="entry entry--search-empty">
<div class="entry__content">
<p><?php ask_e('Search: Nothing found description'); ?></p>
<?php
Aucor_Search_Form::render([
'attr' => [
'class' => ['search-form--no-results'],
],
]);
?>
</div>
</article>
<?php endif; ?>
</div><!-- #primary -->
<?php
get_footer();