Changeset 14069 for trunk/wp-admin/press-this.php
- Timestamp:
- 04/11/2010 09:11:39 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/press-this.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r13256 r14069 481 481 </div> 482 482 483 <div id="categorydiv" class="stuffbox"> 484 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"> 485 <br/> 486 </div> 487 <h3><?php _e('Categories') ?></h3> 483 <?php $tax = get_taxonomy( 'category' ); ?> 484 <div id="categorydiv" class="postbox"> 485 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br /></div> 486 <h3 class="hndle"><?php _e('Categories') ?></h3> 488 487 <div class="inside"> 489 490 <div id="categories-all" class="tabs-panel"> 491 492 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 493 <?php wp_category_checklist($post_ID, false) ?> 488 <div id="taxonomy-category" class="categorydiv"> 489 490 <ul id="category-tabs" class="category-tabs"> 491 <li class="tabs"><a href="#category-all" tabindex="3"><?php printf( __( 'All %s' ), $tax->label ); ?></a><span class="hide-if-no-js"> | </span><a class="hide-if-no-js" href="#category-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li> 492 </ul> 493 494 <div id="category-pop" class="tabs-panel" style="display: none;"> 495 <ul id="categorychecklist-pop" class="categorychecklist form-no-clear" > 496 <?php $popular_ids = wp_popular_terms_checklist( 'category' ); ?> 494 497 </ul> 495 498 </div> 496 499 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> 500 <div id="category-all" class="tabs-panel"> 501 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 502 <?php wp_terms_checklist($post_ID, array( 'taxonomy' => 'category', 'popular_cats' => $popular_ids ) ) ?> 503 </ul> 506 504 </div> 505 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; ?> 521 </div> 507 522 </div> 508 523 </div>
Note: See TracChangeset
for help on using the changeset viewer.