- Timestamp:
- 05/06/2011 10:45:55 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php
r2943 r3109 8 8 */ 9 9 10 //@todo - remove $term variable references 11 $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); 10 ?> 12 11 13 ?>14 12 <?php if ( current_user_can( 'edit_topic_tags' ) ) : ?> 15 13 16 <div id="edit-topic-tag-<?php echo $term->term_id; ?>" class="bbp-topic-tag-form">14 <div id="edit-topic-tag-<?php bbp_topic_tag_id(); ?>" class="bbp-topic-tag-form"> 17 15 18 16 <fieldset> 19 17 20 <legend><?php printf( __( 'Manage Tag: "%s"', 'bbpress' ), $term->name); ?></legend>18 <legend><?php printf( __( 'Manage Tag: "%s"', 'bbpress' ), bbp_get_topic_tag_name() ); ?></legend> 21 19 22 20 <fieldset id="tag-rename"> … … 36 34 <div class="alignleft"> 37 35 <label for="tag-name"><?php _e( 'Name:', 'bbpress' ); ?></label> 38 <input type="text" name="tag-name" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( $term->name); ?>" />36 <input type="text" name="tag-name" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( bbp_get_topic_tag_slug() ); ?>" /> 39 37 </div> 40 38 41 39 <div class="alignleft"> 42 40 <label for="tag-name"><?php _e( 'Slug:', 'bbpress' ); ?></label> 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) ); ?>" />41 <input type="text" 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() ) ); ?>" /> 44 42 </div> 45 43 … … 47 45 <input type="submit" name="submit" tabindex="<?php bbp_tab_index(); ?>" value="<?php esc_attr_e( 'Update', 'bbpress' ); ?>" /><br /> 48 46 49 <input type="hidden" name="tag-id" value="<?php echo esc_attr( $term->term_id); ?>" />47 <input type="hidden" name="tag-id" value="<?php bbp_get_topic_tag_id(); ?>" /> 50 48 <input type="hidden" name="action" value="bbp-update-topic-tag" /> 51 49 52 <?php wp_nonce_field( 'update-tag_' . $term->term_id); ?>50 <?php wp_nonce_field( 'update-tag_' . bbp_get_topic_tag_id() ); ?> 53 51 54 52 </div> … … 74 72 <div class="alignright"> 75 73 <input type="submit" name="submit" tabindex="<?php bbp_tab_index(); ?>" value="<?php esc_attr_e( 'Merge', 'bbpress' ); ?>" 76 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) ); ?>');" />74 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() ) ); ?>');" /> 77 75 78 <input type="hidden" name="tag-id" value="<?php echo $term->term_id; ?>" />76 <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" /> 79 77 <input type="hidden" name="action" value="bbp-merge-topic-tag" /> 80 78 81 <?php wp_nonce_field( 'merge-tag_' . $term->term_id); ?>79 <?php wp_nonce_field( 'merge-tag_' . bbp_get_topic_tag_id() ); ?> 82 80 </div> 83 81 </form> … … 96 94 <div class="bbp-template-notice"> 97 95 <p><?php _e( 'Deleting a tag cannot be undone.', 'bbpress' ); ?></p> 98 <p><?php _e( 'Any links to this tag will no longer function.', 'bbpress' ); ?></p> 96 <p><?php _e( 'Any links to this tag will no longer function.', 'bbpress' ); ?></p> 99 97 </div> 100 98 … … 103 101 <div class="alignright"> 104 102 <input type="submit" name="submit" tabindex="<?php bbp_tab_index(); ?>" value="<?php _e( 'Delete', 'bbpress' ); ?>" 105 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) ); ?>');" />103 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() ) ); ?>');" /> 106 104 107 <input type="hidden" name="tag-id" value="<?php echo $term->term_id; ?>" />105 <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" /> 108 106 <input type="hidden" name="action" value="bbp-delete-topic-tag" /> 109 107 110 <?php wp_nonce_field( 'delete-tag_' . $term->term_id); ?>108 <?php wp_nonce_field( 'delete-tag_' . bbp_get_topic_tag_id() ); ?> 111 109 </div> 112 110 </form>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)