Ticket #828: content-posts.patch
| File content-posts.patch, 1.3 KB (added by da3rX, 4 years ago) |
|---|
-
admin-functions.php
722 722 723 723 /* Posts */ 724 724 725 function bb_admin_list_posts( ) {725 function bb_admin_list_posts( $type, $id ) { 726 726 global $bb_posts, $bb_post; 727 727 if ( $bb_posts ) : foreach ( $bb_posts as $bb_post ) : ?> 728 <<?php echo $type . " id=\"$id\""; ?>> 728 729 <li<?php alt_class('post'); ?>> 729 730 <div class="threadauthor"> 730 731 <p><strong><?php post_author_link(); ?></strong><br /> … … 735 736 <div class="poststuff"> 736 737 <?php printf(__('Posted: %1$s in <a href="%2$s">%3$s</a>'), bb_get_post_time(), get_topic_link( $bb_post->topic_id ), get_topic_title( $bb_post->topic_id ));?> IP: <?php post_ip_link(); ?> <?php post_edit_link(); ?> <?php post_delete_link();?></div> 737 738 </div> 738 </li><?php endforeach; endif; 739 </li> 740 </<?php echo $type; ?>><?php endforeach; endif; 739 741 } 740 742 741 743 /* Recounts */ -
content-posts.php
38 38 39 39 <br class="clear" /> 40 40 41 <ol id="the-list"> 42 <?php bb_admin_list_posts(); ?> 43 </ol> 41 <?php bb_admin_list_posts( 'ol', 'the-list' ); ?> 44 42 45 43 <?php echo get_page_number_links( $page, $total ); ?> 46 44