-
Notifications
You must be signed in to change notification settings - Fork 5
/
search.php
executable file
·57 lines (43 loc) · 1.24 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
53
54
55
56
57
<?php
/**
*
* Search Template
*
*
* @package WP-Bootstrap
* @subpackage Default_Theme
* @since WP-Bootstrap 0.7
*
* Last Revised: January 22, 2012
*/
get_header(); ?>
<section id="body" class="search">
<div class="container">
<div class="row">
<?php if ( have_posts() ) : ?>
<div class="span8 content">
<header>
<h1><?php printf( __( 'Search Results for: %s', 'appifywp' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
</header>
<?php while ( have_posts() ) : the_post(); ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><h2> <?php the_title();?></h2></a>
<p><?php the_excerpt();?></p>
<hr />
<?php endwhile; ?>
<?php else : ?>
<div class="span8 content">
<header class="subhead" id="overview">
<h1><?php _e( 'No Results Found', 'appifywp' ); ?></h1>
</header>
<p class="lead"><?php _e( 'It seems we can’t find what you’re looking for. Perhaps you should try again with a different search term.', 'appifywp' ); ?></p>
<div class="well">
<?php get_search_form(); ?>
</div><!--/.well -->
<?php endif ;?>
<?php appifywp_content_nav( 'nav-below' ); ?>
</div><!--/.span8 -->
<?php get_sidebar(); ?>
</div>
</div>
</section>
<?php get_footer(); ?>