Changeset 7241
- Timestamp:
- 03/07/2022 08:44:52 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r7207 r7241 2412 2412 ), 'list_replies' ); 2413 2413 2414 // Get replies to loop through in $_replies 2415 echo '<ul>' . $r['walker']->paged_walk( $bbp->reply_query->posts, $r['max_depth'], $r['page'], $r['per_page'], $r ) . '</ul>'; 2416 2417 $bbp->max_num_pages = $r['walker']->max_pages; 2414 // Allowed styles (supported by BBP_Walker_Reply) 2415 $allowed = array( 'div', 'ol', 'ul' ); 2416 2417 // Get style 2418 $style = in_array( $r['style'], $allowed, true ) 2419 ? $r['style'] 2420 : 'ul'; 2421 2422 // Walk the replies 2423 $walked_html = $r['walker']->paged_walk( 2424 $bbp->reply_query->posts, 2425 $r['max_depth'], 2426 $r['page'], 2427 $r['per_page'], 2428 $r 2429 ); 2430 2431 // Override the "max_num_pages" setting 2432 $bbp->max_num_pages = $r['walker']->max_pages; 2433 2434 // No longer in reply loop 2418 2435 $bbp->reply_query->in_the_loop = false; 2436 2437 // Output the replies list 2438 echo "<{$style} class='bbp-replies-list'>" . $walked_html . "</{$style}>"; 2419 2439 } 2420 2440
Note: See TracChangeset
for help on using the changeset viewer.