From de1ec72949e35855ec669b83c73a8bb724285a50 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 13 Feb 2008 07:32:50 +0000 Subject: [PATCH] Design update for link categories management. git-svn-id: https://develop.svn.wordpress.org/trunk@6804 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/categories.php | 6 +++ wp-admin/edit-link-categories.php | 65 ++++++++++++++++++++++++++++--- wp-admin/edit-pages.php | 4 ++ wp-admin/includes/template.php | 19 +++------ wp-admin/link-manager.php | 4 ++ 5 files changed, 80 insertions(+), 18 deletions(-) diff --git a/wp-admin/categories.php b/wp-admin/categories.php index bf24c463b8..a0b8638f27 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -126,6 +126,12 @@ cat_rows(); +
+ +
+
+
+ diff --git a/wp-admin/edit-link-categories.php b/wp-admin/edit-link-categories.php index b0a1f0e9c8..80870901f2 100644 --- a/wp-admin/edit-link-categories.php +++ b/wp-admin/edit-link-categories.php @@ -19,24 +19,68 @@ if (isset($_GET['message'])) : ?>
+ +
-

add new)'), '#addcat') ?>

+

add new)'), '#addcat') ?>

-

+

+ +

+ + +

+ +
+ +
+ + add_query_arg( 'pagenum', '%#%' ), + 'format' => '', + 'total' => ceil(wp_count_terms('link_category') / $catsperpage), + 'current' => $pagenum +)); + +if ( $page_links ) + echo "
$page_links
"; +?> + +
+ +
+ +
+
+
+ +
+ - + - $start, 'number' => $catsperpage, 'hide_empty' => 0); +if ( !empty( $_GET['s'] ) ) + $args['search'] = $_GET['s']; + +$categories = get_terms( 'link_category', $args ); if ( $categories ) { $output = ''; foreach ( $categories as $category ) { @@ -52,6 +96,17 @@ if ( $categories ) {
+
+ +
+ +$page_links
"; +?> +
+
+ diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index f5e3ed44e3..db44ae967c 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -117,6 +117,10 @@ if ($posts) { } // end if ($posts) ?> +
+
+
+ diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 29f78b949d..b11e930895 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -70,28 +70,21 @@ function link_cat_row( $category ) { return $category; if ( current_user_can( 'manage_categories' ) ) { - $edit = "".__( 'Edit' ).""; + $edit = "". ( $name_override ? $name_override : $category->name ) .""; $default_cat_id = (int) get_option( 'default_link_category' ); - - $delete_url = wp_nonce_url( "link-category.php?action=delete&cat_ID=$category->term_id", "delete-link-category_$category->term_id" ); - if ( $category->term_id != $default_cat_id ) - $edit .= "" . __( 'Delete' ) . ""; - else - $edit .= "" . __( "Default" ); } else { - $edit = ''; + $edit = ( $name_override ? $name_override : $category->name ); } $class = " class='alternate'" == $class ? '' : " class='alternate'"; $category->count = number_format_i18n( $category->count ); $count = ( $category->count > 0 ) ? "$category->count" : $category->count; - $output = " - $category->term_id - " . ( $name_override ? $name_override : $category->name ) . " + $output = "" . + ' ' . + "$edit $category->description - $count - $edit\n\t\n"; + $count"; return apply_filters( 'link_cat_row', $output ); } diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index 6df201ae4e..e88f8cc630 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -203,6 +203,10 @@ if ( $links ) {
+
+
+
+