hah

2010年01月19日

function wp_pagenavi($before = ”, $after = ”, $prelabel = ”, $nxtlabel = ”, $pages_to_show = 5, $always_show = false) {

global $request, $posts_per_page, $wpdb, $paged;

if(empty($prelabel)) { $prelabel = ‘<strong>上一页</strong>’;

} if(empty($nxtlabel)) {

$nxtlabel = ‘<strong>下一页</strong>’;

} $half_pages_to_show = round($pages_to_show/2);

if (!is_single()) {

function wp_pagenavi($before = ”, $after = ”, $prelabel = ”, $nxtlabel = ”, $pages_to_show = 5, $always_show = false) {
global $request, $posts_per_page, $wpdb, $paged;
if(empty($prelabel)) { $prelabel = ‘<strong>上一页</strong>’;
} if(empty($nxtlabel)) {
$nxtlabel = ‘<strong>下一页</strong>’;
} $half_pages_to_show = round($pages_to_show/2);
if (!is_single()) {