Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3 | iacchi | 1 | <?php |
2 | /* |
||
3 | * The main template file. |
||
4 | * |
||
5 | * This is the most generic template file in a WordPress theme |
||
6 | * and one of the two required files for a theme (the other being style.css). |
||
7 | * It is used to display a page when nothing more specific matches a query. |
||
8 | * E.g., it puts together the home page when no home.php file exists. |
||
9 | * Learn more: http://codex.wordpress.org/Template_Hierarchy |
||
10 | */ |
||
11 | get_header(); |
||
12 | ?> |
||
13 | |||
14 | <div id="content"> |
||
15 | |||
16 | <?php |
||
17 | if (have_posts()) : |
||
18 | sdt_content_nav('nav-above'); |
||
19 | |||
20 | // Start the Loop |
||
21 | while (have_posts()) : the_post(); |
||
22 | get_template_part('content', false); |
||
23 | endwhile; |
||
24 | sdt_content_nav('nav-below'); |
||
25 | else : |
||
26 | ?> |
||
27 | <div> |
||
28 | <header id="search-header"> |
||
29 | <h1 id="search-title"><?php _e( 'Nothing Found', 'sdt' ); ?></h1> |
||
30 | </header><!-- .entry-header --> |
||
31 | <div id="search-content"> |
||
32 | <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'sdt' ); ?></p> |
||
33 | <?php get_search_form(); ?> |
||
34 | </div><!-- #search-content --> |
||
35 | </div> |
||
36 | <?php endif; ?> |
||
37 | |||
38 | </div><!-- #content --> |
||
39 | |||
40 | <?php get_sidebar(); ?> |
||
41 | <?php get_footer(); ?> |