Subversion Repositories ZenDark

Rev

Go to most recent revision | Details | 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">
13
                <h1 id="search-title"><?php printf(__('Search Results for: %s', 'sdt'), '<span>'.get_search_query().'</span>'); ?></h1>
14
        </header>
15
 
16
        <?php sdt_content_nav('nav-above'); ?>
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
 
31
        <?php sdt_content_nav('nav-below'); ?>
32
 
33
<?php else : ?>
34
 
35
        <div>
36
                <header id="search-header">
37
                        <h1 id="search-title"><?php _e('Nothing Found', 'sdt'); ?></h1>
38
                </header><!-- #search-header -->
39
                <div id="search-content">
40
                        <p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'sdt'); ?></p>
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(); ?>