<?php global $gp_settings; ?>

<?php if($gp_settings['title'] == "Show") { ?>	
<h1 class="page-title">
<?php if(is_search()) { ?>
	<?php echo $wp_query->found_posts; ?> <?php _e('search results for', 'gp_lang'); ?> "<?php echo esc_html($s); ?>"
<?php } elseif(is_category()) { ?>
	<?php if(get_category_parents) { $catstr = get_category_parents($cat, false, ' / '); echo substr($catstr, 0, strlen($catstr) -3 ); } else { single_cat_title(); } ?>
<?php } elseif(is_tag()) { ?>
	<?php single_tag_title(); ?>
<?php } elseif(is_author()) { ?>
	<?php wp_title(''); ?><?php _e('\'s Posts'); ?>
<?php } elseif(is_archive()) { ?>
	<?php _e('Archives', 'gp_lang'); ?> <?php wp_title(' / '); ?>
<?php } ?>
</h1>
<?php } ?>

<?php query_posts("$query_string&caller_get_posts=1&orderby=$orderby&order=$order&gdsr_sort=$gdsr_sort&gdsr_order=$gdsr_order&paged=$paged&posts_per_page=".$gp_settings['posts_per_page']); ?>
	
		
<div id="content" class="fullwidth<?php if($gp_settings['dropdown_filter'] == "0") { ?> shift-down<?php } ?>">
		
	<?php if (have_posts()) : while (have_posts()) : the_post(); include('loop-dedication-data.php'); ?>
	
    
            <div <?php post_class('post-loop'); ?>>
		
			<!--Begin Image-->
			<?php if(has_post_thumbnail()) { ?>					
				<div class="post-thumbnail<?php if($gp_settings['image_wrap'] == "Disable") { ?> thumbnail-no-wrap<?php } ?>">					
					<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
						<?php $image = vt_resize(get_post_thumbnail_id(), '', $gp_settings['image_width'], $gp_settings['image_height'], true); ?>
						<img src="<?php echo $image[url]; ?>" alt="<?php if(get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true)) { echo get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true); } else { echo get_the_title(); } ?>" />		
					</a>				
				</div>					
			<?php } ?>
			<!--End Image-->
			
			<!--Begin Post Text-->
			<div class="post-text">
                            <h2><a href="<?php the_permalink(); ?>" title="<?php echo $gp_settings['artist_song']; ?>"><span><?php echo $gp_settings['artist'];?></span>.&nbsp;<?php echo $gp_settings['song']; ?></a></h2>
                            <?php echo $gp_settings['to_flag']; ?>
                            <span>TO: <?php echo $gp_settings['to_user_link']; ?></span>
			</div>
			<!--End Post Text-->
		
            </div>    
    
	<?php endwhile; ?>
	
		<?php gp_pagination(); ?>

		<?php if($gp_settings['dropdown_filter'] == "0") { require_once('dropdown-filter.php'); } ?>
	
	<?php else : ?>	

		<h4><?php _e('Try searching for a different term.', 'gp_lang'); ?></h4>
		
	<?php endif; wp_reset_query(); ?>	
	
</div>