mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 16:08:12 +01:00
Pagination arrow replacement, fixes #8363
git-svn-id: http://svn.automattic.com/wordpress/trunk@9914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
febd8bd0f1
commit
f36c6cf666
@ -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' => __('←'),
|
'prev_text' => __('«'),
|
||||||
'next_text' => __('→'),
|
'next_text' => __('»'),
|
||||||
'total' => ceil(wp_count_terms('category') / $catsperpage),
|
'total' => ceil(wp_count_terms('category') / $catsperpage),
|
||||||
'current' => $pagenum
|
'current' => $pagenum
|
||||||
));
|
));
|
||||||
|
@ -177,8 +177,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' => __('←'),
|
'prev_text' => __('«'),
|
||||||
'next_text' => __('→'),
|
'next_text' => __('»'),
|
||||||
'total' => ceil($total / $comments_per_page),
|
'total' => ceil($total / $comments_per_page),
|
||||||
'current' => $page
|
'current' => $page
|
||||||
));
|
));
|
||||||
|
@ -94,8 +94,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' => __('←'),
|
'prev_text' => __('«'),
|
||||||
'next_text' => __('→'),
|
'next_text' => __('»'),
|
||||||
'total' => ceil(wp_count_terms('link_category') / $catsperpage),
|
'total' => ceil(wp_count_terms('link_category') / $catsperpage),
|
||||||
'current' => $pagenum
|
'current' => $pagenum
|
||||||
));
|
));
|
||||||
|
@ -181,8 +181,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' => __('←'),
|
'prev_text' => __('«'),
|
||||||
'next_text' => __('→'),
|
'next_text' => __('»'),
|
||||||
'total' => $num_pages,
|
'total' => $num_pages,
|
||||||
'current' => $pagenum
|
'current' => $pagenum
|
||||||
));
|
));
|
||||||
|
@ -162,8 +162,8 @@ $tagsperpage = apply_filters("tagsperpage",20);
|
|||||||
$page_links = paginate_links( array(
|
$page_links = paginate_links( array(
|
||||||
'base' => add_query_arg( 'pagenum', '%#%' ),
|
'base' => add_query_arg( 'pagenum', '%#%' ),
|
||||||
'format' => '',
|
'format' => '',
|
||||||
'prev_text' => __('←'),
|
'prev_text' => __('«'),
|
||||||
'next_text' => __('→'),
|
'next_text' => __('»'),
|
||||||
'total' => ceil(wp_count_terms('post_tag') / $tagsperpage),
|
'total' => ceil(wp_count_terms('post_tag') / $tagsperpage),
|
||||||
'current' => $pagenum
|
'current' => $pagenum
|
||||||
));
|
));
|
||||||
|
@ -168,8 +168,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' => __('←'),
|
'prev_text' => __('«'),
|
||||||
'next_text' => __('→'),
|
'next_text' => __('»'),
|
||||||
'total' => $wp_query->max_num_pages,
|
'total' => $wp_query->max_num_pages,
|
||||||
'current' => $_GET['paged']
|
'current' => $_GET['paged']
|
||||||
));
|
));
|
||||||
|
@ -1678,8 +1678,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' => __('←'),
|
'prev_text' => __('«'),
|
||||||
'next_text' => __('→'),
|
'next_text' => __('»'),
|
||||||
'total' => ceil($wp_query->found_posts / 10),
|
'total' => ceil($wp_query->found_posts / 10),
|
||||||
'current' => $_GET['paged']
|
'current' => $_GET['paged']
|
||||||
));
|
));
|
||||||
|
@ -271,8 +271,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' => __('←'),
|
'prev_text' => __('«'),
|
||||||
'next_text' => __('→'),
|
'next_text' => __('»'),
|
||||||
'total' => $totalpages,
|
'total' => $totalpages,
|
||||||
'current' => $page
|
'current' => $page
|
||||||
));
|
));
|
||||||
|
@ -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' => __('←'),
|
'prev_text' => __('«'),
|
||||||
'next_text' => __('→'),
|
'next_text' => __('»'),
|
||||||
'total' => ceil($theme_total / $per_page),
|
'total' => ceil($theme_total / $per_page),
|
||||||
'current' => $page
|
'current' => $page
|
||||||
));
|
));
|
||||||
|
@ -221,8 +221,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' => __('←'),
|
'prev_text' => __('«'),
|
||||||
'next_text' => __('→'),
|
'next_text' => __('»'),
|
||||||
'total' => $page_links_total,
|
'total' => $page_links_total,
|
||||||
'current' => $_GET['paged']
|
'current' => $_GET['paged']
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user