Ticket #2633: 2633.diff
| File 2633.diff, 47.2 KB (added by , 12 years ago) |
|---|
-
src/includes/common/template.php
1272 1272 * 1273 1273 * @since bbPress (r2810) 1274 1274 * 1275 * @todo Depricate the function or not? tab indexes removed as part of ticket #XXXX 1276 * 1275 1277 * @param int $auto_increment Optional. Default true. Set to false to prevent 1276 1278 * increment 1277 1279 */ … … 1288 1290 * 1289 1291 * @since bbPress (r2810) 1290 1292 * 1293 * @todo Depricate the function or not? tab indexes removed as part of ticket #XXXX 1294 * 1291 1295 * @uses apply_filters Allows return value to be filtered 1292 1296 * @param int $auto_increment Optional. Default true. Set to false to 1293 1297 * prevent the increment … … 1338 1342 * - walker: Which walker to use? Defaults to 1339 1343 * {@link BBP_Walker_Dropdown} 1340 1344 * - select_id: ID of the select box. Defaults to 'bbp_forum_id' 1341 * - tab: Tabindex value. False or integer1342 1345 * - options_only: Show only <options>? No <select>? 1343 1346 * - show_none: Boolean or String __( '(No Forum)', 'bbpress' ) 1344 1347 * - disable_categories: Disable forum categories and closed forums? … … 1378 1381 1379 1382 // Output-related 1380 1383 'select_id' => 'bbp_forum_id', 1381 'tab' => bbp_get_tab_index(),1382 1384 'options_only' => false, 1383 1385 'show_none' => false, 1384 1386 'disable_categories' => true, … … 1416 1418 'numberposts' => $r['numberposts'], 1417 1419 'orderby' => $r['orderby'], 1418 1420 'order' => $r['order'], 1419 ) ); 1421 ) ); 1420 1422 } 1421 1423 1422 1424 /** Drop Down *********************************************************/ … … 1427 1429 // Should this select appear disabled? 1428 1430 $disabled = disabled( isset( bbpress()->options[ $r['disabled'] ] ), true, false ); 1429 1431 1430 // Setup the tab index attribute1431 $tab = !empty( $r['tab'] ) ? ' tabindex="' . intval( $r['tab'] ) . '"' : '';1432 1433 1432 // Open the select tag 1434 $retval .= '<select name="' . esc_attr( $r['select_id'] ) . '" id="' . esc_attr( $r['select_id'] ) . '"' . $disabled . $tab .'>' . "\n";1433 $retval .= '<select name="' . esc_attr( $r['select_id'] ) . '" id="' . esc_attr( $r['select_id'] ) . '"' . $disabled . '>' . "\n"; 1435 1434 } 1436 1435 1437 1436 // Display a leading 'no-value' option, with or without custom text … … 1730 1729 'wpautop' => true, 1731 1730 'media_buttons' => false, 1732 1731 'textarea_rows' => '12', 1733 'tabindex' => bbp_get_tab_index(),1734 'tabfocus_elements' => 'bbp_topic_title,bbp_topic_tags',1735 1732 'editor_class' => 'bbp-the-content', 1736 1733 'tinymce' => false, 1737 1734 'teeny' => true, … … 1771 1768 'wpautop' => $r['wpautop'], 1772 1769 'media_buttons' => $r['media_buttons'], 1773 1770 'textarea_rows' => $r['textarea_rows'], 1774 'tabindex' => $r['tabindex'],1775 'tabfocus_elements' => $r['tabfocus_elements'],1776 1771 'editor_class' => $r['editor_class'], 1777 1772 'tinymce' => $r['tinymce'], 1778 1773 'teeny' => $r['teeny'], … … 1794 1789 */ 1795 1790 else : ?> 1796 1791 1797 <textarea id="bbp_<?php echo esc_attr( $r['context'] ); ?>_content" class="<?php echo esc_attr( $r['editor_class'] ); ?>" name="bbp_<?php echo esc_attr( $r['context'] ); ?>_content" cols="60" rows="<?php echo esc_attr( $r['textarea_rows'] ); ?>" tabindex="<?php echo esc_attr( $r['tabindex'] ); ?>"><?php echo $post_content; ?></textarea>1792 <textarea id="bbp_<?php echo esc_attr( $r['context'] ); ?>_content" class="<?php echo esc_attr( $r['editor_class'] ); ?>" name="bbp_<?php echo esc_attr( $r['context'] ); ?>_content" cols="60" rows="<?php echo esc_attr( $r['textarea_rows'] ); ?>" ><?php echo $post_content; ?></textarea> 1798 1793 1799 1794 <?php endif; 1800 1795 … … 1828 1823 } 1829 1824 } 1830 1825 1831 // Add the tabfocus plugin1832 $plugins[] = 'tabfocus';1833 1834 1826 return apply_filters( 'bbp_get_tiny_mce_plugins', $plugins ); 1835 1827 } 1836 1828 -
src/includes/common/widgets.php
90 90 91 91 <div class="bbp-username"> 92 92 <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label> 93 <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>"/>93 <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" /> 94 94 </div> 95 95 96 96 <div class="bbp-password"> 97 97 <label for="user_pass"><?php _e( 'Password', 'bbpress' ); ?>: </label> 98 <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" tabindex="<?php bbp_tab_index(); ?>"/>98 <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" /> 99 99 </div> 100 100 101 101 <div class="bbp-remember-me"> 102 <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ), true, true ); ?> id="rememberme" tabindex="<?php bbp_tab_index(); ?>"/>102 <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ), true, true ); ?> id="rememberme" /> 103 103 <label for="rememberme"><?php _e( 'Remember Me', 'bbpress' ); ?></label> 104 104 </div> 105 105 … … 107 107 108 108 <?php do_action( 'login_form' ); ?> 109 109 110 <button type="submit" name="user-submit" id="user-submit" tabindex="<?php bbp_tab_index(); ?>"class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button>110 <button type="submit" name="user-submit" id="user-submit" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button> 111 111 112 112 <?php bbp_user_login_fields(); ?> 113 113 -
src/includes/forums/template.php
2226 2226 2227 2227 return apply_filters( 'bbp_get_form_forum_visibility', esc_attr( $forum_visibility ) ); 2228 2228 } 2229 2229 2230 2230 /** 2231 2231 * Output checked value of forum subscription 2232 2232 * … … 2324 2324 // Parse arguments against default values 2325 2325 $r = bbp_parse_args( $args, array( 2326 2326 'select_id' => 'bbp_forum_type', 2327 'tab' => bbp_get_tab_index(),2328 2327 'forum_id' => $forum_id, 2329 2328 'selected' => false 2330 2329 ), 'forum_type_select' ); … … 2351 2350 } 2352 2351 } 2353 2352 2354 // Used variables2355 $tab = ! empty( $r['tab'] ) ? ' tabindex="' . (int) $r['tab'] . '"' : '';2356 2357 2353 // Start an output buffer, we'll finish it after the select loop 2358 2354 ob_start(); ?> 2359 2355 2360 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ) ?>_select" <?php echo $tab; ?>>2356 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ) ?>_select"> 2361 2357 2362 2358 <?php foreach ( bbp_get_forum_types() as $key => $label ) : ?> 2363 2359 … … 2408 2404 // Parse arguments against default values 2409 2405 $r = bbp_parse_args( $args, array( 2410 2406 'select_id' => 'bbp_forum_status', 2411 'tab' => bbp_get_tab_index(),2412 2407 'forum_id' => $forum_id, 2413 2408 'selected' => false 2414 2409 ), 'forum_status_select' ); … … 2435 2430 } 2436 2431 } 2437 2432 2438 // Used variables2439 $tab = ! empty( $r['tab'] ) ? ' tabindex="' . (int) $r['tab'] . '"' : '';2440 2441 2433 // Start an output buffer, we'll finish it after the select loop 2442 2434 ob_start(); ?> 2443 2435 2444 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ) ?>_select" <?php echo $tab; ?>>2436 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ) ?>_select"> 2445 2437 2446 2438 <?php foreach ( bbp_get_forum_statuses() as $key => $label ) : ?> 2447 2439 … … 2492 2484 // Parse arguments against default values 2493 2485 $r = bbp_parse_args( $args, array( 2494 2486 'select_id' => 'bbp_forum_visibility', 2495 'tab' => bbp_get_tab_index(),2496 2487 'forum_id' => $forum_id, 2497 2488 'selected' => false 2498 2489 ), 'forum_type_select' ); … … 2519 2510 } 2520 2511 } 2521 2512 2522 // Used variables2523 $tab = ! empty( $r['tab'] ) ? ' tabindex="' . (int) $r['tab'] . '"' : '';2524 2525 2513 // Start an output buffer, we'll finish it after the select loop 2526 2514 ob_start(); ?> 2527 2515 2528 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ) ?>_select" <?php echo $tab; ?>>2516 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ) ?>_select"> 2529 2517 2530 2518 <?php foreach ( bbp_get_forum_visibilities() as $key => $label ) : ?> 2531 2519 -
src/includes/replies/template.php
2630 2630 * 2631 2631 * @param $args This function supports these arguments: 2632 2632 * - select_id: Select id. Defaults to bbp_reply_status 2633 * - tab: Tabindex2634 2633 * - reply_id: Reply id 2635 2634 * - selected: Override the selected option 2636 2635 */ … … 2648 2647 * 2649 2648 * @param $args This function supports these arguments: 2650 2649 * - select_id: Select id. Defaults to bbp_reply_status 2651 * - tab: Tabindex2652 2650 * - topic_id: Reply id 2653 2651 * - selected: Override the selected option 2654 2652 */ … … 2657 2655 // Parse arguments against default values 2658 2656 $r = bbp_parse_args( $args, array( 2659 2657 'select_id' => 'bbp_reply_status', 2660 'tab' => bbp_get_tab_index(),2661 2658 'reply_id' => 0, 2662 2659 'selected' => false 2663 2660 ), 'reply_status_dropdown' ); … … 2684 2681 } 2685 2682 } 2686 2683 2687 // Used variables2688 $tab = ! empty( $r['tab'] ) ? ' tabindex="' . (int) $r['tab'] . '"' : '';2689 2690 2684 // Start an output buffer, we'll finish it after the select loop 2691 2685 ob_start(); ?> 2692 2686 2693 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select" <?php echo $tab; ?>>2687 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select"> 2694 2688 2695 2689 <?php foreach ( bbp_get_reply_statuses( $r['topic_id'] ) as $key => $label ) : ?> 2696 2690 -
src/includes/topics/template.php
3087 3087 * 3088 3088 * @param $args This function supports these arguments: 3089 3089 * - select_id: Select id. Defaults to bbp_stick_topic 3090 * - tab: Tabindex3091 3090 * - topic_id: Topic id 3092 3091 * - selected: Override the selected option 3093 3092 */ … … 3101 3100 * 3102 3101 * @param $args This function supports these arguments: 3103 3102 * - select_id: Select id. Defaults to bbp_stick_topic 3104 * - tab: Tabindex3105 3103 * - topic_id: Topic id 3106 3104 * - selected: Override the selected option 3107 3105 * @uses bbp_get_topic_id() To get the topic id … … 3115 3113 // Parse arguments against default values 3116 3114 $r = bbp_parse_args( $args, array( 3117 3115 'select_id' => 'bbp_stick_topic', 3118 'tab' => bbp_get_tab_index(),3119 3116 'topic_id' => 0, 3120 3117 'selected' => false 3121 3118 ), 'topic_type_select' ); … … 3148 3145 } 3149 3146 } 3150 3147 3151 // Used variables3152 $tab = !empty( $r['tab'] ) ? ' tabindex="' . (int) $r['tab'] . '"' : '';3153 3154 3148 // Start an output buffer, we'll finish it after the select loop 3155 3149 ob_start(); ?> 3156 3150 3157 <select name="<?php echo esc_attr( $r['select_id'] ); ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select" <?php echo $tab; ?>>3151 <select name="<?php echo esc_attr( $r['select_id'] ); ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select"> 3158 3152 3159 3153 <?php foreach ( bbp_get_topic_types() as $key => $label ) : ?> 3160 3154 … … 3191 3185 * 3192 3186 * @param $args This function supports these arguments: 3193 3187 * - select_id: Select id. Defaults to bbp_open_close_topic 3194 * - tab: Tabindex3195 3188 * - topic_id: Topic id 3196 3189 * - selected: Override the selected option 3197 3190 */ … … 3200 3193 // Parse arguments against default values 3201 3194 $r = bbp_parse_args( $args, array( 3202 3195 'select_id' => 'bbp_topic_status', 3203 'tab' => bbp_get_tab_index(),3204 3196 'topic_id' => 0, 3205 3197 'selected' => false 3206 3198 ), 'topic_open_close_select' ); … … 3227 3219 } 3228 3220 } 3229 3221 3230 // Used variables3231 $tab = ! empty( $r['tab'] ) ? ' tabindex="' . (int) $r['tab'] . '"' : '';3232 3233 3222 // Start an output buffer, we'll finish it after the select loop 3234 3223 ob_start(); ?> 3235 3224 3236 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select" <?php echo $tab; ?>>3225 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select"> 3237 3226 3238 3227 <?php foreach ( bbp_get_topic_statuses( $r['topic_id'] ) as $key => $label ) : ?> 3239 3228 -
src/templates/default/bbpress/form-anonymous.php
20 20 21 21 <p> 22 22 <label for="bbp_anonymous_author"><?php _e( 'Name (required):', 'bbpress' ); ?></label><br /> 23 <input type="text" id="bbp_anonymous_author" value="<?php bbp_author_display_name(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_anonymous_name" />23 <input type="text" id="bbp_anonymous_author" value="<?php bbp_author_display_name(); ?>" size="40" name="bbp_anonymous_name" /> 24 24 </p> 25 25 26 26 <p> 27 27 <label for="bbp_anonymous_email"><?php _e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br /> 28 <input type="text" id="bbp_anonymous_email" value="<?php bbp_author_email(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_anonymous_email" />28 <input type="text" id="bbp_anonymous_email" value="<?php bbp_author_email(); ?>" size="40" name="bbp_anonymous_email" /> 29 29 </p> 30 30 31 31 <p> 32 32 <label for="bbp_anonymous_website"><?php _e( 'Website:', 'bbpress' ); ?></label><br /> 33 <input type="text" id="bbp_anonymous_website" value="<?php bbp_author_url(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_anonymous_website" />33 <input type="text" id="bbp_anonymous_website" value="<?php bbp_author_url(); ?>" size="40" name="bbp_anonymous_website" /> 34 34 </p> 35 35 36 36 <?php do_action( 'bbp_theme_anonymous_form_extras_bottom' ); ?> -
src/templates/default/bbpress/form-forum.php
65 65 66 66 <p> 67 67 <label for="bbp_forum_title"><?php printf( __( 'Forum Name (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br /> 68 <input type="text" id="bbp_forum_title" value="<?php bbp_form_forum_title(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_forum_title" maxlength="<?php bbp_title_max_length(); ?>" />68 <input type="text" id="bbp_forum_title" value="<?php bbp_form_forum_title(); ?>" size="40" name="bbp_forum_title" maxlength="<?php bbp_title_max_length(); ?>" /> 69 69 </p> 70 70 71 71 <?php do_action( 'bbp_theme_after_forum_form_title' ); ?> … … 135 135 136 136 <?php do_action( 'bbp_theme_before_forum_form_submit_button' ); ?> 137 137 138 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_forum_submit" name="bbp_forum_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>138 <button type="submit" id="bbp_forum_submit" name="bbp_forum_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 139 139 140 140 <?php do_action( 'bbp_theme_after_forum_form_submit_button' ); ?> 141 141 -
src/templates/default/bbpress/form-reply-move.php
37 37 <legend><?php _e( 'Move Method', 'bbpress' ); ?></legend> 38 38 39 39 <div> 40 <input name="bbp_reply_move_option" id="bbp_reply_move_option_reply" type="radio" checked="checked" value="topic" tabindex="<?php bbp_tab_index(); ?>"/>40 <input name="bbp_reply_move_option" id="bbp_reply_move_option_reply" type="radio" checked="checked" value="topic" /> 41 41 <label for="bbp_reply_move_option_reply"><?php printf( __( 'New topic in <strong>%s</strong> titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_reply_forum_id( bbp_get_reply_id() ) ) ); ?></label> 42 <input type="text" id="bbp_reply_move_destination_title" value="<?php printf( __( 'Moved: %s', 'bbpress' ), bbp_get_reply_title() ); ?>" tabindex="<?php bbp_tab_index(); ?>"size="35" name="bbp_reply_move_destination_title" />42 <input type="text" id="bbp_reply_move_destination_title" value="<?php printf( __( 'Moved: %s', 'bbpress' ), bbp_get_reply_title() ); ?>" size="35" name="bbp_reply_move_destination_title" /> 43 43 </div> 44 44 45 45 <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_reply_forum_id( bbp_get_reply_id() ), 'post__not_in' => array( bbp_get_reply_topic_id( bbp_get_reply_id() ) ) ) ) ) : ?> 46 46 47 47 <div> 48 <input name="bbp_reply_move_option" id="bbp_reply_move_option_existing" type="radio" value="existing" tabindex="<?php bbp_tab_index(); ?>"/>48 <input name="bbp_reply_move_option" id="bbp_reply_move_option_existing" type="radio" value="existing" /> 49 49 <label for="bbp_reply_move_option_existing"><?php _e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label> 50 50 51 51 <?php … … 69 69 </div> 70 70 71 71 <div class="bbp-submit-wrapper"> 72 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_move_reply_submit" name="bbp_move_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>72 <button type="submit" id="bbp_move_reply_submit" name="bbp_move_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 73 73 </div> 74 74 </div> 75 75 -
src/templates/default/bbpress/form-reply.php
73 73 74 74 <p> 75 75 <label for="bbp_topic_tags"><?php _e( 'Tags:', 'bbpress' ); ?></label><br /> 76 <input type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />76 <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> /> 77 77 </p> 78 78 79 79 <?php do_action( 'bbp_theme_after_reply_form_tags' ); ?> … … 86 86 87 87 <p> 88 88 89 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>"/>89 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> /> 90 90 91 91 <?php if ( bbp_is_reply_edit() && ( bbp_get_reply_author_id() !== bbp_get_current_user_id() ) ) : ?> 92 92 … … 125 125 126 126 <fieldset class="bbp-form"> 127 127 <legend> 128 <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>"/>128 <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> /> 129 129 <label for="bbp_log_reply_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br /> 130 130 </legend> 131 131 132 132 <div> 133 133 <label for="bbp_reply_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br /> 134 <input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />134 <input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" /> 135 135 </div> 136 136 </fieldset> 137 137 … … 149 149 150 150 <?php bbp_cancel_reply_to_link(); ?> 151 151 152 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>152 <button type="submit" id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 153 153 154 154 <?php do_action( 'bbp_theme_after_reply_form_submit_button' ); ?> 155 155 -
src/templates/default/bbpress/form-search.php
1 1 <?php 2 2 3 3 /** 4 * Search 4 * Search 5 5 * 6 6 * @package bbPress 7 7 * @subpackage Theme … … 13 13 <div> 14 14 <label class="screen-reader-text hidden" for="bbp_search"><?php _e( 'Search for:', 'bbpress' ); ?></label> 15 15 <input type="hidden" name="action" value="bbp-search-request" /> 16 <input t abindex="<?php bbp_tab_index(); ?>" type="text" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" id="bbp_search" />17 <input tabindex="<?php bbp_tab_index(); ?>"class="button" type="submit" id="bbp_search_submit" value="<?php esc_attr_e( 'Search', 'bbpress' ); ?>" />16 <input type="text" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" id="bbp_search" /> 17 <input class="button" type="submit" id="bbp_search_submit" value="<?php esc_attr_e( 'Search', 'bbpress' ); ?>" /> 18 18 </div> 19 19 </form> -
src/templates/default/bbpress/form-topic-merge.php
68 68 69 69 <?php if ( bbp_is_subscriptions_active() ) : ?> 70 70 71 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>"/>71 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" /> 72 72 <label for="bbp_topic_subscribers"><?php _e( 'Merge topic subscribers', 'bbpress' ); ?></label><br /> 73 73 74 74 <?php endif; ?> 75 75 76 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>"/>76 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" /> 77 77 <label for="bbp_topic_favoriters"><?php _e( 'Merge topic favoriters', 'bbpress' ); ?></label><br /> 78 78 79 79 <?php if ( bbp_allow_topic_tags() ) : ?> 80 80 81 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>"/>81 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" /> 82 82 <label for="bbp_topic_tags"><?php _e( 'Merge topic tags', 'bbpress' ); ?></label><br /> 83 83 84 84 <?php endif; ?> … … 91 91 </div> 92 92 93 93 <div class="bbp-submit-wrapper"> 94 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>94 <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 95 95 </div> 96 96 </div> 97 97 -
src/templates/default/bbpress/form-topic-split.php
37 37 <legend><?php _e( 'Split Method', 'bbpress' ); ?></legend> 38 38 39 39 <div> 40 <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" tabindex="<?php bbp_tab_index(); ?>"/>40 <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" /> 41 41 <label for="bbp_topic_split_option_reply"><?php printf( __( 'New topic in <strong>%s</strong> titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ); ?></label> 42 <input type="text" id="bbp_topic_split_destination_title" value="<?php printf( __( 'Split: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" tabindex="<?php bbp_tab_index(); ?>"size="35" name="bbp_topic_split_destination_title" />42 <input type="text" id="bbp_topic_split_destination_title" value="<?php printf( __( 'Split: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" size="35" name="bbp_topic_split_destination_title" /> 43 43 </div> 44 44 45 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() ) ) ) ) : ?> 46 46 47 47 <div> 48 <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" tabindex="<?php bbp_tab_index(); ?>"/>48 <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" /> 49 49 <label for="bbp_topic_split_option_existing"><?php _e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label> 50 50 51 51 <?php … … 72 72 73 73 <?php if ( bbp_is_subscriptions_active() ) : ?> 74 74 75 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>"/>75 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" /> 76 76 <label for="bbp_topic_subscribers"><?php _e( 'Copy subscribers to the new topic', 'bbpress' ); ?></label><br /> 77 77 78 78 <?php endif; ?> 79 79 80 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>"/>80 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" /> 81 81 <label for="bbp_topic_favoriters"><?php _e( 'Copy favoriters to the new topic', 'bbpress' ); ?></label><br /> 82 82 83 83 <?php if ( bbp_allow_topic_tags() ) : ?> 84 84 85 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>"/>85 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" /> 86 86 <label for="bbp_topic_tags"><?php _e( 'Copy topic tags to the new topic', 'bbpress' ); ?></label><br /> 87 87 88 88 <?php endif; ?> … … 95 95 </div> 96 96 97 97 <div class="bbp-submit-wrapper"> 98 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>98 <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 99 99 </div> 100 100 </div> 101 101 -
src/templates/default/bbpress/form-topic-tag.php
33 33 34 34 <div> 35 35 <label for="tag-name"><?php _e( 'Name:', 'bbpress' ); ?></label> 36 <input type="text" id="tag-name" name="tag-name" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>"value="<?php echo esc_attr( bbp_get_topic_tag_name() ); ?>" />36 <input type="text" id="tag-name" name="tag-name" size="20" maxlength="40" value="<?php echo esc_attr( bbp_get_topic_tag_name() ); ?>" /> 37 37 </div> 38 38 39 39 <div> 40 40 <label for="tag-slug"><?php _e( 'Slug:', 'bbpress' ); ?></label> 41 <input type="text" id="tag-slug" name="tag-slug" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>"value="<?php echo esc_attr( apply_filters( 'editable_slug', bbp_get_topic_tag_slug() ) ); ?>" />41 <input type="text" id="tag-slug" name="tag-slug" size="20" maxlength="40" value="<?php echo esc_attr( apply_filters( 'editable_slug', bbp_get_topic_tag_slug() ) ); ?>" /> 42 42 </div> 43 43 44 44 <div> 45 45 <label for="tag-description"><?php _e( 'Description:', 'bbpress' ); ?></label> 46 <input type="text" id="tag-description" name="tag-description" size="20" tabindex="<?php bbp_tab_index(); ?>"value="<?php echo esc_attr( bbp_get_topic_tag_description( array( 'before' => '', 'after' => '' ) ) ); ?>" />46 <input type="text" id="tag-description" name="tag-description" size="20" value="<?php echo esc_attr( bbp_get_topic_tag_description( array( 'before' => '', 'after' => '' ) ) ); ?>" /> 47 47 </div> 48 48 49 49 <div class="bbp-submit-wrapper"> 50 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"class="button submit"><?php esc_attr_e( 'Update', 'bbpress' ); ?></button>50 <button type="submit" class="button submit"><?php esc_attr_e( 'Update', 'bbpress' ); ?></button> 51 51 52 52 <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" /> 53 53 <input type="hidden" name="action" value="bbp-update-topic-tag" /> … … 71 71 72 72 <div> 73 73 <label for="tag-existing-name"><?php _e( 'Existing tag:', 'bbpress' ); ?></label> 74 <input type="text" id="tag-existing-name" name="tag-existing-name" size="22" tabindex="<?php bbp_tab_index(); ?>"maxlength="40" />74 <input type="text" id="tag-existing-name" name="tag-existing-name" size="22" maxlength="40" /> 75 75 </div> 76 76 77 77 <div class="bbp-submit-wrapper"> 78 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to merge the "%s" tag into the tag you specified?', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Merge', 'bbpress' ); ?></button>78 <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to merge the "%s" tag into the tag you specified?', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Merge', 'bbpress' ); ?></button> 79 79 80 80 <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" /> 81 81 <input type="hidden" name="action" value="bbp-merge-topic-tag" /> … … 103 103 <form id="delete_tag" name="delete_tag" method="post" action="<?php the_permalink(); ?>"> 104 104 105 105 <div class="bbp-submit-wrapper"> 106 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to delete the "%s" tag? This is permanent and cannot be undone.', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Delete', 'bbpress' ); ?></button>106 <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to delete the "%s" tag? This is permanent and cannot be undone.', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Delete', 'bbpress' ); ?></button> 107 107 108 108 <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" /> 109 109 <input type="hidden" name="action" value="bbp-delete-topic-tag" /> -
src/templates/default/bbpress/form-topic.php
73 73 74 74 <p> 75 75 <label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br /> 76 <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />76 <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(); ?>" /> 77 77 </p> 78 78 79 79 <?php do_action( 'bbp_theme_after_topic_form_title' ); ?> … … 99 99 100 100 <p> 101 101 <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br /> 102 <input type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />102 <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> /> 103 103 </p> 104 104 105 105 <?php do_action( 'bbp_theme_after_topic_form_tags' ); ?> … … 157 157 <?php do_action( 'bbp_theme_before_topic_form_subscriptions' ); ?> 158 158 159 159 <p> 160 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>"/>160 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> /> 161 161 162 162 <?php if ( bbp_is_topic_edit() && ( bbp_get_topic_author_id() !== bbp_get_current_user_id() ) ) : ?> 163 163 … … 180 180 181 181 <fieldset class="bbp-form"> 182 182 <legend> 183 <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>"/>183 <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> /> 184 184 <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br /> 185 185 </legend> 186 186 187 187 <div> 188 188 <label for="bbp_topic_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br /> 189 <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />189 <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" /> 190 190 </div> 191 191 </fieldset> 192 192 … … 200 200 201 201 <?php do_action( 'bbp_theme_before_topic_form_submit_button' ); ?> 202 202 203 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>203 <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 204 204 205 205 <?php do_action( 'bbp_theme_after_topic_form_submit_button' ); ?> 206 206 -
src/templates/default/bbpress/form-user-edit.php
22 22 23 23 <div> 24 24 <label for="first_name"><?php _e( 'First Name', 'bbpress' ) ?></label> 25 <input type="text" name="first_name" id="first_name" value="<?php bbp_displayed_user_field( 'first_name', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>"/>25 <input type="text" name="first_name" id="first_name" value="<?php bbp_displayed_user_field( 'first_name', 'edit' ); ?>" class="regular-text" /> 26 26 </div> 27 27 28 28 <div> 29 29 <label for="last_name"><?php _e( 'Last Name', 'bbpress' ) ?></label> 30 <input type="text" name="last_name" id="last_name" value="<?php bbp_displayed_user_field( 'last_name', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>"/>30 <input type="text" name="last_name" id="last_name" value="<?php bbp_displayed_user_field( 'last_name', 'edit' ); ?>" class="regular-text" /> 31 31 </div> 32 32 33 33 <div> 34 34 <label for="nickname"><?php _e( 'Nickname', 'bbpress' ); ?></label> 35 <input type="text" name="nickname" id="nickname" value="<?php bbp_displayed_user_field( 'nickname', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>"/>35 <input type="text" name="nickname" id="nickname" value="<?php bbp_displayed_user_field( 'nickname', 'edit' ); ?>" class="regular-text" /> 36 36 </div> 37 37 38 38 <div> … … 55 55 56 56 <div> 57 57 <label for="url"><?php _e( 'Website', 'bbpress' ) ?></label> 58 <input type="text" name="url" id="url" value="<?php bbp_displayed_user_field( 'user_url', 'edit' ); ?>" class="regular-text code" tabindex="<?php bbp_tab_index(); ?>"/>58 <input type="text" name="url" id="url" value="<?php bbp_displayed_user_field( 'user_url', 'edit' ); ?>" class="regular-text code" /> 59 59 </div> 60 60 61 61 <?php foreach ( bbp_edit_user_contact_methods() as $name => $desc ) : ?> … … 62 62 63 63 <div> 64 64 <label for="<?php echo esc_attr( $name ); ?>"><?php echo apply_filters( 'user_' . $name . '_label', $desc ); ?></label> 65 <input type="text" name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $name ); ?>" value="<?php bbp_displayed_user_field( $name, 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>"/>65 <input type="text" name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $name ); ?>" value="<?php bbp_displayed_user_field( $name, 'edit' ); ?>" class="regular-text" /> 66 66 </div> 67 67 68 68 <?php endforeach; ?> … … 80 80 81 81 <div> 82 82 <label for="description"><?php _e( 'Biographical Info', 'bbpress' ); ?></label> 83 <textarea name="description" id="description" rows="5" cols="30" tabindex="<?php bbp_tab_index(); ?>"><?php bbp_displayed_user_field( 'description', 'edit' ); ?></textarea>83 <textarea name="description" id="description" rows="5" cols="30"><?php bbp_displayed_user_field( 'description', 'edit' ); ?></textarea> 84 84 </div> 85 85 86 86 <?php do_action( 'bbp_user_edit_after_about' ); ?> … … 96 96 97 97 <div> 98 98 <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?></label> 99 <input type="text" name="user_login" id="user_login" value="<?php bbp_displayed_user_field( 'user_login', 'edit' ); ?>" disabled="disabled" class="regular-text" tabindex="<?php bbp_tab_index(); ?>"/>99 <input type="text" name="user_login" id="user_login" value="<?php bbp_displayed_user_field( 'user_login', 'edit' ); ?>" disabled="disabled" class="regular-text" /> 100 100 </div> 101 101 102 102 <div> 103 103 <label for="email"><?php _e( 'Email', 'bbpress' ); ?></label> 104 104 105 <input type="text" name="email" id="email" value="<?php bbp_displayed_user_field( 'user_email', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>"/>105 <input type="text" name="email" id="email" value="<?php bbp_displayed_user_field( 'user_email', 'edit' ); ?>" class="regular-text" /> 106 106 107 107 <?php 108 108 … … 123 123 <div id="password"> 124 124 <label for="pass1"><?php _e( 'New Password', 'bbpress' ); ?></label> 125 125 <fieldset class="bbp-form password"> 126 <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" tabindex="<?php bbp_tab_index(); ?>"/>126 <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> 127 127 <span class="description"><?php _e( 'If you would like to change the password type a new one. Otherwise leave this blank.', 'bbpress' ); ?></span> 128 128 129 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" tabindex="<?php bbp_tab_index(); ?>"/>129 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> 130 130 <span class="description"><?php _e( 'Type your new password again.', 'bbpress' ); ?></span><br /> 131 131 132 132 <div id="pass-strength-result"></div> … … 152 152 <div> 153 153 <label for="super_admin"><?php _e( 'Network Role', 'bbpress' ); ?></label> 154 154 <label> 155 <input class="checkbox" type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( bbp_get_displayed_user_id() ) ); ?> tabindex="<?php bbp_tab_index(); ?>"/>155 <input class="checkbox" type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( bbp_get_displayed_user_id() ) ); ?> /> 156 156 <?php _e( 'Grant this user super admin privileges for the Network.', 'bbpress' ); ?> 157 157 </label> 158 158 </div> … … 175 175 176 176 <?php bbp_edit_user_form_fields(); ?> 177 177 178 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home_edit() ? _e( 'Update Profile', 'bbpress' ) : _e( 'Update User', 'bbpress' ); ?></button>178 <button type="submit" id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home_edit() ? _e( 'Update Profile', 'bbpress' ) : _e( 'Update User', 'bbpress' ); ?></button> 179 179 </div> 180 180 </fieldset> 181 181 182 </form> 183 No newline at end of file 182 </form> -
src/templates/default/bbpress/form-user-login.php
15 15 16 16 <div class="bbp-username"> 17 17 <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label> 18 <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>"/>18 <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" /> 19 19 </div> 20 20 21 21 <div class="bbp-password"> 22 22 <label for="user_pass"><?php _e( 'Password', 'bbpress' ); ?>: </label> 23 <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" tabindex="<?php bbp_tab_index(); ?>"/>23 <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" /> 24 24 </div> 25 25 26 26 <div class="bbp-remember-me"> 27 <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" tabindex="<?php bbp_tab_index(); ?>"/>27 <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" /> 28 28 <label for="rememberme"><?php _e( 'Keep me signed in', 'bbpress' ); ?></label> 29 29 </div> 30 30 … … 32 32 33 33 <div class="bbp-submit-wrapper"> 34 34 35 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"name="user-submit" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button>35 <button type="submit" name="user-submit" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button> 36 36 37 37 <?php bbp_user_login_fields(); ?> 38 38 -
src/templates/default/bbpress/form-user-lost-pass.php
16 16 <div class="bbp-username"> 17 17 <p> 18 18 <label for="user_login" class="hide"><?php _e( 'Username or Email', 'bbpress' ); ?>: </label> 19 <input type="text" name="user_login" value="" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>"/>19 <input type="text" name="user_login" value="" size="20" id="user_login" /> 20 20 </p> 21 21 </div> 22 22 … … 24 24 25 25 <div class="bbp-submit-wrapper"> 26 26 27 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"name="user-submit" class="button submit user-submit"><?php _e( 'Reset My Password', 'bbpress' ); ?></button>27 <button type="submit" name="user-submit" class="button submit user-submit"><?php _e( 'Reset My Password', 'bbpress' ); ?></button> 28 28 29 29 <?php bbp_user_lost_pass_fields(); ?> 30 30 -
src/templates/default/bbpress/form-user-register.php
22 22 23 23 <div class="bbp-username"> 24 24 <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label> 25 <input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>"/>25 <input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" /> 26 26 </div> 27 27 28 28 <div class="bbp-email"> 29 29 <label for="user_email"><?php _e( 'Email', 'bbpress' ); ?>: </label> 30 <input type="text" name="user_email" value="<?php bbp_sanitize_val( 'user_email' ); ?>" size="20" id="user_email" tabindex="<?php bbp_tab_index(); ?>"/>30 <input type="text" name="user_email" value="<?php bbp_sanitize_val( 'user_email' ); ?>" size="20" id="user_email" /> 31 31 </div> 32 32 33 33 <?php do_action( 'register_form' ); ?> … … 34 34 35 35 <div class="bbp-submit-wrapper"> 36 36 37 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"name="user-submit" class="button submit user-submit"><?php _e( 'Register', 'bbpress' ); ?></button>37 <button type="submit" name="user-submit" class="button submit user-submit"><?php _e( 'Register', 'bbpress' ); ?></button> 38 38 39 39 <?php bbp_user_register_fields(); ?> 40 40 -
src/templates/default/js/editor.js
5 5 edButtons[110] = new QTags.TagButton( 'code', 'code', '`', '`', 'c' ); 6 6 QTags._buttonsInit(); 7 7 } 8 9 /* Tab from topic title */ 10 jQuery( '#bbp_topic_title' ).bind( 'keydown.editor-focus', function(e) { 11 if ( e.which !== 9 ) { 12 return; 13 } 14 15 if ( !e.ctrlKey && !e.altKey && !e.shiftKey ) { 16 if ( typeof( tinymce ) !== 'undefined' ) { 17 if ( ! tinymce.activeEditor.isHidden() ) { 18 var editor = tinymce.activeEditor.editorContainer; 19 jQuery( '#' + editor + ' td.mceToolbar > a' ).focus(); 20 } else { 21 jQuery( 'textarea.bbp-the-content' ).focus(); 22 } 23 } else { 24 jQuery( 'textarea.bbp-the-content' ).focus(); 25 } 26 27 e.preventDefault(); 28 } 29 }); 30 31 /* Shift + tab from topic tags */ 32 jQuery( '#bbp_topic_tags' ).bind( 'keydown.editor-focus', function(e) { 33 if ( e.which !== 9 ) { 34 return; 35 } 36 37 if ( e.shiftKey && !e.ctrlKey && !e.altKey ) { 38 if ( typeof( tinymce ) !== 'undefined' ) { 39 if ( ! tinymce.activeEditor.isHidden() ) { 40 var editor = tinymce.activeEditor.editorContainer; 41 jQuery( '#' + editor + ' td.mceToolbar > a' ).focus(); 42 } else { 43 jQuery( 'textarea.bbp-the-content' ).focus(); 44 } 45 } else { 46 jQuery( 'textarea.bbp-the-content' ).focus(); 47 } 48 49 e.preventDefault(); 50 } 51 }); 52 }); 53 No newline at end of file 8 });