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 "
"; + + if ($paged + 1 <= $pages) { + echo "" . __('See More', 'gp_lang') . ""; + } + + echo "
\n"; + } +} + + /* * ************************* Posts Per Page Fix ************************** */ function gp_posts_per_page($query_string) { diff --git a/wp-content/themes/score/index.php b/wp-content/themes/score/index.php index e4e69ed..a2f6fc3 100644 --- a/wp-content/themes/score/index.php +++ b/wp-content/themes/score/index.php @@ -66,7 +66,7 @@ query_posts($args); ?>
class="shift-down"> -
+
> @@ -92,14 +92,14 @@ query_posts($args); diff --git a/wp-content/themes/score/lib/scripts/custom.php b/wp-content/themes/score/lib/scripts/custom.php index 5c92623..f45f79f 100644 --- a/wp-content/themes/score/lib/scripts/custom.php +++ b/wp-content/themes/score/lib/scripts/custom.php @@ -5,8 +5,14 @@ jQuery(document).ready(function(){ jQuery('.home-page .wp-pagenavi a').live('click', function(e){ e.preventDefault(); link = jQuery(this).attr('href'); - jQuery('#content').html('Loading...'); - jQuery('#content').load(link + ' #contentInner'); + jQuery('.home-page .wp-pagenavi').remove(); + + jQuery.get(link, function(data) { + var kids = jQuery(data).find('.contentInner').children(); + jQuery.each(kids, function(){ + jQuery('#content-wrapper #content .contentInner').append(jQuery(this)); + }); + }); }); }); diff --git a/wp-content/themes/score/style-asong2u.css b/wp-content/themes/score/style-asong2u.css index a5192b2..142d0d6 100644 --- a/wp-content/themes/score/style-asong2u.css +++ b/wp-content/themes/score/style-asong2u.css @@ -1005,7 +1005,7 @@ h3.comments { padding-right: 34%; } -.more-comments a { +.more-comments a, a.read-more { color: #f5b00c; font-size: 14px; font-weight: bold;