Permalink
Browse files

Updated template for default page template.

  • Loading branch information...
1 parent 87f31b9 commit b16c9d4a33549abbc1719f7d3eaa3a89c8628c18 @rachelbaker committed Nov 26, 2013
Showing with 41 additions and 25 deletions.
  1. +41 −25 page.php
View
@@ -7,28 +7,44 @@
* @subpackage BootstrapWP
*/
get_header(); ?>
-<?php while (have_posts()) : the_post(); ?>
-
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <?php if (function_exists('bootstrapwp_breadcrumbs')) {
- bootstrapwp_breadcrumbs();
- } ?>
- </div><!--/.col-md-12 -->
- </div><!--/.row -->
-
- <div class="page-header">
- <h1><?php the_title();?></h1>
- </div>
-
- <div class="row content">
- <div class="col-md-8">
- <?php the_content(); ?>
- <?php wp_link_pages( array('before' => '<div class="page-links">' . __('Pages:', 'bootstrapwp'), 'after' => '</div>')); ?>
- <?php edit_post_link(__('Edit', 'bootstrapwp'), '<span class="edit-link">', '</span>'); ?>
- <?php endwhile; // end of the loop. ?>
- </div><!-- /.col-md-8 -->
-
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
+<div class="container">
+
+ <?php get_template_part( 'partials/breadcrumbs' ); ?>
+
+ <div class="row">
+ <div class="col-md-8">
+
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <div <?php post_class(); ?>>
+ <div class="page-header">
+ <h1><?php the_title();?></h1>
+ </div>
+
+ <div class="entry-content">
+ <?php the_content(); ?>
+ </div>
+
+ <?php edit_post_link(__('Edit', 'bootstrapwp'), '<button class="btn btn-default">', '</button>'); ?>
+
+ <hr />
+
+ <?php wp_link_pages( array('before' => '<div class="page-links">' . __('Pages:', 'bootstrapwp'), 'after' => '</div>')); ?>
+
+ <?php if ( comments_open() || get_comments_number() ) :
+ // display comments template.
+ comments_template();
+ endif; ?>
+
+ </div>
+
+ <?php endwhile; // end of the loop. ?>
+
+ </div>
+
+ <?php get_sidebar(); ?>
+
+ </div>
+</div>
+
+<?php get_footer(); ?>

0 comments on commit b16c9d4

Please sign in to comment.