Ticket #828: content-posts.patch

File content-posts.patch, 1.3 KB (added by da3rX, 4 years ago)
  • admin-functions.php

     
    722722 
    723723/* Posts */ 
    724724 
    725 function bb_admin_list_posts() { 
     725function bb_admin_list_posts( $type, $id ) { 
    726726        global $bb_posts, $bb_post; 
    727727        if ( $bb_posts ) : foreach ( $bb_posts as $bb_post ) : ?> 
     728        <<?php echo $type . " id=\"$id\""; ?>> 
    728729        <li<?php alt_class('post'); ?>> 
    729730                <div class="threadauthor"> 
    730731                        <p><strong><?php post_author_link(); ?></strong><br /> 
     
    735736                        <div class="poststuff"> 
    736737                                <?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> 
    737738                        </div> 
    738         </li><?php endforeach; endif; 
     739        </li> 
     740        </<?php echo $type; ?>><?php endforeach; endif; 
    739741} 
    740742 
    741743/* Recounts */ 
  • content-posts.php

     
    3838 
    3939<br class="clear" /> 
    4040 
    41 <ol id="the-list"> 
    42 <?php bb_admin_list_posts(); ?> 
    43 </ol> 
     41<?php bb_admin_list_posts( 'ol', 'the-list' ); ?> 
    4442 
    4543<?php echo get_page_number_links( $page, $total ); ?> 
    4644