Making WordPress.org

Ticket #2101: meta-2101.patch

File meta-2101.patch, 1.7 KB (added by netweb, 9 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/bbpress/loop-posts.php

     
    2323
    2424                        <?php if ( 'topic' == get_post_type() ) : ?>
    2525
     26                                <div id="post-<?php bbp_topic_id(); ?>" class="bbp-topic-header">
     27                                        <div class="bbp-meta">
     28                                                        <span class="bbp-header">
     29                                                                <?php esc_html_e( 'In forum: ', 'wporg-forums' ); ?>
     30                                                                <a class="bbp-forum-permalink" href="<?php bbp_forum_permalink( bbp_get_topic_forum_id() ); ?>"><?php bbp_forum_title( bbp_get_topic_forum_id() ); ?></a>
     31                                                                <?php esc_html_e( ' topic: ', 'wporg-forums' ); ?>
     32                                                                <?php bbp_topic_title( bbp_get_topic_id() ); ?>
     33                                                        </span>
     34                                        </div><!-- .bbp-meta -->
     35                                </div><!-- #post-<?php bbp_topic_id(); ?> -->
     36
    2637                                <?php bbp_get_template_part( 'content', 'single-topic-lead' ); ?>
    2738
    2839                        <?php // This actually works. ?>
    2940                        <?php else : bbpress()->reply_query = bbpress()->topic_query; ?>
    3041
     42                                <div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
     43                                        <div class="bbp-meta">
     44                                                        <span class="bbp-header">
     45                                                                <?php esc_html_e( 'In reply to: ', 'wporg-forums' ); ?>
     46                                                                <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( bbp_get_reply_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a>
     47                                                        </span>
     48                                        </div><!-- .bbp-meta -->
     49                                </div><!-- #post-<?php bbp_reply_id(); ?> -->
     50
    3151                                <?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    3252
    3353                        <?php endif; ?>