-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
54 lines (44 loc) · 1.44 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
<?php
/**
*
* Search Template
*
*
* @package WP-Bootstrap
* @subpackage Default_Theme
* @since WP-Bootstrap 0.7
*
* Last Revised: January 22, 2012
*/
get_header(); ?>
<div class="container">
<?php if ( have_posts() ) : ?>
<!-- Masthead
================================================== -->
<header class="jumbotron subhead" id="overview">
<h1><?php printf( __( 'Search Results for: %s', 'bootstrapwp' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
</header>
<div class="row content">
<div class="span8">
<?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 : ?>
<!-- Masthead
================================================== -->
<header class="jumbotron subhead" id="overview">
<h1><?php _e( 'No Results Found', 'bootstrapwp' ); ?></h1>
<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.', 'bootstrapwp' ); ?></p>
</header>
<div class="row content">
<div class="span8">
<div class="well">
<?php get_search_form(); ?>
</div><!--/.well -->
<?php endif ;?>
<?php bootstrapwp_content_nav( 'nav-below' ); ?>
</div><!--/.span8 -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>