Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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