Page link styling improvements. Props iammattthomas. fixes #8266

git-svn-id: https://develop.svn.wordpress.org/trunk@9746 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-11-18 00:59:57 +00:00
parent 920856cd35
commit bbaa2ed570
15 changed files with 61 additions and 31 deletions

View File

@ -165,8 +165,8 @@ if( ! isset( $catsperpage ) || $catsperpage < 0 )
$page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ),
'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'prev_text' => __('&larr;'),
'next_text' => __('&rarr;'),
'total' => ceil(wp_count_terms('category') / $catsperpage),
'current' => $pagenum
));

View File

@ -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;
}

View File

@ -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' => __('&laquo;'),
'next_text' => __('&raquo;'),
'prev_text' => __('&larr;'),
'next_text' => __('&rarr;'),
'total' => ceil($total / $comments_per_page),
'current' => $page
));

View File

@ -93,8 +93,8 @@ if( ! isset( $catsperpage ) || $catsperpage < 0 )
$page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ),
'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'prev_text' => __('&larr;'),
'next_text' => __('&rarr;'),
'total' => ceil(wp_count_terms('link_category') / $catsperpage),
'current' => $pagenum
));

View File

@ -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' => __('&laquo;'),
'next_text' => __('&raquo;'),
'prev_text' => __('&larr;'),
'next_text' => __('&rarr;'),
'total' => $num_pages,
'current' => $pagenum
));

View File

@ -161,8 +161,8 @@ if( ! isset( $tagsperpage ) || $tagsperpage < 0 )
$page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ),
'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'prev_text' => __('&larr;'),
'next_text' => __('&rarr;'),
'total' => ceil(wp_count_terms('post_tag') / $tagsperpage),
'current' => $pagenum
));

View File

@ -162,8 +162,8 @@ endif;
$page_links = paginate_links( array(
'base' => add_query_arg( 'paged', '%#%' ),
'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'prev_text' => __('&larr;'),
'next_text' => __('&rarr;'),
'total' => $wp_query->max_num_pages,
'current' => $_GET['paged']
));

View File

@ -1550,8 +1550,8 @@ unset($type_links);
$page_links = paginate_links( array(
'base' => add_query_arg( 'paged', '%#%' ),
'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'prev_text' => __('&larr;'),
'next_text' => __('&rarr;'),
'total' => ceil($wp_query->found_posts / 10),
'current' => $_GET['paged']
));

View File

@ -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' => __('&laquo;'),
'next_text' => __('&raquo;'),
'prev_text' => __('&larr;'),
'next_text' => __('&rarr;'),
'total' => $totalpages,
'current' => $page
));

View File

@ -53,8 +53,8 @@ $start = $offset = ( $page - 1 ) * $per_page;
$page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ) . '#themenav',
'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'prev_text' => __('&larr;'),
'next_text' => __('&rarr;'),
'total' => ceil($theme_total / $per_page),
'current' => $page
));

View File

@ -225,8 +225,8 @@ if ( ! isset($page_links_total) )
$page_links = paginate_links( array(
'base' => add_query_arg( 'paged', '%#%' ),
'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'prev_text' => __('&larr;'),
'next_text' => __('&rarr;'),
'total' => $page_links_total,
'current' => $_GET['paged']
));

View File

@ -160,7 +160,7 @@ include ('admin-header.php');
<div id="message" class="updated fade">
<p><strong><?php _e('User updated.') ?></strong></p>
<?php if ( $wp_http_referer && !$is_profile_page ) : ?>
<p><a href="users.php"><?php _e('&laquo; Back to Authors and Users'); ?></a></p>
<p><a href="users.php"><?php _e('&larr; Back to Authors and Users'); ?></a></p>
<?php endif; ?>
</div>
<?php endif; ?>

View File

@ -325,7 +325,7 @@ unset($role_links);
<?php if ( $wp_user_search->get_results() ) : ?>
<?php if ( $wp_user_search->is_search() ) : ?>
<p><a href="users.php"><?php _e('&laquo; Back to All Users'); ?></a></p>
<p><a href="users.php"><?php _e('&larr; Back to All Users'); ?></a></p>
<?php endif; ?>
<table class="widefat fixed" cellspacing="0">

View File

@ -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 {

View File

@ -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' );