Add classes to form containers on taxonomy screens.
props jarednova. fixes #28196. git-svn-id: https://develop.svn.wordpress.org/trunk@29803 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0cae966012
commit
d59e6696b3
@ -80,13 +80,13 @@ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
|
||||
<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy) ?>" />
|
||||
<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-tag_' . $tag_ID); ?>
|
||||
<table class="form-table">
|
||||
<tr class="form-field form-required">
|
||||
<tr class="form-field form-required term-name-wrap">
|
||||
<th scope="row"><label for="name"><?php _ex('Name', 'Taxonomy Name'); ?></label></th>
|
||||
<td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo esc_attr($tag->name); ?>" size="40" aria-required="true" />
|
||||
<p class="description"><?php _e('The name is how it appears on your site.'); ?></p></td>
|
||||
</tr>
|
||||
<?php if ( !global_terms_enabled() ) { ?>
|
||||
<tr class="form-field">
|
||||
<tr class="form-field term-slug-wrap">
|
||||
<th scope="row"><label for="slug"><?php _ex('Slug', 'Taxonomy Slug'); ?></label></th>
|
||||
<?php
|
||||
/**
|
||||
@ -102,7 +102,7 @@ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
|
||||
<tr class="form-field">
|
||||
<tr class="form-field term-parent-wrap">
|
||||
<th scope="row"><label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label></th>
|
||||
<td>
|
||||
<?php wp_dropdown_categories(array('hide_empty' => 0, 'hide_if_empty' => false, 'name' => 'parent', 'orderby' => 'name', 'taxonomy' => $taxonomy, 'selected' => $tag->parent, 'exclude_tree' => $tag->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?>
|
||||
@ -112,7 +112,7 @@ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; // is_taxonomy_hierarchical() ?>
|
||||
<tr class="form-field">
|
||||
<tr class="form-field term-description-wrap">
|
||||
<th scope="row"><label for="description"><?php _ex('Description', 'Taxonomy Description'); ?></label></th>
|
||||
<td><textarea name="description" id="description" rows="5" cols="50" class="large-text"><?php echo $tag->description; // textarea_escaped ?></textarea><br />
|
||||
<span class="description"><?php _e('The description is not prominent by default; however, some themes may show it.'); ?></span></td>
|
||||
|
@ -447,20 +447,20 @@ if ( current_user_can($tax->cap->edit_terms) ) {
|
||||
<input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" />
|
||||
<?php wp_nonce_field('add-tag', '_wpnonce_add-tag'); ?>
|
||||
|
||||
<div class="form-field form-required">
|
||||
<div class="form-field form-required term-name-wrap">
|
||||
<label for="tag-name"><?php _ex('Name', 'Taxonomy Name'); ?></label>
|
||||
<input name="tag-name" id="tag-name" type="text" value="" size="40" aria-required="true" />
|
||||
<p><?php _e('The name is how it appears on your site.'); ?></p>
|
||||
</div>
|
||||
<?php if ( ! global_terms_enabled() ) : ?>
|
||||
<div class="form-field">
|
||||
<div class="form-field term-slug-wrap">
|
||||
<label for="tag-slug"><?php _ex('Slug', 'Taxonomy Slug'); ?></label>
|
||||
<input name="slug" id="tag-slug" type="text" value="" size="40" />
|
||||
<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>
|
||||
</div>
|
||||
<?php endif; // global_terms_enabled() ?>
|
||||
<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
|
||||
<div class="form-field">
|
||||
<div class="form-field term-parent-wrap">
|
||||
<label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label>
|
||||
<?php
|
||||
$dropdown_args = array(
|
||||
@ -500,7 +500,7 @@ if ( current_user_can($tax->cap->edit_terms) ) {
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; // is_taxonomy_hierarchical() ?>
|
||||
<div class="form-field">
|
||||
<div class="form-field term-description-wrap">
|
||||
<label for="tag-description"><?php _ex('Description', 'Taxonomy Description'); ?></label>
|
||||
<textarea name="description" id="tag-description" rows="5" cols="40"></textarea>
|
||||
<p><?php _e('The description is not prominent by default; however, some themes may show it.'); ?></p>
|
||||
|
Loading…
Reference in New Issue
Block a user