-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsearch.php
executable file
·47 lines (37 loc) · 1.17 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
<?php
/**
* The template for displaying Search Results pages.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header(); ?>
<div class="list list-items">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title"><?php printf( 'Search Results for: %s', '<span>' . get_search_query() . '</span>' ); ?></h1>
</header>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="row gridlock-row">
<div class="article-container row">
<?php get_template_part( 'content', get_post_format() ); ?>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="post no-results not-found row gridlock-row">
<div class="article-container row">
<div class="article-description col-12">
<h4 class="article-title">Nothing Found</h4>
</div>
<p>
Sorry, but nothing matched your search criteria. Please try again with some different keywords.
</p>
<?php get_search_form(); ?>
</div>
</div>
<?php endif; ?>
</div>
<?php get_footer(); ?>