| 497 | | <div id="category-adder" class="wp-hidden-children"> |
| 498 | | <a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a> |
| 499 | | <p id="category-add" class="wp-hidden-child"> |
| 500 | | <label class="screen-reader-text" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" tabindex="3" aria-required="true"/> |
| 501 | | <label class="screen-reader-text" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> |
| 502 | | <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php esc_attr_e( 'Add' ); ?>" tabindex="3" /> |
| 503 | | <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?> |
| 504 | | <span id="category-ajax-response"></span> |
| 505 | | </p> |
| 506 | | </div> |
| | 506 | <?php if ( !current_user_can($tax->assign_cap) ) : ?> |
| | 507 | <p><em><?php _e('You cannot modify this Taxonomy.'); ?></em></p> |
| | 508 | <?php endif; ?> |
| | 509 | <?php if ( current_user_can($tax->edit_cap) ) : ?> |
| | 510 | <div id="category-adder" class="wp-hidden-children"> |
| | 511 | <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php printf( __( '+ Add New %s' ), $tax->singular_label ); ?></a></h4> |
| | 512 | <p id="category-add" class="category-add wp-hidden-child"> |
| | 513 | <label class="screen-reader-text" for="newcategory"><?php printf( __( 'Add New %s' ), $tax->singular_label ); ?></label><input type="text" name="newcategory" id="newcategory" class="form-required form-input-tip" value="<?php echo esc_attr( sprintf( 'New %s Name', $tax->singular_label ) ); ?>" tabindex="3" aria-required="true"/> |
| | 514 | <label class="screen-reader-text" for="newcategory_parent"><?php printf( __('Parent %s'), $tax->singular_label ); ?>:</label><?php wp_dropdown_categories( array( 'taxonomy' => 'category', 'hide_empty' => 0, 'name' => 'newcategory_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => sprintf( __('— Parent %s —'), $tax->singular_label ), 'tab_index' => 3 ) ); ?> |
| | 515 | <input type="button" id="category-add-submit" class="add:categorychecklist:category-add button category-add-sumbit" value="<?php esc_attr_e( 'Add' ); ?>" tabindex="3" /> |
| | 516 | <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?> |
| | 517 | <span id="category-ajax-response"></span> |
| | 518 | </p> |
| | 519 | </div> |
| | 520 | <?php endif; ?> |