Changeset 7813
- Timestamp:
- 11/01/2018 07:02:31 AM (7 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-archive-forum.php
r5127 r7813 1 <?php if ( ! is_front_page() ) : ?> 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' ) ) : ?> 2 13 3 14 <?php bbp_breadcrumb(); ?> … … 10 21 11 22 <?php if ( bbp_has_forums() ) : ?> 12 13 <?php if ( is_front_page() ) : ?>14 <?php bbp_get_template_part( 'loop', 'forums-homepage'); ?>23 24 <?php if ( is_front_page() || is_archive( 'forum' ) ) : ?> 25 <?php bbp_get_template_part( 'loop', 'forums-homepage' ); ?> 15 26 <?php else : ?> 16 <?php bbp_get_template_part( 'loop', 'forums'); ?>27 <?php bbp_get_template_part( 'loop', 'forums' ); ?> 17 28 <?php endif; ?> 18 29 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-archive-topic.php
r5628 r7813 1 <?php 2 /** 3 * Archive Topic Content Part 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 1 8 2 <?php bbp_breadcrumb(); ?> 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 bbp_breadcrumb(); ?> 3 13 4 14 <?php if ( bbp_is_forum_archive() || bbp_is_topic_archive() || bbp_is_search() ) : ?> … … 27 37 <?php if ( bbp_has_topics() ) : ?> 28 38 29 <?php bbp_get_template_part( 'pagination', 'topics' 39 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 30 40 31 <?php bbp_get_template_part( 'loop', 'topics'); ?>41 <?php bbp_get_template_part( 'loop', 'topics' ); ?> 32 42 33 <?php bbp_get_template_part( 'pagination', 'topics' 43 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 34 44 35 45 <?php else : ?> 36 46 37 <?php bbp_get_template_part( 'feedback', 47 <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?> 38 48 39 49 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-search.php
r5104 r7813 1 <?php 2 /** 3 * Search Content Part 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 1 8 2 <?php bbp_breadcrumb(); ?> 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 bbp_breadcrumb(); ?> 3 13 4 14 <?php if ( bbp_is_forum_archive() || bbp_is_topic_archive() || bbp_is_search() ) : ?> … … 20 30 <?php if ( bbp_has_search_results() ) : ?> 21 31 22 32 <?php bbp_get_template_part( 'pagination', 'search' ); ?> 23 33 24 <?php bbp_get_template_part( 'loop','search' ); ?>34 <?php bbp_get_template_part( 'loop', 'search' ); ?> 25 35 26 36 <?php bbp_get_template_part( 'pagination', 'search' ); ?> 27 37 28 38 <?php elseif ( bbp_get_search_terms() ) : ?> 29 39 30 <?php bbp_get_template_part( 'feedback','no-search' ); ?>40 <?php bbp_get_template_part( 'feedback', 'no-search' ); ?> 31 41 32 42 <?php else : ?> 33 43 34 <?php bbp_get_template_part( 'feedback', 44 <?php bbp_get_template_part( 'feedback', 'search' ); ?> 35 45 36 46 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-forum.php
r4841 r7813 1 1 <?php 2 3 2 /** 4 3 * Single Topic Content Part … … 13 12 14 13 <header class="page-header"> 15 <h1 class="page-title"><?php printf( __( '%s Forum', 'wporg-forums' ), bbp_get_topic_title() ); ?></h1>14 <h1 class="page-title"><?php printf( esc_html__( '%s Forum', 'wporg-forums' ), bbp_get_topic_title() ); ?></h1> 16 15 <p><?php bbp_forum_content(); ?></p> 17 16 </header> … … 31 30 <?php endif; ?> 32 31 33 <?php if ( ! bbp_is_forum_category() && bbp_has_topics() ) : ?>32 <?php if ( ! bbp_is_forum_category() && bbp_has_topics() ) : ?> 34 33 35 <?php bbp_get_template_part( 'pagination', 'topics' 34 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 36 35 37 <?php bbp_get_template_part( 'loop', 'topics'); ?>36 <?php bbp_get_template_part( 'loop', 'topics' ); ?> 38 37 39 <?php bbp_get_template_part( 'pagination', 'topics' 38 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 40 39 41 <?php if ( ! bb_base_topic_search_query( false ) ) bbp_get_template_part( 'form', 'topic' ); ?> 40 <?php 41 if ( ! bb_base_topic_search_query( false ) ) { 42 bbp_get_template_part( 'form', 'topic' ); 43 } 44 ?> 42 45 43 <?php elseif ( !bbp_is_forum_category() ) : ?>46 <?php elseif ( ! bbp_is_forum_category() ) : ?> 44 47 45 <?php bbp_get_template_part( 'feedback', 48 <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?> 46 49 47 <?php if ( ! bb_base_topic_search_query( false ) ) bbp_get_template_part( 'form', 'topic' ); ?> 50 <?php 51 if ( ! bb_base_topic_search_query( false ) ) { 52 bbp_get_template_part( 'form', 'topic' ); 53 } 54 ?> 48 55 49 56 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-reply.php
r5638 r7813 1 <?php 2 1 <?php 3 2 /** 4 3 * Single Reply Content Part … … 8 7 */ 9 8 10 ?> 11 12 <?php bbp_breadcrumb(); ?> 9 bbp_breadcrumb(); ?> 13 10 14 11 <div id="bbpress-forums"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-topic-lead.php
r7518 r7813 1 1 <?php 2 3 2 /** 4 3 * Single Topic Part … … 45 44 <?php do_action( 'bbp_theme_before_topic_author_details' ); ?> 46 45 47 <?php bbp_topic_author_link( array( 'sep' => '', 'show_role' => false, 'size' => 100 ) ); ?> 46 <?php 47 bbp_topic_author_link( 48 array( 49 'sep' => '', 50 'show_role' => false, 51 'size' => 100, 52 ) 53 ); 54 ?> 48 55 49 <?php bbp_user_nicename( bbp_get_topic_author_id(), array( 'before' => '<p class="bbp-user-nicename">(@', 'after' => ')</p><br />' ) ); ?> 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 ?> 50 65 51 66 <?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
r4248 r7813 1 1 <?php 2 3 2 /** 4 3 * Single Topic Content Part … … 36 35 <?php bbp_get_template_part( 'pagination', 'replies' ); ?> 37 36 38 <?php bbp_get_template_part( 'loop', 37 <?php bbp_get_template_part( 'loop', 'replies' ); ?> 39 38 40 39 <?php bbp_get_template_part( 'pagination', 'replies' ); ?> 41 40 42 <?php elseif ( bb_base_reply_search_query() ) : ?>41 <?php elseif ( bb_base_reply_search_query() ) : ?> 43 42 44 <?php bbp_get_template_part( 'feedback', 43 <?php bbp_get_template_part( 'feedback', 'no-replies' ); ?> 45 44 46 45 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-user.php
r5637 r7813 1 1 <?php 2 3 2 /** 4 3 * Single User Content Part … … 25 24 26 25 <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' ); ?> 26 <?php 27 if ( bbp_is_favorites() ) { 28 bbp_get_template_part( 'user', 'favorites' ); 29 } 30 ?> 29 31 30 32 <?php 31 if ( function_exists( 'bbp_is_single_user_engagements' ) && bbp_is_single_user_engagements() ) {32 bbp_get_template_part( 'user', 'engagements' );33 33 if ( bbp_is_subscriptions() ) { 34 bbp_get_template_part( 'user', 'subscriptions' ); 35 } 34 36 ?> 35 37 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' ); ?> 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 ?> 42 79 </div> 43 80 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-view.php
r4895 r7813 1 1 <?php 2 3 2 /** 4 3 * Single View Content Part … … 22 21 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 23 22 24 <?php if ( in_array( bbp_get_view_id(), array( 'spam', 'pending', 'archived' ) ) ) : ?>23 <?php if ( in_array( bbp_get_view_id(), array( 'spam', 'pending', 'archived' ), true ) ) : ?> 25 24 26 <?php bbp_get_template_part( 'loop', 'posts'); ?>25 <?php bbp_get_template_part( 'loop', 'posts' ); ?> 27 26 28 27 <?php else : ?> 29 28 30 <?php bbp_get_template_part( 'loop', 'topics'); ?>29 <?php bbp_get_template_part( 'loop', 'topics' ); ?> 31 30 32 31 <?php endif; ?> 33 32 34 <?php bbp_get_template_part( 'pagination', 'topics' 33 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 35 34 36 35 <?php else : ?> 37 36 38 <?php bbp_get_template_part( 'feedback', 37 <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?> 39 38 40 39 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/feedback-no-search.php
r5019 r7813 1 <?php 2 /** 3 * No Search Results Feedback Part 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 ?> 13 1 14 <div class="bbp-template-notice"> 2 <p><?php _e( 'No results found. Try a different search or start a new post.', 'wporg-forums' ); ?></p>15 <p><?php esc_html_e( 'No results found. Try a different search or start a new post.', 'wporg-forums' ); ?></p> 3 16 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/feedback-no-topics.php
r5019 r7813 1 <?php 2 /** 3 * No Topics Feedback Part 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 ?> 13 1 14 <div class="bbp-template-notice"> 2 <p><?php _e( 'No topics found. Select another view or start a new post.', 'wporg-forums' ); ?></p>15 <p><?php esc_html_e( 'No topics found. Select another view or start a new post.', 'wporg-forums' ); ?></p> 3 16 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/feedback-search.php
r4248 r7813 1 <?php 2 /** 3 * Search Results Feedback Part 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 ?> 13 1 14 <div class="bbp-template-notice"> 2 <p><?php _e( 'Please enter some search terms above', 'wporg-forums' ); ?></p>15 <p><?php esc_html_e( 'Please enter some search terms above', 'wporg-forums' ); ?></p> 3 16 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php
r6050 r7813 1 1 <?php 2 3 2 /** 4 3 * New/Edit Reply … … 43 42 <div class="bbp-template-notice"> 44 43 <ul> 45 <li><?php 44 <li> 45 <?php 46 46 printf( 47 47 /* translators: %s: forum title */ … … 49 49 bbp_get_forum_title( bbp_get_topic_forum_id() ) 50 50 ); 51 ?></li> 51 ?> 52 </li> 52 53 </ul> 53 54 </div> … … 80 81 81 82 <p class="form-allowed-tags"> 82 <label><?php esc_html_e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:', 'wporg-forums' ); ?></label><br />83 <label><?php esc_html_e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:', 'wporg-forums' ); ?></label><br /> 83 84 <code><?php bbp_allowed_tags(); ?></code> 84 85 </p> … … 227 228 <li><?php esc_html_e( 'You cannot reply to this review.', 'wporg-forums' ); ?></li> 228 229 <?php else : ?> 229 <li><?php printf( __( 'You must be <a href="%s">logged in</a> to reply to this review.', 'wporg-forums' ), wp_login_url() ); ?></li>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> 230 231 <?php endif; ?> 231 232 … … 235 236 <li><?php esc_html_e( 'You cannot reply to this topic.', 'wporg-forums' ); ?></li> 236 237 <?php else : ?> 237 <li><?php printf( __( 'You must be <a href="%s">logged in</a> to reply to this topic.', 'wporg-forums' ), wp_login_url() ); ?></li>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> 238 239 <?php endif; ?> 239 240 … … 249 250 </div> 250 251 251 <?php endif; 252 <?php 253 endif; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-topic-merge.php
r5042 r7813 1 1 <?php 2 3 2 /** 4 3 * Merge Topic … … 18 17 <div id="merge-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-merge"> 19 18 20 <form id="merge_topic" name="merge_topic" method="post" action="<?php the_permalink(); ?>">19 <form id="merge_topic" name="merge_topic" method="post" action="<?php bbp_topic_permalink(); ?>"> 21 20 22 21 <fieldset class="bbp-form"> 23 22 24 <legend><?php printf( __( 'Merge topic "%s"', 'wporg-forums' ), bbp_get_topic_title() ); ?></legend>23 <legend><?php printf( esc_html__( 'Merge topic "%s"', 'wporg-forums' ), bbp_get_topic_title() ); ?></legend> 25 24 26 25 <div> 27 26 28 27 <div class="bbp-template-notice info"> 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>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> 31 30 </div> 32 31 33 32 <div class="bbp-template-notice"> 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>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> 35 34 </div> 36 35 37 36 <fieldset class="bbp-form"> 38 <legend><?php _e( 'Destination', 'wporg-forums' ); ?></legend>37 <legend><?php esc_html_e( 'Destination', 'wporg-forums' ); ?></legend> 39 38 <div> 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() ) ) ) ) : ?> 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 ?> 41 48 42 <label for="bbp_destination_topic"><?php _e( 'Merge with this topic:', 'wporg-forums' ); ?></label>49 <label for="bbp_destination_topic"><?php esc_html_e( 'Merge with this topic:', 'wporg-forums' ); ?></label> 43 50 44 51 <?php 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 ) ); 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 ); 56 65 ?> 57 66 58 67 <?php else : ?> 59 68 60 <label><?php _e( 'There are no other topics in this forum to merge with.', 'wporg-forums' ); ?></label>69 <label><?php esc_html_e( 'There are no other topics in this forum to merge with.', 'wporg-forums' ); ?></label> 61 70 62 71 <?php endif; ?> … … 66 75 67 76 <fieldset class="bbp-form"> 68 <legend><?php _e( 'Topic Extras', 'wporg-forums' ); ?></legend>77 <legend><?php esc_html_e( 'Topic Extras', 'wporg-forums' ); ?></legend> 69 78 70 79 <div> … … 73 82 74 83 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" /> 75 <label for="bbp_topic_subscribers"><?php _e( 'Merge topic subscribers', 'wporg-forums' ); ?></label><br />84 <label for="bbp_topic_subscribers"><?php esc_html_e( 'Merge topic subscribers', 'wporg-forums' ); ?></label><br /> 76 85 77 86 <?php endif; ?> 78 87 79 88 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" /> 80 <label for="bbp_topic_favoriters"><?php _e( 'Merge topic favoriters', 'wporg-forums' ); ?></label><br />89 <label for="bbp_topic_favoriters"><?php esc_html_e( 'Merge topic favoriters', 'wporg-forums' ); ?></label><br /> 81 90 82 91 <?php if ( bbp_allow_topic_tags() ) : ?> 83 92 84 93 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" /> 85 <label for="bbp_topic_tags"><?php _e( 'Merge topic tags', 'wporg-forums' ); ?></label><br />94 <label for="bbp_topic_tags"><?php esc_html_e( 'Merge topic tags', 'wporg-forums' ); ?></label><br /> 86 95 87 96 <?php endif; ?> … … 91 100 92 101 <div class="bbp-template-notice error"> 93 <p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'wporg-forums' ); ?></p>102 <p><?php esc_html_e( '<strong>WARNING:</strong> This process cannot be undone.', 'wporg-forums' ); ?></p> 94 103 </div> 95 104 96 105 <div class="bbp-submit-wrapper"> 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>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> 98 107 </div> 99 108 </div> … … 108 117 109 118 <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic"> 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>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> 111 120 </div> 112 121 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-topic-split.php
r5042 r7813 1 1 <?php 2 3 2 /** 4 3 * Split Topic … … 22 21 <fieldset class="bbp-form"> 23 22 24 <legend><?php printf( __( 'Split topic "%s"', 'wporg-forums' ), bbp_get_topic_title() ); ?></legend>23 <legend><?php printf( esc_html__( 'Split topic "%s"', 'wporg-forums' ), bbp_get_topic_title() ); ?></legend> 25 24 26 25 <div> 27 26 28 27 <div class="bbp-template-notice info"> 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>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> 30 29 </div> 31 30 32 31 <div class="bbp-template-notice"> 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>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> 34 33 </div> 35 34 36 35 <fieldset class="bbp-form"> 37 <legend><?php _e( 'Split Method', 'wporg-forums' ); ?></legend>36 <legend><?php esc_html_e( 'Split Method', 'wporg-forums' ); ?></legend> 38 37 39 38 <div> 40 39 <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" /> 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>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> 42 41 <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" /> 43 42 </div> 44 43 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() ) ) ) ) : ?> 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 ?> 46 53 47 54 <div> 48 55 <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" /> 49 <label for="bbp_topic_split_option_existing"><?php _e( 'Use an existing topic in this forum:', 'wporg-forums' ); ?></label>56 <label for="bbp_topic_split_option_existing"><?php esc_html_e( 'Use an existing topic in this forum:', 'wporg-forums' ); ?></label> 50 57 51 58 <?php 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 ) ); 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 ); 62 71 ?> 63 72 … … 69 78 70 79 <fieldset class="bbp-form"> 71 <legend><?php _e( 'Topic Extras', 'wporg-forums' ); ?></legend>80 <legend><?php esc_html_e( 'Topic Extras', 'wporg-forums' ); ?></legend> 72 81 73 82 <div> … … 76 85 77 86 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" /> 78 <label for="bbp_topic_subscribers"><?php _e( 'Copy subscribers to the new topic', 'wporg-forums' ); ?></label><br />87 <label for="bbp_topic_subscribers"><?php esc_html_e( 'Copy subscribers to the new topic', 'wporg-forums' ); ?></label><br /> 79 88 80 89 <?php endif; ?> 81 90 82 91 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" /> 83 <label for="bbp_topic_favoriters"><?php _e( 'Copy favoriters to the new topic', 'wporg-forums' ); ?></label><br />92 <label for="bbp_topic_favoriters"><?php esc_html_e( 'Copy favoriters to the new topic', 'wporg-forums' ); ?></label><br /> 84 93 85 94 <?php if ( bbp_allow_topic_tags() ) : ?> 86 95 87 96 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" /> 88 <label for="bbp_topic_tags"><?php _e( 'Copy topic tags to the new topic', 'wporg-forums' ); ?></label><br />97 <label for="bbp_topic_tags"><?php esc_html_e( 'Copy topic tags to the new topic', 'wporg-forums' ); ?></label><br /> 89 98 90 99 <?php endif; ?> … … 94 103 95 104 <div class="bbp-template-notice error"> 96 <p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'wporg-forums' ); ?></p>105 <p><?php esc_html_e( '<strong>WARNING:</strong> This process cannot be undone.', 'wporg-forums' ); ?></p> 97 106 </div> 98 107 99 108 <div class="bbp-submit-wrapper"> 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>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> 101 110 </div> 102 111 </div> … … 111 120 112 121 <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic"> 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>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> 114 123 </div> 115 124 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-topic.php
r6050 r7813 1 <?php if ( ! bbp_is_single_forum() && ! bbp_is_single_view() ) : ?> 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() ) : ?> 2 13 3 14 <div id="bbpress-forums"> … … 19 30 20 31 <?php 21 if ( bbp_is_topic_edit() ) { 22 printf( __( 'Now Editing “%s”', 'wporg-forums' ), bbp_get_topic_title() ); 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' ); 23 39 } else { 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 } 40 esc_html_e( 'Create a new topic', 'wporg-forums' ); 31 41 } 42 } 32 43 ?> 33 44 … … 46 57 <?php else : ?> 47 58 48 <p><?php _e( 'When posting a new topic, follow these steps:', 'wporg-forums' ); ?></p>59 <p><?php esc_html_e( 'When posting a new topic, follow these steps:', 'wporg-forums' ); ?></p> 49 60 <ul> 50 <li><?php 61 <li> 62 <?php 51 63 /* translators: %s: Handbook URL for forum welcome */ 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 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 55 69 /* translators: %s: URL to search */ 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 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 63 79 /* translators: 1: Theme Directory URL, 2: Appearance icon, 3: Plugin Directory URL, 4: Plugins icon */ 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' ) ), 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' ) ), 66 83 '<span class="dashicons dashicons-admin-appearance"></span>', 67 esc_url( __( 'https://wordpress.org/plugins/', 'wporg-forums' ) ),84 esc_url( esc_html__( 'https://wordpress.org/plugins/', 'wporg-forums' ) ), 68 85 '<span class="dashicons dashicons-admin-plugins"></span>' 69 86 ); 70 ?></li> 87 ?> 88 </li> 71 89 <?php endif; ?> 72 90 </ul> … … 78 96 <?php endif; ?> 79 97 80 <?php if ( ! bbp_is_topic_edit() && bbp_is_forum_closed() ) : ?>98 <?php if ( ! bbp_is_topic_edit() && bbp_is_forum_closed() ) : ?> 81 99 82 100 <div class="bbp-template-notice"> 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>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> 84 102 </div> 85 103 … … 89 107 90 108 <div class="bbp-template-notice"> 91 <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'wporg-forums' ); ?></p>109 <p><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'wporg-forums' ); ?></p> 92 110 </div> 93 111 … … 103 121 104 122 <p> 105 <label for="bbp_topic_title"><?php 123 <label for="bbp_topic_title"> 124 <?php 106 125 if ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) { 107 printf( __( 'Review Title (Maximum Length: %d):', 'wporg-forums' ), bbp_get_title_max_length() );126 printf( esc_html__( 'Review Title (Maximum Length: %d):', 'wporg-forums' ), bbp_get_title_max_length() ); 108 127 } else { 109 printf( __( 'Topic Title (Maximum Length: %d):', 'wporg-forums' ), bbp_get_title_max_length() );128 printf( esc_html__( 'Topic Title (Maximum Length: %d):', 'wporg-forums' ), bbp_get_title_max_length() ); 110 129 } 111 ?></label><br /> 130 ?> 131 </label><br /> 112 132 <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(); ?>" /> 113 133 </p> … … 124 144 125 145 <p> 126 <label for="bbp_topic_tags"><?php 146 <label for="bbp_topic_tags"> 147 <?php 127 148 if ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) { 128 _e( 'Review Tags:', 'wporg-forums' );149 esc_html_e( 'Review Tags:', 'wporg-forums' ); 129 150 } else { 130 _e( 'Topic Tags:', 'wporg-forums' );151 esc_html_e( 'Topic Tags:', 'wporg-forums' ); 131 152 } 132 ?></label><br /> 153 ?> 154 </label><br /> 133 155 <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 /> 134 156 <em id="bbp_topic_tags_description"><?php esc_html_e( 'Separate tags with commas', 'wporg-forums' ); ?></em> … … 142 164 143 165 <p> 144 <label for="bbp_forum_id"><?php _e( 'Forum:', 'wporg-forums' ); ?></label><br />166 <label for="bbp_forum_id"><?php esc_html_e( 'Forum:', 'wporg-forums' ); ?></label><br /> 145 167 <?php bbp_dropdown( array( 'selected' => bbp_get_form_topic_forum() ) ); ?> 146 168 </p> … … 150 172 <?php endif; ?> 151 173 152 <?php if ( bbp_is_subscriptions_active() && ! bbp_is_anonymous() && ( !bbp_is_topic_edit() || ( bbp_is_topic_edit() && !bbp_is_topic_anonymous() ) ) ) : ?>174 <?php if ( bbp_is_subscriptions_active() && ! bbp_is_anonymous() && ( ! bbp_is_topic_edit() || ( bbp_is_topic_edit() && ! bbp_is_topic_anonymous() ) ) ) : ?> 153 175 154 176 <?php do_action( 'bbp_theme_before_topic_form_subscriptions' ); ?> … … 157 179 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> /> 158 180 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>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> 162 184 163 185 <?php else : ?> 164 186 165 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'wporg-forums' ); ?></label>187 <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'wporg-forums' ); ?></label> 166 188 167 189 <?php endif; ?> … … 179 201 <legend> 180 202 <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> /> 181 <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'wporg-forums' ); ?></label><br />203 <label for="bbp_log_topic_edit"><?php esc_html_e( 'Keep a log of this edit:', 'wporg-forums' ); ?></label><br /> 182 204 </legend> 183 205 184 206 <div> 185 <label for="bbp_topic_edit_reason"><em><?php _e( 'Optional reason for editing:', 'wporg-forums' ); ?></em></label><br />207 <label for="bbp_topic_edit_reason"><em><?php esc_html_e( 'Optional reason for editing:', 'wporg-forums' ); ?></em></label><br /> 186 208 <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" /> 187 209 </div> … … 198 220 <?php do_action( 'bbp_theme_before_topic_form_submit_button' ); ?> 199 221 200 <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button button-primary submit"><?php _e( 'Submit', 'wporg-forums' ); ?></button>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> 201 223 202 224 <?php do_action( 'bbp_theme_after_topic_form_submit_button' ); ?> … … 221 243 <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic"> 222 244 <div class="bbp-template-notice"> 223 <p><?php printf( __( 'The forum ‘%s’ is closed to new topics and replies.', 'wporg-forums' ), bbp_get_forum_title() ); ?></p>245 <p><?php printf( esc_html__( 'The forum ‘%s’ is closed to new topics and replies.', 'wporg-forums' ), bbp_get_forum_title() ); ?></p> 224 246 </div> 225 247 </div> … … 230 252 <div class="bbp-template-notice"> 231 253 <?php if ( is_user_logged_in() ) : ?> 232 <p><?php _e( 'You cannot create new topics at this time.', 'wporg-forums' ); ?></p>254 <p><?php esc_html_e( 'You cannot create new topics at this time.', 'wporg-forums' ); ?></p> 233 255 <?php else : ?> 234 <p><?php printf( __( 'You must be <a href="%s">logged in</a> to create new topics.', 'wporg-forums' ), wp_login_url() ); ?></p>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> 235 257 <?php endif; ?> 236 258 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-forums-homepage.php
r4687 r7813 1 <?php do_action( 'bbp_template_before_forums_loop' ); ?> 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' ); ?> 2 13 3 14 <div id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums three-up"> 4 15 5 16 6 <?php while ( bbp_forums() ) : bbp_the_forum(); ?>7 8 <?php bbp_get_template_part( 'loop', 'single-forum-homepage' ); ?>9 10 <?php endwhile; ?>11 17 <?php 18 while ( bbp_forums() ) : 19 bbp_the_forum(); 20 bbp_get_template_part( 'loop', 'single-forum-homepage' ); 21 endwhile; 22 ?> 12 23 13 24 </div><!-- .forums-directory --> 14 25 15 26 <div class="themes-plugins"> 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' ) ), 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' ) ), 22 35 '<span class="dashicons dashicons-admin-appearance"></span>', 23 esc_url( __( 'https://wordpress.org/plugins/', 'wporg-forums' ) ),36 esc_url( esc_html__( 'https://wordpress.org/plugins/', 'wporg-forums' ) ), 24 37 '<span class="dashicons dashicons-admin-plugins"></span>' 25 38 ); 26 ?></p> 39 ?> 40 </p> 27 41 28 42 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-forums.php
r4248 r7813 1 <?php do_action( 'bbp_template_before_forums_loop' ); ?> 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' ); ?> 2 13 3 14 <ul id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums"> … … 6 17 7 18 <ul class="forum-titles"> 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>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> 11 22 </ul> 12 23 … … 15 26 <li class="bbp-body"> 16 27 17 <?php while ( bbp_forums() ) : bbp_the_forum(); ?> 28 <?php 29 while ( bbp_forums() ) : 30 bbp_the_forum(); 31 bbp_get_template_part( 'loop', 'single-forum' ); 18 32 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;?>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 ?> 34 48 35 49 </li><!-- .bbp-body --> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-posts.php
r5108 r7813 1 1 <?php 2 3 2 /** 4 3 * Posts Loop … … 13 12 <li class="bbp-body"> 14 13 15 <?php while ( bbp_topics() ) : bbp_the_topic(); ?> 14 <?php 15 while ( bbp_topics() ) : 16 bbp_the_topic(); 17 ?> 16 18 17 <?php if ( 'topic' == get_post_type() ) : ?>19 <?php if ( 'topic' === get_post_type() ) : ?> 18 20 19 21 <?php bbp_get_template_part( 'content', 'single-topic-lead' ); ?> 20 22 21 <?php // This actually works. ?> 22 <?php else : bbpress()->reply_query = bbpress()->topic_query; ?> 23 <?php // This actually works. ?> 24 <?php 25 else : 26 bbpress()->reply_query = bbpress()->topic_query; 27 ?> 23 28 24 29 <?php bbp_get_template_part( 'loop', 'single-reply' ); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-replies.php
r4248 r7813 1 <?php do_action( 'bbp_template_before_replies_loop' ); ?> 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' ); ?> 2 13 3 14 <ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies"> … … 5 16 <li class="bbp-body"> 6 17 7 <?php while ( bbp_replies() ) : bbp_the_reply(); ?> 8 9 <?php bbp_get_template_part( 'loop', 'single-reply' ); ?> 10 11 <?php endwhile; ?> 18 <?php 19 while ( bbp_replies() ) : 20 bbp_the_reply(); 21 bbp_get_template_part( 'loop', 'single-reply' ); 22 endwhile; 23 ?> 12 24 13 25 </li><!-- .bbp-body --> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-reply-topics.php
r5626 r7813 1 <?php do_action( 'bbp_template_before_topics_loop' ); ?> 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' ); ?> 2 13 3 14 <ul id="bbp-forum-<?php bbp_forum_id(); ?>" class="bbp-topics"> … … 6 17 <li class="bbp-topic-title"><?php esc_html_e( 'Topic', 'wporg-forums' ); ?></li> 7 18 <li class="bbp-topic-voice-count"><?php esc_html_e( 'Voices', 'wporg-forums' ); ?></li> 8 <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() 19 <li class="bbp-topic-reply-count"> 20 <?php 21 bbp_show_lead_topic() 9 22 ? esc_html_e( 'Replies', 'wporg-forums' ) 10 : esc_html_e( 'Posts', 'wporg-forums' ); 11 ?></li> 23 : esc_html_e( 'Posts', 'wporg-forums' ); 24 ?> 25 </li> 12 26 <li class="bbp-topic-freshness"><?php esc_html_e( 'Last Post', 'wporg-forums' ); ?></li> 13 27 </ul> … … 16 30 <li class="bbp-body"> 17 31 18 <?php while ( bbp_replies() ) : bbp_the_reply(); ?> 32 <?php 33 while ( bbp_replies() ) : 34 bbp_the_reply(); 35 ?> 19 36 20 37 <?php bbp_get_template_part( 'loop', 'single-reply-topic' ); ?> … … 33 50 </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> --> 34 51 35 <?php do_action( 'bbp_template_after_topics_loop' ); ?> 52 <?php 53 do_action( 'bbp_template_after_topics_loop' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-search.php
r5025 r7813 1 <?php do_action( 'bbp_template_before_search_results_loop' ); ?> 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' ); ?> 2 13 3 14 <ul id="bbp-search-results" class="forums bbp-search-results"> … … 5 16 <li class="bbp-body"> 6 17 7 <?php while ( bbp_search_results() ) : bbp_the_search_result(); ?> 18 <?php 19 while ( bbp_search_results() ) : 20 bbp_the_search_result(); 21 ?> 8 22 9 23 <?php if ( 'topic' === get_post_type() ) : ?> … … 23 37 </ul><!-- #bbp-search-results --> 24 38 25 <?php do_action( 'bbp_template_after_search_results_loop' ); ?> 39 <?php 40 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
r4763 r7813 1 <?php 2 /** 3 * Single Forum Loop Homepage 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 ?> 13 1 14 <div id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class( bbp_get_forum_id(), array( '' ) ); ?>> 2 15 3 16 <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>" title="<?php bbp_forum_title(); ?>"><h3><?php bbp_forum_title(); ?></h3></a> 4 17 <p><?php bbp_forum_content(); ?></p> 5 <p><a href="<?php bbp_forum_permalink(); ?>" title="<?php bbp_forum_title(); ?>" class="viewmore"><?php _e( 'View forum', 'wporg-forums' ); ?></a></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> 6 19 7 20 </div><!-- #bbp-forum-<?php bbp_forum_id(); ?> --> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-forum.php
r4248 r7813 1 <?php 2 /** 3 * Forums Loop - Single Forum 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 ?> 13 1 14 <ul id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class(); ?>> 2 15 <li class="bbp-forum-info"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-reply-topic.php
r5626 r7813 1 <?php 2 /** 3 * Replies Loop - Single Reply Topic 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 ?> 13 1 14 <?php $topic_id = bbp_get_reply_topic_id(); ?> 2 15 … … 19 32 <?php do_action( 'bbp_theme_before_topic_started_by' ); ?> 20 33 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> 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> 22 47 23 48 <?php do_action( 'bbp_theme_after_topic_started_by' ); ?> … … 25 50 <?php do_action( 'bbp_theme_before_topic_started_in' ); ?> 26 51 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>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> 28 53 29 54 <?php do_action( 'bbp_theme_after_topic_started_in' ); ?> … … 53 78 <?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?> 54 79 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> 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> 56 90 57 91 <?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
r7518 r7813 1 1 <?php 2 3 2 /** 4 3 * Replies Loop - Single Reply … … 30 29 <?php do_action( 'bbp_theme_before_reply_author_details' ); ?> 31 30 32 <?php bbp_reply_author_link( array( 'sep' => '', 'show_role' => false, 'size' => 100 ) ); ?> 31 <?php 32 bbp_reply_author_link( 33 array( 34 'sep' => '', 35 'show_role' => false, 36 'size' => 100, 37 ) 38 ); 39 ?> 33 40 34 <?php bbp_user_nicename( bbp_get_reply_author_id(), array( 'before' => '<p class="bbp-user-nicename">(@', 'after' => ')</p>' ) ); ?> 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 ?> 35 50 36 51 <?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
r5637 r7813 1 <?php 2 /** 3 * Topics Loop - Single 4 * 5 * @package bbPress 6 * @subpackage Theme 7 */ 8 9 // Exit if accessed directly 10 defined( 'ABSPATH' ) || exit; 11 12 ?> 13 1 14 <ul id="bbp-topic-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> 2 15 … … 11 24 <?php do_action( 'bbp_theme_before_topic_favorites_action' ); ?> 12 25 13 <?php bbp_user_favorites_link( array( 'before' => '', 'favorite' => '+', 'favorited' => '×' ) ); ?> 26 <?php 27 bbp_user_favorites_link( 28 array( 29 'before' => '', 30 'favorite' => '+', 31 'favorited' => '×', 32 ) 33 ); 34 ?> 14 35 15 36 <?php do_action( 'bbp_theme_after_topic_favorites_action' ); ?> … … 23 44 <?php do_action( 'bbp_theme_before_topic_subscription_action' ); ?> 24 45 25 <?php bbp_user_subscribe_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '×' ) ); ?> 46 <?php 47 bbp_user_subscribe_link( 48 array( 49 'before' => '', 50 'subscribe' => '+', 51 'unsubscribe' => '×', 52 ) 53 ); 54 ?> 26 55 27 56 <?php do_action( 'bbp_theme_after_topic_subscription_action' ); ?> … … 47 76 <?php do_action( 'bbp_theme_before_topic_started_by' ); ?> 48 77 49 <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'wporg-forums' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>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> 50 79 51 80 <?php do_action( 'bbp_theme_after_topic_started_by' ); ?> 52 81 53 <?php if ( 82 <?php 83 if ( 54 84 ( bbp_is_single_view() && ! wporg_support_is_compat_view() ) 55 85 || … … 57 87 || 58 88 bbp_is_single_user_topics() 59 ) : ?> 89 ) : 90 ?> 60 91 61 92 <?php do_action( 'bbp_theme_before_topic_started_in' ); ?> 62 93 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>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> 64 95 65 96 <?php do_action( 'bbp_theme_after_topic_started_in' ); ?> … … 91 122 <?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?> 92 123 93 <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span> 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> 94 134 95 135 <?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
r5637 r7813 1 1 <?php 2 3 2 /** 4 3 * User Details … … 23 22 <div id="bbp-user-navigation"> 24 23 <ul> 25 <li class="<?php if ( bbp_is_single_user_profile() ) :?>current<?php endif; ?>"> 24 <li class=" 25 <?php 26 if ( bbp_is_single_user_profile() ) : 27 ?> 28 current<?php endif; ?>"> 26 29 <span class="vcard bbp-user-profile-link"> 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> 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> 31 36 </span> 32 37 </li> 33 38 34 <li class="<?php if ( bbp_is_single_user_topics() ) :?>current<?php endif; ?>"> 39 <li class=" 40 <?php 41 if ( bbp_is_single_user_topics() ) : 42 ?> 43 current<?php endif; ?>"> 35 44 <span class='bbp-user-topics-created-link'> 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> 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> 40 51 </span> 41 52 </li> 42 53 43 <li class="<?php if ( bbp_is_single_user_replies() ) :?>current<?php endif; ?>"> 54 <li class=" 55 <?php 56 if ( bbp_is_single_user_replies() ) : 57 ?> 58 current<?php endif; ?>"> 44 59 <span class='bbp-user-replies-created-link'> 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> 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> 49 66 </span> 50 67 </li> 51 68 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; ?>"> 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; ?>"> 54 75 <span class='bbp-user-reviews-link'> 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> 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> 59 82 </span> 60 83 </li> 61 84 <?php endif; ?> 62 85 63 <li class="<?php if ( wporg_support_is_single_user_topics_replied_to() ) :?>current<?php endif; ?>"> 86 <li class=" 87 <?php 88 if ( wporg_support_is_single_user_topics_replied_to() ) : 89 ?> 90 current<?php endif; ?>"> 64 91 <span class='bbp-user-topics-replied-to-link'> 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> 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> 69 98 </span> 70 99 </li> 71 100 72 101 <?php if ( function_exists( 'bbp_is_engagements_active' ) && bbp_is_engagements_active() ) : ?> 73 <li class="<?php if ( bbp_is_single_user_engagements() ) :?>current<?php endif; ?>"> 102 <li class=" 103 <?php 104 if ( bbp_is_single_user_engagements() ) : 105 ?> 106 current<?php endif; ?>"> 74 107 <span class='bbp-user-engagements-created-link'> 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> 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> 79 114 </span> 80 115 </li> … … 82 117 83 118 <?php if ( bbp_is_favorites_active() ) : ?> 84 <li class="<?php if ( bbp_is_favorites() ) :?>current<?php endif; ?>"> 119 <li class=" 120 <?php 121 if ( bbp_is_favorites() ) : 122 ?> 123 current<?php endif; ?>"> 85 124 <span class="bbp-user-favorites-link"> 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> 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> 90 131 </span> 91 132 </li> … … 95 136 96 137 <?php if ( bbp_is_subscriptions_active() ) : ?> 97 <li class="<?php if ( bbp_is_subscriptions() ) :?>current<?php endif; ?>"> 138 <li class=" 139 <?php 140 if ( bbp_is_subscriptions() ) : 141 ?> 142 current<?php endif; ?>"> 98 143 <span class="bbp-user-subscriptions-link"> 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> 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> 103 150 </span> 104 151 </li> 105 152 <?php endif; ?> 106 153 107 <li class="<?php if ( bbp_is_single_user_edit() ) :?>current<?php endif; ?>"> 154 <li class=" 155 <?php 156 if ( bbp_is_single_user_edit() ) : 157 ?> 158 current<?php endif; ?>"> 108 159 <span class="bbp-user-edit-link"> 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> 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> 113 166 </span> 114 167 </li> … … 123 176 </div> 124 177 125 <?php do_action( 'bbp_template_after_user_details' ); 178 <?php 179 do_action( 'bbp_template_after_user_details' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-profile.php
r5651 r7813 1 1 <?php 2 3 2 /** 4 3 * User Profile … … 12 11 <div id="bbp-user-profile" class="bbp-user-profile"> 13 12 <h2 class="entry-title"><?php esc_html_e( 'Profile', 'wporg-forums' ); ?></h2> 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 ); 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 ); 21 21 22 23 24 25 26 27 28 29 mysql2date(__( 'F j, Y', 'wporg-forums' ), $moderation_date ),30 31 mysql2date(__( 'g:i a', 'wporg-forums' ), $moderation_date )32 33 34 35 36 37 38 39 40 $msg =__( 'This user has been flagged.', 'wporg-forums' );41 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 ) 32 ); 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 } 42 42 43 printf( 44 '<div class="bbp-template-notice warning"><p>%s</p></div>', 45 $msg 46 ); 47 } 43 printf( 44 '<div class="bbp-template-notice warning"><p>%s</p></div>', 45 $msg 46 ); 48 47 } 49 ?> 48 } 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"><?php 59 <p class="bbp-user-email"> 60 <?php 60 61 /* translators: %s: user's email address */ 61 62 printf( esc_html__( 'Email: %s', 'wporg-forums' ), bbp_get_displayed_user_field( 'user_email' ) ); 62 ?></p> 63 ?> 64 </p> 63 65 64 66 <?php endif; ?> 65 67 66 <p class="bbp-user-wporg-profile"><?php 68 <p class="bbp-user-wporg-profile"> 69 <?php 67 70 $user_nicename = bbp_get_displayed_user_field( 'user_nicename' ); 68 71 $slack_username = wporg_support_get_slack_username(); 69 72 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> 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> 90 97 91 98 <?php if ( $custom_title = get_user_option( 'title', bbp_get_displayed_user_id() ) ) : ?> 92 93 <p class="bbp-user-custom-title"><?php 99 100 <p class="bbp-user-custom-title"> 101 <?php 94 102 /* translators: %s: user's custom title */ 95 103 printf( esc_html__( 'Title: %s', 'wporg-forums' ), esc_html( $custom_title ) ); 96 ?></p> 97 104 ?> 105 </p> 106 98 107 <?php endif; ?> 99 108 100 <p class="bbp-user-forum-role"><?php 109 <p class="bbp-user-forum-role"> 110 <?php 101 111 /* translators: %s: user's forum role */ 102 112 printf( esc_html__( 'Forum Role: %s', 'wporg-forums' ), bbp_get_user_display_role() ); 103 ?></p> 113 ?> 114 </p> 104 115 105 116 <?php if ( is_user_logged_in() && $website = bbp_get_displayed_user_field( 'user_url' ) ) : ?> 106 107 <p class="bbp-user-website"><?php 108 /* translators: %s: link to user's website */ 117 118 <p class="bbp-user-website"> 119 <?php 120 /* translators: %s: link to user's website */ 109 121 printf( esc_html__( 'Website: %s', 'wporg-forums' ), sprintf( '<a href="%s">%s</a>', esc_url( $website ), esc_html( $website ) ) ); 110 ?></p> 111 122 ?> 123 </p> 124 112 125 <?php endif; ?> 113 126 114 <p class="bbp-user-member-since"><?php 127 <p class="bbp-user-member-since"> 128 <?php 115 129 /* translators: %s: user's registration date */ 116 130 printf( esc_html__( 'Member Since: %s', 'wporg-forums' ), wporg_support_get_user_registered_date() ); 117 ?></p> 131 ?> 132 </p> 118 133 119 <p class="bbp-user-topic-count"><?php 134 <p class="bbp-user-topic-count"> 135 <?php 120 136 /* translators: %s: number of user's topics */ 121 137 printf( esc_html__( 'Topics Started: %s', 'wporg-forums' ), number_format_i18n( wporg_support_get_user_topics_count() ) ); 122 ?></p> 138 ?> 139 </p> 123 140 124 <p class="bbp-user-reply-count"><?php 141 <p class="bbp-user-reply-count"> 142 <?php 125 143 /* translators: %s: number of user's replies */ 126 144 printf( esc_html__( 'Replies Created: %s', 'wporg-forums' ), number_format_i18n( bbp_get_user_reply_count_raw() ) ); 127 ?></p> 145 ?> 146 </p> 128 147 129 <?php if ( defined( 'WPORG_SUPPORT_FORUMS_BLOGID' ) && WPORG_SUPPORT_FORUMS_BLOGID == get_current_blog_id() ) : ?> 130 <p class="bbp-user-review-count"><?php 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 131 151 /* translators: %s: number of user's reviews */ 132 152 printf( esc_html__( 'Reviews Written: %s', 'wporg-forums' ), number_format_i18n( wporg_support_get_user_reviews_count() ) ); 133 ?></p> 153 ?> 154 </p> 134 155 <?php endif; ?> 135 156 </div> 136 157 </div><!-- #bbp-author-topics-started --> 137 158 138 <?php do_action( 'bbp_template_after_user_profile' ); 159 <?php 160 do_action( 'bbp_template_after_user_profile' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-reviews-written.php
r5626 r7813 1 1 <?php 2 3 2 /** 4 3 * User Reviews Written … … 18 17 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 19 18 20 <?php bbp_get_template_part( 'loop', 19 <?php bbp_get_template_part( 'loop', 'topics' ); ?> 21 20 22 21 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> … … 24 23 <?php else : ?> 25 24 26 <p><?php bbp_is_user_home() 27 ? esc_html_e( 'You have not written any reviews.', 'wporg-forums' ) 25 <p> 26 <?php 27 bbp_is_user_home() 28 ? esc_html_e( 'You have not written any reviews.', 'wporg-forums' ) 28 29 : esc_html_e( 'This user has not written any reviews.', 'wporg-forums' ); 29 ?></p> 30 ?> 31 </p> 30 32 31 33 <?php endif; ?> … … 34 36 </div><!-- #bbp-user-reviews-written --> 35 37 36 <?php do_action( 'bbp_template_after_user_reviews_written' ); 38 <?php 39 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
r5626 r7813 1 1 <?php 2 3 2 /** 4 3 * User Topics Replied To … … 18 17 <?php bbp_get_template_part( 'pagination', 'replies' ); ?> 19 18 20 <?php bbp_get_template_part( 'loop', 19 <?php bbp_get_template_part( 'loop', 'reply-topics' ); ?> 21 20 22 21 <?php bbp_get_template_part( 'pagination', 'replies' ); ?> … … 24 23 <?php else : ?> 25 24 26 <p><?php bbp_is_user_home() 27 ? esc_html_e( 'You have not replied to any topics.', 'wporg-forums' ) 25 <p> 26 <?php 27 bbp_is_user_home() 28 ? esc_html_e( 'You have not replied to any topics.', 'wporg-forums' ) 28 29 : esc_html_e( 'This user has not replied to any topics.', 'wporg-forums' ); 29 ?></p> 30 ?> 31 </p> 30 32 31 33 <?php endif; ?> … … 34 36 </div><!-- #bbp-user-topics-replied-to --> 35 37 36 <?php do_action( 'bbp_template_after_user_topics_replied_to' ); 38 <?php 39 do_action( 'bbp_template_after_user_topics_replied_to' );
Note: See TracChangeset
for help on using the changeset viewer.