Hi there,
I’m trying to translate words “Next” and “Previous” with the plugin “Codestyling Localization”, but “Proper Pagination” does not appear. How could I translate it?
Thank you!
]]>just to let you all know there is bug on using this plugin with custom loops with posts_per_page plugin take get_option(‘posts_per_page’) which is default number of posts set in admin panel .. if somebody has some hack for this I would be really thankful….
]]>Hi,
As I explained in my post “Need author contact/SVN access for patch submission”, we developed two functions you would find useful :
is_next_page
– for use in the pagination loop, returns a boolean indicating whether the current loop iteration is for the next page.
is_previous_page
– for use in the pagination loop, returns a boolean indicating whether the current loop iteration is for the previous page.
As this forum can’t handle files upload, please find below the patches you can apply :
proper_pagination.php.patch
134a135,150
> * For use in the pagination loop, returns a boolean indicating whether the
> * current loop iteration is for the previous page
> */
> function is_previous_page(){
> return $this->current_page == $this->page - 1;
> }
>
> /**
> * For use in the pagination loop, returns a boolean indicating whether the
> * current loop iteration is for the next page
> */
> function is_next_page(){
> return $this->current_page == $this->page + 1;
> }
>
> /**
240a257,274
> // pp_is_previous_page
> if (!function_exists('pp_is_previous_page')) {
> function pp_is_previous_page() {
> global $pp;
>
> return $pp->is_previous_page();
> }
> }
>
> // pp_is_next_page
> if (!function_exists('pp_is_next_page')) {
> function pp_is_next_page() {
> global $pp;
>
> return $pp->is_next_page();
> }
> }
>
readme.txt.patch
23a24,25
> * <code>pp_is_next_page</code> - for use in the pagination loop, returns a boolean indicating whether the current loop iteration is for the next page
> * <code>pp_is_previous_page</code> - for use in the pagination loop, returns a boolean indicating whether the current loop iteration is for the previous page
82a85,86
> = 1.4 =
> * Added two functions 'pp_is_next_page' and 'pp_is_previous_page'
]]>