Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (44 sloc) 1.67 kB
edfeccc @ianstewart _s: initial fork of Toolbox
ianstewart authored
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 * @package _s
12 * @since _s 1.0
13 */
14
15 get_header(); ?>
16
17 <div id="primary">
18 <div id="content" role="main">
19
20 <?php if ( have_posts() ) : ?>
21
22 <?php _s_content_nav( 'nav-above' ); ?>
23
24 <?php /* Start the Loop */ ?>
25 <?php while ( have_posts() ) : the_post(); ?>
26
27 <?php
28 /* Include the Post-Format-specific template for the content.
29 * If you want to overload this in a child theme then include a file
30 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
31 */
32 get_template_part( 'content', get_post_format() );
33 ?>
34
35 <?php endwhile; ?>
36
37 <?php _s_content_nav( 'nav-below' ); ?>
38
39 <?php else : ?>
40
41 <article id="post-0" class="post no-results not-found">
42 <header class="entry-header">
43 <h1 class="entry-title"><?php _e( 'Nothing Found', '_s' ); ?></h1>
44 </header><!-- .entry-header -->
45
46 <div class="entry-content">
47 <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', '_s' ); ?></p>
48 <?php get_search_form(); ?>
49 </div><!-- .entry-content -->
50 </article><!-- #post-0 -->
51
52 <?php endif; ?>
53
54 </div><!-- #content -->
55 </div><!-- #primary -->
56
57 <?php get_sidebar(); ?>
58 <?php get_footer(); ?>
Something went wrong with that request. Please try again.