<!-- Slider -->

<div class="app">
<?php
$theme_options = get_option('gpp_theme_options');
$slider_cat_ID = get_option('gpp_slider_posts_cat');
$slider_cat = get_cat_name($slider_cat_ID);
?>
    <ul id="slider-nav"></ul>
    <?php $slider_posts_query = new WP_Query("showposts=6&cat=$slider_cat_ID"); ?>	
    <div id="slider-posts">
        <?php if ($slider_posts_query->have_posts()): while ($slider_posts_query->have_posts()) : $slider_posts_query->the_post(); ?>
			<div class="slide">
				<div class="slide-thumbnail">
				<?php get_the_image( array( 'custom_key' => array( 'thumbnail-590x400' ), 'default_size' => '590x400', 'width' => '590', 'height' => '400', 'image_class' => 'thumbnail-590x400' ) ); ?>
				</div>
				<div class="slide-details">
					<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s','gpp_i18n'),the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
					<div class="description">
					    <?php the_excerpt(); ?>
				        <h2 class="left"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s','gpp_i18n'),the_title_attribute('echo=0')); ?>" class="button"><?php _e('Continue Reading','gpp_i18n'); ?></a></h2>
					</div>
				</div>
				<div class="clear"></div>
			</div>
		<?php endwhile; endif; wp_reset_query(); ?>
	</div>
</div>