-
Notifications
You must be signed in to change notification settings - Fork 49
/
wp-pagenavi.php
43 lines (37 loc) · 1.26 KB
/
wp-pagenavi.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
Plugin Name: WP-PageNavi
Plugin URI: https://lesterchan.net/portfolio/programming/php/
Description: Adds a more advanced paging navigation to your WordPress blog
Version: 2.94.5
Author: Lester 'GaMerZ' Chan
Author URI: https://lesterchan.net
Text Domain: wp-pagenavi
*/
require_once __DIR__ . '/scb/load.php';
function _pagenavi_init() {
require_once __DIR__ . '/core.php';
$options = new scbOptions( 'pagenavi_options', __FILE__, array(
'pages_text' => __( 'Page %CURRENT_PAGE% of %TOTAL_PAGES%', 'wp-pagenavi' ),
'current_text' => '%PAGE_NUMBER%',
'page_text' => '%PAGE_NUMBER%',
'first_text' => __( '« First', 'wp-pagenavi' ),
'last_text' => __( 'Last »', 'wp-pagenavi' ),
'prev_text' => __( '«', 'wp-pagenavi' ),
'next_text' => __( '»', 'wp-pagenavi' ),
'dotleft_text' => __( '...', 'wp-pagenavi' ),
'dotright_text' => __( '...', 'wp-pagenavi' ),
'num_pages' => 5,
'num_larger_page_numbers' => 3,
'larger_page_numbers_multiple' => 10,
'always_show' => false,
'use_pagenavi_css' => true,
'style' => 1,
) );
PageNavi_Core::init( $options );
if ( is_admin() ) {
require_once __DIR__ . '/admin.php';
new PageNavi_Options_Page( __FILE__, $options );
}
}
scb_init( '_pagenavi_init' );