forked from TamerShlash/Sampression-Lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
52 lines (39 loc) · 1.34 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
<?php
// Exit if accessed directly
if ( !defined('ABSPATH')) exit;
/**
* The template for displaying Search Results pages.
*
* @package Sampression-Lite
* @since Sampression Lite 1.0
*/
get_header(); ?>
<section id="content" class="clearfix">
<?php if (have_posts()) : ?>
<header class="page-header columns sixteen">
<h2 class="page-title quick-note search-title"><?php
printf( __( 'Search Results for: %s', 'sampression' ), '<span>' . get_search_query() . '</span>' ); ?>
</h2>
</header>
<div id="post-listing" class="clearfix">
<?php
while (have_posts()) : the_post();
get_template_part( 'loop', 'search' );
endwhile;
?>
</div>
<!-- #post-listing -->
<?php else: ?>
<article id="post-0" class="no-results not-found">
<header class="entry-header">
<h2 class="entry-title"><?php _e( 'Nothing Found For: ', 'sampression' ); echo '"' . get_search_query() . '"'; ?></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found for the requested keyword. Please try another keywords..', 'sampression' ); ?></p>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php endif; ?>
</section>
<!-- #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>