Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (43 sloc) 1.47 KB
<?php
/**
*
* Description: Default Index template to display loop of blog posts
*
* @package WordPress
* @subpackage WP-Bootstrap
* @since WP-Bootstrap 0.1
*/
get_header(); ?>
<div class="row">
<div class="container">
<?php if (function_exists('bootstrapwp_breadcrumbs')) bootstrapwp_breadcrumbs(); ?>
</div><!--/.container -->
</div><!--/.row -->
<div class="container">
<div class="row content">
<div class="span8">
<?php
// Blog post query
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts( array( 'post_type' => 'post', 'paged'=>$paged, 'showposts'=>0) );
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">
<div class="span2"><?php // Checking for a post thumbnail
if ( has_post_thumbnail() ) ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail();?></a>
</div><!-- /.span2 -->
<div class="span6">
<?php the_excerpt();?>
</div><!-- /.span6 -->
</div><!-- /.row -->
<hr />
</div><!-- /.post_class -->
<?php endwhile; endif; ?>
<?php bootstrapwp_content_nav('nav-below');?>
</div><!-- /.span8 -->
<?php get_sidebar('blog'); ?>
<?php get_footer(); ?>
Something went wrong with that request. Please try again.