| @@ -26,32 +26,20 @@ | ||
| 26 | 26 | |
| 27 | 27 | <?php do_action( 'bbp_theme_before_reply_form' ); ?> |
| 28 | 28 | |
| 29 | 29 | <fieldset class="bbp-form"> |
| 30 | - <legend> | |
| 31 | - <?php | |
| 32 | - if ( bbp_get_form_reply_to() ) { | |
| 33 | - | |
| 34 | - printf( | |
| 35 | - /* translators: %s: Reply reference (includes reply number and topic title) */ | |
| 36 | - esc_html__( 'Reply To: %s', 'bbpress' ), | |
| 30 | + <legend><?php printf( | |
| 31 | + /* translators: %s: Reply reference (includes reply number and topic title) */ | |
| 32 | + esc_html__( 'Reply To: %s', 'bbpress' ), | |
| 33 | + ( bbp_get_form_reply_to() ) ? | |
| 37 | 34 | sprintf( |
| 38 | 35 | /* translators: 1: Reply number, 2: Topic title */ |
| 39 | 36 | esc_html__( 'Reply #%1$s in %2$s', 'bbpress' ), |
| 40 | 37 | bbp_get_form_reply_to(), |
| 41 | 38 | bbp_get_topic_title() |
| 42 | - ) | |
| 43 | - ); | |
| 44 | - } else { | |
| 45 | - | |
| 46 | - printf( | |
| 47 | - /* translators: %s: Topic title */ | |
| 48 | - esc_html__( 'Reply To: %s', 'bbpress' ), | |
| 39 | + ) : | |
| 49 | 40 | bbp_get_topic_title() |
| 50 | - ); | |
| 51 | - } | |
| 52 | - ?> | |
| 53 | - </legend> | |
| 41 | + ); ?></legend> | |
| 54 | 42 | |
| 55 | 43 | <?php do_action( 'bbp_theme_before_reply_form_notices' ); ?> |
| 56 | 44 | |
| 57 | 45 | <?php if ( ! bbp_is_topic_open() && ! bbp_is_reply_edit() ) : ?> |
| @@ -212,17 +200,13 @@ | ||
| 212 | 200 | |
| 213 | 201 | <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply"> |
| 214 | 202 | <div class="bbp-template-notice"> |
| 215 | 203 | <ul> |
| 216 | - <li> | |
| 217 | - <?php | |
| 218 | - printf( | |
| 204 | + <li><?php printf( | |
| 219 | 205 | /* translators: %s: Topic title */ |
| 220 | - esc_html__( 'The topic ‘%s’ is closed to new replies.', 'bbpress' ), | |
| 221 | - bbp_get_topic_title() | |
| 222 | - ); | |
| 223 | - ?> | |
| 224 | - </li> | |
| 206 | + esc_html__( 'The topic ‘%s’ is closed to new replies.', 'bbpress' ), | |
| 207 | + bbp_get_topic_title() | |
| 208 | + ); ?></li> | |
| 225 | 209 | </ul> |
| 226 | 210 | </div> |
| 227 | 211 | </div> |
| 228 | 212 | |
| @@ -230,17 +214,13 @@ | ||
| 230 | 214 | |
| 231 | 215 | <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply"> |
| 232 | 216 | <div class="bbp-template-notice"> |
| 233 | 217 | <ul> |
| 234 | - <li> | |
| 235 | - <?php | |
| 236 | - printf( | |
| 218 | + <li><?php printf( | |
| 237 | 219 | /* translators: %s: Forum title */ |
| 238 | - esc_html__( 'The forum ‘%s’ is closed to new topics and replies.', 'bbpress' ), | |
| 239 | - bbp_get_forum_title( bbp_get_topic_forum_id() ) | |
| 240 | - ); | |
| 241 | - ?> | |
| 242 | - </li> | |
| 220 | + esc_html__( 'The forum ‘%s’ is closed to new topics and replies.', 'bbpress' ), | |
| 221 | + bbp_get_forum_title( bbp_get_topic_forum_id() ) | |
| 222 | + ); ?></li> | |
| 243 | 223 | </ul> |
| 244 | 224 | </div> |
| 245 | 225 | </div> |
| 246 | 226 | |