Making WordPress.org


Ignore:
Timestamp:
07/07/2017 05:39:52 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Add two views to user profiles to allow for browsing topics ordered by recent activity:

  • "Active Topics" shows the user's topics with recent replies, ordered by latest reply.
  • "Topics Replied To" shows all topics the user has replied to (including topics started by others), ordered by latest reply.

Fixes #2470.

File:
1 edited

Legend:

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

    r5619 r5626  
    2525
    2626        <div id="bbp-user-body">
    27             <?php if ( bbp_is_favorites()                     ) bbp_get_template_part( 'user', 'favorites'       ); ?>
    28             <?php if ( bbp_is_subscriptions()                 ) bbp_get_template_part( 'user', 'subscriptions'   ); ?>
     27            <?php if ( bbp_is_favorites()                               ) bbp_get_template_part( 'user', 'favorites'         ); ?>
     28            <?php if ( bbp_is_subscriptions()                           ) bbp_get_template_part( 'user', 'subscriptions'     ); ?>
    2929
    3030            <?php
     
    3434            ?>
    3535
    36             <?php if ( bbp_is_single_user_topics()            ) bbp_get_template_part( 'user', 'topics-created'  ); ?>
    37             <?php if ( bbp_is_single_user_replies()           ) bbp_get_template_part( 'user', 'replies-created' ); ?>
    38             <?php if ( wporg_support_is_single_user_reviews() ) bbp_get_template_part( 'user', 'reviews-written' ); ?>
    39             <?php if ( bbp_is_single_user_edit()              ) bbp_get_template_part( 'form', 'user-edit'       ); ?>
    40             <?php if ( bbp_is_single_user_profile()           ) bbp_get_template_part( 'user', 'profile'         ); ?>
     36            <?php if ( bbp_is_single_user_topics()                      ) bbp_get_template_part( 'user', 'topics-created'    ); ?>
     37            <?php if ( bbp_is_single_user_replies()                     ) bbp_get_template_part( 'user', 'replies-created'   ); ?>
     38            <?php if ( wporg_support_is_single_user_reviews()           ) bbp_get_template_part( 'user', 'reviews-written'   ); ?>
     39            <?php if ( wporg_support_is_single_user_active_topics()     ) bbp_get_template_part( 'user', 'active-topics'     ); ?>
     40            <?php if ( wporg_support_is_single_user_topics_replied_to() ) bbp_get_template_part( 'user', 'topics-replied-to' ); ?>
     41            <?php if ( bbp_is_single_user_edit()                        ) bbp_get_template_part( 'form', 'user-edit'         ); ?>
     42            <?php if ( bbp_is_single_user_profile()                     ) bbp_get_template_part( 'user', 'profile'           ); ?>
    4143        </div>
    4244    </div>
Note: See TracChangeset for help on using the changeset viewer.