Location: PHPKode > scripts > Photospace Gallery > photospace theme download/photospace/navigation.php
<?php

$options = get_option('pb_options');

if($options['page_navi_type'] == 'pager') {

global $wp_rewrite;
$paginate_base = get_pagenum_link(1);
if (strpos($paginate_base, '?') || ! $wp_rewrite->using_permalinks()) {
	$paginate_format = '';
	$paginate_base = add_query_arg('paged', '%#%');
} else {
	$paginate_format = (substr($paginate_base, -1 ,1) == '/' ? '' : '/') .
	user_trailingslashit('page/%#%/', 'paged');;
	$paginate_base .= '%_%';
}

echo '<div class="page-navi clearfix">'. "\n";
echo paginate_links( array(
	'base' => $paginate_base,
	'format' => $paginate_format,
	'total' => $wp_query->max_num_pages,
	'mid_size' => 2,
	'current' => ($paged ? $paged : 1),
	'type' => 'list',
	'prev_text' => '&laquo; Previous',
	'next_text' => 'Next &raquo;',
));
echo "\n</div>\n";

} else {

	echo '<div class="next-previous-navi clearfix">'."\n".'<div id="previous-page">'; previous_posts_link('Newer posts');
	echo "</div>\n".'<div id="next-page">'; next_posts_link('Older posts');
	echo "</div>\n</div>\n";
}
?>
Return current item: Photospace Gallery