Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (43 sloc) 1.738 kb
edfeccc Ian Stewart _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
afe244f Ian Stewart _s: More consistency with class names in the structural markup
ianstewart authored
17 <div id="primary" class="site-content">
edfeccc Ian Stewart _s: initial fork of Toolbox
ianstewart authored
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
e932aaa Ian Stewart _s: provide a more helpful message to users with no posts on the home pa...
ianstewart authored
39 <?php elseif ( current_user_can( 'edit_posts' ) ) : ?>
edfeccc Ian Stewart _s: initial fork of Toolbox
ianstewart authored
40
41 <article id="post-0" class="post no-results not-found">
42 <header class="entry-header">
e932aaa Ian Stewart _s: provide a more helpful message to users with no posts on the home pa...
ianstewart authored
43 <h1 class="entry-title"><?php _e( 'No posts to display', '_s' ); ?></h1>
edfeccc Ian Stewart _s: initial fork of Toolbox
ianstewart authored
44 </header><!-- .entry-header -->
45
46 <div class="entry-content">
e932aaa Ian Stewart _s: provide a more helpful message to users with no posts on the home pa...
ianstewart authored
47 <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', '_s' ), admin_url( 'post-new.php' ) ); ?></p>
edfeccc Ian Stewart _s: initial fork of Toolbox
ianstewart authored
48 </div><!-- .entry-content -->
49 </article><!-- #post-0 -->
50
51 <?php endif; ?>
52
53 </div><!-- #content -->
afe244f Ian Stewart _s: More consistency with class names in the structural markup
ianstewart authored
54 </div><!-- #primary .site-content -->
edfeccc Ian Stewart _s: initial fork of Toolbox
ianstewart authored
55
56 <?php get_sidebar(); ?>
57 <?php get_footer(); ?>
Something went wrong with that request. Please try again.