Making WordPress.org

Ticket #2054: meta-2054.patch

File meta-2054.patch, 2.4 KB (added by SergeyBiryukov, 7 years ago)
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/functions.php

     
    178178
    179179        ?>
    180180
    181         <li class="topic-forum">In: <a href="<?php bbp_forum_permalink( bbp_get_topic_forum_id() ); ?>"><?php bbp_topic_forum_title(); ?></a></li>
    182         <?php if ( !empty( $reply_count ) ) : ?><li class="reply-count"><?php echo $reply_count; ?></li><?php endif; ?>
    183         <?php if ( !empty( $voice_count ) ) : ?><li class="voice-count"><?php echo $voice_count; ?></li><?php endif; ?>
     181        <li class="topic-forum"><?php
     182                /* translators: %s: forum title */
     183                printf( __( 'In: %s', 'bbpress' ),
     184                        sprintf( '<a href="%s">%s</a>', esc_url( bbp_get_forum_permalink( bbp_get_topic_forum_id() ) ), bbp_get_topic_forum_title() )
     185                );
     186        ?></li>
     187        <?php if ( !empty( $reply_count ) ) : ?>
     188                <li class="reply-count"><?php echo $reply_count; ?></li>
     189        <?php endif; ?>
     190        <?php if ( !empty( $voice_count ) ) : ?>
     191                <li class="voice-count"><?php echo $voice_count; ?></li>
     192        <?php endif; ?>
    184193        <?php if ( !empty( $last_reply  ) ) : ?>
    185                 <li class="topic-freshness-author"><?php printf( __( 'Last reply from: %s', 'bbporg' ), bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_reply, 'size' => '15' ) ) ); ?></li>
     194                <li class="topic-freshness-author"><?php
     195                        /* translators: %s: reply author link */
     196                        printf( __( 'Last reply from: %s', 'bbporg' ),
     197                                bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_reply, 'size' => '15' ) )
     198                        );
     199                ?></li>
    186200        <?php endif; ?>
    187         <?php if ( !empty( $time_since  ) ) : ?><li class="topic-freshness-time"><?php printf( __( 'Last activity: %s', 'bbporg' ), $time_since ); ?></li><?php endif; ?>
     201        <?php if ( !empty( $time_since  ) ) : ?>
     202                <li class="topic-freshness-time"><?php
     203                        /* translators: %s: date/time link to the latest post */
     204                        printf( __( 'Last activity: %s', 'bbporg' ), $time_since );
     205                ?></li>
     206        <?php endif; ?>
    188207        <?php if ( is_user_logged_in() ) : ?>
    189208                <?php $_topic_id = bbp_is_reply_edit() ? bbp_get_reply_topic_id() : $topic_id; ?>
    190209                <li class="topic-subscribe"><?php bbp_topic_subscription_link( array( 'before' => '', 'topic_id' => $_topic_id ) ); ?></li>