<!-- *** Recent Blogs Starts *** -->
<div class="blog-wrapper" id="section3">
<div class="container">
<div class="blog-container">
<div class="row">
<div class="recent-blog-header">
<p class="saperator"><img src="<?php echo get_template_directory_uri(); ?>/images/recent-blog-seperator-icon.png"></p>
<?php if (startpoint_get_option('startpoint_home_blog_heading') != '') { ?>
<h1 class="rbh"><?php echo startpoint_get_option('startpoint_home_blog_heading'); ?></h1>
<?php } else { ?>
<h1 class="rbh"><?php _e('Latest posts', 'startpoint'); ?></h1>
<?php } ?>
<?php if (startpoint_get_option('startpoint_home_blog_desc') != '') { ?>
<p class="rbh"><?php echo startpoint_get_option('startpoint_home_blog_desc'); ?></p>
<?php
} else {
}
?>
</div>
</div>
<div class="row">
<!-- *** Blog *** -->
<?php
$limit = get_option('posts_per_page');
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$wp_query->query('showposts=' . $limit . '&paged=' . $paged);
$wp_query->is_archive = true;
$wp_query->is_home = false;
?>
<?php
query_posts('showposts=' . $limit . '');
if (have_posts()) : while (have_posts()) : the_post();
?>
<div class="col-md-4 col-sm-4 col-xs-6">
<div class="recent-posts-container">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="animated left-to-right">
<?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) { ?>
<?php
startpoint_get_thumbnail(326, 279);
?>
<?php } else { ?>
<?php
startpoint_get_image(326, 279);
?>
<?php
}
?></div>
<h3 class="animated bottom-to-top"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<?php the_excerpt(); ?>
<span>
<p class="rbh-post-meta"><?php
$archive_year = get_the_time('Y');
$archive_month = get_the_time('m');
$archive_day = get_the_time('d');
?>
<a href="<?php
echo get_day_link($archive_year, $archive_month, $archive_day);
?>">Posted on : <?php echo get_the_time('m. d. Y') ?></a></p>
<a href="<?php the_permalink() ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/readmore-icon.png" alt="" class="rbh-readmore"></a>
</span>
</div>
</div>
</div>
<?php
endwhile;
else:
?>
<div>
<p>
<?php _e('Sorry no post matched your criteria', 'startpoint'); ?>
</p>
</div>
<?php endif; ?>
<!-- *** Recent Blog loop Ends *** -->
</div>
</div>
</div>
</div>
<!-- *** Recent Blogs Ends *** -->
<div class="clearfix"></div>
<!-- *** Gallery starts *** -->