RTL for the new style pagination links. fixes #15974.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
291e6c8038
commit
6ca0be1c1e
File diff suppressed because one or more lines are too long
|
@ -89,9 +89,14 @@ td.available-theme {
|
|||
}
|
||||
.tablenav .tablenav-pages {
|
||||
float: left;
|
||||
direction: ltr;
|
||||
}
|
||||
.tablenav .tablenav-pages .paging-input {
|
||||
direction: rtl;
|
||||
}
|
||||
.tablenav .displaying-num {
|
||||
margin-right: 0;
|
||||
float: right;
|
||||
margin-left: 10px;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
}
|
||||
|
|
|
@ -487,14 +487,14 @@ class WP_List_Table {
|
|||
'first-page',
|
||||
esc_attr__( 'Go to the first page' ),
|
||||
esc_url( remove_query_arg( 'paged', $current_url ) ),
|
||||
'««'
|
||||
is_rtl() ? '»' : '«'
|
||||
);
|
||||
|
||||
$page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",
|
||||
'prev-page',
|
||||
esc_attr__( 'Go to the previous page' ),
|
||||
esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ),
|
||||
'«'
|
||||
is_rtl() ? '›' : '‹'
|
||||
);
|
||||
|
||||
$html_current_page = sprintf( "<input class='current-page' title='%s' type='text' name='%s' value='%s' size='%d' />",
|
||||
|
@ -504,23 +504,26 @@ class WP_List_Table {
|
|||
strlen( $total_pages )
|
||||
);
|
||||
$html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) );
|
||||
$page_links[] = sprintf( _x( '%s of %s', 'paging' ), $html_current_page, $html_total_pages );
|
||||
$page_links[] = '<span class="paging-input">' . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . '</span>';
|
||||
|
||||
$page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",
|
||||
'next-page',
|
||||
esc_attr__( 'Go to the next page' ),
|
||||
esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ),
|
||||
'»'
|
||||
is_rtl() ? '‹' : '›'
|
||||
);
|
||||
|
||||
$page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",
|
||||
'last-page',
|
||||
esc_attr__( 'Go to the last page' ),
|
||||
esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ),
|
||||
'»»'
|
||||
is_rtl() ? '«' : '»'
|
||||
);
|
||||
|
||||
$output .= join( "\n", $page_links );
|
||||
if ( is_rtl() )
|
||||
$page_links = array_reverse( $page_links );
|
||||
|
||||
$output .= "\n" . join( "\n", $page_links );
|
||||
|
||||
$this->_pagination = "<div class='tablenav-pages'>$output</div>";
|
||||
|
||||
|
|
|
@ -484,7 +484,7 @@ function wp_default_styles( &$styles ) {
|
|||
// Any rtl stylesheets that don't have a .dev version for ltr
|
||||
$no_suffix = array( 'farbtastic' );
|
||||
|
||||
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20101223' );
|
||||
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20101225' );
|
||||
|
||||
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array(), '20101102' );
|
||||
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
|
||||
|
|
Loading…
Reference in New Issue