Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/09/2011 06:40:20 PM (15 years ago)
Author:
djpaul
Message:

Fix pagination symbol i18n. Tidy whitespace. Fixes #3456, props r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-template.php

    r4953 r4955  
    175175    function __construct( $type, $page_number, $per_page, $max, $user_id, $search_terms, $include, $populate_extras, $exclude, $meta_key, $meta_value ) {
    176176        global $bp;
    177        
     177
    178178        $this->pag_page  = !empty( $_REQUEST['upage'] ) ? intval( $_REQUEST['upage'] ) : (int)$page_number;
    179179        $this->pag_num   = !empty( $_REQUEST['num'] )   ? intval( $_REQUEST['num'] )   : (int)$per_page;
     
    210210                'total'     => ceil( (int)$this->total_member_count / (int)$this->pag_num ),
    211211                'current'   => (int) $this->pag_page,
    212                 'prev_text' => '←',
    213                 'next_text' => '→',
     212                'prev_text' => _x( '←', 'Member pagination previous text', 'buddypress' ),
     213                'next_text' => _x( '→', 'Member pagination next text', 'buddypress' ),
    214214                'mid_size'   => 1
    215215            ) );
     
    297297        'user_id'         => $user_id,      // Pass a user_id to only show friends of this user
    298298        'search_terms'    => $search_terms, // Pass search_terms to filter users by their profile data
    299        
     299
    300300        'meta_key'        => false,         // Only return users with this usermeta
    301301        'meta_value'      => false,         // Only return users where the usermeta value matches. Requires meta_key
     
    524524    function bp_get_member_name() {
    525525        global $members_template;
    526        
     526
    527527        // Generally, this only fires when xprofile is disabled
    528528        if ( empty( $members_template->member->fullname ) ) {
     
    816816
    817817        return apply_filters( 'bp_get_last_activity', $last_activity );
    818     }   
     818    }
    819819
    820820function bp_user_firstname() {
Note: See TracChangeset for help on using the changeset viewer.