max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { echo "
Page ".$paged." of ".$pages.""; if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "« First"; if($paged > 1 && $showitems < $pages) echo "‹ Previous"; for ($i=1; $i <= $pages; $i++) { if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems )) { echo ($paged == $i)? "".$i."":"".$i.""; } } if ($paged < $pages && $showitems < $pages) echo "Next ›"; if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "Last »"; echo "
\n"; } } /** * Sets up the previous post link and applies a filter to the link text. * * @since 1.0 */ function response_previous_posts() { $previous_text = apply_filters('response_previous_posts_text', '« Older Entries' ); echo "
"; next_posts_link( __( $previous_text, 'core' )); echo "
"; } /** * Sets up the next post link and applies a filter to the link text. * * @since 1.0 */ function response_newer_posts() { $newer_text = apply_filters('response_newer_posts_text', 'Newer Entries »' ); echo "
"; previous_posts_link( __( $newer_text, 'core' )); echo "
"; } /** * Sets up the WP link pages * * @since 1.0 */ function response_link_pages_content() { wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); } /** * Post pagination links * * @since 1.0 */ function response_post_pagination_content() { global $options, $themeslug?> get($themeslug.'_post_pagination') != "0"):?>