Make WordPress Core


Ignore:
Timestamp:
09/18/2008 05:41:45 AM (18 years ago)
Author:
ryan
Message:

Consolidate column header code. Add column hiding to taxonomy pages (incomplete). see #7725

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/categories.php

    r8867 r8923  
    135135<div class="wrap">
    136136<form id="posts-filter" action="" method="get">
     137
     138<div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a>
     139<a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div>
     140
     141<div id="edit-settings" class="hide-if-js hide-if-no-js">
     142<div id="edit-settings-wrap">
     143<h5><?php _e('Show on screen') ?></h5>
     144<div class="metabox-prefs">
     145<?php manage_columns_prefs('category') ?>
     146<br class="clear" />
     147</div></div>
     148</div>
     149
    137150        <h2><?php printf( current_user_can('manage_categories') ? __('Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
    138151
    … …  
    176189        <thead>
    177190        <tr>
    178                 <th scope="col" class="check-column"><input type="checkbox" /></th>
    179         <th scope="col"><?php _e('Name') ?></th>
    180         <th scope="col"><?php _e('Description') ?></th>
    181         <th scope="col" class="num"><?php _e('Posts') ?></th>
     191<?php print_column_headers('category'); ?>
    182192        </tr>
    183193        </thead>
    … …  
    188198        </tbody>
    189199</table>
     200
     201<?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?>
     202
    190203</form>
    191204
Note: See TracChangeset for help on using the changeset viewer.