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(
|
||||
'base' => add_query_arg( 'pagenum', '%#%' ),
|
||||
'format' => '',
|
||||
'prev_text' => __('←'),
|
||||
'next_text' => __('→'),
|
||||
'prev_text' => __('«'),
|
||||
'next_text' => __('»'),
|
||||
'total' => ceil(wp_count_terms('category') / $catsperpage),
|
||||
'current' => $pagenum
|
||||
));
|
||||
|
|
|
@ -177,8 +177,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
|
||||
));
|
||||
|
|
|
@ -94,8 +94,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
|
||||
));
|
||||
|
|
|
@ -181,8 +181,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
|
||||
));
|
||||
|
|
|
@ -162,8 +162,8 @@ $tagsperpage = apply_filters("tagsperpage",20);
|
|||
$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
|
||||
));
|
||||
|
|
|
@ -168,8 +168,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']
|
||||
));
|
||||
|
|
|
@ -1678,8 +1678,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']
|
||||
));
|
||||
|
|
|
@ -271,8 +271,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
|
||||
));
|
||||
|
|
|
@ -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
|
||||
));
|
||||
|
|
|
@ -221,8 +221,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']
|
||||
));
|
||||
|
|
Loading…
Reference in New Issue