Making WordPress.org


Ignore:
Timestamp:
07/07/2017 05:39:52 PM (9 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-topics-replied-to.php

    r5622 r5626  
    22
    33/**
    4  * User Reviews Written
     4 * User Topics Replied To
    55 *
    66 * @package bbPress
     
    88 */
    99
    10 do_action( 'bbp_template_before_user_reviews_written' ); ?>
     10do_action( 'bbp_template_before_user_topics_replied_to' ); ?>
    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-topics-replied-to" class="bbp-user-topics-replied-to">
     13        <h2 class="entry-title"><?php esc_html_e( 'Topics Replied To', 'wporg-forums' ); ?></h2>
    1414        <div class="bbp-user-section">
    1515
    16                 <?php if ( bbp_get_user_topics_started() ) : ?>
     16                <?php if ( bbp_get_user_replies_created() ) : ?>
    1717
    18                         <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
     18                        <?php bbp_get_template_part( 'pagination', 'replies' ); ?>
    1919
    20                         <?php bbp_get_template_part( 'loop',       'topics' ); ?>
     20                        <?php bbp_get_template_part( 'loop',       'reply-topics' ); ?>
    2121
    22                         <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
     22                        <?php bbp_get_template_part( 'pagination', 'replies' ); ?>
    2323
    2424                <?php else : ?>
    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 replied to any topics.',      'wporg-forums' )
     28                                : esc_html_e( 'This user has not replied to any topics.', 'wporg-forums' );
    2929                        ?></p>
    3030
     
    3232
    3333        </div>
    34 </div><!-- #bbp-user-topics-started -->
     34</div><!-- #bbp-user-topics-replied-to -->
    3535
    36 <?php do_action( 'bbp_template_after_user_reviews_written' );
     36<?php do_action( 'bbp_template_after_user_topics_replied_to' );
Note: See TracChangeset for help on using the changeset viewer.