Make WordPress Core


Ignore:
Timestamp:
01/10/2008 09:39:35 AM (17 years ago)
Author:
matt
Message:

New experimental category interface, fixes #5618. Hat tip: mdawaffe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r6584 r6588  
    122122<h3><?php _e('Categories') ?></h3>
    123123<div class="inside">
    124 <p id="jaxcat"><?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?></p>
    125 <ul id="categorychecklist" class="list:category"><?php dropdown_categories(); ?></ul>
     124
     125<div id="category-adder" class="wp-hidden-children">
     126    <h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4>
     127    <p id="category-add" class="wp-hidden-child">
     128        <input type="text" name="newcat" id="newcat" class="form-required" value="<?php _e( 'New category name' ); ?>" />
     129        <?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category') ) ); ?>
     130        <a id="category-add-sumbit" class="add:categorychecklist:categorydiv button" href="<?php echo wp_nonce_url( '', 'add-category' ); ?>"><?php _e( 'Add' ); ?></a>
     131        <span id="category-ajax-response"></span>
     132    </p>
     133</div>
     134
     135<ul id="category-tabs">
     136    <li class="ui-tabs-selected"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li>
     137    <li><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li>
     138</ul>
     139
     140<div id="categories-all" class="ui-tabs-panel">
     141    <ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
     142        <?php dropdown_categories(); ?>
     143    </ul>
     144</div>
     145
     146<div id="categories-pop" class="ui-tabs-panel">
     147    <ul id="categorychecklist-pop" class="categorychecklist form-no-clear">
     148        <?php wp_popular_categories_checklist(); ?>
     149    </ul>
     150</div>
     151
    126152</div>
    127153</div>
Note: See TracChangeset for help on using the changeset viewer.