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( $page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ), 'base' => add_query_arg( 'pagenum', '%#%' ),
'format' => '', 'format' => '',
'prev_text' => __('&laquo;'), 'prev_text' => __('&larr;'),
'next_text' => __('&raquo;'), 'next_text' => __('&rarr;'),
'total' => ceil(wp_count_terms('category') / $catsperpage), 'total' => ceil(wp_count_terms('category') / $catsperpage),
'current' => $pagenum 'current' => $pagenum
)); ));

View File

@ -539,7 +539,7 @@ li.widget-list-control-item h4,
background-color: #fffbcc; background-color: #fffbcc;
} }
#edit-slug-box strong, .login #nav a { #edit-slug-box strong, .login #nav a, .tablenav .displaying-num {
color: #777; color: #777;
} }
@ -1309,3 +1309,27 @@ div.star.select:hover {
#major-publishing-actions, #dashboard_quick_press .submit { #major-publishing-actions, #dashboard_quick_press .submit {
background: #eaf2fa; 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( $page_links = paginate_links( array(
'base' => add_query_arg( 'apage', '%#%' ), 'base' => add_query_arg( 'apage', '%#%' ),
'format' => '', 'format' => '',
'prev_text' => __('&laquo;'), 'prev_text' => __('&larr;'),
'next_text' => __('&raquo;'), 'next_text' => __('&rarr;'),
'total' => ceil($total / $comments_per_page), 'total' => ceil($total / $comments_per_page),
'current' => $page 'current' => $page
)); ));

View File

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

View File

@ -179,8 +179,8 @@ $num_pages = ceil($wp_query->post_count / $per_page);
$page_links = paginate_links( array( $page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ), 'base' => add_query_arg( 'pagenum', '%#%' ),
'format' => '', 'format' => '',
'prev_text' => __('&laquo;'), 'prev_text' => __('&larr;'),
'next_text' => __('&raquo;'), 'next_text' => __('&rarr;'),
'total' => $num_pages, 'total' => $num_pages,
'current' => $pagenum 'current' => $pagenum
)); ));

View File

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

View File

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

View File

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

View File

@ -268,8 +268,8 @@ function display_plugins_table($plugins, $page = 1, $totalpages = 1){
$page_links = paginate_links( array( $page_links = paginate_links( array(
'base' => add_query_arg('paged', '%#%', $url), 'base' => add_query_arg('paged', '%#%', $url),
'format' => '', 'format' => '',
'prev_text' => __('&laquo;'), 'prev_text' => __('&larr;'),
'next_text' => __('&raquo;'), 'next_text' => __('&rarr;'),
'total' => $totalpages, 'total' => $totalpages,
'current' => $page 'current' => $page
)); ));

View File

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

View File

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

View File

@ -160,7 +160,7 @@ include ('admin-header.php');
<div id="message" class="updated fade"> <div id="message" class="updated fade">
<p><strong><?php _e('User updated.') ?></strong></p> <p><strong><?php _e('User updated.') ?></strong></p>
<?php if ( $wp_http_referer && !$is_profile_page ) : ?> <?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; ?> <?php endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -325,7 +325,7 @@ unset($role_links);
<?php if ( $wp_user_search->get_results() ) : ?> <?php if ( $wp_user_search->get_results() ) : ?>
<?php if ( $wp_user_search->is_search() ) : ?> <?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; ?> <?php endif; ?>
<table class="widefat fixed" cellspacing="0"> <table class="widefat fixed" cellspacing="0">

View File

@ -715,10 +715,6 @@ a.page-numbers {
padding: 0 2px; padding: 0 2px;
} }
.tablenav-pages span.current {
border: 0 none;
}
p.pagenav { p.pagenav {
margin: 0; margin: 0;
display: inline; display: inline;
@ -764,15 +760,25 @@ p.pagenav {
line-height: 30px; line-height: 30px;
font-size: 11px; font-size: 11px;
margin: 0 8px 0 0; margin: 0 8px 0 0;
color: #555;
} }
.tablenav .tablenav-pages a { .tablenav .tablenav-pages a, .tablenav-pages span.current {
text-decoration: none; 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 { .tablenav .displaying-num {
margin-right: 10px; margin-right: 10px;
font-size: 12px;
font-family: Georgia, "Times New Roman", Times, serif;
font-style: italic;
} }
.tablenav .actions { .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' ); $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_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' );
$styles->add( 'ie', '/wp-admin/css/ie.css', array(), '20081117' ); $styles->add( 'ie', '/wp-admin/css/ie.css', array(), '20081117' );
$styles->add_data( 'ie', 'conditional', 'gte IE 6' ); $styles->add_data( 'ie', 'conditional', 'gte IE 6' );
$styles->add( 'colors', true ); // Register "meta" stylesheet for admin colors $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_data( 'colors-fresh', 'rtl', true );
$styles->add( 'global', '/wp-admin/css/global.css', array(), '20081106' ); $styles->add( 'global', '/wp-admin/css/global.css', array(), '20081106' );