Making WordPress.org

Changeset 4147


Ignore:
Timestamp:
09/27/2016 08:35:17 PM (8 years ago)
Author:
coffee2code
Message:

Forums Theme: Display custom title, if defined, in user forum replies.

After [4144], the display of a user's forum role is no longer overridden by a custom title, so the display of the custom title must be reintroduced.

See #1972.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums
Files:
3 edited

Legend:

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

    r4146 r4147  
    2525
    2626                <?php bbp_user_nicename( bbp_get_topic_author_id(), array( 'before' => '<p class="bbp-user-nicename">@', 'after' => '</p>' ) ); ?>
     27
     28                <?php if ( $title = get_user_option( 'title', bbp_get_topic_author_id() ) ) : ?>
     29
     30                    <p class="bbp-author-title"><?php echo esc_html( $title ); ?></p>
     31
     32                <?php endif; ?>
    2733
    2834                <p class="bbp-topic-post-date"><a href="<?php bbp_topic_permalink(); ?>" title="#<?php bbp_topic_id(); ?>" class="bbp-topic-permalink"><?php bbp_topic_post_date( bbp_get_topic_id(), true ); ?></a></p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/bbpress/loop-single-reply.php

    r4146 r4147  
    3030
    3131        <?php bbp_user_nicename( bbp_get_reply_author_id(), array( 'before' => '<p class="bbp-user-nicename">@', 'after' => '</p>' ) ); ?>
     32
     33        <?php if ( $title = get_user_option( 'title', bbp_get_reply_author_id() ) ) : ?>
     34
     35            <p class="bbp-author-title"><?php echo esc_html( $title ); ?></p>
     36
     37        <?php endif; ?>
    3238
    3339        <p class="bbp-reply-post-date"><a href="<?php bbp_reply_url(); ?>" title="#<?php bbp_reply_id(); ?>" class="bbp-reply-permalink"><?php bbp_reply_post_date( bbp_get_reply_id(), true ); ?></a></p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/style.css

    r4140 r4147  
    291291}
    292292
     293#bbpress-forums div.bbp-forum-author .bbp-author-title,
     294#bbpress-forums div.bbp-reply-author .bbp-author-title,
     295#bbpress-forums div.bbp-topic-author .bbp-author-title {
     296    font-size: 11px;
     297    font-style: italic;
     298    margin: 0;
     299    word-wrap: break-word;
     300}
     301
    293302/* Colors */
    294303a {
Note: See TracChangeset for help on using the changeset viewer.