Making WordPress.org

Changeset 3929


Ignore:
Timestamp:
09/02/2016 04:00:47 PM (9 years ago)
Author:
jmdodd
Message:

Forums Theme: Improve moderator pending/spam interface quickly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/bbpress/loop-posts.php

    r3909 r3929  
    33/**
    44 * Posts Loop
    5  *
    6  * @todo Front-side action buttons
    7  * @todo Better excerpt styling
    85 *
    96 * @package bbPress
     
    2522        <?php while ( bbp_topics() ) : bbp_the_topic(); ?>
    2623
    27         <ul>
    28             <li class="bbp-topic-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><br />
     24            <?php if ( 'topic' == get_post_type() ) : ?>
    2925
    30             <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'wporg-forums' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
     26                <?php bbp_get_template_part( 'content', 'single-topic-lead' ); ?>
    3127
    32             <span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'wporg-forums' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></span></li>
     28            <?php // This actually works. ?>
     29            <?php else : bbpress()->reply_query = bbpress()->topic_query; ?>
    3330
    34             <li class="bbp-post-excerpt"><?php the_excerpt(); ?></li>
    35         </ul>
     31                <?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
     32
     33            <?php endif; ?>
    3634
    3735        <?php endwhile; ?>
Note: See TracChangeset for help on using the changeset viewer.