Changeset 7818 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-topic-merge.php
- Timestamp:
- 11/01/2018 11:00:00 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.