diff --git a/wp-admin/categories.php b/wp-admin/categories.php index 50c073f2a..208fe26a6 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -134,6 +134,19 @@ endif; ?>
+ +
+
+ +
+
+
+
+ +
+
+
+

Add New)') : __('Manage Tags'), '#addcat' ); ?>


@@ -175,10 +188,7 @@ if ( $page_links ) - - - - + @@ -187,6 +197,9 @@ cat_rows(0, 0, 0, $pagenum, $catsperpage); ?>
+ + +
diff --git a/wp-admin/edit-attachment-rows.php b/wp-admin/edit-attachment-rows.php index 9da191014..223889ecb 100644 --- a/wp-admin/edit-attachment-rows.php +++ b/wp-admin/edit-attachment-rows.php @@ -11,28 +11,7 @@ if ( ! defined('ABSPATH') ) die(); - - - $column_display_name ) { - if ( 'cb' === $post_column_key ) - $class = ' class="check-column"'; - elseif ( 'comments' === $post_column_key ) - $class = ' class="manage-column column-comments num"'; - elseif ( 'modified' === $post_column_key ) - $class = ' class="manage-column column-date"'; - else - $class = " class=\"manage-column column-$post_column_key\""; - - $style = ''; - if ( in_array($post_column_key, $hidden) ) - $style = ' style="display:none;"'; -?> - - - + @@ -52,7 +31,7 @@ if ( empty($att_title) ) post_status ); ?>' valign="top"> $column_display_name ) { $class = "class=\"$column_name column-$column_name\""; diff --git a/wp-admin/edit-link-categories.php b/wp-admin/edit-link-categories.php index 62b028658..f8c4ff102 100644 --- a/wp-admin/edit-link-categories.php +++ b/wp-admin/edit-link-categories.php @@ -75,6 +75,19 @@ endif; ?>
+ +
+
+ +
+
+
+
+ +
+
+
+

Add New)') : __('Manage Tags'), '#addcat' ); ?>


@@ -116,10 +129,7 @@ if ( $page_links )
>
- - - - + @@ -144,6 +154,9 @@ if ( $categories ) { ?>
+ + +
diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index 51918a3af..244b8d9a7 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -192,25 +192,7 @@ if ($posts) { - $column_display_name) { - if ( 'cb' === $post_column_key ) - $class = ' class="check-column"'; - elseif ( 'comments' === $post_column_key ) - $class = ' class="manage-column column-comments num"'; - elseif ( 'modified' === $post_column_key ) - $class = ' class="manage-column column-date"'; - else - $class = " class=\"manage-column column-$post_column_key\""; - - $style = ''; - if ( in_array($post_column_key, $hidden) ) - $style = ' style="display:none;"'; -?> - - + diff --git a/wp-admin/edit-post-rows.php b/wp-admin/edit-post-rows.php index a587564d3..031b7c634 100644 --- a/wp-admin/edit-post-rows.php +++ b/wp-admin/edit-post-rows.php @@ -11,27 +11,7 @@ if ( ! defined('ABSPATH') ) die();
>
- - $column_display_name ) { - if ( 'cb' === $post_column_key ) - $class = ' class="check-column"'; - elseif ( 'comments' === $post_column_key ) - $class = ' class="manage-column column-comments num"'; - elseif ( 'modified' === $post_column_key ) - $class = ' class="manage-column column-date"'; - else - $class = " class=\"manage-column column-$post_column_key\""; - - $style = ''; - if ( in_array($post_column_key, $hidden) ) - $style = ' style="display:none;"'; -?> - - - + diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index b5ea0695c..3312d4580 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -141,6 +141,19 @@ endif; ?>
+ +
+
+ +
+
+
+
+ +
+
+
+

Add New)') : __('Manage Tags'), '#addtag' ); ?>


@@ -182,9 +195,7 @@ if ( $page_links )
>
- - - + diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 466e0fe50..86b5054d1 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -443,16 +443,90 @@ function wp_manage_pages_columns() { return $posts_columns; } -function wp_manage_links_columns() { - $link_columns = array( - 'name' => __('Name'), - 'url' => __('URL'), - 'categories' => __('Categories'), - 'rel' => __('rel'), - 'visible' => __('Visible'), - ); +function get_column_headers($page) { + switch ($page) { + case 'post': + return wp_manage_posts_columns(); + case 'page': + return wp_manage_pages_columns(); + case 'link': + $columns = array( + 'cb' => '', + 'name' => __('Name'), + 'url' => __('URL'), + 'categories' => __('Categories'), + 'rel' => __('rel'), + 'visible' => __('Visible') + ); - return apply_filters('manage_link_columns', $link_columns); + return apply_filters('manage_link_columns', $columns); + case 'media': + return wp_manage_media_columns(); + case 'category': + $columns = array( + 'cb' => '', + 'name' => __('Name'), + 'description' => __('Description'), + 'posts' => __('Posts') + ); + + return apply_filters('manage_categories_columns', $columns); + case 'link-category': + $columns = array( + 'cb' => '', + 'name' => __('Name'), + 'description' => __('Description'), + 'links' => __('Links') + ); + + return apply_filters('manage_link_categories_columns', $columns); + case 'tag': + $columns = array( + 'cb' => '', + 'name' => __('Name'), + 'posts' => __('Posts') + ); + + return apply_filters('manage_link_categories_columns', $columns); + } + + return $columns; +} + +function print_column_headers( $type ) { + $columns = get_column_headers( $type ); + $hidden = (array) get_user_option( "manage-$type-columns-hidden" ); + $styles = array(); + $styles['tag']['posts'] = 'width: 90px;'; + $styles['link-category']['links'] = 'width: 90px;'; + $styles['category']['posts'] = 'width: 90px;'; + $styles['link']['visible'] = 'text-align: center;'; + + foreach ( $columns as $column_key => $column_display_name ) { + $class = ' class="manage-column'; + + if ( 'modified' == $column_key ) + $column_key = 'date'; + + $class .= " column-$column_key"; + + if ( 'cb' == $column_key ) + $class .= ' check-column'; + elseif ( in_array($column_key, array('posts', 'comments', 'links')) ) + $class .= ' num'; + + $class .= '"'; + + $style = ''; + if ( in_array($column_key, $hidden) ) + $style = 'display:none;'; + + if ( isset($styles[$type]) && isset($styles[$type][$column_key]) ) + $style .= ' ' . $styles[$type][$column_key]; + $style = ' style="' . $style . '"'; +?> + + @@ -164,17 +164,7 @@ if ( $links ) {
>
- - $column_display_name) { - $class = " class=\"manage-column column-$column_name\""; - $style = ''; - if ( in_array($column_name, $hidden) ) - $style = ' style="display:none;"'; - if ( 'visible' == $column_name ) - $style = empty($style) ? ' style="text-align: center;"' : ' style="text-align: center; display: none;"'; -?> - - + @@ -196,7 +186,6 @@ if ( $links ) { ++ $alt; $edit_link = get_edit_bookmark_link(); ?>>'; foreach($link_columns as $column_name=>$column_display_name) { $class = "class=\"column-$column_name\""; @@ -208,6 +197,9 @@ if ( $links ) { $attributes = "$class$style"; switch($column_name) { + case 'cb': + echo ''; + break; case 'name': echo "
>