<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; // gets current page number global $query_string; // required  /* Exclude categories from Recent Posts */ if (option::get('recent_part_exclude') != 'off') { 	if (count(option::get('recent_part_exclude'))){ 		$exclude_cats = implode(",-",option::get('recent_part_exclude')); 		$exclude_cats = '-' . $exclude_cats; 		$args['cat'] = $exclude_cats; 	} }  /* Exclude featured posts from Recent Posts */ if (option::get('hide_featured') == 'on') { 	 	$featured_posts = new WP_Query(  		array(  			'post__not_in' => get_option( 'sticky_posts' ), 			'posts_per_page' => 4, 			'meta_key' => 'wpzoom_is_featured', 			'meta_value' => 1				 			) ); 		 	while ($featured_posts->have_posts()) { 		$featured_posts->the_post(); 		global $post; 		$postIDs[] = $post->ID; 	} 	$args['post__not_in'] = $postIDs; }  $args['paged'] = $paged; if (count($args) >= 1) { 	query_posts($args); } ?>  	<div class="widget"> 		 		<p class="title title-medium"><span><?php _e('Recent Posts','wpzoom'); ?>      <?php  	if ( get_query_var('paged') > 1 ) {  		echo ' ('; 		echo __('Page') . ' ' . get_query_var('paged');  		echo ')';     }     ?>  		</span></p> 	 		<ul class="posts posts-archive"> 			 			<?php while (have_posts()) : the_post(); unset($prev, $image); ?>  			<li id="post-<?php the_ID(); ?>"> 				<article> 					 					<h2 class="xlarge"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpzoom' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title_attribute(); ?></a></h2>  						<p class="postmetadata"> 							<?php if (option::get('display_category') == 'on') { ?><span class="category"><?php _e('In ', 'wpzoom'); the_category(', '); $prev = TRUE; ?></span><?php } ?> 							<?php if (option::get('display_author') == 'on') { if ($prev) {echo ' / '; $prev = FALSE; } ?><span class="author"><?php _e('By ', 'wpzoom'); the_author_posts_link(); $prev = TRUE; ?></span><?php } ?> 							<?php if (option::get('display_date') == 'on') { if ($prev) {echo ' / '; $prev = FALSE; } ?><time datetime="<?php the_time("Y-m-d"); ?>" pubdate><?php the_time("j F Y"); ?></time><?php $prev = TRUE; } ?> 							<?php if (option::get('display_comments') == 'on') { if ($prev) {echo ' / '; $prev = FALSE; } ?><?php comments_popup_link( __('0 comments', 'wpzoom'), __('1 comment', 'wpzoom'), __('% comments', 'wpzoom'), '', __('Comments are Disabled', 'wpzoom')); } ?> 						</p>  			        <?php if (option::get('index_thumb') == 'on') {   						get_the_image( array( 'size' => 'loop-main', 'width' => option::get('thumb_width'), 'height' => option::get('thumb_height'), 'before' => '<div class="cover">', 'after' => '</div>') );    			        } ?>  					<div class="post-excerpt"> 						<?php if (option::get('display_content') == 'Full Content') {  the_content('<span>'.__('Read more', 'wpzoom').' &#8250;</span>'); } if (option::get('display_content') == 'Excerpt')  { the_excerpt(); } ?> 					</div> 					<div class="cleaner">&nbsp;</div> 				</article> 			</li><!-- end #post-<?php the_ID(); ?> --> 			<?php endwhile; ?> 			 		</ul> 		 		<div class="cleaner">&nbsp;</div> 	 	</div><!-- end .widget -->  <?php get_template_part( 'pagination'); ?>  <?php wp_reset_query(); ?>