raw
mp-wp_genesis           1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * Edit tag form for inclusion in administration panels.
mp-wp_genesis 4 *
mp-wp_genesis 5 * @package WordPress
mp-wp_genesis 6 * @subpackage Administration
mp-wp_genesis 7 */
mp-wp_genesis 8
mp-wp_genesis 9 if ( empty($tag_ID) ) { ?>
mp-wp_genesis 10 <div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div>
mp-wp_genesis 11 <?php
mp-wp_genesis 12 return;
mp-wp_genesis 13 }
mp-wp_genesis 14
mp-wp_genesis 15 do_action('edit_tag_form_pre', $tag); ?>
mp-wp_genesis 16
mp-wp_genesis 17 <div class="wrap">
mp-wp_genesis 18 <?php screen_icon(); ?>
mp-wp_genesis 19 <h2><?php _e('Edit Tag'); ?></h2>
mp-wp_genesis 20 <div id="ajax-response"></div>
mp-wp_genesis 21 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate">
mp-wp_genesis 22 <input type="hidden" name="action" value="editedtag" />
mp-wp_genesis 23 <input type="hidden" name="tag_ID" value="<?php echo $tag->term_id ?>" />
mp-wp_genesis 24 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-tag_' . $tag_ID); ?>
mp-wp_genesis 25 <table class="form-table">
mp-wp_genesis 26 <tr class="form-field form-required">
mp-wp_genesis 27 <th scope="row" valign="top"><label for="name"><?php _e('Tag name') ?></label></th>
mp-wp_genesis 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" />
mp-wp_genesis 29 <p><?php _e('The name is how the tag appears on your site.'); ?></p></td>
mp-wp_genesis 30 </tr>
mp-wp_genesis 31 <tr class="form-field">
mp-wp_genesis 32 <th scope="row" valign="top"><label for="slug"><?php _e('Tag slug') ?></label></th>
mp-wp_genesis 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" />
mp-wp_genesis 34 <p><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td>
mp-wp_genesis 35 </tr>
mp-wp_genesis 36 </table>
mp-wp_genesis 37 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php _e('Update Tag'); ?>" /></p>
mp-wp_genesis 38 <?php do_action('edit_tag_form', $tag); ?>
mp-wp_genesis 39 </form>
mp-wp_genesis 40 </div>