<?php get_header(); ?>
<?php 
    echo do_shortcode("[metaslider id=21]"); 
?>
	<section id="content" class="first clearfix">


		<div class="home-container">

     	    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	<article id="post-<?php the_ID(); ?>" <?php post_class('item-list mbottom'); ?>>
        <div class="cthumb">
            <a href="<?php the_permalink(); ?>">
			  <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'medium');} else { ?>
                <img src="<?php  echo get_template_directory_uri(); ?>/images/default-image.png" alt="<?php the_title();  ?>" />
              <?php } ?>
            </a>
	        <div class="catbox">
     		    <?php printf('%1$s', get_the_category_list( ) ); ?>
			</div>
        </div>
        <div class="cdetail">
    



       		    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2></p>
<div class="clear"/>        

</div>

 

<div><span class="post-excerpt"><?php
$my_excerpt = get_the_excerpt();
if ( '' != $my_excerpt ) {
	// Some string manipulation performed
}
echo $my_excerpt; // Outputs the processed value to the page
?></span>
</div>
<div class="clear"/>
   <div class="postmeta">
<span class="post-time"><?php echo the_time(get_option( '\a\t g:ia' )) ?></span>
<p><div class="post-date"> <?php echo the_time('j') ?> </div>
<div class="post-monthyear"><?php echo the_time('M') ?> <br/><?php echo the_time('Y') ?><div class="post-time"></div>		</div>
<div class="clear"/>

        </div>
    </article>
<?php endwhile; ?>
    <div class="pagenavi alignright">
	    <?php if ($wp_query->max_num_pages > 1) mansar_wp_pagination(); ?>
		

	</div>
<?php else : get_template_part( 'no-results', 'loop' ); endif; ?>
		</div>
	</section> <!-- end #main -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>