From b54674879ea52fc2d4ce6973eaa2ed454a58e452 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 12 Feb 2008 09:25:19 +0000 Subject: [PATCH] Manage Tags design update. Column spacing and justification need fixing. git-svn-id: http://svn.automattic.com/wordpress/trunk@6800 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-tags.php | 72 +++++++++++++++++++++------------- wp-admin/includes/template.php | 17 +++----- 2 files changed, 50 insertions(+), 39 deletions(-) diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 463f616a9..b589484a1 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -101,16 +101,46 @@ $messages[6] = __('Tags deleted.');
-
+ -

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

+

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

-

+

- + +

+ + +

+ +
+ +
+ + add_query_arg( 'pagenum', '%#%' ), + 'format' => '', + 'total' => ceil(wp_count_terms('post_tag') / $tagsperpage), + 'current' => $pagenum +)); + +if ( $page_links ) + echo "
$page_links
"; +?> + +
+ +
+ +
+

@@ -122,18 +152,13 @@ $messages[6] = __('Tags deleted.'); - -

')" />

+ +
+ = 1 ) { - echo '<<' . __('Previous Tags') . ''; - if( $count == $tagsperpage ) { - echo ' | '; - } -} - - -if( $count == $tagsperpage ) { - echo '' . __('Next Tags') . '>>'; -} - +if ( $page_links ) + echo "
$page_links
"; ?> +
+
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index fbfc3e0ba..29f78b949 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -242,17 +242,10 @@ function _tag_row( $tag, $class = '' ) { $out = ''; $out .= ''; $out .= ' '; - $out .= '' . $tag->term_id . ''; - - $out .= '' . apply_filters( 'term_name', $tag->name ) . ''; + $out .= '' . + apply_filters( 'term_name', $tag->name ) . ''; $out .= "$count"; - $out .= '' . - __( 'Edit' ) . "" . - 'term_id", - 'delete-tag_' . $tag->term_id ) . - '" class="delete:the-list:tag-' . $tag->term_id . ' delete">' . - __( 'Delete' ) . ""; $out .= ''; return $out; @@ -261,15 +254,15 @@ function _tag_row( $tag, $class = '' ) { // Outputs appropriate rows for the Nth page of the Tag Management screen, // assuming M tags displayed at a time on the page // Returns the number of tags displayed -function tag_rows( $page = 0, $pagesize = 20, $searchterms = '' ) { +function tag_rows( $page = 1, $pagesize = 20, $searchterms = '' ) { // Get a page worth of tags - $start = $page * $pagesize; + $start = ($page - 1) * $pagesize; $args = array('offset' => $start, 'number' => $pagesize, 'hide_empty' => 0); if ( !empty( $searchterms ) ) { - $args['name__like'] = '%' . like_escape( $searchterms ); + $args['search'] = $searchterms; } $tags = get_terms( 'post_tag', $args );