Making WordPress.org


Ignore:
Timestamp:
07/07/2017 05:39:52 PM (8 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 copied

Legend:

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

    r5622 r5626  
    22
    33/**
    4  * User Reviews Written
     4 * User Active Topics
    55 *
    66 * @package bbPress
     
    88 */
    99
    10 do_action( 'bbp_template_before_user_reviews_written' ); ?>
     10do_action( 'bbp_template_before_user_active_topics' ); ?>
    1111
    12 <div id="bbp-user-topics-started" class="bbp-user-topics-started">
    13     <h2 class="entry-title"><?php esc_html_e( 'Reviews Written', 'wporg-forums' ); ?></h2>
     12<div id="bbp-user-active-topics" class="bbp-user-active-topics">
     13    <h2 class="entry-title"><?php esc_html_e( 'Active Topics', 'wporg-forums' ); ?></h2>
    1414    <div class="bbp-user-section">
    1515
     
    2525
    2626            <p><?php bbp_is_user_home()
    27                 ? esc_html_e( 'You have not written any reviews.',      'wporg-forums' )
    28                 : esc_html_e( 'This user has not written any reviews.', 'wporg-forums' );
     27                ? esc_html_e( 'You have not created any topics.',      'wporg-forums' )
     28                : esc_html_e( 'This user has not created any topics.', 'wporg-forums' );
    2929            ?></p>
    3030
     
    3232
    3333    </div>
    34 </div><!-- #bbp-user-topics-started -->
     34</div><!-- #bbp-user-active-topics -->
    3535
    36 <?php do_action( 'bbp_template_after_user_reviews_written' );
     36<?php do_action( 'bbp_template_after_user_active_topics' );
Note: See TracChangeset for help on using the changeset viewer.