Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/09/2013 05:04:41 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Introduce BP_Notifications_Notification methods for handling LIMIT and ORDER BY MySQL to act as the foundation for customizing sorting and pagination arguments. Also flip default notification order from ASC to DESC for a top-down view. See #5148.

File:
1 edited

Legend:

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

    r7547 r7549  
    227227            'page'         => 1,
    228228            'per_page'     => 25,
     229            'order_by'     => 'date_notified',
     230            'sort_order'   => 'DESC',
    229231            'max'          => null,
    230232            'search_terms' => '',
     
    239241        $this->search_terms = $r['search_terms'];
    240242        $this->page_arg     = $r['page_arg'];
     243        $this->order_by     = $r['order_by'];
     244        $this->sort_order   = $r['sort_order'];
    241245
    242246        // Get the notifications
     
    247251            'per_page'     => $this->pag_num,
    248252            'search_terms' => $this->search_terms,
     253            'order_by'     => $this->order_by,
     254            'sort_order'   => $this->sort_order,
    249255        ) );
    250256
Note: See TracChangeset for help on using the changeset viewer.