Making WordPress.org

Changeset 4215


Ignore:
Timestamp:
10/11/2016 06:49:59 PM (9 years ago)
Author:
coffee2code
Message:

Forums Theme: Add user's website to their support forum profile page.

Fixes #2116.

File:
1 edited

Legend:

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

    r4206 r4215  
    6767            printf( esc_html__( 'Forum Role: %s', 'wporg-forums' ), bbp_get_user_display_role() );
    6868        ?></p>
     69
     70        <?php if ( $website = bbp_get_displayed_user_field( 'user_url' ) ) : ?>
     71   
     72            <p class="bbp-user-website"><?php
     73            /* translators: %s: link to user's website */
     74            printf( esc_html__( 'Website: %s', 'wporg-forums' ), sprintf( '<a href="%s">%s</a>', esc_url( $website ), esc_html( $website ) ) );
     75            ?></p>
     76   
     77        <?php endif; ?>
     78
    6979        <p class="bbp-user-member-since"><?php
    7080            /* translators: %s: user's registration date */
    7181            printf( esc_html__( 'Member Since: %s', 'wporg-forums' ), wporg_support_get_user_registered_date() );
    7282        ?></p>
     83
    7384        <p class="bbp-user-topic-count"><?php
    7485            /* translators: %s: number of user's topics */
    7586            printf( esc_html__( 'Topics Started: %s', 'wporg-forums' ), bbp_get_user_topic_count_raw() );
    7687        ?></p>
     88
    7789        <p class="bbp-user-reply-count"><?php
    7890            /* translators: %s: number of user's replies */
Note: See TracChangeset for help on using the changeset viewer.