forked from cuny-academic-commons/cbox-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.php
57 lines (56 loc) · 1.37 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
/**
* Infinity Theme: search template
*
* @author Bowe Frankema <[email protected]>
* @link http://infinity.presscrew.com/
* @copyright Copyright (C) 2010-2011 Bowe Frankema
* @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
* @package Infinity
* @subpackage templates
* @since 1.0
*/
infinity_get_header();
?>
<div id="content" role="main" class="<?php do_action( 'content_class' ); ?>">
<?php
do_action( 'open_content' );
do_action( 'open_search' );
if ( have_posts() ): ?>
<header>
<h1 class="page-title search-title">
<?php
printf( __( 'Search Results for: <span>%s</span>', infinity_text_domain ), get_search_query() );
?>
</h1>
</header>
<?php
infinity_get_template_part( 'templates/loops/loop', 'search' );
else: ?>
<div id="post-0" class="post no-results not-found">
<h2 class="entry-title">
<?php
_e( 'Nothing Found', infinity_text_domain );
?>
</h2>
<div class="entry-content">
<p>
<?php
_e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', infinity_text_domain );
?>
</p>
<?php
infinity_get_search_form();
?>
</div>
</div>
<?php
endif;
do_action( 'close_search' );
do_action( 'close_content' );
?>
</div>
<?php
infinity_get_sidebar();
infinity_get_footer();
?>