-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsearch.php
69 lines (47 loc) · 1.92 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
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Search Template
*
* The search template is used to display search results from the native WordPress search.
*
* If no search results are found, the user is assisted in refining their search query in
* an attempt to produce an appropriate search results set for the user's search query.
*
* @package WooFramework
* @subpackage Template
*/
get_header();
global $woo_options;
?>
<div id="content">
<div class="col-full">
<?php woo_main_before(); ?>
<header class="archive-header"><h1><?php echo __( 'Search results:', 'woothemes' ) . ' '; the_search_query(); ?></h1></header>
<section id="main" class="col-left">
<?php if ( have_posts() ) : $count = 0; ?>
<div class="fix"></div>
<?php woo_loop_before(); ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); $count++; ?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', 'search' );
?>
<?php endwhile; ?>
<?php else : ?>
<article <?php post_class(); ?>>
<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p>
</article><!-- /.post -->
<?php endif; ?>
<?php woo_loop_after(); ?>
<?php woo_pagenav(); ?>
</section><!-- /#main -->
<?php woo_main_after(); ?>
<?php get_sidebar(); ?>
</div><!-- /.col-full -->
</div><!-- /#content -->
<?php get_footer(); ?>