Changeset 2968 for branches/plugin/bbp-includes/bbp-topic-template.php
- Timestamp:
- 03/25/2011 12:27:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-topic-template.php
r2967 r2968 538 538 $base = add_query_arg( 'paged', '%#%' ); 539 539 540 // Get total and add 1 if topic is included in the reply loop 541 $total = bbp_get_topic_reply_count( $topic_id ); 542 if ( !bbp_show_lead_topic() ) 543 $total++; 544 540 545 // Pagination settings 541 546 $pagination = array( 542 547 'base' => $base, 543 548 'format' => '', 544 'total' => ceil( (int) bbp_get_topic_reply_count( $topic_id )/ (int) get_option( '_bbp_replies_per_page', 15 ) ),549 'total' => ceil( (int) $total / (int) get_option( '_bbp_replies_per_page', 15 ) ), 545 550 'current' => 0, 546 551 'prev_next' => false, 547 'mid_size' => 1, 552 'mid_size' => 2, 553 'end_size' => 6, 548 554 'add_args' => ( !empty( $_GET['view'] ) && 'all' == $_GET['view'] ) ? array( 'view' => 'all' ) : false 549 555 );
Note: See TracChangeset
for help on using the changeset viewer.