Make WordPress Core


Ignore:
Timestamp:
09/18/2008 05:41:45 AM (17 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/edit-link-categories.php

    r8867 r8923  
    7676
    7777<form id="posts-filter" action="" method="get">
     78
     79<div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a>
     80<a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div>
     81
     82<div id="edit-settings" class="hide-if-js hide-if-no-js">
     83<div id="edit-settings-wrap">
     84<h5><?php _e('Show on screen') ?></h5>
     85<div class="metabox-prefs">
     86<?php manage_columns_prefs('link-category') ?>
     87<br class="clear" />
     88</div></div>
     89</div>
     90
    7891    <h2><?php printf( current_user_can('manage_categories') ? __('Link Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
    7992
     
    117130    <thead>
    118131    <tr>
    119         <th scope="col" class="check-column"><input type="checkbox" /></th>
    120         <th scope="col"><?php _e('Name') ?></th>
    121         <th scope="col"><?php _e('Description') ?></th>
    122         <th scope="col" class="num" style="width: 90px;"><?php _e('Links') ?></th>
     132<?php print_column_headers('link-category'); ?>
    123133    </tr>
    124134    </thead>
     
    145155    </tbody>
    146156</table>
     157
     158<?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?>
     159
    147160</form>
    148161
Note: See TracChangeset for help on using the changeset viewer.