From bbaa2ed57008716f22a323b73a42d7e7cd3f3bfe Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 18 Nov 2008 00:59:57 +0000 Subject: [PATCH] Page link styling improvements. Props iammattthomas. fixes #8266 git-svn-id: https://develop.svn.wordpress.org/trunk@9746 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/categories.php | 4 ++-- wp-admin/css/colors-fresh.css | 26 +++++++++++++++++++++++++- wp-admin/edit-comments.php | 4 ++-- wp-admin/edit-link-categories.php | 4 ++-- wp-admin/edit-pages.php | 4 ++-- wp-admin/edit-tags.php | 4 ++-- wp-admin/edit.php | 4 ++-- wp-admin/includes/media.php | 4 ++-- wp-admin/includes/plugin-install.php | 4 ++-- wp-admin/themes.php | 4 ++-- wp-admin/upload.php | 4 ++-- wp-admin/user-edit.php | 2 +- wp-admin/users.php | 2 +- wp-admin/wp-admin.css | 18 ++++++++++++------ wp-includes/script-loader.php | 4 ++-- 15 files changed, 61 insertions(+), 31 deletions(-) diff --git a/wp-admin/categories.php b/wp-admin/categories.php index 7fdc3b8a8f..2977e0b6a7 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -165,8 +165,8 @@ if( ! isset( $catsperpage ) || $catsperpage < 0 ) $page_links = paginate_links( array( 'base' => add_query_arg( 'pagenum', '%#%' ), 'format' => '', - 'prev_text' => __('«'), - 'next_text' => __('»'), + 'prev_text' => __('←'), + 'next_text' => __('→'), 'total' => ceil(wp_count_terms('category') / $catsperpage), 'current' => $pagenum )); diff --git a/wp-admin/css/colors-fresh.css b/wp-admin/css/colors-fresh.css index 971f3925f1..b299e35f3c 100644 --- a/wp-admin/css/colors-fresh.css +++ b/wp-admin/css/colors-fresh.css @@ -539,7 +539,7 @@ li.widget-list-control-item h4, background-color: #fffbcc; } -#edit-slug-box strong, .login #nav a { +#edit-slug-box strong, .login #nav a, .tablenav .displaying-num { color: #777; } @@ -1309,3 +1309,27 @@ div.star.select:hover { #major-publishing-actions, #dashboard_quick_press .submit { background: #eaf2fa; } + +.tablenav .tablenav-pages, { + color: #555; +} + +.tablenav .tablenav-pages a { + border-color: #efefef; + background: #eee; +} + +.tablenav .tablenav-pages a:hover { + color: #fff; + background-color: #d54e21; + border-color: #d54321; +} + +.tablenav .tablenav-pages a:active { + color: #fff !important; +} + +.tablenav .tablenav-pages .current { + background: #dfdfdf; + border-color: #dfdfdf; +} \ No newline at end of file diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index cd0db8f21f..bc3d711e38 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -172,8 +172,8 @@ $extra_comments = array_slice($_comments, $comments_per_page); $page_links = paginate_links( array( 'base' => add_query_arg( 'apage', '%#%' ), 'format' => '', - 'prev_text' => __('«'), - 'next_text' => __('»'), + 'prev_text' => __('←'), + 'next_text' => __('→'), 'total' => ceil($total / $comments_per_page), 'current' => $page )); diff --git a/wp-admin/edit-link-categories.php b/wp-admin/edit-link-categories.php index 5463252c15..5c981f347d 100644 --- a/wp-admin/edit-link-categories.php +++ b/wp-admin/edit-link-categories.php @@ -93,8 +93,8 @@ if( ! isset( $catsperpage ) || $catsperpage < 0 ) $page_links = paginate_links( array( 'base' => add_query_arg( 'pagenum', '%#%' ), 'format' => '', - 'prev_text' => __('«'), - 'next_text' => __('»'), + 'prev_text' => __('←'), + 'next_text' => __('→'), 'total' => ceil(wp_count_terms('link_category') / $catsperpage), 'current' => $pagenum )); diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index e5c74715de..4adcd3bcd6 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -179,8 +179,8 @@ $num_pages = ceil($wp_query->post_count / $per_page); $page_links = paginate_links( array( 'base' => add_query_arg( 'pagenum', '%#%' ), 'format' => '', - 'prev_text' => __('«'), - 'next_text' => __('»'), + 'prev_text' => __('←'), + 'next_text' => __('→'), 'total' => $num_pages, 'current' => $pagenum )); diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index caec12c80a..29026576cf 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -161,8 +161,8 @@ if( ! isset( $tagsperpage ) || $tagsperpage < 0 ) $page_links = paginate_links( array( 'base' => add_query_arg( 'pagenum', '%#%' ), 'format' => '', - 'prev_text' => __('«'), - 'next_text' => __('»'), + 'prev_text' => __('←'), + 'next_text' => __('→'), 'total' => ceil(wp_count_terms('post_tag') / $tagsperpage), 'current' => $pagenum )); diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 9d2ea5a6ae..84bfb372ea 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -162,8 +162,8 @@ endif; $page_links = paginate_links( array( 'base' => add_query_arg( 'paged', '%#%' ), 'format' => '', - 'prev_text' => __('«'), - 'next_text' => __('»'), + 'prev_text' => __('←'), + 'next_text' => __('→'), 'total' => $wp_query->max_num_pages, 'current' => $_GET['paged'] )); diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 6dfd2dee00..ca5155925b 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1550,8 +1550,8 @@ unset($type_links); $page_links = paginate_links( array( 'base' => add_query_arg( 'paged', '%#%' ), 'format' => '', - 'prev_text' => __('«'), - 'next_text' => __('»'), + 'prev_text' => __('←'), + 'next_text' => __('→'), 'total' => ceil($wp_query->found_posts / 10), 'current' => $_GET['paged'] )); diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index b237aa4496..05fee27fa0 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -268,8 +268,8 @@ function display_plugins_table($plugins, $page = 1, $totalpages = 1){ $page_links = paginate_links( array( 'base' => add_query_arg('paged', '%#%', $url), 'format' => '', - 'prev_text' => __('«'), - 'next_text' => __('»'), + 'prev_text' => __('←'), + 'next_text' => __('→'), 'total' => $totalpages, 'current' => $page )); diff --git a/wp-admin/themes.php b/wp-admin/themes.php index cbcf4a8e40..f1949cf956 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -53,8 +53,8 @@ $start = $offset = ( $page - 1 ) * $per_page; $page_links = paginate_links( array( 'base' => add_query_arg( 'pagenum', '%#%' ) . '#themenav', 'format' => '', - 'prev_text' => __('«'), - 'next_text' => __('»'), + 'prev_text' => __('←'), + 'next_text' => __('→'), 'total' => ceil($theme_total / $per_page), 'current' => $page )); diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 6e9111e397..592f98d16a 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -225,8 +225,8 @@ if ( ! isset($page_links_total) ) $page_links = paginate_links( array( 'base' => add_query_arg( 'paged', '%#%' ), 'format' => '', - 'prev_text' => __('«'), - 'next_text' => __('»'), + 'prev_text' => __('←'), + 'next_text' => __('→'), 'total' => $page_links_total, 'current' => $_GET['paged'] )); diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 2c946a1b8d..fcecf6f15e 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -160,7 +160,7 @@ include ('admin-header.php');

