<?php
/*
    Template Name: Latest By 3 thumbs
*/
?>
<?php get_header();?>
            <div id="main">
            	<div id="fullContent">
					<section>
                        <ul id="da-thumbs" class="da-thumbs">
                        	<?php

                          query_posts(array (
							'showposts' => get_query_var( '12' ),
                            'paged' => get_query_var( 'paged' ),

                            )); ?>
       						<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                            <li class="thumbs3">
                                <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
                                    <?php $img = catch_that_image($post->ID); ?>
                                    
                                    <img src="<?php echo Lioit_URI; ?>/scripts/timthumb.php?src=<?php echo $img ?>&amp;w=265&amp;h=285&amp;zc=1" alt="<?php the_title(); ?>" />
                                    <div>
                                    	<h5><?php the_title(); ?></h5>
                                    	<p><?php the_excerpt_max_charlength('170'); ?> ...</p>
                                    </div>
                                    
                                </a>
                            </li>
                            <?php endwhile; ?>
						<?php  else:  ?>
                        <!-- Else in here -->
                        <?php  endif; ?>
                        <?php lio_pagination(); ?>
                        </ul>
                    </section>
                </div><!--End Main Content-->
                
            </div><!--End Main-->
            <?php require Lioit_TM . '/lio.php';?>
        </div><!--End Content-->
        
<?php get_footer();?>
