Subversion Repositories ZenDark

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 iacchi 1
<?php
2
/*
3
 * The template for displaying Search Results pages.
4
 */
5
 
6
get_header(); ?>
7
 
8
<div id="content">
9
 
10
<?php if (have_posts()) : ?>
11
 
12
        <header id="search-header">
27 iacchi 13
                <h1 id="search-title"><?php printf(__('Search Results for: %s', 'zendark'), '<span>'.get_search_query().'</span>'); ?></h1>
3 iacchi 14
        </header>
15
 
27 iacchi 16
        <?php zendark_content_nav('nav-above'); ?>
3 iacchi 17
 
18
        <?php /* Start the Loop */ ?>
19
        <?php while (have_posts()) : the_post(); ?>
20
 
21
                <?php
22
                        /* Include the Post-Format-specific template for the content.
23
                         * If you want to overload this in a child theme then include a file
24
                         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
25
                         */
26
                        get_template_part('content', false);
27
                ?>
28
 
29
        <?php endwhile; ?>
30
 
27 iacchi 31
        <?php zendark_content_nav('nav-below'); ?>
3 iacchi 32
 
33
<?php else : ?>
34
 
35
        <div>
36
                <header id="search-header">
27 iacchi 37
                        <h1 id="search-title"><?php _e('Nothing Found', 'zendark'); ?></h1>
3 iacchi 38
                </header><!-- #search-header -->
39
                <div id="search-content">
27 iacchi 40
                        <p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'zendark'); ?></p>
3 iacchi 41
                        <?php get_search_form(); ?>
42
                </div><!-- #search-content -->
43
        </div>
44
 
45
<?php endif; ?>
46
 
47
</div><!-- #content -->
48
 
49
<?php get_sidebar(); ?>
50
<?php get_footer(); ?>