summaryrefslogtreecommitdiff
path: root/single.php
diff options
context:
space:
mode:
Diffstat (limited to 'single.php')
-rw-r--r--single.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/single.php b/single.php
new file mode 100644
index 0000000..8d1ed27
--- /dev/null
+++ b/single.php
@@ -0,0 +1,34 @@
+<?php
+/**
+ * The Template for displaying all single posts.
+ *
+ * @package WordPress
+ * @subpackage Twenty_Eleven
+ * @since Twenty Eleven 1.0
+ */
+
+get_header(); ?>
+
+ <div id="primary">
+ <div id="content" role="main">
+
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <!-- Remove the "Previous" and "Next" links, uncomment if you'd like these
+ <nav id="nav-single">
+ <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
+ <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> Previous', 'twentyeleven' ) ); ?></span>
+ <span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?></span>
+ </nav> --> <!-- #nav-single -->
+
+
+ <?php get_template_part( 'content', 'single' ); ?>
+
+ <?php comments_template( '', true ); ?>
+
+ <?php endwhile; // end of the loop. ?>
+
+ </div><!-- #content -->
+ </div><!-- #primary -->
+<?php get_sidebar(); ?>
+<?php get_footer(); ?> \ No newline at end of file