WordPress.org

Plugin Directory

Changeset 161908


Ignore:
Timestamp:
10/09/09 15:43:34 (5 years ago)
Author:
GamerZ
Message:

Next/Previous Posts Class Links by Joost - http://yoast.com/pagination-classes/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-pagenavi/trunk/wp-pagenavi.php

    r157209 r161908  
    185185function n_round($num, $tonearest) { 
    186186   return floor($num/$tonearest)*$tonearest; 
     187} 
     188 
     189 
     190### Function: Filters for Previous and Next Posts Link CSS Class 
     191add_filter('previous_posts_link_attributes','previous_posts_link_class'); 
     192function previous_posts_link_class() { 
     193    return 'class="previouspostslink"'; 
     194} 
     195add_filter('next_posts_link_attributes','next_posts_link_class'); 
     196function next_posts_link_class() { 
     197    return 'class="nextpostslink"'; 
    187198} 
    188199 
Note: See TracChangeset for help on using the changeset viewer.