Changeset 20272 for trunk/wp-admin/includes/meta-boxes.php
- Timestamp:
- 03/23/2012 09:41:00 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r20164 r20272 659 659 * @param object $link 660 660 */ 661 function link_categories_meta_box($link) { ?> 662 <ul id="category-tabs" class="category-tabs"> 663 <li class="tabs"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li> 664 <li class="hide-if-no-js"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li> 665 </ul> 666 667 <div id="categories-all" class="tabs-panel"> 668 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 669 <?php 670 if ( isset($link->link_id) ) 671 wp_link_category_checklist($link->link_id); 672 else 673 wp_link_category_checklist(); 674 ?> 661 function link_categories_meta_box($link) { 662 ?> 663 <div id="taxonomy-linkcategory" class="categorydiv"> 664 <ul id="category-tabs" class="category-tabs"> 665 <li class="tabs"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li> 666 <li class="hide-if-no-js"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li> 675 667 </ul> 676 </div> 677 678 <div id="categories-pop" class="tabs-panel" style="display: none;"> 679 <ul id="categorychecklist-pop" class="categorychecklist form-no-clear"> 680 <?php wp_popular_terms_checklist('link_category'); ?> 681 </ul> 682 </div> 683 684 <div id="category-adder" class="wp-hidden-children"> 685 <h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4> 686 <p id="link-category-add" class="wp-hidden-child"> 687 <label class="screen-reader-text" for="newcat"><?php _e( '+ Add New Category' ); ?></label> 688 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" /> 689 <input type="button" id="category-add-submit" class="add:categorychecklist:linkcategorydiv button" value="<?php esc_attr_e( 'Add' ); ?>" /> 690 <?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?> 691 <span id="category-ajax-response"></span> 692 </p> 668 669 <div id="categories-all" class="tabs-panel"> 670 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 671 <?php 672 if ( isset($link->link_id) ) 673 wp_link_category_checklist($link->link_id); 674 else 675 wp_link_category_checklist(); 676 ?> 677 </ul> 678 </div> 679 680 <div id="categories-pop" class="tabs-panel" style="display: none;"> 681 <ul id="categorychecklist-pop" class="categorychecklist form-no-clear"> 682 <?php wp_popular_terms_checklist('link_category'); ?> 683 </ul> 684 </div> 685 686 <div id="category-adder" class="wp-hidden-children"> 687 <h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4> 688 <p id="link-category-add" class="wp-hidden-child"> 689 <label class="screen-reader-text" for="newcat"><?php _e( '+ Add New Category' ); ?></label> 690 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" /> 691 <input type="button" id="category-add-submit" class="add:categorychecklist:linkcategorydiv button" value="<?php esc_attr_e( 'Add' ); ?>" /> 692 <?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?> 693 <span id="category-ajax-response"></span> 694 </p> 695 </div> 693 696 </div> 694 697 <?php
Note: See TracChangeset
for help on using the changeset viewer.