-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsearch.php
More file actions
54 lines (41 loc) · 1.38 KB
/
search.php
File metadata and controls
54 lines (41 loc) · 1.38 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
<?php
/**
* The template for displaying search results.
*
* @package Archetype
* @version 1.0
* @since 1.0
*/
?>
<?php get_header(); ?>
<div id="wrapper">
<div class="container">
<div class="row">
<div id="main" class="col-md-12 clearfix" role="main">
<?php if( '' != get_query_var( 's' ) ) { ?>
<div id="search-page-title">
<h3><?php _e( 'Search Results For "', 'archetype' ); echo get_query_var( 's' ); _e( '"', 'archetype' ); ?></h3>
</div>
<?php if ( have_posts() ) { ?>
<?php while ( have_posts() ) { ?>
<?php the_post(); ?>
<?php get_template_part( 'loop', get_post_format() ); ?>
<?php } // end while ?>
<?php get_template_part( 'pagination' ); ?>
<?php } else { ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Page or resource not found', 'archetype' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'No results were found.', 'archetype' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php } // end if/else ?>
</div><!-- /#main -->
<?php } // end if ?>
</div><!-- /row -->
</div><!-- /container -->
</div><!-- /#wrapper -->
<?php get_footer(); ?>