Changeset 7818
- Timestamp:
- 11/01/2018 11:00:00 PM (7 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress
- Files:
-
- 31 edited
-
content-archive-forum.php (modified) (2 diffs)
-
content-archive-topic.php (modified) (2 diffs)
-
content-search.php (modified) (2 diffs)
-
content-single-forum.php (modified) (3 diffs)
-
content-single-reply.php (modified) (2 diffs)
-
content-single-topic-lead.php (modified) (2 diffs)
-
content-single-topic.php (modified) (2 diffs)
-
content-single-user.php (modified) (2 diffs)
-
content-single-view.php (modified) (2 diffs)
-
feedback-no-search.php (modified) (1 diff)
-
feedback-no-topics.php (modified) (1 diff)
-
feedback-search.php (modified) (1 diff)
-
form-reply.php (modified) (7 diffs)
-
form-topic-merge.php (modified) (6 diffs)
-
form-topic-split.php (modified) (6 diffs)
-
form-topic.php (modified) (14 diffs)
-
loop-forums-homepage.php (modified) (1 diff)
-
loop-forums.php (modified) (3 diffs)
-
loop-posts.php (modified) (2 diffs)
-
loop-replies.php (modified) (2 diffs)
-
loop-reply-topics.php (modified) (4 diffs)
-
loop-search.php (modified) (3 diffs)
-
loop-single-forum-homepage.php (modified) (1 diff)
-
loop-single-forum.php (modified) (1 diff)
-
loop-single-reply-topic.php (modified) (4 diffs)
-
loop-single-reply.php (modified) (2 diffs)
-
loop-single-topic.php (modified) (6 diffs)
-
user-details.php (modified) (5 diffs)
-
user-profile.php (modified) (3 diffs)
-
user-reviews-written.php (modified) (4 diffs)
-
user-topics-replied-to.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-archive-forum.php
r7813 r7818 1 <?php 2 /** 3 * Archive Forum Content Part 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 if ( ! is_front_page() && ! is_archive( 'forum' ) ) : ?> 1 <?php if ( ! is_front_page() ) : ?> 13 2 14 3 <?php bbp_breadcrumb(); ?> … … 21 10 22 11 <?php if ( bbp_has_forums() ) : ?> 23 24 <?php if ( is_front_page() || is_archive( 'forum' )) : ?>25 <?php bbp_get_template_part( 'loop', 'forums-homepage'); ?>12 13 <?php if ( is_front_page() ) : ?> 14 <?php bbp_get_template_part( 'loop', 'forums-homepage' ); ?> 26 15 <?php else : ?> 27 <?php bbp_get_template_part( 'loop', 'forums'); ?>16 <?php bbp_get_template_part( 'loop', 'forums' ); ?> 28 17 <?php endif; ?> 29 18 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-archive-topic.php
r7813 r7818 1 <?php2 /**3 * Archive Topic Content Part4 *5 * @package bbPress6 * @subpackage Theme7 */8 1 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 bbp_breadcrumb(); ?> 2 <?php bbp_breadcrumb(); ?> 13 3 14 4 <?php if ( bbp_is_forum_archive() || bbp_is_topic_archive() || bbp_is_search() ) : ?> … … 37 27 <?php if ( bbp_has_topics() ) : ?> 38 28 39 <?php bbp_get_template_part( 'pagination', 'topics' ); ?>29 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 40 30 41 <?php bbp_get_template_part( 'loop', 'topics'); ?>31 <?php bbp_get_template_part( 'loop', 'topics' ); ?> 42 32 43 <?php bbp_get_template_part( 'pagination', 'topics' ); ?>33 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 44 34 45 35 <?php else : ?> 46 36 47 <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>37 <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?> 48 38 49 39 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-search.php
r7813 r7818 1 <?php2 /**3 * Search Content Part4 *5 * @package bbPress6 * @subpackage Theme7 */8 1 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 bbp_breadcrumb(); ?> 2 <?php bbp_breadcrumb(); ?> 13 3 14 4 <?php if ( bbp_is_forum_archive() || bbp_is_topic_archive() || bbp_is_search() ) : ?> … … 30 20 <?php if ( bbp_has_search_results() ) : ?> 31 21 32 <?php bbp_get_template_part( 'pagination', 'search' ); ?>22 <?php bbp_get_template_part( 'pagination', 'search' ); ?> 33 23 34 <?php bbp_get_template_part( 'loop','search' ); ?>24 <?php bbp_get_template_part( 'loop', 'search' ); ?> 35 25 36 <?php bbp_get_template_part( 'pagination', 'search' ); ?>26 <?php bbp_get_template_part( 'pagination', 'search' ); ?> 37 27 38 28 <?php elseif ( bbp_get_search_terms() ) : ?> 39 29 40 <?php bbp_get_template_part( 'feedback','no-search' ); ?>30 <?php bbp_get_template_part( 'feedback', 'no-search' ); ?> 41 31 42 32 <?php else : ?> 43 33 44 <?php bbp_get_template_part( 'feedback', 'search' ); ?>34 <?php bbp_get_template_part( 'feedback', 'search' ); ?> 45 35 46 36 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-forum.php
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * Single Topic Content Part … … 12 13 13 14 <header class="page-header"> 14 <h1 class="page-title"><?php printf( esc_html__( '%s Forum', 'wporg-forums' ), bbp_get_topic_title() ); ?></h1>15 <h1 class="page-title"><?php printf( __( '%s Forum', 'wporg-forums' ), bbp_get_topic_title() ); ?></h1> 15 16 <p><?php bbp_forum_content(); ?></p> 16 17 </header> … … 30 31 <?php endif; ?> 31 32 32 <?php if ( ! bbp_is_forum_category() && bbp_has_topics() ) : ?>33 <?php if ( !bbp_is_forum_category() && bbp_has_topics() ) : ?> 33 34 34 <?php bbp_get_template_part( 'pagination', 'topics' ); ?>35 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 35 36 36 <?php bbp_get_template_part( 'loop', 'topics'); ?>37 <?php bbp_get_template_part( 'loop', 'topics' ); ?> 37 38 38 <?php bbp_get_template_part( 'pagination', 'topics' ); ?>39 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 39 40 40 <?php 41 if ( ! bb_base_topic_search_query( false ) ) { 42 bbp_get_template_part( 'form', 'topic' ); 43 } 44 ?> 41 <?php if ( ! bb_base_topic_search_query( false ) ) bbp_get_template_part( 'form', 'topic' ); ?> 45 42 46 <?php elseif ( !bbp_is_forum_category() ) : ?>43 <?php elseif( !bbp_is_forum_category() ) : ?> 47 44 48 <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>45 <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?> 49 46 50 <?php 51 if ( ! bb_base_topic_search_query( false ) ) { 52 bbp_get_template_part( 'form', 'topic' ); 53 } 54 ?> 47 <?php if ( ! bb_base_topic_search_query( false ) ) bbp_get_template_part( 'form', 'topic' ); ?> 55 48 56 49 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-reply.php
r7813 r7818 1 <?php 1 <?php 2 2 3 /** 3 4 * Single Reply Content Part … … 7 8 */ 8 9 9 bbp_breadcrumb(); ?> 10 ?> 11 12 <?php bbp_breadcrumb(); ?> 10 13 11 14 <div id="bbpress-forums"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-topic-lead.php
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * Single Topic Part … … 44 45 <?php do_action( 'bbp_theme_before_topic_author_details' ); ?> 45 46 46 <?php 47 bbp_topic_author_link( 48 array( 49 'sep' => '', 50 'show_role' => false, 51 'size' => 100, 52 ) 53 ); 54 ?> 47 <?php bbp_topic_author_link( array( 'sep' => '', 'show_role' => false, 'size' => 100 ) ); ?> 55 48 56 <?php 57 bbp_user_nicename( 58 bbp_get_topic_author_id(), 59 array( 60 'before' => '<p class="bbp-user-nicename">(@', 61 'after' => ')</p><br />', 62 ) 63 ); 64 ?> 49 <?php bbp_user_nicename( bbp_get_topic_author_id(), array( 'before' => '<p class="bbp-user-nicename">(@', 'after' => ')</p><br />' ) ); ?> 65 50 66 51 <?php if ( current_user_can( 'moderate', bbp_get_topic_id() ) && 'bbp_blocked' === bbp_get_user_role( bbp_get_topic_author_id() ) ) : ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-topic.php
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * Single Topic Content Part … … 35 36 <?php bbp_get_template_part( 'pagination', 'replies' ); ?> 36 37 37 <?php bbp_get_template_part( 'loop', 'replies' ); ?>38 <?php bbp_get_template_part( 'loop', 'replies' ); ?> 38 39 39 40 <?php bbp_get_template_part( 'pagination', 'replies' ); ?> 40 41 41 <?php elseif ( bb_base_reply_search_query() ) : ?>42 <?php elseif( bb_base_reply_search_query() ) : ?> 42 43 43 <?php bbp_get_template_part( 'feedback', 'no-replies' ); ?>44 <?php bbp_get_template_part( 'feedback', 'no-replies' ); ?> 44 45 45 46 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-user.php
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * Single User Content Part … … 24 25 25 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' ); ?> 29 26 30 <?php 27 if ( bbp_is_favorites() ) {28 bbp_get_template_part( 'user', 'favorites' );29 }31 if ( function_exists( 'bbp_is_single_user_engagements' ) && bbp_is_single_user_engagements() ) { 32 bbp_get_template_part( 'user', 'engagements' ); 33 } 30 34 ?> 31 35 32 <?php 33 if ( bbp_is_subscriptions() ) { 34 bbp_get_template_part( 'user', 'subscriptions' ); 35 } 36 ?> 37 38 <?php 39 if ( function_exists( 'bbp_is_single_user_engagements' ) && bbp_is_single_user_engagements() ) { 40 bbp_get_template_part( 'user', 'engagements' ); 41 } 42 ?> 43 44 <?php 45 if ( bbp_is_single_user_topics() ) { 46 bbp_get_template_part( 'user', 'topics-created' ); 47 } 48 ?> 49 50 <?php 51 if ( bbp_is_single_user_replies() ) { 52 bbp_get_template_part( 'user', 'replies-created' ); 53 } 54 ?> 55 56 <?php 57 if ( wporg_support_is_single_user_reviews() ) { 58 bbp_get_template_part( 'user', 'reviews-written' ); 59 } 60 ?> 61 62 <?php 63 if ( wporg_support_is_single_user_topics_replied_to() ) { 64 bbp_get_template_part( 'user', 'topics-replied-to' ); 65 } 66 ?> 67 68 <?php 69 if ( bbp_is_single_user_edit() ) { 70 bbp_get_template_part( 'form', 'user-edit' ); 71 } 72 ?> 73 74 <?php 75 if ( bbp_is_single_user_profile() ) { 76 bbp_get_template_part( 'user', 'profile' ); 77 } 78 ?> 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_topics_replied_to() ) bbp_get_template_part( 'user', 'topics-replied-to' ); ?> 40 <?php if ( bbp_is_single_user_edit() ) bbp_get_template_part( 'form', 'user-edit' ); ?> 41 <?php if ( bbp_is_single_user_profile() ) bbp_get_template_part( 'user', 'profile' ); ?> 79 42 </div> 80 43 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-view.php
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * Single View Content Part … … 21 22 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 22 23 23 <?php if ( in_array( bbp_get_view_id(), array( 'spam', 'pending', 'archived' ) , true) ) : ?>24 <?php if ( in_array( bbp_get_view_id(), array( 'spam', 'pending', 'archived' ) ) ) : ?> 24 25 25 <?php bbp_get_template_part( 'loop', 'posts'); ?>26 <?php bbp_get_template_part( 'loop', 'posts' ); ?> 26 27 27 28 <?php else : ?> 28 29 29 <?php bbp_get_template_part( 'loop', 'topics'); ?>30 <?php bbp_get_template_part( 'loop', 'topics' ); ?> 30 31 31 32 <?php endif; ?> 32 33 33 <?php bbp_get_template_part( 'pagination', 'topics' ); ?>34 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 34 35 35 36 <?php else : ?> 36 37 37 <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>38 <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?> 38 39 39 40 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/feedback-no-search.php
r7813 r7818 1 <?php2 /**3 * No Search Results Feedback Part4 *5 * @package bbPress6 * @subpackage Theme7 */8 9 // Exit if accessed directly10 defined( 'ABSPATH' ) || exit;11 12 ?>13 14 1 <div class="bbp-template-notice"> 15 <p><?php esc_html_e( 'No results found. Try a different search or start a new post.', 'wporg-forums' ); ?></p>2 <p><?php _e( 'No results found. Try a different search or start a new post.', 'wporg-forums' ); ?></p> 16 3 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/feedback-no-topics.php
r7813 r7818 1 <?php2 /**3 * No Topics Feedback Part4 *5 * @package bbPress6 * @subpackage Theme7 */8 9 // Exit if accessed directly10 defined( 'ABSPATH' ) || exit;11 12 ?>13 14 1 <div class="bbp-template-notice"> 15 <p><?php esc_html_e( 'No topics found. Select another view or start a new post.', 'wporg-forums' ); ?></p>2 <p><?php _e( 'No topics found. Select another view or start a new post.', 'wporg-forums' ); ?></p> 16 3 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/feedback-search.php
r7813 r7818 1 <?php2 /**3 * Search Results Feedback Part4 *5 * @package bbPress6 * @subpackage Theme7 */8 9 // Exit if accessed directly10 defined( 'ABSPATH' ) || exit;11 12 ?>13 14 1 <div class="bbp-template-notice"> 15 <p><?php esc_html_e( 'Please enter some search terms above', 'wporg-forums' ); ?></p>2 <p><?php _e( 'Please enter some search terms above', 'wporg-forums' ); ?></p> 16 3 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * New/Edit Reply … … 42 43 <div class="bbp-template-notice"> 43 44 <ul> 44 <li> 45 <?php 45 <li><?php 46 46 printf( 47 47 /* translators: %s: forum title */ … … 49 49 bbp_get_forum_title( bbp_get_topic_forum_id() ) 50 50 ); 51 ?> 52 </li> 51 ?></li> 53 52 </ul> 54 53 </div> … … 81 80 82 81 <p class="form-allowed-tags"> 83 <label><?php esc_html_e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:', 'wporg-forums' ); ?></label><br />82 <label><?php esc_html_e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','wporg-forums' ); ?></label><br /> 84 83 <code><?php bbp_allowed_tags(); ?></code> 85 84 </p> … … 228 227 <li><?php esc_html_e( 'You cannot reply to this review.', 'wporg-forums' ); ?></li> 229 228 <?php else : ?> 230 <li><?php printf( esc_html__( 'You must be <a href="%s">logged in</a> to reply to this review.', 'wporg-forums' ), wp_login_url() ); ?></li>229 <li><?php printf( __( 'You must be <a href="%s">logged in</a> to reply to this review.', 'wporg-forums' ), wp_login_url() ); ?></li> 231 230 <?php endif; ?> 232 231 … … 236 235 <li><?php esc_html_e( 'You cannot reply to this topic.', 'wporg-forums' ); ?></li> 237 236 <?php else : ?> 238 <li><?php printf( esc_html__( 'You must be <a href="%s">logged in</a> to reply to this topic.', 'wporg-forums' ), wp_login_url() ); ?></li>237 <li><?php printf( __( 'You must be <a href="%s">logged in</a> to reply to this topic.', 'wporg-forums' ), wp_login_url() ); ?></li> 239 238 <?php endif; ?> 240 239 … … 250 249 </div> 251 250 252 <?php 253 endif; 251 <?php endif; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-topic-merge.php
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * Merge Topic … … 17 18 <div id="merge-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-merge"> 18 19 19 <form id="merge_topic" name="merge_topic" method="post" action="<?php bbp_topic_permalink(); ?>">20 <form id="merge_topic" name="merge_topic" method="post" action="<?php the_permalink(); ?>"> 20 21 21 22 <fieldset class="bbp-form"> 22 23 23 <legend><?php printf( esc_html__( 'Merge topic "%s"', 'wporg-forums' ), bbp_get_topic_title() ); ?></legend>24 <legend><?php printf( __( 'Merge topic "%s"', 'wporg-forums' ), bbp_get_topic_title() ); ?></legend> 24 25 25 26 <div> 26 27 27 28 <div class="bbp-template-notice info"> 28 <p><?php esc_html_e( 'Select the topic to merge this one into. The destination topic will remain the lead topic, and this one will change into a reply.', 'wporg-forums' ); ?></p>29 <p><?php esc_html_e( 'To keep this topic as the lead, go to the other topic and use the merge tool from there instead.', 'wporg-forums' ); ?></p>29 <p><?php _e( 'Select the topic to merge this one into. The destination topic will remain the lead topic, and this one will change into a reply.', 'wporg-forums' ); ?></p> 30 <p><?php _e( 'To keep this topic as the lead, go to the other topic and use the merge tool from there instead.', 'wporg-forums' ); ?></p> 30 31 </div> 31 32 32 33 <div class="bbp-template-notice"> 33 <p><?php esc_html_e( 'All replies within both the topics will be merged chronologically. The order of the merged replies is based on the time they were posted. If the destination topic was created after this one, its post date will be updated to a second earlier than this one.', 'wporg-forums' ); ?></p>34 <p><?php _e( 'All replies within both the topics will be merged chronologically. The order of the merged replies is based on the time they were posted. If the destination topic was created after this one, its post date will be updated to a second earlier than this one.', 'wporg-forums' ); ?></p> 34 35 </div> 35 36 36 37 <fieldset class="bbp-form"> 37 <legend><?php esc_html_e( 'Destination', 'wporg-forums' ); ?></legend>38 <legend><?php _e( 'Destination', 'wporg-forums' ); ?></legend> 38 39 <div> 39 <?php 40 if ( bbp_has_topics( 41 array( 42 'show_stickies' => false, 43 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 44 'post__not_in' => array( bbp_get_topic_id() ), 45 ) 46 ) ) : 47 ?> 40 <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?> 48 41 49 <label for="bbp_destination_topic"><?php esc_html_e( 'Merge with this topic:', 'wporg-forums' ); ?></label>42 <label for="bbp_destination_topic"><?php _e( 'Merge with this topic:', 'wporg-forums' ); ?></label> 50 43 51 44 <?php 52 bbp_dropdown( 53 array( 54 'post_type' => bbp_get_topic_post_type(), 55 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 56 'post_status' => array( bbp_get_public_status_id(), bbp_get_closed_status_id() ), 57 'selected' => -1, 58 'numberposts' => 100, 59 'orderby' => 'date', 60 'order' => 'DESC', 61 'exclude' => bbp_get_topic_id(), 62 'select_id' => 'bbp_destination_topic', 63 ) 64 ); 45 bbp_dropdown( array( 46 'post_type' => bbp_get_topic_post_type(), 47 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 48 'post_status' => array( bbp_get_public_status_id(), bbp_get_closed_status_id() ), 49 'selected' => -1, 50 'numberposts' => 100, 51 'orderby' => 'date', 52 'order' => 'DESC', 53 'exclude' => bbp_get_topic_id(), 54 'select_id' => 'bbp_destination_topic' 55 ) ); 65 56 ?> 66 57 67 58 <?php else : ?> 68 59 69 <label><?php esc_html_e( 'There are no other topics in this forum to merge with.', 'wporg-forums' ); ?></label>60 <label><?php _e( 'There are no other topics in this forum to merge with.', 'wporg-forums' ); ?></label> 70 61 71 62 <?php endif; ?> … … 75 66 76 67 <fieldset class="bbp-form"> 77 <legend><?php esc_html_e( 'Topic Extras', 'wporg-forums' ); ?></legend>68 <legend><?php _e( 'Topic Extras', 'wporg-forums' ); ?></legend> 78 69 79 70 <div> … … 82 73 83 74 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" /> 84 <label for="bbp_topic_subscribers"><?php esc_html_e( 'Merge topic subscribers', 'wporg-forums' ); ?></label><br />75 <label for="bbp_topic_subscribers"><?php _e( 'Merge topic subscribers', 'wporg-forums' ); ?></label><br /> 85 76 86 77 <?php endif; ?> 87 78 88 79 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" /> 89 <label for="bbp_topic_favoriters"><?php esc_html_e( 'Merge topic favoriters', 'wporg-forums' ); ?></label><br />80 <label for="bbp_topic_favoriters"><?php _e( 'Merge topic favoriters', 'wporg-forums' ); ?></label><br /> 90 81 91 82 <?php if ( bbp_allow_topic_tags() ) : ?> 92 83 93 84 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" /> 94 <label for="bbp_topic_tags"><?php esc_html_e( 'Merge topic tags', 'wporg-forums' ); ?></label><br />85 <label for="bbp_topic_tags"><?php _e( 'Merge topic tags', 'wporg-forums' ); ?></label><br /> 95 86 96 87 <?php endif; ?> … … 100 91 101 92 <div class="bbp-template-notice error"> 102 <p><?php esc_html_e( '<strong>WARNING:</strong> This process cannot be undone.', 'wporg-forums' ); ?></p>93 <p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'wporg-forums' ); ?></p> 103 94 </div> 104 95 105 96 <div class="bbp-submit-wrapper"> 106 <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button button-primary submit"><?php esc_html_e( 'Submit', 'wporg-forums' ); ?></button>97 <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button button-primary submit"><?php _e( 'Submit', 'wporg-forums' ); ?></button> 107 98 </div> 108 99 </div> … … 117 108 118 109 <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic"> 119 <div class="entry-content"><?php is_user_logged_in() ? esc_html_e( 'You do not have the permissions to edit this topic!', 'wporg-forums' ) : esc_html_e( 'You cannot edit this topic.', 'wporg-forums' ); ?></div>110 <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'wporg-forums' ) : _e( 'You cannot edit this topic.', 'wporg-forums' ); ?></div> 120 111 </div> 121 112 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-topic-split.php
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * Split Topic … … 21 22 <fieldset class="bbp-form"> 22 23 23 <legend><?php printf( esc_html__( 'Split topic "%s"', 'wporg-forums' ), bbp_get_topic_title() ); ?></legend>24 <legend><?php printf( __( 'Split topic "%s"', 'wporg-forums' ), bbp_get_topic_title() ); ?></legend> 24 25 25 26 <div> 26 27 27 28 <div class="bbp-template-notice info"> 28 <p><?php esc_html_e( 'When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.', 'wporg-forums' ); ?></p>29 <p><?php _e( 'When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.', 'wporg-forums' ); ?></p> 29 30 </div> 30 31 31 32 <div class="bbp-template-notice"> 32 <p><?php esc_html_e( 'If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.', 'wporg-forums' ); ?></p>33 <p><?php _e( 'If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.', 'wporg-forums' ); ?></p> 33 34 </div> 34 35 35 36 <fieldset class="bbp-form"> 36 <legend><?php esc_html_e( 'Split Method', 'wporg-forums' ); ?></legend>37 <legend><?php _e( 'Split Method', 'wporg-forums' ); ?></legend> 37 38 38 39 <div> 39 40 <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" /> 40 <label for="bbp_topic_split_option_reply"><?php printf( esc_html__( 'New topic in <strong>%s</strong> titled:', 'wporg-forums' ), bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ); ?></label>41 <label for="bbp_topic_split_option_reply"><?php printf( __( 'New topic in <strong>%s</strong> titled:', 'wporg-forums' ), bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ); ?></label> 41 42 <input type="text" id="bbp_topic_split_destination_title" value="<?php echo esc_attr( sprintf( __( 'Split: %s', 'wporg-forums' ), bbp_get_topic_title() ) ); ?>" size="35" name="bbp_topic_split_destination_title" /> 42 43 </div> 43 44 44 <?php 45 if ( bbp_has_topics( 46 array( 47 'show_stickies' => false, 48 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 49 'post__not_in' => array( bbp_get_topic_id() ), 50 ) 51 ) ) : 52 ?> 45 <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?> 53 46 54 47 <div> 55 48 <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" /> 56 <label for="bbp_topic_split_option_existing"><?php esc_html_e( 'Use an existing topic in this forum:', 'wporg-forums' ); ?></label>49 <label for="bbp_topic_split_option_existing"><?php _e( 'Use an existing topic in this forum:', 'wporg-forums' ); ?></label> 57 50 58 51 <?php 59 bbp_dropdown( 60 array( 61 'post_type' => bbp_get_topic_post_type(), 62 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 63 'post_status' => array( bbp_get_public_status_id(), bbp_get_closed_status_id() ), 64 'selected' => -1, 65 'numberposts' => 100, 66 'orderby' => 'date', 67 'exclude' => bbp_get_topic_id(), 68 'select_id' => 'bbp_destination_topic', 69 ) 70 ); 52 bbp_dropdown( array( 53 'post_type' => bbp_get_topic_post_type(), 54 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 55 'post_status' => array( bbp_get_public_status_id(), bbp_get_closed_status_id() ), 56 'selected' => -1, 57 'numberposts' => 100, 58 'orderby' => 'date', 59 'exclude' => bbp_get_topic_id(), 60 'select_id' => 'bbp_destination_topic' 61 ) ); 71 62 ?> 72 63 … … 78 69 79 70 <fieldset class="bbp-form"> 80 <legend><?php esc_html_e( 'Topic Extras', 'wporg-forums' ); ?></legend>71 <legend><?php _e( 'Topic Extras', 'wporg-forums' ); ?></legend> 81 72 82 73 <div> … … 85 76 86 77 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" /> 87 <label for="bbp_topic_subscribers"><?php esc_html_e( 'Copy subscribers to the new topic', 'wporg-forums' ); ?></label><br />78 <label for="bbp_topic_subscribers"><?php _e( 'Copy subscribers to the new topic', 'wporg-forums' ); ?></label><br /> 88 79 89 80 <?php endif; ?> 90 81 91 82 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" /> 92 <label for="bbp_topic_favoriters"><?php esc_html_e( 'Copy favoriters to the new topic', 'wporg-forums' ); ?></label><br />83 <label for="bbp_topic_favoriters"><?php _e( 'Copy favoriters to the new topic', 'wporg-forums' ); ?></label><br /> 93 84 94 85 <?php if ( bbp_allow_topic_tags() ) : ?> 95 86 96 87 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" /> 97 <label for="bbp_topic_tags"><?php esc_html_e( 'Copy topic tags to the new topic', 'wporg-forums' ); ?></label><br />88 <label for="bbp_topic_tags"><?php _e( 'Copy topic tags to the new topic', 'wporg-forums' ); ?></label><br /> 98 89 99 90 <?php endif; ?> … … 103 94 104 95 <div class="bbp-template-notice error"> 105 <p><?php esc_html_e( '<strong>WARNING:</strong> This process cannot be undone.', 'wporg-forums' ); ?></p>96 <p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'wporg-forums' ); ?></p> 106 97 </div> 107 98 108 99 <div class="bbp-submit-wrapper"> 109 <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button button-primary submit"><?php esc_html_e( 'Submit', 'wporg-forums' ); ?></button>100 <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button button-primary submit"><?php _e( 'Submit', 'wporg-forums' ); ?></button> 110 101 </div> 111 102 </div> … … 120 111 121 112 <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic"> 122 <div class="entry-content"><?php is_user_logged_in() ? esc_html_e( 'You do not have the permissions to edit this topic!', 'wporg-forums' ) : esc_html_e( 'You cannot edit this topic.', 'wporg-forums' ); ?></div>113 <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'wporg-forums' ) : _e( 'You cannot edit this topic.', 'wporg-forums' ); ?></div> 123 114 </div> 124 115 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-topic.php
r7813 r7818 1 <?php 2 /** 3 * New/Edit Topic 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 if ( ! bbp_is_single_forum() && ! bbp_is_single_view() ) : ?> 1 <?php if ( ! bbp_is_single_forum() && ! bbp_is_single_view() ) : ?> 13 2 14 3 <div id="bbpress-forums"> … … 30 19 31 20 <?php 32 if ( bbp_is_topic_edit() ) { 33 printf( esc_html__( 'Now Editing “%s”', 'wporg-forums' ), bbp_get_topic_title() ); 34 } else { 35 if ( bbp_is_single_forum() ) { 36 printf( esc_html__( 'Create a new topic in “%s Forum”', 'wporg-forums' ), bbp_get_forum_title() ); 37 } elseif ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) { 38 esc_html_e( 'Create a new review', 'wporg-forums' ); 21 if ( bbp_is_topic_edit() ) { 22 printf( __( 'Now Editing “%s”', 'wporg-forums' ), bbp_get_topic_title() ); 39 23 } else { 40 esc_html_e( 'Create a new topic', 'wporg-forums' ); 24 if ( bbp_is_single_forum() ) { 25 printf( __( 'Create a new topic in “%s Forum”', 'wporg-forums' ), bbp_get_forum_title() ); 26 } elseif ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) { 27 _e( 'Create a new review', 'wporg-forums' ); 28 } else { 29 _e( 'Create a new topic', 'wporg-forums' ); 30 } 41 31 } 42 }43 32 ?> 44 33 … … 57 46 <?php else : ?> 58 47 59 <p><?php esc_html_e( 'When posting a new topic, follow these steps:', 'wporg-forums' ); ?></p>48 <p><?php _e( 'When posting a new topic, follow these steps:', 'wporg-forums' ); ?></p> 60 49 <ul> 61 <li> 62 <?php 50 <li><?php 63 51 /* translators: %s: Handbook URL for forum welcome */ 64 printf( esc_html__( '<strong>Read the <a href="%s">Forum Welcome</a></strong> to find out how to maximize your odds of getting help!', 'wporg-forums' ), esc_url( esc_html__( 'https://wordpress.org/support/welcome/', 'wporg-forums' ) ) ); 65 ?> 66 </li> 67 <li> 68 <?php 52 printf( __( '<strong>Read the <a href="%s">Forum Welcome</a></strong> to find out how to maximize your odds of getting help!', 'wporg-forums' ), esc_url( __( 'https://wordpress.org/support/welcome/', 'wporg-forums' ) ) ); 53 ?></li> 54 <li><?php 69 55 /* translators: %s: URL to search */ 70 printf( esc_html__( '<strong><a href="%s">Search</a> the forums</strong> to see if your topic has been resolved already.', 'wporg-forums' ), esc_url( bbp_get_search_url() ) ); 71 ?> 72 </li> 73 <li><?php esc_html_e( '<strong>Update to the latest versions</strong> of your plugins, themes, and WordPress.', 'wporg-forums' ); ?></li> 74 <li><?php esc_html_e( '<strong>Note the exact steps</strong> needed to reproduce your issue.', 'wporg-forums' ); ?></li> 75 <li><?php esc_html_e( '<strong>Provide any information</strong> you might think is useful. If your issue is visual, note your browser and operating system. If your issue is technical, note your server environment.', 'wporg-forums' ); ?></li> 76 <?php if ( ! bbp_is_single_view() || ! in_array( bbp_get_view_id(), array( 'theme', 'plugin' ), true ) ) : ?> 77 <li> 78 <?php 56 printf( __( '<strong><a href="%s">Search</a> the forums</strong> to see if your topic has been resolved already.', 'wporg-forums' ), esc_url( bbp_get_search_url() ) ); 57 ?></li> 58 <li><?php _e( '<strong>Update to the latest versions</strong> of your plugins, themes, and WordPress.', 'wporg-forums' ); ?></li> 59 <li><?php _e( '<strong>Note the exact steps</strong> needed to reproduce your issue.', 'wporg-forums' ); ?></li> 60 <li><?php _e( '<strong>Provide any information</strong> you might think is useful. If your issue is visual, note your browser and operating system. If your issue is technical, note your server environment.', 'wporg-forums' ); ?></li> 61 <?php if ( ! bbp_is_single_view() || ! in_array( bbp_get_view_id(), array( 'theme', 'plugin' ) ) ) : ?> 62 <li><?php 79 63 /* translators: 1: Theme Directory URL, 2: Appearance icon, 3: Plugin Directory URL, 4: Plugins icon */ 80 printf( 81 esc_html__( '<strong>Looking for help with a specific <a href="%1$s">%2$s theme</a> or <a href="%3$s">%4$s plugin</a>?</strong> Don\'t post here – instead, head to the theme or plugin\'s page and find the "View support forum" link to visit the theme or plugin\'s individual forum.', 'wporg-forums' ), 82 esc_url( esc_html__( 'https://wordpress.org/themes/', 'wporg-forums' ) ), 64 printf( __( '<strong>Looking for help with a specific <a href="%1$s">%2$s theme</a> or <a href="%3$s">%4$s plugin</a>?</strong> Don\'t post here – instead, head to the theme or plugin\'s page and find the "View support forum" link to visit the theme or plugin\'s individual forum.', 'wporg-forums' ), 65 esc_url( __( 'https://wordpress.org/themes/', 'wporg-forums' ) ), 83 66 '<span class="dashicons dashicons-admin-appearance"></span>', 84 esc_url( esc_html__( 'https://wordpress.org/plugins/', 'wporg-forums' ) ),67 esc_url( __( 'https://wordpress.org/plugins/', 'wporg-forums' ) ), 85 68 '<span class="dashicons dashicons-admin-plugins"></span>' 86 69 ); 87 ?> 88 </li> 70 ?></li> 89 71 <?php endif; ?> 90 72 </ul> … … 96 78 <?php endif; ?> 97 79 98 <?php if ( ! bbp_is_topic_edit() && bbp_is_forum_closed() ) : ?>80 <?php if ( !bbp_is_topic_edit() && bbp_is_forum_closed() ) : ?> 99 81 100 82 <div class="bbp-template-notice"> 101 <p><?php esc_html_e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to create a topic.', 'wporg-forums' ); ?></p>83 <p><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to create a topic.', 'wporg-forums' ); ?></p> 102 84 </div> 103 85 … … 107 89 108 90 <div class="bbp-template-notice"> 109 <p><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'wporg-forums' ); ?></p>91 <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'wporg-forums' ); ?></p> 110 92 </div> 111 93 … … 121 103 122 104 <p> 123 <label for="bbp_topic_title"> 124 <?php 105 <label for="bbp_topic_title"><?php 125 106 if ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) { 126 printf( esc_html__( 'Review Title (Maximum Length: %d):', 'wporg-forums' ), bbp_get_title_max_length() );107 printf( __( 'Review Title (Maximum Length: %d):', 'wporg-forums' ), bbp_get_title_max_length() ); 127 108 } else { 128 printf( esc_html__( 'Topic Title (Maximum Length: %d):', 'wporg-forums' ), bbp_get_title_max_length() );109 printf( __( 'Topic Title (Maximum Length: %d):', 'wporg-forums' ), bbp_get_title_max_length() ); 129 110 } 130 ?> 131 </label><br /> 111 ?></label><br /> 132 112 <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" /> 133 113 </p> … … 144 124 145 125 <p> 146 <label for="bbp_topic_tags"> 147 <?php 126 <label for="bbp_topic_tags"><?php 148 127 if ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) { 149 esc_html_e( 'Review Tags:', 'wporg-forums' );128 _e( 'Review Tags:', 'wporg-forums' ); 150 129 } else { 151 esc_html_e( 'Topic Tags:', 'wporg-forums' );130 _e( 'Topic Tags:', 'wporg-forums' ); 152 131 } 153 ?> 154 </label><br /> 132 ?></label><br /> 155 133 <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" aria-describedby="bbp_topic_tags_description" <?php disabled( bbp_is_topic_spam() ); ?> /><br /> 156 134 <em id="bbp_topic_tags_description"><?php esc_html_e( 'Separate tags with commas', 'wporg-forums' ); ?></em> … … 164 142 165 143 <p> 166 <label for="bbp_forum_id"><?php esc_html_e( 'Forum:', 'wporg-forums' ); ?></label><br />144 <label for="bbp_forum_id"><?php _e( 'Forum:', 'wporg-forums' ); ?></label><br /> 167 145 <?php bbp_dropdown( array( 'selected' => bbp_get_form_topic_forum() ) ); ?> 168 146 </p> … … 172 150 <?php endif; ?> 173 151 174 <?php if ( bbp_is_subscriptions_active() && ! bbp_is_anonymous() && ( ! bbp_is_topic_edit() || ( bbp_is_topic_edit() && !bbp_is_topic_anonymous() ) ) ) : ?>152 <?php if ( bbp_is_subscriptions_active() && !bbp_is_anonymous() && ( !bbp_is_topic_edit() || ( bbp_is_topic_edit() && !bbp_is_topic_anonymous() ) ) ) : ?> 175 153 176 154 <?php do_action( 'bbp_theme_before_topic_form_subscriptions' ); ?> … … 179 157 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> /> 180 158 181 <?php if ( bbp_is_topic_edit() && ( get_the_author_meta( 'ID' ) != =bbp_get_current_user_id() ) ) : ?>182 183 <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'wporg-forums' ); ?></label>159 <?php if ( bbp_is_topic_edit() && ( get_the_author_meta( 'ID' ) != bbp_get_current_user_id() ) ) : ?> 160 161 <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'wporg-forums' ); ?></label> 184 162 185 163 <?php else : ?> 186 164 187 <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'wporg-forums' ); ?></label>165 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'wporg-forums' ); ?></label> 188 166 189 167 <?php endif; ?> … … 201 179 <legend> 202 180 <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> /> 203 <label for="bbp_log_topic_edit"><?php esc_html_e( 'Keep a log of this edit:', 'wporg-forums' ); ?></label><br />181 <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'wporg-forums' ); ?></label><br /> 204 182 </legend> 205 183 206 184 <div> 207 <label for="bbp_topic_edit_reason"><em><?php esc_html_e( 'Optional reason for editing:', 'wporg-forums' ); ?></em></label><br />185 <label for="bbp_topic_edit_reason"><em><?php _e( 'Optional reason for editing:', 'wporg-forums' ); ?></em></label><br /> 208 186 <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" /> 209 187 </div> … … 220 198 <?php do_action( 'bbp_theme_before_topic_form_submit_button' ); ?> 221 199 222 <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button button-primary submit"><?php esc_html_e( 'Submit', 'wporg-forums' ); ?></button>200 <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button button-primary submit"><?php _e( 'Submit', 'wporg-forums' ); ?></button> 223 201 224 202 <?php do_action( 'bbp_theme_after_topic_form_submit_button' ); ?> … … 243 221 <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic"> 244 222 <div class="bbp-template-notice"> 245 <p><?php printf( esc_html__( 'The forum ‘%s’ is closed to new topics and replies.', 'wporg-forums' ), bbp_get_forum_title() ); ?></p>223 <p><?php printf( __( 'The forum ‘%s’ is closed to new topics and replies.', 'wporg-forums' ), bbp_get_forum_title() ); ?></p> 246 224 </div> 247 225 </div> … … 252 230 <div class="bbp-template-notice"> 253 231 <?php if ( is_user_logged_in() ) : ?> 254 <p><?php esc_html_e( 'You cannot create new topics at this time.', 'wporg-forums' ); ?></p>232 <p><?php _e( 'You cannot create new topics at this time.', 'wporg-forums' ); ?></p> 255 233 <?php else : ?> 256 <p><?php printf( esc_html__( 'You must be <a href="%s">logged in</a> to create new topics.', 'wporg-forums' ), wp_login_url() ); ?></p>234 <p><?php printf( __( 'You must be <a href="%s">logged in</a> to create new topics.', 'wporg-forums' ), wp_login_url() ); ?></p> 257 235 <?php endif; ?> 258 236 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-forums-homepage.php
r7813 r7818 1 <?php 2 /** 3 * Forums Loop Homepage 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 do_action( 'bbp_template_before_forums_loop' ); ?> 1 <?php do_action( 'bbp_template_before_forums_loop' ); ?> 13 2 14 3 <div id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums three-up"> 15 4 16 5 17 <?php 18 while ( bbp_forums() ) : 19 bbp_the_forum();20 bbp_get_template_part( 'loop', 'single-forum-homepage' ); 21 endwhile;22 ?> 6 <?php while ( bbp_forums() ) : bbp_the_forum(); ?> 7 8 <?php bbp_get_template_part( 'loop', 'single-forum-homepage' ); ?> 9 10 <?php endwhile; ?> 11 23 12 24 13 </div><!-- .forums-directory --> 25 14 26 15 <div class="themes-plugins"> 27 28 <h3><?php esc_html_e( 'Themes and Plugins', 'wporg-forums' ); ?></h3> 29 <p> 30 <?php 31 printf( 32 /* translators: 1: Theme Directory URL, 2: Appearance icon, 3: Plugin Directory URL, 4: Plugins icon */ 33 esc_html__( 'Looking for help with a specific <a href="%1$s">%2$s theme</a> or <a href="%3$s">%4$s plugin</a>? Head to the theme or plugin\'s page and find the "View support forum" link to visit the theme or plugin\'s individual forum.', 'wporg-forums' ), 34 esc_url( esc_html__( 'https://wordpress.org/themes/', 'wporg-forums' ) ), 16 17 <h3><?php _e( 'Themes and Plugins', 'wporg-forums' ); ?></h3> 18 <p><?php 19 /* translators: 1: Theme Directory URL, 2: Appearance icon, 3: Plugin Directory URL, 4: Plugins icon */ 20 printf( __( 'Looking for help with a specific <a href="%1$s">%2$s theme</a> or <a href="%3$s">%4$s plugin</a>? Head to the theme or plugin\'s page and find the "View support forum" link to visit the theme or plugin\'s individual forum.', 'wporg-forums' ), 21 esc_url( __( 'https://wordpress.org/themes/', 'wporg-forums' ) ), 35 22 '<span class="dashicons dashicons-admin-appearance"></span>', 36 esc_url( esc_html__( 'https://wordpress.org/plugins/', 'wporg-forums' ) ),23 esc_url( __( 'https://wordpress.org/plugins/', 'wporg-forums' ) ), 37 24 '<span class="dashicons dashicons-admin-plugins"></span>' 38 25 ); 39 ?> 40 </p> 26 ?></p> 41 27 42 28 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-forums.php
r7813 r7818 1 <?php 2 /** 3 * Forums Loop 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 do_action( 'bbp_template_before_forums_loop' ); ?> 1 <?php do_action( 'bbp_template_before_forums_loop' ); ?> 13 2 14 3 <ul id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums"> … … 17 6 18 7 <ul class="forum-titles"> 19 <li class="bbp-forum-info"><?php esc_attr_e( 'Forum', 'wporg-forums' ); ?></li>20 <li class="bbp-forum-topic-count"><?php esc_attr_e( 'Topics', 'wporg-forums' ); ?></li>21 <li class="bbp-forum-reply-count"><?php esc_attr_e( 'Posts', 'wporg-forums' ); ?></li>8 <li class="bbp-forum-info"><?php _e( 'Forum', 'wporg-forums' ); ?></li> 9 <li class="bbp-forum-topic-count"><?php _e( 'Topics', 'wporg-forums' ); ?></li> 10 <li class="bbp-forum-reply-count"><?php _e( 'Posts', 'wporg-forums' ); ?></li> 22 11 </ul> 23 12 … … 26 15 <li class="bbp-body"> 27 16 28 <?php 29 while ( bbp_forums() ) : 30 bbp_the_forum(); 31 bbp_get_template_part( 'loop', 'single-forum' ); 17 <?php while ( bbp_forums() ) : bbp_the_forum(); ?> 32 18 33 bbp_list_forums(34 array( 35 'before' => '',36 'after'=> '',37 'link_before' => '<ul class="forum"><li class="bbp-forum-info">— <span class="bbp-forum-title">',38 'link_after' => '',39 'count_before' => '</span></li><li class="bbp-forum-reply-count">',40 'count_after' => '</li></ul>',41 'separator' => '',42 'show_topic_count' => false,43 'show_reply_count' => true,44 )45 ) ;46 endwhile; 47 ?>19 <?php bbp_get_template_part( 'loop', 'single-forum' ); ?> 20 21 <?php bbp_list_forums( array( 22 'before' => '', 23 'after' => '', 24 'link_before' => '<ul class="forum"><li class="bbp-forum-info">— <span class="bbp-forum-title">', 25 'link_after' => '', 26 'count_before' => '</span></li><li class="bbp-forum-reply-count">', 27 'count_after' => '</li></ul>', 28 'separator' => '', 29 'show_topic_count' => false, 30 'show_reply_count' => true, 31 ) ); ?> 32 33 <?php endwhile; ?> 48 34 49 35 </li><!-- .bbp-body --> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-posts.php
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * Posts Loop … … 12 13 <li class="bbp-body"> 13 14 14 <?php 15 while ( bbp_topics() ) : 16 bbp_the_topic(); 17 ?> 15 <?php while ( bbp_topics() ) : bbp_the_topic(); ?> 18 16 19 <?php if ( 'topic' == =get_post_type() ) : ?>17 <?php if ( 'topic' == get_post_type() ) : ?> 20 18 21 19 <?php bbp_get_template_part( 'content', 'single-topic-lead' ); ?> 22 20 23 <?php // This actually works. ?> 24 <?php 25 else : 26 bbpress()->reply_query = bbpress()->topic_query; 27 ?> 21 <?php // This actually works. ?> 22 <?php else : bbpress()->reply_query = bbpress()->topic_query; ?> 28 23 29 24 <?php bbp_get_template_part( 'loop', 'single-reply' ); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-replies.php
r7813 r7818 1 <?php 2 /** 3 * Replies Loop 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 do_action( 'bbp_template_before_replies_loop' ); ?> 1 <?php do_action( 'bbp_template_before_replies_loop' ); ?> 13 2 14 3 <ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies"> … … 16 5 <li class="bbp-body"> 17 6 18 <?php 19 while ( bbp_replies() ) : 20 bbp_the_reply(); 21 bbp_get_template_part( 'loop', 'single-reply' ); 22 endwhile; 23 ?> 7 <?php while ( bbp_replies() ) : bbp_the_reply(); ?> 8 9 <?php bbp_get_template_part( 'loop', 'single-reply' ); ?> 10 11 <?php endwhile; ?> 24 12 25 13 </li><!-- .bbp-body --> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-reply-topics.php
r7813 r7818 1 <?php 2 /** 3 * Reply Topics Loop 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 do_action( 'bbp_template_before_topics_loop' ); ?> 1 <?php do_action( 'bbp_template_before_topics_loop' ); ?> 13 2 14 3 <ul id="bbp-forum-<?php bbp_forum_id(); ?>" class="bbp-topics"> … … 17 6 <li class="bbp-topic-title"><?php esc_html_e( 'Topic', 'wporg-forums' ); ?></li> 18 7 <li class="bbp-topic-voice-count"><?php esc_html_e( 'Voices', 'wporg-forums' ); ?></li> 19 <li class="bbp-topic-reply-count"> 20 <?php 21 bbp_show_lead_topic() 8 <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() 22 9 ? esc_html_e( 'Replies', 'wporg-forums' ) 23 : esc_html_e( 'Posts', 'wporg-forums' ); 24 ?> 25 </li> 10 : esc_html_e( 'Posts', 'wporg-forums' ); 11 ?></li> 26 12 <li class="bbp-topic-freshness"><?php esc_html_e( 'Last Post', 'wporg-forums' ); ?></li> 27 13 </ul> … … 30 16 <li class="bbp-body"> 31 17 32 <?php 33 while ( bbp_replies() ) : 34 bbp_the_reply(); 35 ?> 18 <?php while ( bbp_replies() ) : bbp_the_reply(); ?> 36 19 37 20 <?php bbp_get_template_part( 'loop', 'single-reply-topic' ); ?> … … 50 33 </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> --> 51 34 52 <?php 53 do_action( 'bbp_template_after_topics_loop' ); 35 <?php do_action( 'bbp_template_after_topics_loop' ); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-search.php
r7813 r7818 1 <?php 2 /** 3 * Search Loop 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 do_action( 'bbp_template_before_search_results_loop' ); ?> 1 <?php do_action( 'bbp_template_before_search_results_loop' ); ?> 13 2 14 3 <ul id="bbp-search-results" class="forums bbp-search-results"> … … 16 5 <li class="bbp-body"> 17 6 18 <?php 19 while ( bbp_search_results() ) : 20 bbp_the_search_result(); 21 ?> 7 <?php while ( bbp_search_results() ) : bbp_the_search_result(); ?> 22 8 23 9 <?php if ( 'topic' === get_post_type() ) : ?> … … 37 23 </ul><!-- #bbp-search-results --> 38 24 39 <?php 40 do_action( 'bbp_template_after_search_results_loop' ); ?> 25 <?php do_action( 'bbp_template_after_search_results_loop' ); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-forum-homepage.php
r7813 r7818 1 <?php2 /**3 * Single Forum Loop Homepage4 *5 * @package bbPress6 * @subpackage Theme7 */8 9 // Exit if accessed directly10 defined( 'ABSPATH' ) || exit;11 12 ?>13 14 1 <div id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class( bbp_get_forum_id(), array( '' ) ); ?>> 15 2 16 3 <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>" title="<?php bbp_forum_title(); ?>"><h3><?php bbp_forum_title(); ?></h3></a> 17 4 <p><?php bbp_forum_content(); ?></p> 18 <p><a href="<?php bbp_forum_permalink(); ?>" title="<?php bbp_forum_title(); ?>" class="viewmore"><?php esc_html_e( 'View forum', 'wporg-forums' ); ?></a></p>5 <p><a href="<?php bbp_forum_permalink(); ?>" title="<?php bbp_forum_title(); ?>" class="viewmore"><?php _e( 'View forum', 'wporg-forums' ); ?></a></p> 19 6 20 7 </div><!-- #bbp-forum-<?php bbp_forum_id(); ?> --> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-forum.php
r7813 r7818 1 <?php2 /**3 * Forums Loop - Single Forum4 *5 * @package bbPress6 * @subpackage Theme7 */8 9 // Exit if accessed directly10 defined( 'ABSPATH' ) || exit;11 12 ?>13 14 1 <ul id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class(); ?>> 15 2 <li class="bbp-forum-info"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-reply-topic.php
r7813 r7818 1 <?php2 /**3 * Replies Loop - Single Reply Topic4 *5 * @package bbPress6 * @subpackage Theme7 */8 9 // Exit if accessed directly10 defined( 'ABSPATH' ) || exit;11 12 ?>13 14 1 <?php $topic_id = bbp_get_reply_topic_id(); ?> 15 2 … … 32 19 <?php do_action( 'bbp_theme_before_topic_started_by' ); ?> 33 20 34 <span class="bbp-topic-started-by"> 35 <?php 36 printf( 37 esc_html__( 'Started by: %1$s', 'wporg-forums' ), 38 bbp_get_topic_author_link( 39 array( 40 'post_id' => $topic_id, 41 'size' => '14', 42 ) 43 ) 44 ); 45 ?> 46 </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> 47 22 48 23 <?php do_action( 'bbp_theme_after_topic_started_by' ); ?> … … 50 25 <?php do_action( 'bbp_theme_before_topic_started_in' ); ?> 51 26 52 <span class="bbp-topic-started-in"><?php printf( esc_html__( '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>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> 53 28 54 29 <?php do_action( 'bbp_theme_after_topic_started_in' ); ?> … … 78 53 <?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?> 79 54 80 <span class="bbp-topic-freshness-author"> 81 <?php 82 bbp_author_link( 83 array( 84 'post_id' => bbp_get_topic_last_active_id( $topic_id ), 85 'size' => 14, 86 ) 87 ); 88 ?> 89 </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> 90 56 91 57 <?php do_action( 'bbp_theme_after_topic_freshness_author' ); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-reply.php
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * Replies Loop - Single Reply … … 29 30 <?php do_action( 'bbp_theme_before_reply_author_details' ); ?> 30 31 31 <?php 32 bbp_reply_author_link( 33 array( 34 'sep' => '', 35 'show_role' => false, 36 'size' => 100, 37 ) 38 ); 39 ?> 32 <?php bbp_reply_author_link( array( 'sep' => '', 'show_role' => false, 'size' => 100 ) ); ?> 40 33 41 <?php 42 bbp_user_nicename( 43 bbp_get_reply_author_id(), 44 array( 45 'before' => '<p class="bbp-user-nicename">(@', 46 'after' => ')</p>', 47 ) 48 ); 49 ?> 34 <?php bbp_user_nicename( bbp_get_reply_author_id(), array( 'before' => '<p class="bbp-user-nicename">(@', 'after' => ')</p>' ) ); ?> 50 35 51 36 <?php if ( current_user_can( 'moderate', bbp_get_reply_topic_id() ) && 'bbp_blocked' === bbp_get_user_role( bbp_get_reply_author_id() ) ) : ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-topic.php
r7813 r7818 1 <?php2 /**3 * Topics Loop - Single4 *5 * @package bbPress6 * @subpackage Theme7 */8 9 // Exit if accessed directly10 defined( 'ABSPATH' ) || exit;11 12 ?>13 14 1 <ul id="bbp-topic-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> 15 2 … … 24 11 <?php do_action( 'bbp_theme_before_topic_favorites_action' ); ?> 25 12 26 <?php 27 bbp_user_favorites_link( 28 array( 29 'before' => '', 30 'favorite' => '+', 31 'favorited' => '×', 32 ) 33 ); 34 ?> 13 <?php bbp_user_favorites_link( array( 'before' => '', 'favorite' => '+', 'favorited' => '×' ) ); ?> 35 14 36 15 <?php do_action( 'bbp_theme_after_topic_favorites_action' ); ?> … … 44 23 <?php do_action( 'bbp_theme_before_topic_subscription_action' ); ?> 45 24 46 <?php 47 bbp_user_subscribe_link( 48 array( 49 'before' => '', 50 'subscribe' => '+', 51 'unsubscribe' => '×', 52 ) 53 ); 54 ?> 25 <?php bbp_user_subscribe_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '×' ) ); ?> 55 26 56 27 <?php do_action( 'bbp_theme_after_topic_subscription_action' ); ?> … … 76 47 <?php do_action( 'bbp_theme_before_topic_started_by' ); ?> 77 48 78 <span class="bbp-topic-started-by"><?php printf( esc_html__( 'Started by: %1$s', 'wporg-forums' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>49 <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'wporg-forums' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span> 79 50 80 51 <?php do_action( 'bbp_theme_after_topic_started_by' ); ?> 81 52 82 <?php 83 if ( 53 <?php if ( 84 54 ( bbp_is_single_view() && ! wporg_support_is_compat_view() ) 85 55 || … … 87 57 || 88 58 bbp_is_single_user_topics() 89 ) : 90 ?> 59 ) : ?> 91 60 92 61 <?php do_action( 'bbp_theme_before_topic_started_in' ); ?> 93 62 94 <span class="bbp-topic-started-in"><?php printf( esc_html__( '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>63 <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> 95 64 96 65 <?php do_action( 'bbp_theme_after_topic_started_in' ); ?> … … 122 91 <?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?> 123 92 124 <span class="bbp-topic-freshness-author"> 125 <?php 126 bbp_author_link( 127 array( 128 'post_id' => bbp_get_topic_last_active_id(), 129 'size' => 14, 130 ) 131 ); 132 ?> 133 </span> 93 <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span> 134 94 135 95 <?php do_action( 'bbp_theme_after_topic_freshness_author' ); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-details.php
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * User Details … … 22 23 <div id="bbp-user-navigation"> 23 24 <ul> 24 <li class=" 25 <?php 26 if ( bbp_is_single_user_profile() ) : 27 ?> 28 current<?php endif; ?>"> 25 <li class="<?php if ( bbp_is_single_user_profile() ) :?>current<?php endif; ?>"> 29 26 <span class="vcard bbp-user-profile-link"> 30 <a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title=" 31 <?php 32 /* translators: %s: user's display name */ 33 printf( esc_attr__( "%s's Profile", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 34 ?> 35 " rel="me"><?php esc_html_e( 'Profile', 'wporg-forums' ); ?></a> 27 <a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php 28 /* translators: %s: user's display name */ 29 printf( esc_attr__( "%s's Profile", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 30 ?>" rel="me"><?php esc_html_e( 'Profile', 'wporg-forums' ); ?></a> 36 31 </span> 37 32 </li> 38 33 39 <li class=" 40 <?php 41 if ( bbp_is_single_user_topics() ) : 42 ?> 43 current<?php endif; ?>"> 34 <li class="<?php if ( bbp_is_single_user_topics() ) :?>current<?php endif; ?>"> 44 35 <span class='bbp-user-topics-created-link'> 45 <a href="<?php bbp_user_topics_created_url(); ?>" title=" 46 <?php 47 /* translators: %s: user's display name */ 48 printf( esc_attr__( "%s's Topics Started", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 49 ?> 50 "><?php esc_html_e( 'Topics Started', 'wporg-forums' ); ?></a> 36 <a href="<?php bbp_user_topics_created_url(); ?>" title="<?php 37 /* translators: %s: user's display name */ 38 printf( esc_attr__( "%s's Topics Started", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 39 ?>"><?php esc_html_e( 'Topics Started', 'wporg-forums' ); ?></a> 51 40 </span> 52 41 </li> 53 42 54 <li class=" 55 <?php 56 if ( bbp_is_single_user_replies() ) : 57 ?> 58 current<?php endif; ?>"> 43 <li class="<?php if ( bbp_is_single_user_replies() ) :?>current<?php endif; ?>"> 59 44 <span class='bbp-user-replies-created-link'> 60 <a href="<?php bbp_user_replies_created_url(); ?>" title=" 61 <?php 62 /* translators: %s: user's display name */ 63 printf( esc_attr__( "%s's Replies Created", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 64 ?> 65 "><?php esc_html_e( 'Replies Created', 'wporg-forums' ); ?></a> 45 <a href="<?php bbp_user_replies_created_url(); ?>" title="<?php 46 /* translators: %s: user's display name */ 47 printf( esc_attr__( "%s's Replies Created", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 48 ?>"><?php esc_html_e( 'Replies Created', 'wporg-forums' ); ?></a> 66 49 </span> 67 50 </li> 68 51 69 <?php if ( defined( 'WPORG_SUPPORT_FORUMS_BLOGID' ) && WPORG_SUPPORT_FORUMS_BLOGID === get_current_blog_id() ) : ?> 70 <li class=" 71 <?php 72 if ( wporg_support_is_single_user_reviews() ) : 73 ?> 74 current<?php endif; ?>"> 52 <?php if ( defined( 'WPORG_SUPPORT_FORUMS_BLOGID' ) && WPORG_SUPPORT_FORUMS_BLOGID == get_current_blog_id() ) : ?> 53 <li class="<?php if ( wporg_support_is_single_user_reviews() ) :?>current<?php endif; ?>"> 75 54 <span class='bbp-user-reviews-link'> 76 <a href="<?php bbp_user_profile_url(); ?>reviews/" title=" 77 <?php 78 /* translators: %s: user's display name */ 79 printf( esc_attr__( "%s's Reviews Written", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 80 ?> 81 "><?php esc_html_e( 'Reviews Written', 'wporg-forums' ); ?></a> 55 <a href="<?php bbp_user_profile_url(); ?>reviews/" title="<?php 56 /* translators: %s: user's display name */ 57 printf( esc_attr__( "%s's Reviews Written", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 58 ?>"><?php esc_html_e( 'Reviews Written', 'wporg-forums' ); ?></a> 82 59 </span> 83 60 </li> 84 61 <?php endif; ?> 85 62 86 <li class=" 87 <?php 88 if ( wporg_support_is_single_user_topics_replied_to() ) : 89 ?> 90 current<?php endif; ?>"> 63 <li class="<?php if ( wporg_support_is_single_user_topics_replied_to() ) :?>current<?php endif; ?>"> 91 64 <span class='bbp-user-topics-replied-to-link'> 92 <a href="<?php bbp_user_profile_url(); ?>replied-to/" title=" 93 <?php 94 /* translators: %s: user's display name */ 95 printf( esc_attr__( 'Topics %s Has Replied To', 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 96 ?> 97 "><?php esc_html_e( 'Topics Replied To', 'wporg-forums' ); ?></a> 65 <a href="<?php bbp_user_profile_url(); ?>replied-to/" title="<?php 66 /* translators: %s: user's display name */ 67 printf( esc_attr__( 'Topics %s Has Replied To', 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 68 ?>"><?php esc_html_e( 'Topics Replied To', 'wporg-forums' ); ?></a> 98 69 </span> 99 70 </li> 100 71 101 72 <?php if ( function_exists( 'bbp_is_engagements_active' ) && bbp_is_engagements_active() ) : ?> 102 <li class=" 103 <?php 104 if ( bbp_is_single_user_engagements() ) : 105 ?> 106 current<?php endif; ?>"> 73 <li class="<?php if ( bbp_is_single_user_engagements() ) :?>current<?php endif; ?>"> 107 74 <span class='bbp-user-engagements-created-link'> 108 <a href="<?php bbp_user_engagements_url(); ?>" title=" 109 <?php 110 /* translators: %s: user's display name */ 111 printf( esc_attr__( "%s's Engagements", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 112 ?> 113 "><?php esc_html_e( 'Engagements', 'wporg-forums' ); ?></a> 75 <a href="<?php bbp_user_engagements_url(); ?>" title="<?php 76 /* translators: %s: user's display name */ 77 printf( esc_attr__( "%s's Engagements", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 78 ?>"><?php esc_html_e( 'Engagements', 'wporg-forums' ); ?></a> 114 79 </span> 115 80 </li> … … 117 82 118 83 <?php if ( bbp_is_favorites_active() ) : ?> 119 <li class=" 120 <?php 121 if ( bbp_is_favorites() ) : 122 ?> 123 current<?php endif; ?>"> 84 <li class="<?php if ( bbp_is_favorites() ) :?>current<?php endif; ?>"> 124 85 <span class="bbp-user-favorites-link"> 125 <a href="<?php bbp_favorites_permalink(); ?>" title=" 126 <?php 127 /* translators: %s: user's display name */ 128 printf( esc_attr__( "%s's Favorites", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 129 ?> 130 "><?php esc_html_e( 'Favorites', 'wporg-forums' ); ?></a> 86 <a href="<?php bbp_favorites_permalink(); ?>" title="<?php 87 /* translators: %s: user's display name */ 88 printf( esc_attr__( "%s's Favorites", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 89 ?>"><?php esc_html_e( 'Favorites', 'wporg-forums' ); ?></a> 131 90 </span> 132 91 </li> … … 136 95 137 96 <?php if ( bbp_is_subscriptions_active() ) : ?> 138 <li class=" 139 <?php 140 if ( bbp_is_subscriptions() ) : 141 ?> 142 current<?php endif; ?>"> 97 <li class="<?php if ( bbp_is_subscriptions() ) :?>current<?php endif; ?>"> 143 98 <span class="bbp-user-subscriptions-link"> 144 <a href="<?php bbp_subscriptions_permalink(); ?>" title=" 145 <?php 146 /* translators: %s: user's display name */ 147 printf( esc_attr__( "%s's Subscriptions", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 148 ?> 149 "><?php esc_html_e( 'Subscriptions', 'wporg-forums' ); ?></a> 99 <a href="<?php bbp_subscriptions_permalink(); ?>" title="<?php 100 /* translators: %s: user's display name */ 101 printf( esc_attr__( "%s's Subscriptions", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 102 ?>"><?php esc_html_e( 'Subscriptions', 'wporg-forums' ); ?></a> 150 103 </span> 151 104 </li> 152 105 <?php endif; ?> 153 106 154 <li class=" 155 <?php 156 if ( bbp_is_single_user_edit() ) : 157 ?> 158 current<?php endif; ?>"> 107 <li class="<?php if ( bbp_is_single_user_edit() ) :?>current<?php endif; ?>"> 159 108 <span class="bbp-user-edit-link"> 160 <a href="<?php bbp_user_profile_edit_url(); ?>" title=" 161 <?php 162 /* translators: %s: user's display name */ 163 printf( esc_attr__( "Edit %s's Profile", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 164 ?> 165 "><?php esc_html_e( 'Edit', 'wporg-forums' ); ?></a> 109 <a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php 110 /* translators: %s: user's display name */ 111 printf( esc_attr__( "Edit %s's Profile", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) ); 112 ?>"><?php esc_html_e( 'Edit', 'wporg-forums' ); ?></a> 166 113 </span> 167 114 </li> … … 176 123 </div> 177 124 178 <?php 179 do_action( 'bbp_template_after_user_details' ); 125 <?php do_action( 'bbp_template_after_user_details' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-profile.php
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * User Profile … … 11 12 <div id="bbp-user-profile" class="bbp-user-profile"> 12 13 <h2 class="entry-title"><?php esc_html_e( 'Profile', 'wporg-forums' ); ?></h2> 13 <div class="bbp-user-section"> 14 <?php 15 if ( current_user_can( 'moderate' ) && class_exists( 'WordPressdotorg\Forums\User_Moderation\Plugin' ) ) { 16 $displayed_user_id = bbp_get_displayed_user_id(); 17 $plugin_instance = WordPressdotorg\Forums\User_Moderation\Plugin::get_instance(); 18 $is_user_flagged = $plugin_instance->is_user_flagged( $displayed_user_id ); 19 $moderator = get_user_meta( $displayed_user_id, $plugin_instance::MODERATOR_META, true ); 20 $moderation_date = get_user_meta( $displayed_user_id, $plugin_instance::MODERATION_DATE_META, true ); 14 <div class="bbp-user-section"><?php 15 if ( current_user_can( 'moderate' ) && class_exists( 'WordPressdotorg\Forums\User_Moderation\Plugin' ) ) { 16 $displayed_user_id = bbp_get_displayed_user_id(); 17 $plugin_instance = WordPressdotorg\Forums\User_Moderation\Plugin::get_instance(); 18 $is_user_flagged = $plugin_instance->is_user_flagged( $displayed_user_id ); 19 $moderator = get_user_meta( $displayed_user_id, $plugin_instance::MODERATOR_META, true ); 20 $moderation_date = get_user_meta( $displayed_user_id, $plugin_instance::MODERATION_DATE_META, true ); 21 21 22 if ( $is_user_flagged ) { 23 if ( $moderator && $moderation_date ) { 24 $msg = sprintf( 25 /* translators: 1: linked moderator's username, 2: moderation date, 3: moderation time */ 26 esc_html__( 'This user has been flagged by %1$s on %2$s at %3$s.', 'wporg-forums' ), 27 sprintf( '<a href="%s">%s</a>', esc_url( home_url( "/users/$moderator/" ) ), $moderator ), 28 /* translators: localized date format, see https://secure.php.net/date */ 29 mysql2date( esc_html__( 'F j, Y', 'wporg-forums' ), $moderation_date ), 30 /* translators: localized time format, see https://secure.php.net/date */ 31 mysql2date( esc_html__( 'g:i a', 'wporg-forums' ), $moderation_date ) 22 if ( $is_user_flagged ) { 23 if ( $moderator && $moderation_date ) { 24 $msg = sprintf( 25 /* translators: 1: linked moderator's username, 2: moderation date, 3: moderation time */ 26 __( 'This user has been flagged by %1$s on %2$s at %3$s.', 'wporg-forums' ), 27 sprintf( '<a href="%s">%s</a>', esc_url( home_url( "/users/$moderator/" ) ), $moderator ), 28 /* translators: localized date format, see https://secure.php.net/date */ 29 mysql2date( __( 'F j, Y', 'wporg-forums' ), $moderation_date ), 30 /* translators: localized time format, see https://secure.php.net/date */ 31 mysql2date( __( 'g:i a', 'wporg-forums' ), $moderation_date ) 32 ); 33 } elseif ( $moderator ) { 34 $msg = sprintf( 35 /* translators: %s: linked moderator's username */ 36 __( 'This user has been flagged by %s.', 'wporg-forums' ), 37 sprintf( '<a href="%s">%s</a>', esc_url( home_url( "/users/$moderator/" ) ), $moderator ) 38 ); 39 } else { 40 $msg = __( 'This user has been flagged.', 'wporg-forums' ); 41 } 42 43 printf( 44 '<div class="bbp-template-notice warning"><p>%s</p></div>', 45 $msg 32 46 ); 33 } elseif ( $moderator ) {34 $msg = sprintf(35 /* translators: %s: linked moderator's username */36 esc_html__( 'This user has been flagged by %s.', 'wporg-forums' ),37 sprintf( '<a href="%s">%s</a>', esc_url( home_url( "/users/$moderator/" ) ), $moderator )38 );39 } else {40 $msg = esc_html__( 'This user has been flagged.', 'wporg-forums' );41 47 } 42 43 printf(44 '<div class="bbp-template-notice warning"><p>%s</p></div>',45 $msg46 );47 48 } 48 } 49 ?> 49 ?> 50 50 51 51 <?php if ( bbp_get_displayed_user_field( 'description' ) ) : ?> … … 57 57 <?php if ( current_user_can( 'moderate' ) ) : ?> 58 58 59 <p class="bbp-user-email"> 60 <?php 59 <p class="bbp-user-email"><?php 61 60 /* translators: %s: user's email address */ 62 61 printf( esc_html__( 'Email: %s', 'wporg-forums' ), bbp_get_displayed_user_field( 'user_email' ) ); 63 ?> 64 </p> 62 ?></p> 65 63 66 64 <?php endif; ?> 67 65 68 <p class="bbp-user-wporg-profile"> 69 <?php 66 <p class="bbp-user-wporg-profile"><?php 70 67 $user_nicename = bbp_get_displayed_user_field( 'user_nicename' ); 71 68 $slack_username = wporg_support_get_slack_username(); 72 69 73 if ( $slack_username && $slack_username !== $user_nicename ) { 74 /* translators: 1: user's WordPress.org profile link, 2: user's Slack username, 3: make.wordpress.org/chat URL */ 75 printf( 76 esc_html__( '%1$s on WordPress.org, %2$s on <a href="%3$s">Slack</a>', 'wporg-forums' ), 77 wporg_support_get_wporg_profile_link(), 78 '@' . $slack_username, 79 'https://make.wordpress.org/chat/' 80 ); 81 } elseif ( $slack_username ) { 82 /* translators: 1: WordPress.org and Slack username, 2: URL for information about Slack */ 83 printf( 84 esc_html__( '%1$s on WordPress.org and <a href="%2$s">Slack</a>', 'wporg-forums' ), 85 wporg_support_get_wporg_profile_link(), 86 'https://make.wordpress.org/chat/' 87 ); 88 } else { 89 /* translators: %s: user's WordPress.org profile link */ 90 printf( 91 esc_html__( '%s on WordPress.org', 'wporg-forums' ), 92 wporg_support_get_wporg_profile_link() 93 ); 94 } 95 ?> 96 </p> 70 if ( $slack_username && $slack_username != $user_nicename ) { 71 /* translators: 1: user's WordPress.org profile link, 2: user's Slack username, 3: make.wordpress.org/chat URL */ 72 printf( __( '%1$s on WordPress.org, %2$s on <a href="%3$s">Slack</a>', 'wporg-forums' ), 73 wporg_support_get_wporg_profile_link(), 74 '@' . $slack_username, 75 'https://make.wordpress.org/chat/' 76 ); 77 } elseif( $slack_username ) { 78 /* translators: 1: WordPress.org and Slack username, 2: URL for information about Slack */ 79 printf( __( '%1$s on WordPress.org and <a href="%2$s">Slack</a>', 'wporg-forums' ), 80 wporg_support_get_wporg_profile_link(), 81 'https://make.wordpress.org/chat/' 82 ); 83 } else { 84 /* translators: %s: user's WordPress.org profile link */ 85 printf( esc_html__( '%s on WordPress.org', 'wporg-forums' ), 86 wporg_support_get_wporg_profile_link() 87 ); 88 } 89 ?></p> 97 90 98 91 <?php if ( $custom_title = get_user_option( 'title', bbp_get_displayed_user_id() ) ) : ?> 99 100 <p class="bbp-user-custom-title"> 101 <?php 92 93 <p class="bbp-user-custom-title"><?php 102 94 /* translators: %s: user's custom title */ 103 95 printf( esc_html__( 'Title: %s', 'wporg-forums' ), esc_html( $custom_title ) ); 104 ?> 105 </p> 106 96 ?></p> 97 107 98 <?php endif; ?> 108 99 109 <p class="bbp-user-forum-role"> 110 <?php 100 <p class="bbp-user-forum-role"><?php 111 101 /* translators: %s: user's forum role */ 112 102 printf( esc_html__( 'Forum Role: %s', 'wporg-forums' ), bbp_get_user_display_role() ); 113 ?> 114 </p> 103 ?></p> 115 104 116 105 <?php if ( is_user_logged_in() && $website = bbp_get_displayed_user_field( 'user_url' ) ) : ?> 117 118 <p class="bbp-user-website"> 119 <?php 120 /* translators: %s: link to user's website */ 106 107 <p class="bbp-user-website"><?php 108 /* translators: %s: link to user's website */ 121 109 printf( esc_html__( 'Website: %s', 'wporg-forums' ), sprintf( '<a href="%s">%s</a>', esc_url( $website ), esc_html( $website ) ) ); 122 ?> 123 </p> 124 110 ?></p> 111 125 112 <?php endif; ?> 126 113 127 <p class="bbp-user-member-since"> 128 <?php 114 <p class="bbp-user-member-since"><?php 129 115 /* translators: %s: user's registration date */ 130 116 printf( esc_html__( 'Member Since: %s', 'wporg-forums' ), wporg_support_get_user_registered_date() ); 131 ?> 132 </p> 117 ?></p> 133 118 134 <p class="bbp-user-topic-count"> 135 <?php 119 <p class="bbp-user-topic-count"><?php 136 120 /* translators: %s: number of user's topics */ 137 121 printf( esc_html__( 'Topics Started: %s', 'wporg-forums' ), number_format_i18n( wporg_support_get_user_topics_count() ) ); 138 ?> 139 </p> 122 ?></p> 140 123 141 <p class="bbp-user-reply-count"> 142 <?php 124 <p class="bbp-user-reply-count"><?php 143 125 /* translators: %s: number of user's replies */ 144 126 printf( esc_html__( 'Replies Created: %s', 'wporg-forums' ), number_format_i18n( bbp_get_user_reply_count_raw() ) ); 145 ?> 146 </p> 127 ?></p> 147 128 148 <?php if ( defined( 'WPORG_SUPPORT_FORUMS_BLOGID' ) && WPORG_SUPPORT_FORUMS_BLOGID === get_current_blog_id() ) : ?> 149 <p class="bbp-user-review-count"> 150 <?php 129 <?php if ( defined( 'WPORG_SUPPORT_FORUMS_BLOGID' ) && WPORG_SUPPORT_FORUMS_BLOGID == get_current_blog_id() ) : ?> 130 <p class="bbp-user-review-count"><?php 151 131 /* translators: %s: number of user's reviews */ 152 132 printf( esc_html__( 'Reviews Written: %s', 'wporg-forums' ), number_format_i18n( wporg_support_get_user_reviews_count() ) ); 153 ?> 154 </p> 133 ?></p> 155 134 <?php endif; ?> 156 135 </div> 157 136 </div><!-- #bbp-author-topics-started --> 158 137 159 <?php 160 do_action( 'bbp_template_after_user_profile' ); 138 <?php do_action( 'bbp_template_after_user_profile' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-reviews-written.php
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * User Reviews Written … … 17 18 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 18 19 19 <?php bbp_get_template_part( 'loop', 'topics' ); ?>20 <?php bbp_get_template_part( 'loop', 'topics' ); ?> 20 21 21 22 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> … … 23 24 <?php else : ?> 24 25 25 <p> 26 <?php 27 bbp_is_user_home() 28 ? esc_html_e( 'You have not written any reviews.', 'wporg-forums' ) 26 <p><?php bbp_is_user_home() 27 ? esc_html_e( 'You have not written any reviews.', 'wporg-forums' ) 29 28 : esc_html_e( 'This user has not written any reviews.', 'wporg-forums' ); 30 ?> 31 </p> 29 ?></p> 32 30 33 31 <?php endif; ?> … … 36 34 </div><!-- #bbp-user-reviews-written --> 37 35 38 <?php 39 do_action( 'bbp_template_after_user_reviews_written' ); 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
r7813 r7818 1 1 <?php 2 2 3 /** 3 4 * User Topics Replied To … … 17 18 <?php bbp_get_template_part( 'pagination', 'replies' ); ?> 18 19 19 <?php bbp_get_template_part( 'loop', 'reply-topics' ); ?>20 <?php bbp_get_template_part( 'loop', 'reply-topics' ); ?> 20 21 21 22 <?php bbp_get_template_part( 'pagination', 'replies' ); ?> … … 23 24 <?php else : ?> 24 25 25 <p> 26 <?php 27 bbp_is_user_home() 28 ? esc_html_e( 'You have not replied to any topics.', 'wporg-forums' ) 26 <p><?php bbp_is_user_home() 27 ? esc_html_e( 'You have not replied to any topics.', 'wporg-forums' ) 29 28 : esc_html_e( 'This user has not replied to any topics.', 'wporg-forums' ); 30 ?> 31 </p> 29 ?></p> 32 30 33 31 <?php endif; ?> … … 36 34 </div><!-- #bbp-user-topics-replied-to --> 37 35 38 <?php 39 do_action( 'bbp_template_after_user_topics_replied_to' ); 36 <?php do_action( 'bbp_template_after_user_topics_replied_to' );
Note: See TracChangeset
for help on using the changeset viewer.