| [ Index ] |
PHP Cross Reference of Wordpress 2.7.1 |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Edit tag form for inclusion in administration panels. 4 * 5 * @package WordPress 6 * @subpackage Administration 7 */ 8 9 if ( empty($tag_ID) ) { ?> 10 <div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div> 11 <?php 12 return; 13 } 14 15 do_action('edit_tag_form_pre', $tag); ?> 16 17 <div class="wrap"> 18 <?php screen_icon(); ?> 19 <h2><?php _e('Edit Tag'); ?></h2> 20 <div id="ajax-response"></div> 21 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"> 22 <input type="hidden" name="action" value="editedtag" /> 23 <input type="hidden" name="tag_ID" value="<?php echo $tag->term_id ?>" /> 24 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-tag_' . $tag_ID); ?> 25 <table class="form-table"> 26 <tr class="form-field form-required"> 27 <th scope="row" valign="top"><label for="name"><?php _e('Tag name') ?></label></th> 28 <td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo attribute_escape($tag->name); ?>" size="40" aria-required="true" /> 29 <p><?php _e('The name is how the tag appears on your site.'); ?></p></td> 30 </tr> 31 <tr class="form-field"> 32 <th scope="row" valign="top"><label for="slug"><?php _e('Tag slug') ?></label></th> 33 <td><input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo attribute_escape(apply_filters('editable_slug', $tag->slug)); ?>" size="40" /> 34 <p><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td> 35 </tr> 36 </table> 37 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php _e('Update Tag'); ?>" /></p> 38 <?php do_action('edit_tag_form', $tag); ?> 39 </form> 40 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Mar 23 16:23:02 2009 | Cross-referenced by PHPXref 0.7 |