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 edited

Legend:

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

    r5617 r5626  
    5252            <?php if ( defined( 'WPORG_SUPPORT_FORUMS_BLOGID' ) && WPORG_SUPPORT_FORUMS_BLOGID == get_current_blog_id() ) : ?>
    5353                <li class="<?php if ( wporg_support_is_single_user_reviews() ) :?>current<?php endif; ?>">
    54                     <span class='bbp-user-replies-created-link'>
     54                    <span class='bbp-user-reviews-link'>
    5555                        <a href="<?php bbp_user_profile_url(); ?>reviews/" title="<?php
    5656                            /* translators: %s: user's display name */
     
    6060                </li>
    6161            <?php endif; ?>
     62
     63            <li class="<?php if ( wporg_support_is_single_user_active_topics() ) :?>current<?php endif; ?>">
     64                <span class='bbp-user-active-topics-link'>
     65                    <a href="<?php bbp_user_profile_url(); ?>active/" title="<?php
     66                        /* translators: %s: user's display name */
     67                        printf( esc_attr__( "%s's Active Topics", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) );
     68                    ?>"><?php esc_html_e( 'Active Topics', 'wporg-forums' ); ?></a>
     69                </span>
     70            </li>
     71
     72            <li class="<?php if ( wporg_support_is_single_user_topics_replied_to() ) :?>current<?php endif; ?>">
     73                <span class='bbp-user-topics-replied-to-link'>
     74                    <a href="<?php bbp_user_profile_url(); ?>replied-to/" title="<?php
     75                        /* translators: %s: user's display name */
     76                        printf( esc_attr__( 'Topics %s Has Replied To', 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) );
     77                    ?>"><?php esc_html_e( 'Topics Replied To', 'wporg-forums' ); ?></a>
     78                </span>
     79            </li>
    6280
    6381            <?php if ( function_exists( 'bbp_is_engagements_active' ) && bbp_is_engagements_active() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.