<?php
/**
 * @version    $Id$
 * @package    IT_Theme_Framework
 * @author     InnoThemes Team <support@innothemes.com>
 * @copyright  Copyright (C) 2012 InnoThemes.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.innothemes.com
 */

global $wp_query, $wp_rewrite;

// Prepare variables
$query        = $nav_query ? $nav_query : $wp_query;
$max          = $query->max_num_pages;
$current_page = max( 1, get_query_var( 'paged' ) );
$big          = 99999;
?>

<div id="pagination">
	<?php
	echo '' . paginate_links(
		array(
			'base'      => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
			'format'    => '?paged=%#%',
			'current'   => $current_page,
			'total'     => $max,
			'type'      => 'list',
			'prev_text' => __( '&laquo; Prev', IT_THEME_TEXTDOMAIN ),
			'next_text' => __( 'Next &raquo;', IT_THEME_TEXTDOMAIN )
		)
	) . ' ';
	?>
</div>