-

+

diff --git a/wp-admin/users.php b/wp-admin/users.php index fcaf5a059a..0bbcb0e56c 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -325,7 +325,7 @@ unset($role_links); get_results() ) : ?> is_search() ) : ?> -

+

diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 2ffa81c997..dec30032e6 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -715,10 +715,6 @@ a.page-numbers { padding: 0 2px; } -.tablenav-pages span.current { - border: 0 none; -} - p.pagenav { margin: 0; display: inline; @@ -764,15 +760,25 @@ p.pagenav { line-height: 30px; font-size: 11px; margin: 0 8px 0 0; - color: #555; } -.tablenav .tablenav-pages a { +.tablenav .tablenav-pages a, .tablenav-pages span.current { text-decoration: none; + border: none; + padding: 3px 6px; + border-width: 1px; + border-style: solid; + -moz-border-radius: 5px; + -khtml-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; } .tablenav .displaying-num { margin-right: 10px; + font-size: 12px; + font-family: Georgia, "Times New Roman", Times, serif; + font-style: italic; } .tablenav .actions { diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 59add0edc9..5f869075e3 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -300,14 +300,14 @@ function wp_default_styles( &$styles ) { $rtl_styles = array( 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'press-this-ie', 'plugin-install', 'farbtastic' ); - $styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20081117' ); + $styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20081118' ); $styles->add_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' ); $styles->add( 'ie', '/wp-admin/css/ie.css', array(), '20081117' ); $styles->add_data( 'ie', 'conditional', 'gte IE 6' ); $styles->add( 'colors', true ); // Register "meta" stylesheet for admin colors - $styles->add( 'colors-fresh', '/wp-admin/css/colors-fresh.css', array(), '20081115'); // for login.php. Is there a better way? + $styles->add( 'colors-fresh', '/wp-admin/css/colors-fresh.css', array(), '20081117'); // for login.php. Is there a better way? $styles->add_data( 'colors-fresh', 'rtl', true ); $styles->add( 'global', '/wp-admin/css/global.css', array(), '20081106' );