-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
100 lines (87 loc) · 2.91 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
/**
* Search template file
*
* This file is the search template file, used on search results index pages per
* the {@link http://codex.wordpress.org/Template_Hierarchy Template Hierarchy}.
*
* @link http://codex.wordpress.org/Function_Reference/get_header get_header()
* @link http://codex.wordpress.org/Function_Reference/get_footer get_footer()
* @link http://codex.wordpress.org/Function_Reference/get_search_query get_search_query()
* @link http://codex.wordpress.org/Function_Reference/have_posts have_posts()
* @link http://codex.wordpress.org/Function_Reference/the_content the_content()
* @link http://codex.wordpress.org/Function_Reference/the_ID the_ID()
* @link http://codex.wordpress.org/Function_Reference/the_permalink the_permalink()
* @link http://codex.wordpress.org/Function_Reference/the_post the_post()
* @link http://codex.wordpress.org/Function_Reference/the_title the_title()
*
* @uses apptheme_navigation_above() Defined in /functions.php
* @uses navigation_below() Defined in /functions.php
* @uses apptheme_no_posts() Defined in /functions.php
*
* @package AppTheme
* @copyright Copyright (c) 2010, UpThemes
* @license license.txt GNU General Public License, v3
* @since AppTheme 1.0
*/
/**
* Include the header template part file
*
* MUST come first.
* Calls the header PHP file.
* Used in all primary template pages
*
* @see {@link: http://codex.wordpress.org/Function_Reference/get_header get_header}
*
* Child Themes can replace this template part file globally, via "header.php", or in
* a specific context only, via "header-search.php"
*/
get_header();
?>
<div id="content">
<div class="row">
<?php
/**
* Output above-loop navigation links
*/
apptheme_navigation_above();
?>
<div class="column six">
<h1><?php sprintf( __e( 'Search Results for %s', 'apptheme' ), '<em id="search-terms">\'' . get_search_query() . '\'</em>' ); ?></h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="postwrapper">
<?php the_content(); ?>
</div><!-- /.postwrapper -->
<?php endwhile; ?>
<?php else : ?>
<?php
/**
* Output no-post content
*/
apptheme_no_posts();
?>
<?php endif; ?>
</div><!-- .column.six -->
<?php
/**
* Output below-loop navigation links
*/
apptheme_navigation_below();
?>
</div><!-- .row -->
</div><!-- #content -->
<?php
/**
* Include the footer template part file
*
* MUST come last.
* Calls the footer PHP file.
* Used in all primary template pages
*
* Codex reference: {@link http://codex.wordpress.org/Function_Reference/get_footer get_footer}
*
* Child Themes can replace this template part file globally, via "footer.php", or in
* a specific context only, via "footer-search.php"
*/
get_footer();
?>