<?php /**
 * Jthoor free theme v 1.0
 *
 * this site use free theme ffrom jthoor,com.
 *
 * @package 	Jthoor free theme 
 * @copyright	Copyright (c) 2013-2014, Jthoor 
 * @license		http://www.jthoor.com
 *
 * @since 		1.0
 */
 ?>
<?php $true = get_option('nt_gridd_true') ;
               $catt = get_option('nt_gridd_cat') ;
               $num = get_option('nt_gridd_num') ;
               if($true == 'category'){$loop66 = new WP_Query( array( 'post_type' => 'post','offset'                 => '0', 'category_name'  => $catt ,'posts_per_page' => $num ) );}
               else{$loop66 = new WP_Query( array( 'post_type' => 'post','posts_per_page' => $num));}
               

 ?>
 <br />
 <div class="side-title"><?php echo get_option('nt_gridd_title') ; ?></div>
	<div class="grid-cc"><?php while ( $loop66->have_posts() ) : $loop66->the_post(); ?>
        		
        		
        <div class="grid">
        <a href="<?php the_permalink() ?>" >
            <img src="<?php $image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_image_src($image_id,'large', true);
echo $image_url[0];  ?>">
	    <span><?php echo wp_trim_words( get_the_title(), 10 ); ?></span>
        </a>
        
        </div>		
       		
        		
        	<?php endwhile; ?></div>	
