Permalink
Browse files

Updated index.php template file to include conditional display of pos…

…t-thumbnail.
  • Loading branch information...
1 parent 0b2b2cf commit 14deace7d87e7d3f65ebbb052483755e14004686 Rachel Baker committed Jun 3, 2013
Showing with 36 additions and 27 deletions.
  1. +36 −27 index.php
View
@@ -6,40 +6,49 @@
* @subpackage BootstrapWP
*/
get_header(); ?>
-<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="container">
- <div class="row">
- <div class="span12">
- <?php if (function_exists('bootstrapwp_breadcrumbs')) {
- bootstrapwp_breadcrumbs();
- } ?>
- </div><!--/.span12 -->
- </div><!--/.row -->
+<div class="container">
+ <div class="row">
+ <div class="span12">
+ <?php if (function_exists('bootstrapwp_breadcrumbs')) {
+ bootstrapwp_breadcrumbs();
+ } ?>
+ </div><!--/.span12 -->
+ </div><!--/.row -->
<div class="row content">
<div class="span8">
- <div <?php post_class(); ?>>
- <a href="<?php the_permalink(); ?>" title="<?php the_title();?>">
- <h3><?php the_title();?></h3></a>
- <p class="meta">
- <?php echo bootstrapwp_posted_on();?>
- </p>
- <div class="row">
- <div class="span2">
- <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
- <?php echo bootstrapwp_autoset_featured_img(); ?></a>
- </div><!-- /.span2 -->
- <div class="span6">
- <?php the_excerpt();?>
- </div><!-- /.span6 -->
- </div><!-- /.row -->
- <hr/>
- </div><!-- /.post_class -->
+ <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+ <div <?php post_class(); ?>>
+ <a href="<?php the_permalink(); ?>" title="<?php the_title();?>">
+ <h3><?php the_title();?></h3>
+ </a>
+ <p class="meta">
+ <?php echo bootstrapwp_posted_on();?>
+ </p>
+
+ <div class="row">
+ <?php // Post thumbnail conditional display.
+ if ( bootstrapwp_autoset_featured_img() !== false ) : ?>
+ <div class="span2">
+ <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute( 'echo=0' ); ?>">
+ <?php echo bootstrapwp_autoset_featured_img(); ?>
+ </a>
+ </div>
+ <div class="span6">
+ <?php else : ?>
+ <div class="span8">
+ <?php endif; ?>
+ <?php the_excerpt(); ?>
+ </div>
+ </div><!-- /.row -->
+
+ <hr/>
+ </div><!-- /.post_class -->
<?php endwhile; endif; ?>
<?php bootstrapwp_content_nav('nav-below');?>
- </div><!-- /.span8 -->
+ </div>
<?php get_sidebar('blog'); ?>
<?php get_footer(); ?>

0 comments on commit 14deace

Please sign in to comment.