Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/17/2011 05:26:05 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Normalize bbp-twentyten theme files. Introduce bbp_tab_index functions for forms. Rename some page- files to action- since they are not page templates. Introduce bbp_login and bbp_register place-holders in bbp-twentyten theme.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-themes/bbp-twentyten/form-bbp_topic_tag.php

    r2768 r2810  
    22
    33/**
    4  * Edit bbPress Topic Tag Form
     4 * Edit Topic Tag
    55 *
    66 * @package bbPress
    7  * @subpackage Themes
     7 * @subpackage Theme
    88 */
    99
     10//@todo - remove $term variable references
    1011$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
    1112
    1213?>
    13 
    1414<?php if ( current_user_can( 'edit_topic_tags' ) ) : ?>
    1515
     
    3636                    <div class="alignleft">
    3737                        <label for="tag-name"><?php _e( 'Name:', 'bbpress' ); ?></label>
    38                         <input type="text" name="tag-name" size="20" maxlength="40" tabindex="2" value="<?php echo esc_attr( $term->name ); ?>" />
     38                        <input type="text" name="tag-name" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( $term->name ); ?>" />
    3939                    </div>
    4040
    4141                    <div class="alignleft">
    4242                        <label for="tag-name"><?php _e( 'Slug:', 'bbpress' ); ?></label>
    43                         <input type="text" name="tag-slug" size="20" maxlength="40" tabindex="4" value="<?php echo esc_attr( apply_filters( 'editable_slug', $term->slug ) ); ?>" />
     43                        <input type="text" name="tag-slug" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( apply_filters( 'editable_slug', $term->slug ) ); ?>" />
    4444                    </div>
    4545
    4646                    <div class="alignright">
    47                         <input type="submit" name="submit" tabindex="6" value="<?php esc_attr_e( 'Update', 'bbpress' ); ?>" /><br />
     47                        <input type="submit" name="submit" tabindex="<?php bbp_tab_index(); ?>" value="<?php esc_attr_e( 'Update', 'bbpress' ); ?>" /><br />
    4848
    4949                        <input type="hidden" name="tag-id" value="<?php echo esc_attr( $term->term_id ); ?>" />
     
    6969                    <div class="alignleft">
    7070                        <label for="tag-name"><?php _e( 'Existing tag:', 'bbpress' ); ?></label>
    71                         <input type="text" name="tag-name" size="22" tabindex="8" maxlength="40" />
     71                        <input type="text" name="tag-name" size="22" tabindex="<?php bbp_tab_index(); ?>" maxlength="40" />
    7272                    </div>
    7373
    7474                    <div class="alignright">
    75                         <input type="submit" name="submit" tabindex="10" value="<?php esc_attr_e( 'Merge', 'bbpress' ); ?>"
     75                        <input type="submit" name="submit" tabindex="<?php bbp_tab_index(); ?>" value="<?php esc_attr_e( 'Merge', 'bbpress' ); ?>"
    7676                            onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to merge the "%s" tag into the tag you specified?', 'bbpress' ), $term->name ) ); ?>');" />
    7777
     
    102102
    103103                        <div class="alignright">
    104                             <input type="submit" name="submit" tabindex="12" value="<?php _e( 'Delete', 'bbpress' ); ?>"
     104                            <input type="submit" name="submit" tabindex="<?php bbp_tab_index(); ?>" value="<?php _e( 'Delete', 'bbpress' ); ?>"
    105105                                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' ), $term->name ) ); ?>');" />
    106106
Note: See TracChangeset for help on using the changeset viewer.