web/wp-admin/edit-category-form.php
branchwordpress
changeset 132 4d4862461b8d
parent 109 03b0d1493584
equal deleted inserted replaced
131:a4642baaf829 132:4d4862461b8d
    55 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-category_' . $cat_ID); ?>
    55 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-category_' . $cat_ID); ?>
    56 	<table class="form-table">
    56 	<table class="form-table">
    57 		<tr class="form-field form-required">
    57 		<tr class="form-field form-required">
    58 			<th scope="row" valign="top"><label for="cat_name"><?php _e('Category Name') ?></label></th>
    58 			<th scope="row" valign="top"><label for="cat_name"><?php _e('Category Name') ?></label></th>
    59 			<td><input name="cat_name" id="cat_name" type="text" value="<?php echo esc_attr($category->name); ?>" size="40" aria-required="true" /><br />
    59 			<td><input name="cat_name" id="cat_name" type="text" value="<?php echo esc_attr($category->name); ?>" size="40" aria-required="true" /><br />
    60             <span class="description"><?php _e('The name is used to identify the category almost everywhere, for example under the post or in the category widget.'); ?></span></td>
       
    61 		</tr>
    60 		</tr>
    62 		<tr class="form-field">
    61 		<tr class="form-field">
    63 			<th scope="row" valign="top"><label for="category_nicename"><?php _e('Category Slug') ?></label></th>
    62 			<th scope="row" valign="top"><label for="category_nicename"><?php _e('Category Slug') ?></label></th>
    64 			<td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo esc_attr(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
    63 			<td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo esc_attr(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
    65             <span class="description"><?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.'); ?></span></td>
    64             <span class="description"><?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.'); ?></span></td>
    66 		</tr>
    65 		</tr>
    67 		<tr class="form-field">
    66 		<tr class="form-field">
    68 			<th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th>
    67 			<th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th>
    69 			<td>
    68 			<td>
    70 	  			<?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br />
    69 	  			<?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'exclude' => $category->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br />
    71                 <span class="description"><?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?></span>
    70                 <span class="description"><?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?></span>
    72 	  		</td>
    71 	  		</td>
    73 		</tr>
    72 		</tr>
    74 		<tr class="form-field">
    73 		<tr class="form-field">
    75 			<th scope="row" valign="top"><label for="category_description"><?php _e('Description') ?></label></th>
    74 			<th scope="row" valign="top"><label for="category_description"><?php _e('Description') ?></label></th>
    76 			<td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo esc_html($category->description); ?></textarea><br />
    75 			<td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo esc_html($category->description); ?></textarea><br />
    77             <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
    76             <span class="description"><?php _e('The description is not prominent by default; however, some themes may show it.'); ?></span></td>
    78 		</tr>
    77 		</tr>
    79 		<?php do_action('edit_category_form_fields', $category); ?>
    78 		<?php do_action('edit_category_form_fields', $category); ?>
    80 	</table>
    79 	</table>
    81 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Category'); ?>" /></p>
    80 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Category'); ?>" /></p>
    82 <?php do_action('edit_category_form', $category); ?>
    81 <?php do_action('edit_category_form', $category); ?>