<?php

/**
 * 
 *
 * @version $Id$
 * @copyright 2003 
 **/
//NOTE 1: we use the excerpt text directly, because the_excerpt is parsing shortcodes, and some load javascript that requires libraries that are not loaded, because this is content loaded by ajax.
?>
<html>
<head></head>
<body>
<div>
<div id="nextposts" data-nextposts="<?php echo apply_filters('next_posts','')?>"></div>
			<?php while ( have_posts() ) : the_post(); global $post; ?>
						<div class="gridset">
							<figure class="griditem" data-url="<?php the_permalink()?>">
								<div class="griditem-img"><?php echo apply_filters('grid_gallery_image', '', get_the_ID(), 'medium') ?></div>
								<figcaption>
									<h3 class="griditem-title"><?php the_title() ?></h3>
									<div class="griditem-description"><?php echo $post->post_excerpt /* NOTE 1*/?></div>
								</figcaption>
							</figure>		
							
							<figure class="slideshow-item">
								<figcaption>
									<h3 class="slideshow-title"><a class="grid-gallery-link" target="_blank" href="<?php the_permalink()?>"><?php the_title() ?></a></h3>
									<div class="slideshow-description"><?php echo $post->post_excerpt ?></div>
								</figcaption>
								<div class="slideshow-img"><?php echo apply_filters('grid_gallery_image', '', get_the_ID(), 'full') ?></div>
							</figure>
						</div>											
			<?php endwhile; // end of the loop. ?>
</div>
</body>
</html>	