Changeset 5626
- Timestamp:
- 07/07/2017 05:39:52 PM (7 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support
- Files:
-
- 1 added
- 5 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-user.php
r5619 r5626 25 25 26 26 <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' ); ?> 29 29 30 30 <?php … … 34 34 ?> 35 35 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' ); ?> 41 43 </div> 42 44 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-reply-topic.php
r5622 r5626 1 <ul id="bbp-topic-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> 1 <?php $topic_id = bbp_get_reply_topic_id(); ?> 2 3 <ul id="bbp-topic-<?php bbp_topic_id( $topic_id ); ?>" <?php bbp_topic_class( $topic_id ); ?>> 2 4 3 5 <li class="bbp-topic-title"> 4 6 5 <?php if ( bbp_is_user_home() ) : ?>6 7 <?php if ( bbp_is_favorites() ) : ?>8 9 <span class="bbp-topic-action">10 11 <?php do_action( 'bbp_theme_before_topic_favorites_action' ); ?>12 13 <?php bbp_user_favorites_link( array( 'before' => '', 'favorite' => '+', 'favorited' => '×' ) ); ?>14 15 <?php do_action( 'bbp_theme_after_topic_favorites_action' ); ?>16 17 </span>18 19 <?php elseif ( bbp_is_subscriptions() ) : ?>20 21 <span class="bbp-topic-action">22 23 <?php do_action( 'bbp_theme_before_topic_subscription_action' ); ?>24 25 <?php bbp_user_subscribe_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '×' ) ); ?>26 27 <?php do_action( 'bbp_theme_after_topic_subscription_action' ); ?>28 29 </span>30 31 <?php endif; ?>32 33 <?php endif; ?>34 35 7 <?php do_action( 'bbp_theme_before_topic_title' ); ?> 36 8 37 <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( ); ?>"><?php bbp_topic_title(); ?></a>9 <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( $topic_id ); ?>"><?php bbp_topic_title( $topic_id ); ?></a> 38 10 39 11 <?php do_action( 'bbp_theme_after_topic_title' ); ?> 40 12 41 <?php bbp_topic_pagination( ); ?>13 <?php bbp_topic_pagination( array( 'topic_id' => $topic_id ) ); ?> 42 14 43 15 <?php do_action( 'bbp_theme_before_topic_meta' ); ?> … … 47 19 <?php do_action( 'bbp_theme_before_topic_started_by' ); ?> 48 20 49 <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'wporg-forums' ), bbp_get_topic_author_link( array( ' size' => '14' ) ) ); ?></span>21 <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'wporg-forums' ), bbp_get_topic_author_link( array( 'post_id' => $topic_id, 'size' => '14' ) ) ); ?></span> 50 22 51 23 <?php do_action( 'bbp_theme_after_topic_started_by' ); ?> 52 24 53 <?php if ( ( bbp_is_single_view() && ! wporg_support_is_compat_view() ) || ( bbp_is_single_forum() && bbp_get_topic_forum_id() != bbp_get_forum_id() ) || bbp_is_single_user_topics() ) :?>25 <?php do_action( 'bbp_theme_before_topic_started_in' ); ?> 54 26 55 <?php do_action( 'bbp_theme_before_topic_started_in' ); ?>27 <span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'wporg-forums' ), bbp_get_forum_permalink( bbp_get_topic_forum_id( $topic_id ) ), bbp_get_forum_title( bbp_get_topic_forum_id( $topic_id ) ) ); ?></span> 56 28 57 <span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'wporg-forums' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></span> 58 59 <?php do_action( 'bbp_theme_after_topic_started_in' ); ?> 60 61 <?php endif; ?> 29 <?php do_action( 'bbp_theme_after_topic_started_in' ); ?> 62 30 63 31 </p> … … 69 37 </li> 70 38 71 <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count( ); ?></li>39 <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count( $topic_id ); ?></li> 72 40 73 <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count( ) : bbp_topic_post_count(); ?></li>41 <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count( $topic_id ) : bbp_topic_post_count( $topic_id ); ?></li> 74 42 75 43 <li class="bbp-topic-freshness"> … … 77 45 <?php do_action( 'bbp_theme_before_topic_freshness_link' ); ?> 78 46 79 <?php bbp_topic_freshness_link( ); ?>47 <?php bbp_topic_freshness_link( $topic_id ); ?> 80 48 81 49 <?php do_action( 'bbp_theme_after_topic_freshness_link' ); ?> … … 85 53 <?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?> 86 54 87 <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id( ), 'size' => 14 ) ); ?></span>55 <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id( $topic_id ), 'size' => 14 ) ); ?></span> 88 56 89 57 <?php do_action( 'bbp_theme_after_topic_freshness_author' ); ?> … … 92 60 </li> 93 61 94 </ul><!-- #bbp-topic-<?php bbp_topic_id( ); ?> -->62 </ul><!-- #bbp-topic-<?php bbp_topic_id( $topic_id ); ?> --> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-topic.php
r5049 r5626 51 51 <?php do_action( 'bbp_theme_after_topic_started_by' ); ?> 52 52 53 <?php if ( ( bbp_is_single_view() && ! wporg_support_is_compat_view() ) || ( bbp_is_single_forum() && bbp_get_topic_forum_id() != bbp_get_forum_id() ) || bbp_is_single_user_topics() ) : ?> 53 <?php if ( 54 ( bbp_is_single_view() && ! wporg_support_is_compat_view() ) 55 || 56 ( bbp_is_single_forum() && bbp_get_topic_forum_id() != bbp_get_forum_id() ) 57 || 58 bbp_is_single_user_topics() 59 || 60 wporg_support_is_single_user_active_topics() 61 ) : ?> 54 62 55 63 <?php do_action( 'bbp_theme_before_topic_started_in' ); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-active-topics.php
r5622 r5626 2 2 3 3 /** 4 * User Reviews Written4 * User Active Topics 5 5 * 6 6 * @package bbPress … … 8 8 */ 9 9 10 do_action( 'bbp_template_before_user_ reviews_written' ); ?>10 do_action( 'bbp_template_before_user_active_topics' ); ?> 11 11 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> 14 14 <div class="bbp-user-section"> 15 15 … … 25 25 26 26 <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' ); 29 29 ?></p> 30 30 … … 32 32 33 33 </div> 34 </div><!-- #bbp-user- topics-started-->34 </div><!-- #bbp-user-active-topics --> 35 35 36 <?php do_action( 'bbp_template_after_user_ reviews_written' );36 <?php do_action( 'bbp_template_after_user_active_topics' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-details.php
r5617 r5626 52 52 <?php if ( defined( 'WPORG_SUPPORT_FORUMS_BLOGID' ) && WPORG_SUPPORT_FORUMS_BLOGID == get_current_blog_id() ) : ?> 53 53 <li class="<?php if ( wporg_support_is_single_user_reviews() ) :?>current<?php endif; ?>"> 54 <span class='bbp-user-re plies-created-link'>54 <span class='bbp-user-reviews-link'> 55 55 <a href="<?php bbp_user_profile_url(); ?>reviews/" title="<?php 56 56 /* translators: %s: user's display name */ … … 60 60 </li> 61 61 <?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> 62 80 63 81 <?php if ( function_exists( 'bbp_is_engagements_active' ) && bbp_is_engagements_active() ) : ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-reviews-written.php
r5617 r5626 10 10 do_action( 'bbp_template_before_user_reviews_written' ); ?> 11 11 12 <div id="bbp-user- topics-started" class="bbp-user-topics-started">12 <div id="bbp-user-reviews-written" class="bbp-user-reviews-written"> 13 13 <h2 class="entry-title"><?php esc_html_e( 'Reviews Written', 'wporg-forums' ); ?></h2> 14 14 <div class="bbp-user-section"> … … 32 32 33 33 </div> 34 </div><!-- #bbp-user- topics-started-->34 </div><!-- #bbp-user-reviews-written --> 35 35 36 36 <?php do_action( 'bbp_template_after_user_reviews_written' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-topics-replied-to.php
r5622 r5626 2 2 3 3 /** 4 * User Reviews Written4 * User Topics Replied To 5 5 * 6 6 * @package bbPress … … 8 8 */ 9 9 10 do_action( 'bbp_template_before_user_ reviews_written' ); ?>10 do_action( 'bbp_template_before_user_topics_replied_to' ); ?> 11 11 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> 14 14 <div class="bbp-user-section"> 15 15 16 <?php if ( bbp_get_user_ topics_started() ) : ?>16 <?php if ( bbp_get_user_replies_created() ) : ?> 17 17 18 <?php bbp_get_template_part( 'pagination', ' topics' ); ?>18 <?php bbp_get_template_part( 'pagination', 'replies' ); ?> 19 19 20 <?php bbp_get_template_part( 'loop', ' topics' ); ?>20 <?php bbp_get_template_part( 'loop', 'reply-topics' ); ?> 21 21 22 <?php bbp_get_template_part( 'pagination', ' topics' ); ?>22 <?php bbp_get_template_part( 'pagination', 'replies' ); ?> 23 23 24 24 <?php else : ?> 25 25 26 26 <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' ); 29 29 ?></p> 30 30 … … 32 32 33 33 </div> 34 </div><!-- #bbp-user-topics- started-->34 </div><!-- #bbp-user-topics-replied-to --> 35 35 36 <?php do_action( 'bbp_template_after_user_ reviews_written' );36 <?php do_action( 'bbp_template_after_user_topics_replied_to' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
r5618 r5626 262 262 263 263 /** 264 * Check if the current page is a user's reviewspage.265 * 266 * @return bool True if the page is a user's reviewspage, false otherwise.264 * Check if the current page is a user's "Reviews Written" page. 265 * 266 * @return bool True if the page is a "Reviews Written" page, false otherwise. 267 267 */ 268 268 function wporg_support_is_single_user_reviews() { 269 269 return (bool) get_query_var( 'wporg_single_user_reviews' ); 270 } 271 272 /** 273 * Check if the current page is a user's "Active Topics" page. 274 * 275 * @return bool True if the page is an "Active Topics" page, false otherwise. 276 */ 277 function wporg_support_is_single_user_active_topics() { 278 return (bool) get_query_var( 'wporg_single_user_active_topics' ); 279 } 280 281 /** 282 * Check if the current page is a user's "Topics Replied To" page. 283 * 284 * @return bool True if the page is a "Topics Replied To" page, false otherwise. 285 */ 286 function wporg_support_is_single_user_topics_replied_to() { 287 return (bool) get_query_var( 'wporg_single_user_topics_replied_to' ); 270 288 } 271 289
Note: See TracChangeset
for help on using the changeset viewer.