diff --git a/wp-content/themes/score/functions.php b/wp-content/themes/score/functions.php index 6beecdd..7a3d5ba 100644 --- a/wp-content/themes/score/functions.php +++ b/wp-content/themes/score/functions.php @@ -456,6 +456,39 @@ function gp_pagination($pages = '', $range = 2) { } } +function gp_ajax_pagination($pages = '', $range = 2) { + $showitems = ($range * 2) + 1; + + global $paged; + + if (get_query_var('paged')) { + $paged = get_query_var('paged'); + } elseif (get_query_var('page')) { + $paged = get_query_var('page'); + } else { + $paged = 1; + } + + if ($pages == '') { + global $wp_query; + $pages = $wp_query->max_num_pages; + if (!$pages) { + $pages = 1; + } + } + + if (1 != $pages) { + echo "