forked from ahmadawais/Advanced-Gulp-WordPress
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
42 lines (27 loc) · 776 Bytes
/
search.php
File metadata and controls
42 lines (27 loc) · 776 Bytes
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
<?php
/**
* The template for displaying search results pages.
*
* @package Neat
*/
get_header(); ?>
<section class="aa_search">
<?php if ( have_posts() ) : ?>
<div class="aa_header">
<h1 class="aa_h1">
<?php printf( esc_html__( 'Search Results for: %s', 'neat' ), '<span>' . get_search_query() . '</span>' ); ?>
</h1>
<!-- /.aa_h1 -->
</div>
<!-- /.aa_header -->
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'assets/views/content', get_post_format() ); ?>
<?php endwhile; ?>
<?php the_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part( 'assets/views/content', 'none' ); ?>
<?php endif; ?>
</section>
<!-- /.aa_search -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>