Version Description
(2010-08-17) = * added $options arg to wp_pagenavi() * updated scbFramework * 3 new translations: AL, JA, BR
Download this release
Release Info
Developer | scribu |
Plugin | WP-PageNavi |
Version | 2.73 |
Comparing to | |
See all releases |
Code changes from version 2.72 to 2.73
- admin.php +40 -40
- core.php +197 -0
- lang/wp-pagenavi-bg_BG.mo +0 -0
- lang/wp-pagenavi-bg_BG.po +198 -130
- lang/wp-pagenavi-es_ES.mo +0 -0
- lang/wp-pagenavi-es_ES.po +174 -159
- lang/wp-pagenavi-id_ID.mo +0 -0
- lang/wp-pagenavi-id_ID.po +237 -0
- lang/wp-pagenavi-ja.mo +0 -0
- lang/wp-pagenavi-ja.po +197 -0
- lang/wp-pagenavi-lt_LT.mo +0 -0
- lang/wp-pagenavi-lt_LT.po +198 -0
- lang/wp-pagenavi-nb_NO.mo +0 -0
- lang/wp-pagenavi-nb_NO.po +196 -0
- lang/wp-pagenavi-pt_BR.mo +0 -0
- lang/wp-pagenavi-pt_BR.po +196 -0
- lang/wp-pagenavi-ru_RU.mo +0 -0
- lang/wp-pagenavi-ru_RU.po +186 -152
- lang/wp-pagenavi-sk.mo +0 -0
- lang/wp-pagenavi-sk.po +196 -0
- lang/wp-pagenavi-tt_RU.mo +0 -0
- lang/wp-pagenavi-tt_RU.po +203 -0
- lang/wp-pagenavi.pot +42 -42
- readme.txt +8 -3
- scb/AdminPage.php +181 -145
- scb/BoxesPage.php +223 -0
- scb/Cron.php +182 -0
- scb/Forms.php +138 -182
- scb/Options.php +64 -52
- scb/QueryManipulation.php +81 -0
- scb/Table.php +49 -0
- scb/Util.php +71 -61
- scb/Widget.php +89 -0
- scb/load.php +52 -44
- wp-pagenavi.php +19 -206
admin.php
CHANGED
@@ -6,17 +6,17 @@ class PageNavi_Options_Page extends scbAdminPage {
|
|
6 |
$this->textdomain = 'wp-pagenavi';
|
7 |
|
8 |
$this->args = array(
|
9 |
-
'page_title' => __('PageNavi Settings', $this->textdomain),
|
10 |
-
'menu_title' => __('PageNavi', $this->textdomain),
|
11 |
'page_slug' => 'pagenavi',
|
12 |
);
|
13 |
}
|
14 |
|
15 |
-
function validate($options) {
|
16 |
-
foreach ( array('style', 'num_pages', 'num_larger_page_numbers', 'larger_page_numbers_multiple') as $key )
|
17 |
-
$options[$key] = absint(@$options[$key]);
|
18 |
|
19 |
-
foreach ( array('use_pagenavi_css', 'always_show') as $key )
|
20 |
$options[$key] = (bool) @$options[$key];
|
21 |
|
22 |
return $options;
|
@@ -25,133 +25,133 @@ class PageNavi_Options_Page extends scbAdminPage {
|
|
25 |
function page_content() {
|
26 |
$rows = array(
|
27 |
array(
|
28 |
-
'title' => __('Text For Number Of Pages', $this->textdomain),
|
29 |
'type' => 'text',
|
30 |
'name' => 'pages_text',
|
31 |
'extra' => 'size="50"',
|
32 |
'desc' => '<br />
|
33 |
-
%CURRENT_PAGE% - ' . __('The current page number.', $this->textdomain) . '<br />
|
34 |
-
%TOTAL_PAGES% - ' . __('The total number of pages.', $this->textdomain)
|
35 |
),
|
36 |
|
37 |
array(
|
38 |
-
'title' => __('Text For Current Page', $this->textdomain),
|
39 |
'type' => 'text',
|
40 |
'name' => 'current_text',
|
41 |
'desc' => '<br />
|
42 |
-
%PAGE_NUMBER% - ' . __('The page number.', $this->textdomain)
|
43 |
),
|
44 |
|
45 |
array(
|
46 |
-
'title' => __('Text For Page', $this->textdomain),
|
47 |
'type' => 'text',
|
48 |
'name' => 'page_text',
|
49 |
'desc' => '<br />
|
50 |
-
%PAGE_NUMBER% - ' . __('The page number.', $this->textdomain)
|
51 |
),
|
52 |
|
53 |
array(
|
54 |
-
'title' => __('Text For First Page', $this->textdomain),
|
55 |
'type' => 'text',
|
56 |
'name' => 'first_text',
|
57 |
'desc' => '<br />
|
58 |
-
%TOTAL_PAGES% - ' . __('The total number of pages.', $this->textdomain)
|
59 |
),
|
60 |
|
61 |
array(
|
62 |
-
'title' => __('Text For Last Page', $this->textdomain),
|
63 |
'type' => 'text',
|
64 |
'name' => 'last_text',
|
65 |
'desc' => '<br />
|
66 |
-
%TOTAL_PAGES% - ' . __('The total number of pages.', $this->textdomain)
|
67 |
),
|
68 |
|
69 |
array(
|
70 |
-
'title' => __('Text For Previous Page', $this->textdomain),
|
71 |
'type' => 'text',
|
72 |
'name' => 'prev_text',
|
73 |
),
|
74 |
|
75 |
array(
|
76 |
-
'title' => __('Text For Next Page', $this->textdomain),
|
77 |
'type' => 'text',
|
78 |
'name' => 'next_text',
|
79 |
),
|
80 |
|
81 |
array(
|
82 |
-
'title' => __('Text For Previous ...', $this->textdomain),
|
83 |
'type' => 'text',
|
84 |
'name' => 'dotleft_text',
|
85 |
),
|
86 |
|
87 |
array(
|
88 |
-
'title' => __('Text For Next ...', $this->textdomain),
|
89 |
'type' => 'text',
|
90 |
'name' => 'dotright_text',
|
91 |
),
|
92 |
);
|
93 |
|
94 |
$out =
|
95 |
-
html('h3', __('Page Navigation Text', $this->textdomain))
|
96 |
-
.html('p', __('Leaving a field blank will hide that part of the navigation.', $this->textdomain))
|
97 |
-
.$this->table($rows);
|
98 |
|
99 |
|
100 |
$rows = array(
|
101 |
array(
|
102 |
-
'title' => __('Use pagenavi-css.css', $this->textdomain),
|
103 |
'type' => 'checkbox',
|
104 |
'name' => 'use_pagenavi_css',
|
105 |
),
|
106 |
|
107 |
array(
|
108 |
-
'title' => __('Page Navigation Style', $this->textdomain),
|
109 |
'type' => 'select',
|
110 |
'name' => 'style',
|
111 |
-
'values' => array(1 => __('Normal', $this->textdomain), 2 => __('Drop-down List', $this->textdomain)),
|
112 |
'text' => false
|
113 |
),
|
114 |
|
115 |
array(
|
116 |
-
'title' => __('Always Show Page Navigation', $this->textdomain),
|
117 |
'type' => 'checkbox',
|
118 |
'name' => 'always_show',
|
119 |
-
'desc' => __("Show navigation even if there's only one page.", $this->textdomain)
|
120 |
),
|
121 |
|
122 |
array(
|
123 |
-
'title' => __('Number Of Pages To Show', $this->textdomain),
|
124 |
'type' => 'text',
|
125 |
'name' => 'num_pages',
|
126 |
'extra' => 'class="small-text"'
|
127 |
),
|
128 |
|
129 |
array(
|
130 |
-
'title' => __('Number Of Larger Page Numbers To Show', $this->textdomain),
|
131 |
'type' => 'text',
|
132 |
'name' => 'num_larger_page_numbers',
|
133 |
'extra' => 'class="small-text"',
|
134 |
-
'desc' =>
|
135 |
-
'<br />' . __('Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts.', $this->textdomain) .
|
136 |
-
'<br />' . __('For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50.', $this->textdomain) .
|
137 |
-
'<br />' . __('Enter 0 to disable.', $this->textdomain)
|
138 |
),
|
139 |
|
140 |
array(
|
141 |
-
'title' => __('Show Larger Page Numbers In Multiples Of', $this->textdomain),
|
142 |
'type' => 'text',
|
143 |
'name' => 'larger_page_numbers_multiple',
|
144 |
'extra' => 'class="small-text"',
|
145 |
'desc' =>
|
146 |
-
'<br />' . __('For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25', $this->textdomain)
|
147 |
),
|
148 |
);
|
149 |
|
150 |
$out .=
|
151 |
-
html('h3', __('Page Navigation Options', $this->textdomain))
|
152 |
-
.$this->table($rows);
|
153 |
|
154 |
-
echo $this->form_wrap($out);
|
155 |
}
|
156 |
}
|
157 |
|
6 |
$this->textdomain = 'wp-pagenavi';
|
7 |
|
8 |
$this->args = array(
|
9 |
+
'page_title' => __( 'PageNavi Settings', $this->textdomain ),
|
10 |
+
'menu_title' => __( 'PageNavi', $this->textdomain ),
|
11 |
'page_slug' => 'pagenavi',
|
12 |
);
|
13 |
}
|
14 |
|
15 |
+
function validate( $options ) {
|
16 |
+
foreach ( array( 'style', 'num_pages', 'num_larger_page_numbers', 'larger_page_numbers_multiple' ) as $key )
|
17 |
+
$options[$key] = absint( @$options[$key] );
|
18 |
|
19 |
+
foreach ( array( 'use_pagenavi_css', 'always_show' ) as $key )
|
20 |
$options[$key] = (bool) @$options[$key];
|
21 |
|
22 |
return $options;
|
25 |
function page_content() {
|
26 |
$rows = array(
|
27 |
array(
|
28 |
+
'title' => __( 'Text For Number Of Pages', $this->textdomain ),
|
29 |
'type' => 'text',
|
30 |
'name' => 'pages_text',
|
31 |
'extra' => 'size="50"',
|
32 |
'desc' => '<br />
|
33 |
+
%CURRENT_PAGE% - ' . __( 'The current page number.', $this->textdomain ) . '<br />
|
34 |
+
%TOTAL_PAGES% - ' . __( 'The total number of pages.', $this->textdomain )
|
35 |
),
|
36 |
|
37 |
array(
|
38 |
+
'title' => __( 'Text For Current Page', $this->textdomain ),
|
39 |
'type' => 'text',
|
40 |
'name' => 'current_text',
|
41 |
'desc' => '<br />
|
42 |
+
%PAGE_NUMBER% - ' . __( 'The page number.', $this->textdomain )
|
43 |
),
|
44 |
|
45 |
array(
|
46 |
+
'title' => __( 'Text For Page', $this->textdomain ),
|
47 |
'type' => 'text',
|
48 |
'name' => 'page_text',
|
49 |
'desc' => '<br />
|
50 |
+
%PAGE_NUMBER% - ' . __( 'The page number.', $this->textdomain )
|
51 |
),
|
52 |
|
53 |
array(
|
54 |
+
'title' => __( 'Text For First Page', $this->textdomain ),
|
55 |
'type' => 'text',
|
56 |
'name' => 'first_text',
|
57 |
'desc' => '<br />
|
58 |
+
%TOTAL_PAGES% - ' . __( 'The total number of pages.', $this->textdomain )
|
59 |
),
|
60 |
|
61 |
array(
|
62 |
+
'title' => __( 'Text For Last Page', $this->textdomain ),
|
63 |
'type' => 'text',
|
64 |
'name' => 'last_text',
|
65 |
'desc' => '<br />
|
66 |
+
%TOTAL_PAGES% - ' . __( 'The total number of pages.', $this->textdomain )
|
67 |
),
|
68 |
|
69 |
array(
|
70 |
+
'title' => __( 'Text For Previous Page', $this->textdomain ),
|
71 |
'type' => 'text',
|
72 |
'name' => 'prev_text',
|
73 |
),
|
74 |
|
75 |
array(
|
76 |
+
'title' => __( 'Text For Next Page', $this->textdomain ),
|
77 |
'type' => 'text',
|
78 |
'name' => 'next_text',
|
79 |
),
|
80 |
|
81 |
array(
|
82 |
+
'title' => __( 'Text For Previous ...', $this->textdomain ),
|
83 |
'type' => 'text',
|
84 |
'name' => 'dotleft_text',
|
85 |
),
|
86 |
|
87 |
array(
|
88 |
+
'title' => __( 'Text For Next ...', $this->textdomain ),
|
89 |
'type' => 'text',
|
90 |
'name' => 'dotright_text',
|
91 |
),
|
92 |
);
|
93 |
|
94 |
$out =
|
95 |
+
html( 'h3', __( 'Page Navigation Text', $this->textdomain ) )
|
96 |
+
.html( 'p', __( 'Leaving a field blank will hide that part of the navigation.', $this->textdomain ) )
|
97 |
+
.$this->table( $rows );
|
98 |
|
99 |
|
100 |
$rows = array(
|
101 |
array(
|
102 |
+
'title' => __( 'Use pagenavi-css.css', $this->textdomain ),
|
103 |
'type' => 'checkbox',
|
104 |
'name' => 'use_pagenavi_css',
|
105 |
),
|
106 |
|
107 |
array(
|
108 |
+
'title' => __( 'Page Navigation Style', $this->textdomain ),
|
109 |
'type' => 'select',
|
110 |
'name' => 'style',
|
111 |
+
'values' => array( 1 => __( 'Normal', $this->textdomain ), 2 => __( 'Drop-down List', $this->textdomain ) ),
|
112 |
'text' => false
|
113 |
),
|
114 |
|
115 |
array(
|
116 |
+
'title' => __( 'Always Show Page Navigation', $this->textdomain ),
|
117 |
'type' => 'checkbox',
|
118 |
'name' => 'always_show',
|
119 |
+
'desc' => __( "Show navigation even if there's only one page.", $this->textdomain )
|
120 |
),
|
121 |
|
122 |
array(
|
123 |
+
'title' => __( 'Number Of Pages To Show', $this->textdomain ),
|
124 |
'type' => 'text',
|
125 |
'name' => 'num_pages',
|
126 |
'extra' => 'class="small-text"'
|
127 |
),
|
128 |
|
129 |
array(
|
130 |
+
'title' => __( 'Number Of Larger Page Numbers To Show', $this->textdomain ),
|
131 |
'type' => 'text',
|
132 |
'name' => 'num_larger_page_numbers',
|
133 |
'extra' => 'class="small-text"',
|
134 |
+
'desc' =>
|
135 |
+
'<br />' . __( 'Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts.', $this->textdomain ) .
|
136 |
+
'<br />' . __( 'For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50.', $this->textdomain ) .
|
137 |
+
'<br />' . __( 'Enter 0 to disable.', $this->textdomain )
|
138 |
),
|
139 |
|
140 |
array(
|
141 |
+
'title' => __( 'Show Larger Page Numbers In Multiples Of', $this->textdomain ),
|
142 |
'type' => 'text',
|
143 |
'name' => 'larger_page_numbers_multiple',
|
144 |
'extra' => 'class="small-text"',
|
145 |
'desc' =>
|
146 |
+
'<br />' . __( 'For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25', $this->textdomain )
|
147 |
),
|
148 |
);
|
149 |
|
150 |
$out .=
|
151 |
+
html( 'h3', __( 'Page Navigation Options', $this->textdomain ) )
|
152 |
+
.$this->table( $rows );
|
153 |
|
154 |
+
echo $this->form_wrap( $out );
|
155 |
}
|
156 |
}
|
157 |
|
core.php
ADDED
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Template tag: Boxed Style Paging
|
5 |
+
*
|
6 |
+
* @arg string $before
|
7 |
+
* @arg string $after
|
8 |
+
* @arg string|array $options Used to overwrite options set in WP-Admin -> Settings -> PageNavi
|
9 |
+
*/
|
10 |
+
function wp_pagenavi( $before = '', $after = '', $options = array() ) {
|
11 |
+
global $wp_query;
|
12 |
+
|
13 |
+
$options = wp_parse_args( $options, PageNavi_Core::$options->get() );
|
14 |
+
|
15 |
+
$posts_per_page = intval( get_query_var( 'posts_per_page' ) );
|
16 |
+
|
17 |
+
$paged = absint( get_query_var( 'paged' ) );
|
18 |
+
if ( !$paged )
|
19 |
+
$paged = 1;
|
20 |
+
|
21 |
+
$total_pages = absint( $wp_query->max_num_pages );
|
22 |
+
if ( !$total_pages )
|
23 |
+
$total_pages = 1;
|
24 |
+
|
25 |
+
if ( 1 == $total_pages && !$options['always_show'] )
|
26 |
+
return;
|
27 |
+
|
28 |
+
$request = $wp_query->request;
|
29 |
+
$numposts = $wp_query->found_posts;
|
30 |
+
|
31 |
+
$pages_to_show = absint( $options['num_pages'] );
|
32 |
+
$larger_page_to_show = absint( $options['num_larger_page_numbers'] );
|
33 |
+
$larger_page_multiple = absint( $options['larger_page_numbers_multiple'] );
|
34 |
+
$pages_to_show_minus_1 = $pages_to_show - 1;
|
35 |
+
$half_page_start = floor( $pages_to_show_minus_1/2 );
|
36 |
+
$half_page_end = ceil( $pages_to_show_minus_1/2 );
|
37 |
+
$start_page = $paged - $half_page_start;
|
38 |
+
|
39 |
+
if ( $start_page <= 0 )
|
40 |
+
$start_page = 1;
|
41 |
+
|
42 |
+
$end_page = $paged + $half_page_end;
|
43 |
+
|
44 |
+
if ( ( $end_page - $start_page ) != $pages_to_show_minus_1 )
|
45 |
+
$end_page = $start_page + $pages_to_show_minus_1;
|
46 |
+
|
47 |
+
if ( $end_page > $total_pages ) {
|
48 |
+
$start_page = $total_pages - $pages_to_show_minus_1;
|
49 |
+
$end_page = $total_pages;
|
50 |
+
}
|
51 |
+
|
52 |
+
if ( $start_page <= 0 )
|
53 |
+
$start_page = 1;
|
54 |
+
|
55 |
+
$out = '';
|
56 |
+
switch ( intval( $options['style'] ) ) {
|
57 |
+
// Normal
|
58 |
+
case 1:
|
59 |
+
if ( !empty( $options['pages_text'] ) ) {
|
60 |
+
$pages_text = str_replace(
|
61 |
+
array( "%CURRENT_PAGE%", "%TOTAL_PAGES%" ),
|
62 |
+
array( number_format_i18n( $paged ), number_format_i18n( $total_pages ) ),
|
63 |
+
$options['pages_text'] );
|
64 |
+
$out .= "<span class='pages'>$pages_text</span>";
|
65 |
+
}
|
66 |
+
|
67 |
+
if ( $start_page >= 2 && $pages_to_show < $total_pages ) {
|
68 |
+
$first_text = str_replace( '%TOTAL_PAGES%', number_format_i18n( $total_pages ), $options['first_text'] );
|
69 |
+
$out .= _wp_pagenavi_single( 1, 'first', $first_text, '%TOTAL_PAGES%' );
|
70 |
+
|
71 |
+
if ( !empty( $options['dotleft_text'] ) )
|
72 |
+
$out .= "<span class='extend'>{$options['dotleft_text']}</span>";
|
73 |
+
}
|
74 |
+
|
75 |
+
$larger_pages_array = array();
|
76 |
+
if ( $larger_page_multiple )
|
77 |
+
for ( $i = $larger_page_multiple; $i <= $total_pages; $i+= $larger_page_multiple )
|
78 |
+
$larger_pages_array[] = $i;
|
79 |
+
|
80 |
+
$larger_page_start = 0;
|
81 |
+
foreach ( $larger_pages_array as $larger_page ) {
|
82 |
+
if ( $larger_page < $start_page && $larger_page_start < $larger_page_to_show ) {
|
83 |
+
$out .= _wp_pagenavi_single( $larger_page, 'smaller page', $options['page_text'] );
|
84 |
+
$larger_page_start++;
|
85 |
+
}
|
86 |
+
}
|
87 |
+
|
88 |
+
if ( !empty( $options['prev_text'] ) )
|
89 |
+
$out .= get_previous_posts_link( $options['prev_text'] );
|
90 |
+
|
91 |
+
foreach ( range( $start_page, $end_page ) as $i ) {
|
92 |
+
if ( $i == $paged && !empty( $options['current_text'] ) ) {
|
93 |
+
$current_page_text = str_replace( '%PAGE_NUMBER%', number_format_i18n( $i ), $options['current_text'] );
|
94 |
+
$out .= "<span class='current'>$current_page_text</span>";
|
95 |
+
} else {
|
96 |
+
$out .= _wp_pagenavi_single( $i, 'page', $options['page_text'] );
|
97 |
+
}
|
98 |
+
}
|
99 |
+
|
100 |
+
if ( !empty( $options['next_text'] ) )
|
101 |
+
$out .= get_next_posts_link( $options['next_text'], $total_pages );
|
102 |
+
|
103 |
+
$larger_page_end = 0;
|
104 |
+
foreach ( $larger_pages_array as $larger_page ) {
|
105 |
+
if ( $larger_page > $end_page && $larger_page_end < $larger_page_to_show ) {
|
106 |
+
$out .= _wp_pagenavi_single( $larger_page, 'larger page', $options['page_text'] );
|
107 |
+
$larger_page_end++;
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
if ( $end_page < $total_pages ) {
|
112 |
+
if ( !empty( $options['dotright_text'] ) )
|
113 |
+
$out .= "<span class='extend'>{$options['dotright_text']}</span>";
|
114 |
+
|
115 |
+
$out .= _wp_pagenavi_single( $total_pages, 'last', $options['last_text'], '%TOTAL_PAGES%' );
|
116 |
+
}
|
117 |
+
break;
|
118 |
+
|
119 |
+
// Dropdown
|
120 |
+
case 2:
|
121 |
+
$out .= '<form action="" method="get">'."\n";
|
122 |
+
$out .= '<select size="1" onchange="document.location.href = this.options[this.selectedIndex].value;">'."\n";
|
123 |
+
|
124 |
+
foreach ( range( 1, $total_pages ) as $i ) {
|
125 |
+
$page_num = $i;
|
126 |
+
if ( $page_num == 1 )
|
127 |
+
$page_num = 0;
|
128 |
+
|
129 |
+
if ( $i == $paged ) {
|
130 |
+
$current_page_text = str_replace( '%PAGE_NUMBER%', number_format_i18n( $i ), $options['current_text'] );
|
131 |
+
$out .= '<option value="'.esc_url( get_pagenum_link( $page_num ) ).'" selected="selected" class="current">'.$current_page_text."</option>\n";
|
132 |
+
} else {
|
133 |
+
$page_text = str_replace( '%PAGE_NUMBER%', number_format_i18n( $i ), $options['page_text'] );
|
134 |
+
$out .= '<option value="'.esc_url( get_pagenum_link( $page_num ) ).'">'.$page_text."</option>\n";
|
135 |
+
}
|
136 |
+
}
|
137 |
+
|
138 |
+
$out .= "</select>\n";
|
139 |
+
$out .= "</form>\n";
|
140 |
+
break;
|
141 |
+
}
|
142 |
+
$out = $before . "<div class='wp-pagenavi'>\n$out\n</div>" . $after;
|
143 |
+
|
144 |
+
echo apply_filters( 'wp_pagenavi', $out );
|
145 |
+
}
|
146 |
+
|
147 |
+
function _wp_pagenavi_single( $page, $class, $raw_text, $format = '%PAGE_NUMBER%' ) {
|
148 |
+
if ( empty( $raw_text ) )
|
149 |
+
return '';
|
150 |
+
|
151 |
+
$text = str_replace( $format, number_format_i18n( $page ), $raw_text );
|
152 |
+
|
153 |
+
return "<a href='" . esc_url( get_pagenum_link( $page ) ) . "' class='$class'>$text</a>";
|
154 |
+
}
|
155 |
+
|
156 |
+
|
157 |
+
// Template tag: Drop Down Menu ( Deprecated )
|
158 |
+
function wp_pagenavi_dropdown() {
|
159 |
+
wp_pagenavi();
|
160 |
+
}
|
161 |
+
|
162 |
+
|
163 |
+
class PageNavi_Core {
|
164 |
+
static $options;
|
165 |
+
|
166 |
+
function init( $options ) {
|
167 |
+
self::$options = $options;
|
168 |
+
|
169 |
+
add_action( 'wp_print_styles', array( __CLASS__, 'stylesheets' ) );
|
170 |
+
|
171 |
+
add_filter( 'previous_posts_link_attributes', array( __CLASS__, 'previous_posts_link_attributes' ) );
|
172 |
+
add_filter( 'next_posts_link_attributes', array( __CLASS__, 'next_posts_link_attributes' ) );
|
173 |
+
}
|
174 |
+
|
175 |
+
function stylesheets() {
|
176 |
+
if ( !self::$options->use_pagenavi_css )
|
177 |
+
return;
|
178 |
+
|
179 |
+
if ( @file_exists( STYLESHEETPATH . '/pagenavi-css.css' ) )
|
180 |
+
$css_file = get_stylesheet_directory_uri() . '/pagenavi-css.css';
|
181 |
+
elseif ( @file_exists( TEMPLATEPATH . '/pagenavi-css.css' ) )
|
182 |
+
$css_file = get_template_directory_uri() . '/pagenavi-css.css';
|
183 |
+
else
|
184 |
+
$css_file = plugins_url( 'pagenavi-css.css', __FILE__ );
|
185 |
+
|
186 |
+
wp_enqueue_style( 'wp-pagenavi', $css_file, false, '2.70' );
|
187 |
+
}
|
188 |
+
|
189 |
+
function previous_posts_link_attributes() {
|
190 |
+
return 'class="previouspostslink"';
|
191 |
+
}
|
192 |
+
|
193 |
+
function next_posts_link_attributes() {
|
194 |
+
return 'class="nextpostslink"';
|
195 |
+
}
|
196 |
+
}
|
197 |
+
|
lang/wp-pagenavi-bg_BG.mo
CHANGED
Binary file
|
lang/wp-pagenavi-bg_BG.po
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: WP-PageNavi 2.
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
-
"Last-Translator:
|
8 |
-
"Language-Team:
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -15,197 +15,265 @@ msgstr ""
|
|
15 |
"X-Poedit-Basepath: .\n"
|
16 |
"X-Poedit-SearchPath-0: .\n"
|
17 |
|
18 |
-
#:
|
19 |
-
|
20 |
-
|
21 |
-
msgid "Page Navigation Options"
|
22 |
msgstr "Настройки на навигацията"
|
23 |
|
24 |
-
#:
|
25 |
-
msgid "
|
26 |
-
msgstr "
|
27 |
-
|
28 |
-
#: pagenavi-options.php:56
|
29 |
-
msgid "No Page Navigation Option Updated"
|
30 |
-
msgstr "Няма промени в настройките на навигацията"
|
31 |
-
|
32 |
-
#: pagenavi-options.php:62
|
33 |
-
#: pagenavi-options.php:241
|
34 |
-
msgid "UNINSTALL WP-PageNavi"
|
35 |
-
msgstr "ДЕИНСТАЛИРАНЕ на WP-PageNavi"
|
36 |
-
|
37 |
-
#: pagenavi-options.php:70
|
38 |
-
#, php-format
|
39 |
-
msgid "Setting Key '%s' has been deleted."
|
40 |
-
msgstr "Настройка '%s' беше изтрита."
|
41 |
-
|
42 |
-
#: pagenavi-options.php:74
|
43 |
-
#, php-format
|
44 |
-
msgid "Error deleting Setting Key '%s'."
|
45 |
-
msgstr "Грешка при опит да бъде изтрита настройка '%s'."
|
46 |
-
|
47 |
-
#: pagenavi-options.php:96
|
48 |
-
#: pagenavi-options.php:209
|
49 |
-
msgid "Uninstall WP-PageNavi"
|
50 |
-
msgstr "Деинсталиране на WP-PageNavi"
|
51 |
-
|
52 |
-
#: pagenavi-options.php:97
|
53 |
-
#, php-format
|
54 |
-
msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-PageNavi Will Be Deactivated Automatically."
|
55 |
-
msgstr "<a href=\"%s\">Натиснете тук</a> за да завършите деинсталацията и WP-PageNavi ще бъде деактивиран автоматично."
|
56 |
-
|
57 |
-
#: pagenavi-options.php:109
|
58 |
-
msgid "Page Navigation Text"
|
59 |
-
msgstr "Текст на навигацията"
|
60 |
|
61 |
-
#:
|
62 |
msgid "Text For Number Of Pages"
|
63 |
msgstr "Текст за брой на страници"
|
64 |
|
65 |
-
#:
|
66 |
msgid "The current page number."
|
67 |
msgstr "Номер на страницата в момента"
|
68 |
|
69 |
-
#:
|
70 |
-
#:
|
71 |
-
#:
|
72 |
msgid "The total number of pages."
|
73 |
msgstr "Общ брой на страниците."
|
74 |
|
75 |
-
#:
|
76 |
msgid "Text For Current Page"
|
77 |
msgstr "Текст за разглежданата страницата"
|
78 |
|
79 |
-
#:
|
80 |
-
#:
|
81 |
msgid "The page number."
|
82 |
msgstr "Номер на страницата."
|
83 |
|
84 |
-
#:
|
85 |
msgid "Text For Page"
|
86 |
msgstr "Текст за страница"
|
87 |
|
88 |
-
#:
|
89 |
-
|
|
|
90 |
msgstr "Текст за първи пост"
|
91 |
|
92 |
-
#:
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
#: pagenavi-options.php:148
|
97 |
-
msgid "Text For Next Post"
|
98 |
-
msgstr "Текст за следващ пост"
|
99 |
|
100 |
-
#:
|
101 |
-
|
|
|
102 |
msgstr "Текст за предишен пост"
|
103 |
|
104 |
-
#:
|
105 |
-
|
106 |
-
|
|
|
107 |
|
108 |
-
#:
|
109 |
msgid "Text For Previous ..."
|
110 |
msgstr "Текст за предишна ..."
|
111 |
|
112 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
msgid "Page Navigation Style"
|
114 |
msgstr "Стил на навигацията на страниците"
|
115 |
|
116 |
-
#:
|
117 |
msgid "Normal"
|
118 |
-
msgstr "
|
119 |
|
120 |
-
#:
|
121 |
-
|
|
|
122 |
msgstr "Падащо меню"
|
123 |
|
124 |
-
#:
|
125 |
#, fuzzy
|
126 |
-
msgid "
|
127 |
-
msgstr "Брой на страниците за показване?"
|
128 |
-
|
129 |
-
#: pagenavi-options.php:190
|
130 |
-
msgid "Always Show Page Navigation?"
|
131 |
msgstr "Показване на навигацията винаги?"
|
132 |
|
133 |
-
#:
|
134 |
-
|
135 |
-
|
136 |
-
msgstr "Да"
|
137 |
|
138 |
-
#:
|
139 |
-
|
140 |
-
|
|
|
141 |
|
142 |
-
#:
|
143 |
-
|
144 |
-
|
|
|
145 |
|
146 |
-
#:
|
147 |
-
msgid "
|
148 |
-
msgstr "
|
149 |
|
150 |
-
#:
|
151 |
-
msgid "
|
152 |
-
msgstr "
|
153 |
|
154 |
-
#:
|
155 |
-
msgid "
|
156 |
-
msgstr "
|
157 |
|
158 |
-
#:
|
159 |
-
msgid "
|
160 |
-
msgstr "
|
161 |
|
162 |
-
#:
|
163 |
-
msgid "
|
164 |
-
msgstr "
|
165 |
|
166 |
-
#:
|
167 |
-
msgid ""
|
168 |
-
"
|
169 |
-
"This Action Is Not Reversible.\\n"
|
170 |
-
"\\n"
|
171 |
-
" Choose [Cancel] To Stop, [OK] To Uninstall."
|
172 |
-
msgstr ""
|
173 |
-
"Вие сте на път да деинсталирате WP-PageNavi от WordPress.\\n"
|
174 |
-
"Това действие е необратимо.\\n"
|
175 |
-
"\\n"
|
176 |
-
" Изберете [Cancel] за да спрете или [OK] за деинсталиране."
|
177 |
|
178 |
-
#:
|
179 |
-
msgid "
|
180 |
-
msgstr "
|
181 |
|
182 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
184 |
msgstr "Страница %CURRENT_PAGE% от %TOTAL_PAGES%"
|
185 |
|
186 |
-
#: wp-pagenavi.php:
|
187 |
msgid "« First"
|
188 |
msgstr "« Първа"
|
189 |
|
190 |
-
#: wp-pagenavi.php:
|
191 |
msgid "Last »"
|
192 |
msgstr "Последна »"
|
193 |
|
194 |
-
#: wp-pagenavi.php:
|
195 |
-
msgid "&
|
196 |
msgstr "»"
|
197 |
|
198 |
-
#: wp-pagenavi.php:
|
199 |
-
msgid "&
|
200 |
msgstr "»"
|
201 |
|
202 |
-
#: wp-pagenavi.php:
|
203 |
-
#: wp-pagenavi.php:
|
204 |
msgid "..."
|
205 |
msgstr "..."
|
206 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
#~ msgid "Update Options"
|
208 |
#~ msgstr "Обновяване на настройките"
|
|
|
209 |
#~ msgid "Cancel"
|
210 |
#~ msgstr "Отказ"
|
211 |
-
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: WP-PageNavi 2.73\n"
|
4 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
|
5 |
+
"POT-Creation-Date: 2010-08-17 17:28+0300\n"
|
6 |
+
"PO-Revision-Date: 2010-09-10 07:05+0200\n"
|
7 |
+
"Last-Translator: Yassen Yotov <cyberoto@gmail.com>\n"
|
8 |
+
"Language-Team: Yassen Yotov <cyberoto@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"X-Poedit-Basepath: .\n"
|
16 |
"X-Poedit-SearchPath-0: .\n"
|
17 |
|
18 |
+
#: admin.php:9
|
19 |
+
#, fuzzy
|
20 |
+
msgid "PageNavi Settings"
|
|
|
21 |
msgstr "Настройки на навигацията"
|
22 |
|
23 |
+
#: admin.php:10
|
24 |
+
msgid "PageNavi"
|
25 |
+
msgstr "PageNavi"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
+
#: admin.php:28
|
28 |
msgid "Text For Number Of Pages"
|
29 |
msgstr "Текст за брой на страници"
|
30 |
|
31 |
+
#: admin.php:33
|
32 |
msgid "The current page number."
|
33 |
msgstr "Номер на страницата в момента"
|
34 |
|
35 |
+
#: admin.php:34
|
36 |
+
#: admin.php:58
|
37 |
+
#: admin.php:66
|
38 |
msgid "The total number of pages."
|
39 |
msgstr "Общ брой на страниците."
|
40 |
|
41 |
+
#: admin.php:38
|
42 |
msgid "Text For Current Page"
|
43 |
msgstr "Текст за разглежданата страницата"
|
44 |
|
45 |
+
#: admin.php:42
|
46 |
+
#: admin.php:50
|
47 |
msgid "The page number."
|
48 |
msgstr "Номер на страницата."
|
49 |
|
50 |
+
#: admin.php:46
|
51 |
msgid "Text For Page"
|
52 |
msgstr "Текст за страница"
|
53 |
|
54 |
+
#: admin.php:54
|
55 |
+
#, fuzzy
|
56 |
+
msgid "Text For First Page"
|
57 |
msgstr "Текст за първи пост"
|
58 |
|
59 |
+
#: admin.php:62
|
60 |
+
#, fuzzy
|
61 |
+
msgid "Text For Last Page"
|
62 |
+
msgstr "Текст за страница"
|
|
|
|
|
|
|
63 |
|
64 |
+
#: admin.php:70
|
65 |
+
#, fuzzy
|
66 |
+
msgid "Text For Previous Page"
|
67 |
msgstr "Текст за предишен пост"
|
68 |
|
69 |
+
#: admin.php:76
|
70 |
+
#, fuzzy
|
71 |
+
msgid "Text For Next Page"
|
72 |
+
msgstr "Текст за страница"
|
73 |
|
74 |
+
#: admin.php:82
|
75 |
msgid "Text For Previous ..."
|
76 |
msgstr "Текст за предишна ..."
|
77 |
|
78 |
+
#: admin.php:88
|
79 |
+
msgid "Text For Next ..."
|
80 |
+
msgstr "Текст за следваща ..."
|
81 |
+
|
82 |
+
#: admin.php:95
|
83 |
+
msgid "Page Navigation Text"
|
84 |
+
msgstr "Текст на навигацията"
|
85 |
+
|
86 |
+
#: admin.php:96
|
87 |
+
msgid "Leaving a field blank will hide that part of the navigation."
|
88 |
+
msgstr "Оставянето на празно поле ще скрие тази част от навигация."
|
89 |
+
|
90 |
+
#: admin.php:102
|
91 |
+
msgid "Use pagenavi-css.css"
|
92 |
+
msgstr "Използвай pagenavi-css.css"
|
93 |
+
|
94 |
+
#: admin.php:108
|
95 |
msgid "Page Navigation Style"
|
96 |
msgstr "Стил на навигацията на страниците"
|
97 |
|
98 |
+
#: admin.php:111
|
99 |
msgid "Normal"
|
100 |
+
msgstr "Нормален"
|
101 |
|
102 |
+
#: admin.php:111
|
103 |
+
#, fuzzy
|
104 |
+
msgid "Drop-down List"
|
105 |
msgstr "Падащо меню"
|
106 |
|
107 |
+
#: admin.php:116
|
108 |
#, fuzzy
|
109 |
+
msgid "Always Show Page Navigation"
|
|
|
|
|
|
|
|
|
110 |
msgstr "Показване на навигацията винаги?"
|
111 |
|
112 |
+
#: admin.php:119
|
113 |
+
msgid "Show navigation even if there's only one page."
|
114 |
+
msgstr "Покажи навигацията, дори ако има само една страница."
|
|
|
115 |
|
116 |
+
#: admin.php:123
|
117 |
+
#, fuzzy
|
118 |
+
msgid "Number Of Pages To Show"
|
119 |
+
msgstr "Брой на страниците за показване?"
|
120 |
|
121 |
+
#: admin.php:130
|
122 |
+
#, fuzzy
|
123 |
+
msgid "Number Of Larger Page Numbers To Show"
|
124 |
+
msgstr "Брой на страниците за показване?"
|
125 |
|
126 |
+
#: admin.php:135
|
127 |
+
msgid "Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts."
|
128 |
+
msgstr "Големите номера на страници, са в допълнение към обичайните номера на страниците. Те са полезни, когато има много страници с мнения."
|
129 |
|
130 |
+
#: admin.php:136
|
131 |
+
msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
132 |
+
msgstr "Например, WP-PageNavi ще покаже: Страници 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
133 |
|
134 |
+
#: admin.php:137
|
135 |
+
msgid "Enter 0 to disable."
|
136 |
+
msgstr "Въведете 0 за да изключите тази опция"
|
137 |
|
138 |
+
#: admin.php:141
|
139 |
+
msgid "Show Larger Page Numbers In Multiples Of"
|
140 |
+
msgstr "Покажи големия брой страници, кратни на"
|
141 |
|
142 |
+
#: admin.php:146
|
143 |
+
msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
|
144 |
+
msgstr "Например, ако е кратно на 5, ще се покаже: 5, 10, 15, 20, 25"
|
145 |
|
146 |
+
#: admin.php:151
|
147 |
+
msgid "Page Navigation Options"
|
148 |
+
msgstr "Настройки на навигацията"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
|
150 |
+
#: scb/AdminPage.php:167
|
151 |
+
msgid "Settings <strong>saved</strong>."
|
152 |
+
msgstr "Настройките са <strong>запазени</strong>."
|
153 |
|
154 |
+
#: scb/AdminPage.php:179
|
155 |
+
#: scb/AdminPage.php:189
|
156 |
+
msgid "Save Changes"
|
157 |
+
msgstr "Запазване на промените"
|
158 |
+
|
159 |
+
#: scb/AdminPage.php:371
|
160 |
+
msgid "Settings"
|
161 |
+
msgstr "Настройки"
|
162 |
+
|
163 |
+
#: wp-pagenavi.php:37
|
164 |
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
165 |
msgstr "Страница %CURRENT_PAGE% от %TOTAL_PAGES%"
|
166 |
|
167 |
+
#: wp-pagenavi.php:40
|
168 |
msgid "« First"
|
169 |
msgstr "« Първа"
|
170 |
|
171 |
+
#: wp-pagenavi.php:41
|
172 |
msgid "Last »"
|
173 |
msgstr "Последна »"
|
174 |
|
175 |
+
#: wp-pagenavi.php:42
|
176 |
+
msgid "«"
|
177 |
msgstr "»"
|
178 |
|
179 |
+
#: wp-pagenavi.php:43
|
180 |
+
msgid "»"
|
181 |
msgstr "»"
|
182 |
|
183 |
+
#: wp-pagenavi.php:44
|
184 |
+
#: wp-pagenavi.php:45
|
185 |
msgid "..."
|
186 |
msgstr "..."
|
187 |
|
188 |
+
#. Plugin Name of the plugin/theme
|
189 |
+
#, fuzzy
|
190 |
+
msgid "WP-PageNavi"
|
191 |
+
msgstr "PageNavi"
|
192 |
+
|
193 |
+
#. Plugin URI of the plugin/theme
|
194 |
+
msgid "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
195 |
+
msgstr ""
|
196 |
+
|
197 |
+
#. Description of the plugin/theme
|
198 |
+
msgid "Adds a more advanced paging navigation to your WordPress blog"
|
199 |
+
msgstr "Добавя по-напреднала навигация за страниране към вашия блог"
|
200 |
+
|
201 |
+
#. Author of the plugin/theme
|
202 |
+
msgid "Lester 'GaMerZ' Chan & scribu"
|
203 |
+
msgstr ""
|
204 |
+
|
205 |
+
#~ msgid "Updated"
|
206 |
+
#~ msgstr "Обновено"
|
207 |
+
|
208 |
+
#~ msgid "No Page Navigation Option Updated"
|
209 |
+
#~ msgstr "Няма промени в настройките на навигацията"
|
210 |
+
|
211 |
+
#~ msgid "UNINSTALL WP-PageNavi"
|
212 |
+
#~ msgstr "ДЕИНСТАЛИРАНЕ на WP-PageNavi"
|
213 |
+
|
214 |
+
#~ msgid "Setting Key '%s' has been deleted."
|
215 |
+
#~ msgstr "Настройка '%s' беше изтрита."
|
216 |
+
|
217 |
+
#~ msgid "Error deleting Setting Key '%s'."
|
218 |
+
#~ msgstr "Грешка при опит да бъде изтрита настройка '%s'."
|
219 |
+
|
220 |
+
#~ msgid "Uninstall WP-PageNavi"
|
221 |
+
#~ msgstr "Деинсталиране на WP-PageNavi"
|
222 |
+
|
223 |
+
#~ msgid ""
|
224 |
+
#~ "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-"
|
225 |
+
#~ "PageNavi Will Be Deactivated Automatically."
|
226 |
+
#~ msgstr ""
|
227 |
+
#~ "<a href=\"%s\">Натиснете тук</a> за да завършите деинсталацията и WP-"
|
228 |
+
#~ "PageNavi ще бъде деактивиран автоматично."
|
229 |
+
|
230 |
+
#~ msgid "Text For Last Post"
|
231 |
+
#~ msgstr "Текст за последен пост"
|
232 |
+
|
233 |
+
#~ msgid "Text For Next Post"
|
234 |
+
#~ msgstr "Текст за следващ пост"
|
235 |
+
|
236 |
+
#~ msgid "Yes"
|
237 |
+
#~ msgstr "Да"
|
238 |
+
|
239 |
+
#~ msgid "No"
|
240 |
+
#~ msgstr "Не"
|
241 |
+
|
242 |
+
#~ msgid ""
|
243 |
+
#~ "Deactivating WP-PageNavi plugin does not remove any data that may have "
|
244 |
+
#~ "been created, such as the page navigation options. To completely remove "
|
245 |
+
#~ "this plugin, you can uninstall it here."
|
246 |
+
#~ msgstr ""
|
247 |
+
#~ "Деактивирането на WP-PageNavi не изтрива създадените от плъгина данни, "
|
248 |
+
#~ "като настройките на навигацията на страниците. За да премахнете напълно "
|
249 |
+
#~ "плъгина, деинсталирайте го от тук."
|
250 |
+
|
251 |
+
#~ msgid "WARNING:"
|
252 |
+
#~ msgstr "ВНИМАНИЕ:"
|
253 |
+
|
254 |
+
#~ msgid ""
|
255 |
+
#~ "Once uninstalled, this cannot be undone. You should use a Database Backup "
|
256 |
+
#~ "plugin of WordPress to back up all the data first."
|
257 |
+
#~ msgstr ""
|
258 |
+
#~ "Деинсталирането е необратимо. Трябва да използвате резервно копие на "
|
259 |
+
#~ "базата данни за да можете да възстановите настройките на плъгина."
|
260 |
+
|
261 |
+
#~ msgid "The following WordPress Options will be DELETED:"
|
262 |
+
#~ msgstr "Следните настройки на WordPress ще бъдат ИЗТРИТИ:"
|
263 |
+
|
264 |
+
#~ msgid "WordPress Options"
|
265 |
+
#~ msgstr "WordPress настройки"
|
266 |
+
|
267 |
+
#~ msgid ""
|
268 |
+
#~ "You Are About To Uninstall WP-PageNavi From WordPress.\\nThis Action Is "
|
269 |
+
#~ "Not Reversible.\\n\\n Choose [Cancel] To Stop, [OK] To Uninstall."
|
270 |
+
#~ msgstr ""
|
271 |
+
#~ "Вие сте на път да деинсталирате WP-PageNavi от WordPress.\\nТова действие "
|
272 |
+
#~ "е необратимо.\\n\\n Изберете [Cancel] за да спрете или [OK] за "
|
273 |
+
#~ "деинсталиране."
|
274 |
+
|
275 |
#~ msgid "Update Options"
|
276 |
#~ msgstr "Обновяване на настройките"
|
277 |
+
|
278 |
#~ msgid "Cancel"
|
279 |
#~ msgstr "Отказ"
|
|
lang/wp-pagenavi-es_ES.mo
CHANGED
Binary file
|
lang/wp-pagenavi-es_ES.po
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP-PageNavi 2.50\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: Francisco Portero <fportero@gmail.com>\n"
|
8 |
"Language-Team: Francisco Portero <fportero@indalus.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -16,219 +16,234 @@ msgstr ""
|
|
16 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
-
#:
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
msgid "Updated"
|
27 |
-
msgstr "Actualizado"
|
28 |
-
|
29 |
-
#: pagenavi-options.php:58
|
30 |
-
msgid "No Page Navigation Option Updated"
|
31 |
-
msgstr "Opciones de PageNavi sin actualizar"
|
32 |
-
|
33 |
-
#: pagenavi-options.php:64
|
34 |
-
#: pagenavi-options.php:265
|
35 |
-
msgid "UNINSTALL WP-PageNavi"
|
36 |
-
msgstr "DESINSTALAR PageNavi"
|
37 |
-
|
38 |
-
#: pagenavi-options.php:72
|
39 |
-
#, php-format
|
40 |
-
msgid "Setting Key '%s' has been deleted."
|
41 |
-
msgstr "La clave '%s' ha sido borrada correctamente"
|
42 |
-
|
43 |
-
#: pagenavi-options.php:76
|
44 |
-
#, php-format
|
45 |
-
msgid "Error deleting Setting Key '%s'."
|
46 |
-
msgstr "Error borrando la clave '%s'."
|
47 |
-
|
48 |
-
#: pagenavi-options.php:98
|
49 |
-
#: pagenavi-options.php:233
|
50 |
-
msgid "Uninstall WP-PageNavi"
|
51 |
-
msgstr "Desinstalar PageNavi"
|
52 |
-
|
53 |
-
#: pagenavi-options.php:99
|
54 |
-
#, php-format
|
55 |
-
msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-PageNavi Will Be Deactivated Automatically."
|
56 |
-
msgstr "<a href=\"%s\">Pulsar aquí</a> Para finalizar la desinstalación de PageNavi, se desactivara automaticamente"
|
57 |
-
|
58 |
-
#: pagenavi-options.php:111
|
59 |
-
msgid "Page Navigation Text"
|
60 |
-
msgstr "Texto de PageNavi"
|
61 |
|
62 |
-
#:
|
63 |
msgid "Text For Number Of Pages"
|
64 |
-
msgstr "Número de
|
65 |
|
66 |
-
#:
|
67 |
msgid "The current page number."
|
68 |
msgstr "Número de la página actual."
|
69 |
|
70 |
-
#:
|
71 |
-
#:
|
72 |
-
#:
|
73 |
msgid "The total number of pages."
|
74 |
msgstr "Número total de páginas."
|
75 |
|
76 |
-
#:
|
77 |
msgid "Text For Current Page"
|
78 |
-
msgstr "Página
|
79 |
|
80 |
-
#:
|
81 |
-
#:
|
82 |
msgid "The page number."
|
83 |
-
msgstr "Número de página"
|
84 |
|
85 |
-
#:
|
86 |
msgid "Text For Page"
|
87 |
-
msgstr "Página"
|
|
|
|
|
|
|
|
|
88 |
|
89 |
-
#:
|
90 |
-
msgid "Text For
|
91 |
-
msgstr "
|
92 |
|
93 |
-
#:
|
94 |
-
msgid "Text For
|
95 |
-
msgstr "
|
96 |
|
97 |
-
#:
|
98 |
-
msgid "Text For Next
|
99 |
-
msgstr "Página
|
100 |
|
101 |
-
#:
|
102 |
-
msgid "Text For Previous
|
103 |
-
msgstr "
|
104 |
|
105 |
-
#:
|
106 |
msgid "Text For Next ..."
|
107 |
-
msgstr "
|
108 |
|
109 |
-
#:
|
110 |
-
msgid "
|
111 |
-
msgstr "
|
|
|
|
|
|
|
|
|
112 |
|
113 |
-
#:
|
|
|
|
|
|
|
|
|
114 |
msgid "Page Navigation Style"
|
115 |
-
msgstr "Estilo de
|
116 |
|
117 |
-
#:
|
118 |
msgid "Normal"
|
119 |
msgstr "Normal"
|
120 |
|
121 |
-
#:
|
122 |
-
msgid "Drop
|
123 |
msgstr "Lista desplegable"
|
124 |
|
125 |
-
#:
|
126 |
-
msgid "
|
127 |
-
msgstr "
|
128 |
-
|
129 |
-
#: pagenavi-options.php:192
|
130 |
-
msgid "Always Show Page Navigation?"
|
131 |
-
msgstr "Mostrar siempre la navegación"
|
132 |
|
133 |
-
#:
|
134 |
-
|
135 |
-
|
136 |
-
msgstr "Si"
|
137 |
|
138 |
-
#:
|
139 |
-
msgid "
|
140 |
-
msgstr "
|
141 |
|
142 |
-
#:
|
143 |
-
msgid "Number Of Larger Page Numbers To Show
|
144 |
-
msgstr "Números Grandes en la
|
145 |
|
146 |
-
#:
|
147 |
-
msgid "Larger page numbers are in
|
148 |
-
msgstr "
|
149 |
|
150 |
-
#:
|
151 |
-
msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50"
|
152 |
-
msgstr "Por ejemplo, PageNavi muestra: Páginas 1, 2, 3, 4, 5, 10, 20, 30, 40, 50"
|
153 |
|
154 |
-
#:
|
155 |
msgid "Enter 0 to disable."
|
156 |
-
msgstr "Introducir 0 para desactivar"
|
157 |
|
158 |
-
#:
|
159 |
-
msgid "Show
|
160 |
-
msgstr "Mostrar Numeros Grandes que sean
|
161 |
|
162 |
-
#:
|
163 |
-
msgid "
|
164 |
-
msgstr "
|
165 |
|
166 |
-
#:
|
167 |
-
msgid "
|
168 |
-
msgstr "
|
169 |
|
170 |
-
#:
|
|
|
171 |
msgid "Save Changes"
|
172 |
msgstr "Guardar"
|
173 |
|
174 |
-
#:
|
175 |
-
msgid "
|
176 |
-
msgstr "
|
177 |
-
|
178 |
-
#: pagenavi-options.php:238
|
179 |
-
msgid "WARNING:"
|
180 |
-
msgstr "ATENCIÓN:"
|
181 |
-
|
182 |
-
#: pagenavi-options.php:239
|
183 |
-
msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
|
184 |
-
msgstr "Una vez desinstalado, no se puede deshacer. Guarda copias de seguridad de todos los datos primero si los vas a necesitar despues."
|
185 |
|
186 |
-
#:
|
187 |
-
msgid "
|
188 |
-
msgstr "
|
189 |
|
190 |
-
#: pagenavi
|
191 |
-
msgid "WordPress Options"
|
192 |
-
msgstr "Opciones de Wordpress"
|
193 |
-
|
194 |
-
#: pagenavi-options.php:265
|
195 |
-
msgid ""
|
196 |
-
"You Are About To Uninstall WP-PageNavi From WordPress.\\n"
|
197 |
-
"This Action Is Not Reversible.\\n"
|
198 |
-
"\\n"
|
199 |
-
" Choose [Cancel] To Stop, [OK] To Uninstall."
|
200 |
-
msgstr ""
|
201 |
-
"You Are About To Uninstall WP-PageNavi From WordPress.\\n"
|
202 |
-
"This Action Is Not Reversible.\\n"
|
203 |
-
"\\n"
|
204 |
-
" Choose [Cancel] To Stop, [OK] To Uninstall."
|
205 |
-
|
206 |
-
#: wp-pagenavi.php:42
|
207 |
-
msgid "PageNavi"
|
208 |
-
msgstr "PageNavi"
|
209 |
-
|
210 |
-
#: wp-pagenavi.php:201
|
211 |
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
212 |
msgstr "Página %CURRENT_PAGE% de %TOTAL_PAGES%"
|
213 |
|
214 |
-
#: wp-pagenavi.php:
|
215 |
msgid "« First"
|
216 |
msgstr "« Primera"
|
217 |
|
218 |
-
#: wp-pagenavi.php:
|
219 |
msgid "Last »"
|
220 |
msgstr "Última »"
|
221 |
|
222 |
-
#: wp-pagenavi.php:
|
223 |
-
msgid "»"
|
224 |
-
msgstr "»"
|
225 |
-
|
226 |
-
#: wp-pagenavi.php:207
|
227 |
msgid "«"
|
228 |
msgstr "«"
|
229 |
|
230 |
-
#: wp-pagenavi.php:
|
231 |
-
|
|
|
|
|
|
|
|
|
232 |
msgid "..."
|
233 |
msgstr "..."
|
234 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP-PageNavi 2.50\n"
|
4 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
|
5 |
+
"POT-Creation-Date: 2010-04-19 11:25+0300\n"
|
6 |
+
"PO-Revision-Date: 2010-07-15 01:29+0100\n"
|
7 |
"Last-Translator: Francisco Portero <fportero@gmail.com>\n"
|
8 |
"Language-Team: Francisco Portero <fportero@indalus.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
16 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
+
#: admin.php:9
|
20 |
+
msgid "PageNavi Settings"
|
21 |
+
msgstr "Configuración de PageNavi"
|
22 |
+
|
23 |
+
#: admin.php:10
|
24 |
+
msgid "PageNavi"
|
25 |
+
msgstr "PageNavi"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
+
#: admin.php:27
|
28 |
msgid "Text For Number Of Pages"
|
29 |
+
msgstr "Texto para el Número de Páginas"
|
30 |
|
31 |
+
#: admin.php:32
|
32 |
msgid "The current page number."
|
33 |
msgstr "Número de la página actual."
|
34 |
|
35 |
+
#: admin.php:33
|
36 |
+
#: admin.php:57
|
37 |
+
#: admin.php:65
|
38 |
msgid "The total number of pages."
|
39 |
msgstr "Número total de páginas."
|
40 |
|
41 |
+
#: admin.php:37
|
42 |
msgid "Text For Current Page"
|
43 |
+
msgstr "Texto para la Página Actual"
|
44 |
|
45 |
+
#: admin.php:41
|
46 |
+
#: admin.php:49
|
47 |
msgid "The page number."
|
48 |
+
msgstr "Número de página."
|
49 |
|
50 |
+
#: admin.php:45
|
51 |
msgid "Text For Page"
|
52 |
+
msgstr "Texto para la Página"
|
53 |
+
|
54 |
+
#: admin.php:53
|
55 |
+
msgid "Text For First Page"
|
56 |
+
msgstr "Texto para la Primera página"
|
57 |
|
58 |
+
#: admin.php:61
|
59 |
+
msgid "Text For Last Page"
|
60 |
+
msgstr "Texto para la Última Página"
|
61 |
|
62 |
+
#: admin.php:69
|
63 |
+
msgid "Text For Previous Page"
|
64 |
+
msgstr "Texto para la Página Anterior"
|
65 |
|
66 |
+
#: admin.php:75
|
67 |
+
msgid "Text For Next Page"
|
68 |
+
msgstr "Texto para la Página Siguiente"
|
69 |
|
70 |
+
#: admin.php:81
|
71 |
+
msgid "Text For Previous ..."
|
72 |
+
msgstr "Texto para la Anterior ..."
|
73 |
|
74 |
+
#: admin.php:87
|
75 |
msgid "Text For Next ..."
|
76 |
+
msgstr "Texto para la Siguiente ..."
|
77 |
|
78 |
+
#: admin.php:94
|
79 |
+
msgid "Page Navigation Text"
|
80 |
+
msgstr "Texto de Paginación"
|
81 |
+
|
82 |
+
#: admin.php:95
|
83 |
+
msgid "Leaving a field blank will hide that part of the navigation."
|
84 |
+
msgstr "Dejando un campo en blanco, se oculta esta parte en la navegación."
|
85 |
|
86 |
+
#: admin.php:101
|
87 |
+
msgid "Use pagenavi-css.css"
|
88 |
+
msgstr "Usar pagenavi-css.css"
|
89 |
+
|
90 |
+
#: admin.php:107
|
91 |
msgid "Page Navigation Style"
|
92 |
+
msgstr "Estilo de Paginación"
|
93 |
|
94 |
+
#: admin.php:110
|
95 |
msgid "Normal"
|
96 |
msgstr "Normal"
|
97 |
|
98 |
+
#: admin.php:110
|
99 |
+
msgid "Drop-down List"
|
100 |
msgstr "Lista desplegable"
|
101 |
|
102 |
+
#: admin.php:115
|
103 |
+
msgid "Always Show Page Navigation"
|
104 |
+
msgstr "Mostrar siempre la Paginación"
|
|
|
|
|
|
|
|
|
105 |
|
106 |
+
#: admin.php:118
|
107 |
+
msgid "Show navigation even if there's only one page."
|
108 |
+
msgstr "Mostrar la navegación, incluso si sólo hay una página."
|
|
|
109 |
|
110 |
+
#: admin.php:122
|
111 |
+
msgid "Number Of Pages To Show"
|
112 |
+
msgstr "Número de Páginas a Mostrar"
|
113 |
|
114 |
+
#: admin.php:129
|
115 |
+
msgid "Number Of Larger Page Numbers To Show"
|
116 |
+
msgstr "Números Grandes en la Paginación"
|
117 |
|
118 |
+
#: admin.php:134
|
119 |
+
msgid "Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts."
|
120 |
+
msgstr "Ampliar los números de página sumando a los números de página normal. Son útiles cuando hay muchas páginas de entradas."
|
121 |
|
122 |
+
#: admin.php:135
|
123 |
+
msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
124 |
+
msgstr "Por ejemplo, WP-PageNavi muestra: Páginas 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
125 |
|
126 |
+
#: admin.php:136
|
127 |
msgid "Enter 0 to disable."
|
128 |
+
msgstr "Introducir 0 para desactivar."
|
129 |
|
130 |
+
#: admin.php:140
|
131 |
+
msgid "Show Larger Page Numbers In Multiples Of"
|
132 |
+
msgstr "Mostrar Numeros Grandes que sean Multiplos de"
|
133 |
|
134 |
+
#: admin.php:145
|
135 |
+
msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
|
136 |
+
msgstr "Por ejemplo, si son múltiplos de 5, se muestran: 5, 10, 15, 20, 25"
|
137 |
|
138 |
+
#: admin.php:150
|
139 |
+
msgid "Page Navigation Options"
|
140 |
+
msgstr "Opciones de Navegación de Páginas"
|
141 |
|
142 |
+
#: scb/AdminPage.php:165
|
143 |
+
#: scb/AdminPage.php:176
|
144 |
msgid "Save Changes"
|
145 |
msgstr "Guardar"
|
146 |
|
147 |
+
#: scb/AdminPage.php:279
|
148 |
+
msgid "Settings <strong>saved</strong>."
|
149 |
+
msgstr "Configuración <strong>guardada</strong>."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
|
151 |
+
#: scb/AdminPage.php:337
|
152 |
+
msgid "Settings"
|
153 |
+
msgstr "Configuración"
|
154 |
|
155 |
+
#: wp-pagenavi.php:224
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
157 |
msgstr "Página %CURRENT_PAGE% de %TOTAL_PAGES%"
|
158 |
|
159 |
+
#: wp-pagenavi.php:227
|
160 |
msgid "« First"
|
161 |
msgstr "« Primera"
|
162 |
|
163 |
+
#: wp-pagenavi.php:228
|
164 |
msgid "Last »"
|
165 |
msgstr "Última »"
|
166 |
|
167 |
+
#: wp-pagenavi.php:229
|
|
|
|
|
|
|
|
|
168 |
msgid "«"
|
169 |
msgstr "«"
|
170 |
|
171 |
+
#: wp-pagenavi.php:230
|
172 |
+
msgid "»"
|
173 |
+
msgstr "»"
|
174 |
+
|
175 |
+
#: wp-pagenavi.php:231
|
176 |
+
#: wp-pagenavi.php:232
|
177 |
msgid "..."
|
178 |
msgstr "..."
|
179 |
|
180 |
+
#. Plugin Name of the plugin/theme
|
181 |
+
msgid "WP-PageNavi"
|
182 |
+
msgstr "WP-PageNavi"
|
183 |
+
|
184 |
+
#. Plugin URI of the plugin/theme
|
185 |
+
msgid "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
186 |
+
msgstr "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
187 |
+
|
188 |
+
#. Description of the plugin/theme
|
189 |
+
msgid "Adds a more advanced paging navigation to your WordPress blog"
|
190 |
+
msgstr "Agrega una paginación más avanzados a tu blog WordPress"
|
191 |
+
|
192 |
+
#. Author of the plugin/theme
|
193 |
+
msgid "Lester 'GaMerZ' Chan & scribu"
|
194 |
+
msgstr "Lester 'GaMerZ' Chan & scribu. Traducción fportero"
|
195 |
+
|
196 |
+
#~ msgid "Updated"
|
197 |
+
#~ msgstr "Actualizado"
|
198 |
+
#~ msgid "No Page Navigation Option Updated"
|
199 |
+
#~ msgstr "Opciones de PageNavi sin actualizar"
|
200 |
+
#~ msgid "UNINSTALL WP-PageNavi"
|
201 |
+
#~ msgstr "DESINSTALAR PageNavi"
|
202 |
+
#~ msgid "Setting Key '%s' has been deleted."
|
203 |
+
#~ msgstr "La clave '%s' ha sido borrada correctamente"
|
204 |
+
#~ msgid "Error deleting Setting Key '%s'."
|
205 |
+
#~ msgstr "Error borrando la clave '%s'."
|
206 |
+
#~ msgid "Uninstall WP-PageNavi"
|
207 |
+
#~ msgstr "Desinstalar PageNavi"
|
208 |
+
#~ msgid ""
|
209 |
+
#~ "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-"
|
210 |
+
#~ "PageNavi Will Be Deactivated Automatically."
|
211 |
+
#~ msgstr ""
|
212 |
+
#~ "<a href=\"%s\">Pulsar aquí</a> Para finalizar la desinstalación de "
|
213 |
+
#~ "PageNavi, se desactivara automaticamente"
|
214 |
+
#~ msgid "Text For Last Post"
|
215 |
+
#~ msgstr "Última página"
|
216 |
+
#~ msgid "Text For Next Post"
|
217 |
+
#~ msgstr "Página siguinete"
|
218 |
+
#~ msgid "Yes"
|
219 |
+
#~ msgstr "Si"
|
220 |
+
#~ msgid "No"
|
221 |
+
#~ msgstr "No"
|
222 |
+
#~ msgid "If mutiple is in 10, it will show: 10, 20, 30, 40, 50"
|
223 |
+
#~ msgstr "Si son múltiplos de 10, se muestran: 10, 20, 30, 40, 50"
|
224 |
+
#~ msgid ""
|
225 |
+
#~ "Deactivating WP-PageNavi plugin does not remove any data that may have "
|
226 |
+
#~ "been created, such as the page navigation options. To completely remove "
|
227 |
+
#~ "this plugin, you can uninstall it here."
|
228 |
+
#~ msgstr ""
|
229 |
+
#~ "Desactivando el plugin PageNavi no se borran los datos almacenados. Para "
|
230 |
+
#~ "borrarlo todo, se debe desinstalar desde aquí."
|
231 |
+
#~ msgid "WARNING:"
|
232 |
+
#~ msgstr "ATENCIÓN:"
|
233 |
+
#~ msgid ""
|
234 |
+
#~ "Once uninstalled, this cannot be undone. You should use a Database Backup "
|
235 |
+
#~ "plugin of WordPress to back up all the data first."
|
236 |
+
#~ msgstr ""
|
237 |
+
#~ "Una vez desinstalado, no se puede deshacer. Guarda copias de seguridad de "
|
238 |
+
#~ "todos los datos primero si los vas a necesitar despues."
|
239 |
+
#~ msgid "The following WordPress Options will be DELETED:"
|
240 |
+
#~ msgstr "Las siguientes opciones de WordPress se ELIMINARÁN:"
|
241 |
+
#~ msgid "WordPress Options"
|
242 |
+
#~ msgstr "Opciones de Wordpress"
|
243 |
+
#~ msgid ""
|
244 |
+
#~ "You Are About To Uninstall WP-PageNavi From WordPress.\\nThis Action Is "
|
245 |
+
#~ "Not Reversible.\\n\\n Choose [Cancel] To Stop, [OK] To Uninstall."
|
246 |
+
#~ msgstr ""
|
247 |
+
#~ "You Are About To Uninstall WP-PageNavi From WordPress.\\nThis Action Is "
|
248 |
+
#~ "Not Reversible.\\n\\n Choose [Cancel] To Stop, [OK] To Uninstall."
|
249 |
+
|
lang/wp-pagenavi-id_ID.mo
ADDED
Binary file
|
lang/wp-pagenavi-id_ID.po
ADDED
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WP-PageNavi 2.73\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2010-08-29 14:42+0700\n"
|
6 |
+
"PO-Revision-Date: 2010-08-29 14:42+0700\n"
|
7 |
+
"Last-Translator: Masino Sinaga <admin@masinosinaga.com>\n"
|
8 |
+
"Language-Team: Masino Sinaga <admin@masinosinaga.com>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-Language: Indonesian\n"
|
13 |
+
"X-Poedit-Country: INDONESIA\n"
|
14 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2\n"
|
15 |
+
"X-Poedit-Basepath: .\n"
|
16 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
17 |
+
"X-Poedit-SearchPath-0: ..\n"
|
18 |
+
|
19 |
+
#: ../admin.php:9
|
20 |
+
msgid "PageNavi Settings"
|
21 |
+
msgstr "Pengaturan PageNavi"
|
22 |
+
|
23 |
+
#: ../admin.php:10
|
24 |
+
msgid "PageNavi"
|
25 |
+
msgstr "PageNavi"
|
26 |
+
|
27 |
+
#: ../admin.php:28
|
28 |
+
msgid "Text For Number Of Pages"
|
29 |
+
msgstr "Teksi untuk Nomor Halaman"
|
30 |
+
|
31 |
+
#: ../admin.php:33
|
32 |
+
msgid "The current page number."
|
33 |
+
msgstr "Nomor halaman saat ini."
|
34 |
+
|
35 |
+
#: ../admin.php:34
|
36 |
+
#: ../admin.php:58
|
37 |
+
#: ../admin.php:66
|
38 |
+
msgid "The total number of pages."
|
39 |
+
msgstr "Total jumlah halaman."
|
40 |
+
|
41 |
+
#: ../admin.php:38
|
42 |
+
msgid "Text For Current Page"
|
43 |
+
msgstr "Teks untuk Halaman yang Sedang Aktif"
|
44 |
+
|
45 |
+
#: ../admin.php:42
|
46 |
+
#: ../admin.php:50
|
47 |
+
msgid "The page number."
|
48 |
+
msgstr "Nomor halaman."
|
49 |
+
|
50 |
+
#: ../admin.php:46
|
51 |
+
msgid "Text For Page"
|
52 |
+
msgstr "Teks untuk Halaman"
|
53 |
+
|
54 |
+
#: ../admin.php:54
|
55 |
+
msgid "Text For First Page"
|
56 |
+
msgstr "Teks untuk Halaman Pertama"
|
57 |
+
|
58 |
+
#: ../admin.php:62
|
59 |
+
msgid "Text For Last Page"
|
60 |
+
msgstr "Teks untuk Halaman Terakhir"
|
61 |
+
|
62 |
+
#: ../admin.php:70
|
63 |
+
msgid "Text For Previous Page"
|
64 |
+
msgstr "Teks untuk Halaman Sebelumnya"
|
65 |
+
|
66 |
+
#: ../admin.php:76
|
67 |
+
msgid "Text For Next Page"
|
68 |
+
msgstr "Teks untuk Halaman Berikutnya"
|
69 |
+
|
70 |
+
#: ../admin.php:82
|
71 |
+
msgid "Text For Previous ..."
|
72 |
+
msgstr "Teks untuk Sebelumnya ..."
|
73 |
+
|
74 |
+
#: ../admin.php:88
|
75 |
+
msgid "Text For Next ..."
|
76 |
+
msgstr "Teks untuk Berikutnya ..."
|
77 |
+
|
78 |
+
#: ../admin.php:95
|
79 |
+
msgid "Page Navigation Text"
|
80 |
+
msgstr "Tulisan Navigasi Halaman"
|
81 |
+
|
82 |
+
#: ../admin.php:96
|
83 |
+
msgid "Leaving a field blank will hide that part of the navigation."
|
84 |
+
msgstr "Ruas yang kosong akan menyembunyikan bagian itu dari navigasi."
|
85 |
+
|
86 |
+
#: ../admin.php:102
|
87 |
+
msgid "Use pagenavi-css.css"
|
88 |
+
msgstr "Gunakan pagenavi-css.css"
|
89 |
+
|
90 |
+
#: ../admin.php:108
|
91 |
+
msgid "Page Navigation Style"
|
92 |
+
msgstr "Gaya Navigasi Halaman"
|
93 |
+
|
94 |
+
#: ../admin.php:111
|
95 |
+
msgid "Normal"
|
96 |
+
msgstr "Normal"
|
97 |
+
|
98 |
+
#: ../admin.php:111
|
99 |
+
msgid "Drop-down List"
|
100 |
+
msgstr "Senarai Jatuh-ke-bawah"
|
101 |
+
|
102 |
+
#: ../admin.php:116
|
103 |
+
msgid "Always Show Page Navigation"
|
104 |
+
msgstr "Selalu Tampilkan Halaman Navigasi"
|
105 |
+
|
106 |
+
#: ../admin.php:119
|
107 |
+
msgid "Show navigation even if there's only one page."
|
108 |
+
msgstr "Tampilkan navigasi bahkan jika hanya ada satu halaman."
|
109 |
+
|
110 |
+
#: ../admin.php:123
|
111 |
+
msgid "Number Of Pages To Show"
|
112 |
+
msgstr "Jumlah Halaman yang Ditampilkan"
|
113 |
+
|
114 |
+
#: ../admin.php:130
|
115 |
+
msgid "Number Of Larger Page Numbers To Show"
|
116 |
+
msgstr "Jumlah Halaman yang Lebih Besar Ditampilkan"
|
117 |
+
|
118 |
+
#: ../admin.php:135
|
119 |
+
msgid "Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts."
|
120 |
+
msgstr "Nomor halaman yang lebih besar merupakan tambahan untuk nomor halaman default. Hal ini berguna untuk penulis yang melakukan navigasi halaman melalui banyak artikel."
|
121 |
+
|
122 |
+
#: ../admin.php:136
|
123 |
+
msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
124 |
+
msgstr "Sebagai contoh, WP-PageNavi akan menampilkan: Halaman: 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
125 |
+
|
126 |
+
#: ../admin.php:137
|
127 |
+
msgid "Enter 0 to disable."
|
128 |
+
msgstr "Masukkan 0 untuk menonaktifkan."
|
129 |
+
|
130 |
+
#: ../admin.php:141
|
131 |
+
msgid "Show Larger Page Numbers In Multiples Of"
|
132 |
+
msgstr "Tampilkan Nomor Halaman yang Lebih Besar dalam Kelipatan"
|
133 |
+
|
134 |
+
#: ../admin.php:146
|
135 |
+
msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
|
136 |
+
msgstr "Sebagai contoh, jika kelipatan 5, akan menampilkan: 5, 10, 15, 20, 25"
|
137 |
+
|
138 |
+
#: ../admin.php:151
|
139 |
+
msgid "Page Navigation Options"
|
140 |
+
msgstr "Pilihan Navigasi Halaman"
|
141 |
+
|
142 |
+
#: ../wp-pagenavi.php:37
|
143 |
+
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
144 |
+
msgstr "Halaman %CURRENT_PAGE% dari %TOTAL_PAGES%"
|
145 |
+
|
146 |
+
#: ../wp-pagenavi.php:40
|
147 |
+
msgid "« First"
|
148 |
+
msgstr "« Awal"
|
149 |
+
|
150 |
+
#: ../wp-pagenavi.php:41
|
151 |
+
msgid "Last »"
|
152 |
+
msgstr "Akhir »"
|
153 |
+
|
154 |
+
#: ../wp-pagenavi.php:42
|
155 |
+
msgid "«"
|
156 |
+
msgstr "«"
|
157 |
+
|
158 |
+
#: ../wp-pagenavi.php:43
|
159 |
+
msgid "»"
|
160 |
+
msgstr "»"
|
161 |
+
|
162 |
+
#: ../wp-pagenavi.php:44
|
163 |
+
#: ../wp-pagenavi.php:45
|
164 |
+
msgid "..."
|
165 |
+
msgstr "..."
|
166 |
+
|
167 |
+
#: ../scb/AdminPage.php:167
|
168 |
+
msgid "Settings <strong>saved</strong>."
|
169 |
+
msgstr "Pengaturan <strong>telah disimpan</strong>."
|
170 |
+
|
171 |
+
#: ../scb/AdminPage.php:179
|
172 |
+
#: ../scb/AdminPage.php:189
|
173 |
+
msgid "Save Changes"
|
174 |
+
msgstr "Simpan Perubahan"
|
175 |
+
|
176 |
+
#: ../scb/AdminPage.php:371
|
177 |
+
msgid "Settings"
|
178 |
+
msgstr "Pengaturan"
|
179 |
+
|
180 |
+
#~ msgid "Updated"
|
181 |
+
#~ msgstr "Telah diperbaharui"
|
182 |
+
#~ msgid "No Page Navigation Option Updated"
|
183 |
+
#~ msgstr "Tidak ada pilihan navigasi halaman yang telah diperbaharui"
|
184 |
+
#~ msgid "UNINSTALL WP-PageNavi"
|
185 |
+
#~ msgstr "HAPUS WP-PageNavi"
|
186 |
+
#~ msgid "Setting Key '%s' has been deleted."
|
187 |
+
#~ msgstr "Kunci Pengaturan '%s' telah diperbaharui."
|
188 |
+
#~ msgid "Error deleting Setting Key '%s'."
|
189 |
+
#~ msgstr "Terjadi kesalahan saat menghapus Kunci Pengaturan '%s'"
|
190 |
+
#~ msgid "Uninstall WP-PageNavi"
|
191 |
+
#~ msgstr "Hapus WP-PageNavi"
|
192 |
+
#~ msgid ""
|
193 |
+
#~ "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-"
|
194 |
+
#~ "PageNavi Will Be Deactivated Automatically."
|
195 |
+
#~ msgstr ""
|
196 |
+
#~ "<a href=\"%s\">Klik Di Sini</a> untuk menyelesaikan penghapusan dan WP-"
|
197 |
+
#~ "PageNavi akan otomatis dinonaktifkan."
|
198 |
+
#~ msgid "Text For Last Post"
|
199 |
+
#~ msgstr "Teks untuk Halaman Terakhir"
|
200 |
+
#~ msgid "Text For Next Post"
|
201 |
+
#~ msgstr "Teks untuk Halaman Berikutnya"
|
202 |
+
#~ msgid "Yes"
|
203 |
+
#~ msgstr "Ya"
|
204 |
+
#~ msgid "No"
|
205 |
+
#~ msgstr "Tidak"
|
206 |
+
#~ msgid "If mutiple is in 10, it will show: 10, 20, 30, 40, 50"
|
207 |
+
#~ msgstr "Jika dalam kelipatan 10, dia akan menampilkan: 10, 20, 30, 40, 50"
|
208 |
+
#~ msgid ""
|
209 |
+
#~ "Deactivating WP-PageNavi plugin does not remove any data that may have "
|
210 |
+
#~ "been created, such as the page navigation options. To completely remove "
|
211 |
+
#~ "this plugin, you can uninstall it here."
|
212 |
+
#~ msgstr ""
|
213 |
+
#~ "Dengan menonaktifkan plugin WP-PageNavi, maka tidak akan menghapus data "
|
214 |
+
#~ "apapun yang telah dibuat, seperti pilihan navigasi halaman. Untuk "
|
215 |
+
#~ "menghapus seluruhnya plugin ini, Anda dapat meng-uninstall-nya di sini."
|
216 |
+
#~ msgid "WARNING:"
|
217 |
+
#~ msgstr "PERINGATAN:"
|
218 |
+
#~ msgid ""
|
219 |
+
#~ "Once uninstalled, this cannot be undone. You should use a Database Backup "
|
220 |
+
#~ "plugin of WordPress to back up all the data first."
|
221 |
+
#~ msgstr ""
|
222 |
+
#~ "Setelah dihapus, hal ini tidak dapat dikembalikan kembali. Anda "
|
223 |
+
#~ "disarankan untuk melakukan Backup plugin dari WordPress Anda untuk "
|
224 |
+
#~ "membackup semua data pertama sekali."
|
225 |
+
#~ msgid "The following WordPress Options will be DELETED:"
|
226 |
+
#~ msgstr "Pilihan WordPress berikut akan DIHAPUS:"
|
227 |
+
#~ msgid "WordPress Options"
|
228 |
+
#~ msgstr "Pilihan WordPress"
|
229 |
+
#~ msgid ""
|
230 |
+
#~ "You Are About To Uninstall WP-PageNavi From WordPress.\\nThis Action Is "
|
231 |
+
#~ "Not Reversible.\\n\\n Choose [Cancel] To Stop, [OK] To Uninstall."
|
232 |
+
#~ msgstr "Anda akan menghapus WP-PageNavi dari WordPress Anda.\\n"
|
233 |
+
#~ msgid "First"
|
234 |
+
#~ msgstr "Awal"
|
235 |
+
#~ msgid "Last"
|
236 |
+
#~ msgstr "Akhir"
|
237 |
+
|
lang/wp-pagenavi-ja.mo
ADDED
Binary file
|
lang/wp-pagenavi-ja.po
ADDED
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of the WordPress plugin WP-PageNavi 2.72 by Lester 'GaMerZ' Chan & scribu.
|
2 |
+
# Copyright (C) 2010 Lester 'GaMerZ' Chan & scribu
|
3 |
+
# This file is distributed under the same license as the WP-PageNavi package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: WP-PageNavi 2.72\n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
|
10 |
+
"POT-Creation-Date: 2010-04-19 11:25+0300\n"
|
11 |
+
"PO-Revision-Date: 2010-06-23 07:18-0500\n"
|
12 |
+
"Last-Translator: Naoko McCracken <info@nao-net.com>\n"
|
13 |
+
"Language-Team: Naoko McCracken <info@nao-net.com>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"X-Poedit-Language: Japanese\n"
|
18 |
+
"X-Poedit-Country: JAPAN\n"
|
19 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
20 |
+
|
21 |
+
#: admin.php:9
|
22 |
+
msgid "PageNavi Settings"
|
23 |
+
msgstr "PageNavi 設定"
|
24 |
+
|
25 |
+
#: admin.php:10
|
26 |
+
msgid "PageNavi"
|
27 |
+
msgstr "PageNavi"
|
28 |
+
|
29 |
+
#: admin.php:27
|
30 |
+
msgid "Text For Number Of Pages"
|
31 |
+
msgstr "総ページ数用テキスト"
|
32 |
+
|
33 |
+
#: admin.php:32
|
34 |
+
msgid "The current page number."
|
35 |
+
msgstr "現在のページ番号。"
|
36 |
+
|
37 |
+
#: admin.php:33
|
38 |
+
#: admin.php:57
|
39 |
+
#: admin.php:65
|
40 |
+
msgid "The total number of pages."
|
41 |
+
msgstr "総ページ数。"
|
42 |
+
|
43 |
+
#: admin.php:37
|
44 |
+
msgid "Text For Current Page"
|
45 |
+
msgstr "現在のページ用テキスト"
|
46 |
+
|
47 |
+
#: admin.php:41
|
48 |
+
#: admin.php:49
|
49 |
+
msgid "The page number."
|
50 |
+
msgstr "ページ番号。"
|
51 |
+
|
52 |
+
#: admin.php:45
|
53 |
+
msgid "Text For Page"
|
54 |
+
msgstr "ページ用テキスト"
|
55 |
+
|
56 |
+
#: admin.php:53
|
57 |
+
msgid "Text For First Page"
|
58 |
+
msgstr "最初のページ用テキスト"
|
59 |
+
|
60 |
+
#: admin.php:61
|
61 |
+
msgid "Text For Last Page"
|
62 |
+
msgstr "最後のページ用テキスト"
|
63 |
+
|
64 |
+
#: admin.php:69
|
65 |
+
msgid "Text For Previous Page"
|
66 |
+
msgstr "前のページ用テキスト"
|
67 |
+
|
68 |
+
#: admin.php:75
|
69 |
+
msgid "Text For Next Page"
|
70 |
+
msgstr "次のページ用テキスト"
|
71 |
+
|
72 |
+
#: admin.php:81
|
73 |
+
msgid "Text For Previous ..."
|
74 |
+
msgstr "「前へ…」用テキスト"
|
75 |
+
|
76 |
+
#: admin.php:87
|
77 |
+
msgid "Text For Next ..."
|
78 |
+
msgstr "「次へ…」用テキスト"
|
79 |
+
|
80 |
+
#: admin.php:94
|
81 |
+
msgid "Page Navigation Text"
|
82 |
+
msgstr "ページナビゲーションテキスト"
|
83 |
+
|
84 |
+
#: admin.php:95
|
85 |
+
msgid "Leaving a field blank will hide that part of the navigation."
|
86 |
+
msgstr "欄を空にするとナビゲーションのその部分が非表示になります。"
|
87 |
+
|
88 |
+
#: admin.php:101
|
89 |
+
msgid "Use pagenavi-css.css"
|
90 |
+
msgstr "pagenavi-css.css を使用"
|
91 |
+
|
92 |
+
#: admin.php:107
|
93 |
+
msgid "Page Navigation Style"
|
94 |
+
msgstr "Page Navigation スタイル"
|
95 |
+
|
96 |
+
#: admin.php:110
|
97 |
+
msgid "Normal"
|
98 |
+
msgstr "通常"
|
99 |
+
|
100 |
+
#: admin.php:110
|
101 |
+
msgid "Drop-down List"
|
102 |
+
msgstr "ドロップダウンリスト"
|
103 |
+
|
104 |
+
#: admin.php:115
|
105 |
+
msgid "Always Show Page Navigation"
|
106 |
+
msgstr "常にページナビゲーションを表示"
|
107 |
+
|
108 |
+
#: admin.php:118
|
109 |
+
msgid "Show navigation even if there's only one page."
|
110 |
+
msgstr "1ページしかない場合もページナビゲーションを表示する。"
|
111 |
+
|
112 |
+
#: admin.php:122
|
113 |
+
msgid "Number Of Pages To Show"
|
114 |
+
msgstr "表示するページ数"
|
115 |
+
|
116 |
+
#: admin.php:129
|
117 |
+
msgid "Number Of Larger Page Numbers To Show"
|
118 |
+
msgstr "省略表示するページ数"
|
119 |
+
|
120 |
+
#: admin.php:134
|
121 |
+
msgid "Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts."
|
122 |
+
msgstr "通常のページ数に追加し、ここで指定された最大数まで省略表示をします。非常に多くの投稿がある場合便利です。"
|
123 |
+
|
124 |
+
#: admin.php:135
|
125 |
+
msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
126 |
+
msgstr "例えば、WP-PageNavi は「ページ 1, 2, 3, 4, 5, 10, 20, 30, 40, 50」のように表示します。"
|
127 |
+
|
128 |
+
#: admin.php:136
|
129 |
+
msgid "Enter 0 to disable."
|
130 |
+
msgstr "無効にするには0と記入してください。"
|
131 |
+
|
132 |
+
#: admin.php:140
|
133 |
+
msgid "Show Larger Page Numbers In Multiples Of"
|
134 |
+
msgstr "省略ページを以下の倍数で表示"
|
135 |
+
|
136 |
+
#: admin.php:145
|
137 |
+
msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
|
138 |
+
msgstr "例えば5の倍数なら「5, 10, 15, 20, 25」と表示します。"
|
139 |
+
|
140 |
+
#: admin.php:150
|
141 |
+
msgid "Page Navigation Options"
|
142 |
+
msgstr "ページナビゲーション設定"
|
143 |
+
|
144 |
+
#: scb/AdminPage.php:165
|
145 |
+
#: scb/AdminPage.php:176
|
146 |
+
msgid "Save Changes"
|
147 |
+
msgstr "変更を保存"
|
148 |
+
|
149 |
+
#: scb/AdminPage.php:279
|
150 |
+
msgid "Settings <strong>saved</strong>."
|
151 |
+
msgstr "設定を<strong>保存しました。</strong>"
|
152 |
+
|
153 |
+
#: scb/AdminPage.php:337
|
154 |
+
msgid "Settings"
|
155 |
+
msgstr "設定"
|
156 |
+
|
157 |
+
#: wp-pagenavi.php:224
|
158 |
+
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
159 |
+
msgstr "%CURRENT_PAGE% / %TOTAL_PAGES%"
|
160 |
+
|
161 |
+
#: wp-pagenavi.php:227
|
162 |
+
msgid "« First"
|
163 |
+
msgstr "« 先頭"
|
164 |
+
|
165 |
+
#: wp-pagenavi.php:228
|
166 |
+
msgid "Last »"
|
167 |
+
msgstr "最後 »"
|
168 |
+
|
169 |
+
#: wp-pagenavi.php:229
|
170 |
+
msgid "«"
|
171 |
+
msgstr "«"
|
172 |
+
|
173 |
+
#: wp-pagenavi.php:230
|
174 |
+
msgid "»"
|
175 |
+
msgstr "»"
|
176 |
+
|
177 |
+
#: wp-pagenavi.php:231
|
178 |
+
#: wp-pagenavi.php:232
|
179 |
+
msgid "..."
|
180 |
+
msgstr "..."
|
181 |
+
|
182 |
+
#. Plugin Name of the plugin/theme
|
183 |
+
msgid "WP-PageNavi"
|
184 |
+
msgstr "WP-PageNavi"
|
185 |
+
|
186 |
+
#. Plugin URI of the plugin/theme
|
187 |
+
msgid "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
188 |
+
msgstr "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
189 |
+
|
190 |
+
#. Description of the plugin/theme
|
191 |
+
msgid "Adds a more advanced paging navigation to your WordPress blog"
|
192 |
+
msgstr "WordPress ブログにさらに高度なページングナビゲーションを追加"
|
193 |
+
|
194 |
+
#. Author of the plugin/theme
|
195 |
+
msgid "Lester 'GaMerZ' Chan & scribu"
|
196 |
+
msgstr "Lester 'GaMerZ' Chan & scribu"
|
197 |
+
|
lang/wp-pagenavi-lt_LT.mo
ADDED
Binary file
|
lang/wp-pagenavi-lt_LT.po
ADDED
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of the WordPress plugin WP-PageNavi 2.73 by Lester 'GaMerZ' Chan & scribu.
|
2 |
+
# Copyright (C) 2010 Lester 'GaMerZ' Chan & scribu
|
3 |
+
# This file is distributed under the same license as the WP-PageNavi package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: WP-PageNavi 2.73\n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
|
10 |
+
"POT-Creation-Date: 2010-08-17 17:28+0300\n"
|
11 |
+
"PO-Revision-Date: 2010-10-19 17:27+0200\n"
|
12 |
+
"Last-Translator: Audrius Meseckas <audrius404@gmail.com>\n"
|
13 |
+
"Language-Team: Audrius Meseckas <xklubo@gmail.com>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
18 |
+
"X-Poedit-Language: Lithuanian\n"
|
19 |
+
"X-Poedit-Country: LITHUANIA\n"
|
20 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
21 |
+
|
22 |
+
#: admin.php:9
|
23 |
+
msgid "PageNavi Settings"
|
24 |
+
msgstr "Puslapiavimo nustatymai"
|
25 |
+
|
26 |
+
#: admin.php:10
|
27 |
+
msgid "PageNavi"
|
28 |
+
msgstr "Puslapiavimas"
|
29 |
+
|
30 |
+
#: admin.php:28
|
31 |
+
msgid "Text For Number Of Pages"
|
32 |
+
msgstr "Tekstas rodomas šalia puslapio skaičių. "
|
33 |
+
|
34 |
+
#: admin.php:33
|
35 |
+
msgid "The current page number."
|
36 |
+
msgstr "Dabartinio puslapio numeris."
|
37 |
+
|
38 |
+
#: admin.php:34
|
39 |
+
#: admin.php:58
|
40 |
+
#: admin.php:66
|
41 |
+
msgid "The total number of pages."
|
42 |
+
msgstr "Visų puslapių skaičius."
|
43 |
+
|
44 |
+
#: admin.php:38
|
45 |
+
msgid "Text For Current Page"
|
46 |
+
msgstr "Tekstas dabartiniam puslapiui"
|
47 |
+
|
48 |
+
#: admin.php:42
|
49 |
+
#: admin.php:50
|
50 |
+
msgid "The page number."
|
51 |
+
msgstr "Puslapio numeris."
|
52 |
+
|
53 |
+
#: admin.php:46
|
54 |
+
msgid "Text For Page"
|
55 |
+
msgstr "Tekstas puslapiu"
|
56 |
+
|
57 |
+
#: admin.php:54
|
58 |
+
msgid "Text For First Page"
|
59 |
+
msgstr "Tekstas pirmame puslapyje"
|
60 |
+
|
61 |
+
#: admin.php:62
|
62 |
+
msgid "Text For Last Page"
|
63 |
+
msgstr "Tekstas paskutiniame puslapyje"
|
64 |
+
|
65 |
+
#: admin.php:70
|
66 |
+
msgid "Text For Previous Page"
|
67 |
+
msgstr "Tekstas ankstesniam puslapiui"
|
68 |
+
|
69 |
+
#: admin.php:76
|
70 |
+
msgid "Text For Next Page"
|
71 |
+
msgstr "Tekstas sekančiam puslapiui"
|
72 |
+
|
73 |
+
#: admin.php:82
|
74 |
+
msgid "Text For Previous ..."
|
75 |
+
msgstr "Tekstas atgal ..."
|
76 |
+
|
77 |
+
#: admin.php:88
|
78 |
+
msgid "Text For Next ..."
|
79 |
+
msgstr "Tekstas toliau ..."
|
80 |
+
|
81 |
+
#: admin.php:95
|
82 |
+
msgid "Page Navigation Text"
|
83 |
+
msgstr "Puslapiavimo valdymo parinktys"
|
84 |
+
|
85 |
+
#: admin.php:96
|
86 |
+
msgid "Leaving a field blank will hide that part of the navigation."
|
87 |
+
msgstr "Tuščių laukelių neužpildymas paslėps dalį puslapių numeravimo funkcijų."
|
88 |
+
|
89 |
+
#: admin.php:102
|
90 |
+
msgid "Use pagenavi-css.css"
|
91 |
+
msgstr "Naudoti pagenavi-css.css"
|
92 |
+
|
93 |
+
#: admin.php:108
|
94 |
+
msgid "Page Navigation Style"
|
95 |
+
msgstr "Puslapių numeravimo atvaizdavimo stilius"
|
96 |
+
|
97 |
+
#: admin.php:111
|
98 |
+
msgid "Normal"
|
99 |
+
msgstr "Normalus"
|
100 |
+
|
101 |
+
#: admin.php:111
|
102 |
+
msgid "Drop-down List"
|
103 |
+
msgstr "Žemyn išskleidžiamas sąrašas"
|
104 |
+
|
105 |
+
#: admin.php:116
|
106 |
+
msgid "Always Show Page Navigation"
|
107 |
+
msgstr "Visada rodyti puslapių numeravimą"
|
108 |
+
|
109 |
+
#: admin.php:119
|
110 |
+
msgid "Show navigation even if there's only one page."
|
111 |
+
msgstr "Rodyti puslapiavimą, net tada, kai yra tik vienas puslapis."
|
112 |
+
|
113 |
+
#: admin.php:123
|
114 |
+
msgid "Number Of Pages To Show"
|
115 |
+
msgstr "Rodomas puslapio numerių kiekis"
|
116 |
+
|
117 |
+
#: admin.php:130
|
118 |
+
msgid "Number Of Larger Page Numbers To Show"
|
119 |
+
msgstr "Didesnio intervalo puslapio skaičių rodymas"
|
120 |
+
|
121 |
+
#: admin.php:135
|
122 |
+
msgid "Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts."
|
123 |
+
msgstr "Didesni puslapių numeriai naudojami kaip priedas įprastiems puslapių numeriams. Jie yra naudingi, kai yra daug puslapių."
|
124 |
+
|
125 |
+
#: admin.php:136
|
126 |
+
msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
127 |
+
msgstr "Pavyzdžiui, puslapių numeravimas rodomas taip: Puslapiai 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
128 |
+
|
129 |
+
#: admin.php:137
|
130 |
+
msgid "Enter 0 to disable."
|
131 |
+
msgstr "Įveskite 0, kad deaktyvuoti."
|
132 |
+
|
133 |
+
#: admin.php:141
|
134 |
+
msgid "Show Larger Page Numbers In Multiples Of"
|
135 |
+
msgstr "Puslapio numerių skaičių rodymas didesniu intervalu"
|
136 |
+
|
137 |
+
#: admin.php:146
|
138 |
+
msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
|
139 |
+
msgstr "Pavyzdžiui, jei pasirinkta 5, tai bus rodoma taip: 5, 10, 15, 20, 25"
|
140 |
+
|
141 |
+
#: admin.php:151
|
142 |
+
msgid "Page Navigation Options"
|
143 |
+
msgstr "Puslapių numeravimo parinktys"
|
144 |
+
|
145 |
+
#: scb/AdminPage.php:167
|
146 |
+
msgid "Settings <strong>saved</strong>."
|
147 |
+
msgstr "Nustatymai <strong>išsaugoti</strong>."
|
148 |
+
|
149 |
+
#: scb/AdminPage.php:179
|
150 |
+
#: scb/AdminPage.php:189
|
151 |
+
msgid "Save Changes"
|
152 |
+
msgstr "Išsaugoti pakeitimus"
|
153 |
+
|
154 |
+
#: scb/AdminPage.php:371
|
155 |
+
msgid "Settings"
|
156 |
+
msgstr "Nustatymai"
|
157 |
+
|
158 |
+
#: wp-pagenavi.php:37
|
159 |
+
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
160 |
+
msgstr "Rodomas puslapis %CURRENT_PAGE% iš %TOTAL_PAGES%"
|
161 |
+
|
162 |
+
#: wp-pagenavi.php:40
|
163 |
+
msgid "« First"
|
164 |
+
msgstr "« Pirmas"
|
165 |
+
|
166 |
+
#: wp-pagenavi.php:41
|
167 |
+
msgid "Last »"
|
168 |
+
msgstr "Paskutinis »"
|
169 |
+
|
170 |
+
#: wp-pagenavi.php:42
|
171 |
+
msgid "«"
|
172 |
+
msgstr "«"
|
173 |
+
|
174 |
+
#: wp-pagenavi.php:43
|
175 |
+
msgid "»"
|
176 |
+
msgstr "»"
|
177 |
+
|
178 |
+
#: wp-pagenavi.php:44
|
179 |
+
#: wp-pagenavi.php:45
|
180 |
+
msgid "..."
|
181 |
+
msgstr "..."
|
182 |
+
|
183 |
+
#. Plugin Name of the plugin/theme
|
184 |
+
msgid "WP-PageNavi"
|
185 |
+
msgstr "Puslapių numeravimas"
|
186 |
+
|
187 |
+
#. Plugin URI of the plugin/theme
|
188 |
+
msgid "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
189 |
+
msgstr "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
190 |
+
|
191 |
+
#. Description of the plugin/theme
|
192 |
+
msgid "Adds a more advanced paging navigation to your WordPress blog"
|
193 |
+
msgstr "Suteikia galimybę numeruoti BLOGo puslapius"
|
194 |
+
|
195 |
+
#. Author of the plugin/theme
|
196 |
+
msgid "Lester 'GaMerZ' Chan & scribu"
|
197 |
+
msgstr "Lester 'GaMerZ' Chan & scribu"
|
198 |
+
|
lang/wp-pagenavi-nb_NO.mo
ADDED
Binary file
|
lang/wp-pagenavi-nb_NO.po
ADDED
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of the WordPress plugin WP-PageNavi 2.73 by Lester 'GaMerZ' Chan & scribu.
|
2 |
+
# Copyright (C) 2010 Lester 'GaMerZ' Chan & scribu
|
3 |
+
# This file is distributed under the same license as the WP-PageNavi package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: WP-PageNavi 2.73\n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
|
10 |
+
"POT-Creation-Date: 2010-08-17 17:28+0300\n"
|
11 |
+
"PO-Revision-Date: 2010-09-19 20:50+0100\n"
|
12 |
+
"Last-Translator: Yngve Egseth Stein <yngvestein@gmail.com>\n"
|
13 |
+
"Language-Team: stein84.net <yngvestein@gmail.com>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"X-Poedit-Language: Norwegian Bokmal\n"
|
18 |
+
"X-Poedit-Country: NORWAY\n"
|
19 |
+
|
20 |
+
#: admin.php:9
|
21 |
+
msgid "PageNavi Settings"
|
22 |
+
msgstr "Innstillinger for PageNavi"
|
23 |
+
|
24 |
+
#: admin.php:10
|
25 |
+
msgid "PageNavi"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: admin.php:28
|
29 |
+
msgid "Text For Number Of Pages"
|
30 |
+
msgstr "Tekst for antall sider"
|
31 |
+
|
32 |
+
#: admin.php:33
|
33 |
+
msgid "The current page number."
|
34 |
+
msgstr "Viser aktivt sidenummer."
|
35 |
+
|
36 |
+
#: admin.php:34
|
37 |
+
#: admin.php:58
|
38 |
+
#: admin.php:66
|
39 |
+
msgid "The total number of pages."
|
40 |
+
msgstr "Viser totalt antall sider."
|
41 |
+
|
42 |
+
#: admin.php:38
|
43 |
+
msgid "Text For Current Page"
|
44 |
+
msgstr "Tekst for aktiv side"
|
45 |
+
|
46 |
+
#: admin.php:42
|
47 |
+
#: admin.php:50
|
48 |
+
msgid "The page number."
|
49 |
+
msgstr "Viser sidenummer."
|
50 |
+
|
51 |
+
#: admin.php:46
|
52 |
+
msgid "Text For Page"
|
53 |
+
msgstr "Tekst for side"
|
54 |
+
|
55 |
+
#: admin.php:54
|
56 |
+
msgid "Text For First Page"
|
57 |
+
msgstr "Tekst for første side"
|
58 |
+
|
59 |
+
#: admin.php:62
|
60 |
+
msgid "Text For Last Page"
|
61 |
+
msgstr "Tekst for siste side"
|
62 |
+
|
63 |
+
#: admin.php:70
|
64 |
+
msgid "Text For Previous Page"
|
65 |
+
msgstr "Tekst for forrige side"
|
66 |
+
|
67 |
+
#: admin.php:76
|
68 |
+
msgid "Text For Next Page"
|
69 |
+
msgstr "Tekst for neste side"
|
70 |
+
|
71 |
+
#: admin.php:82
|
72 |
+
msgid "Text For Previous ..."
|
73 |
+
msgstr "Tekst for forrige..."
|
74 |
+
|
75 |
+
#: admin.php:88
|
76 |
+
msgid "Text For Next ..."
|
77 |
+
msgstr "Tekst for neste..."
|
78 |
+
|
79 |
+
#: admin.php:95
|
80 |
+
msgid "Page Navigation Text"
|
81 |
+
msgstr "Alternativer for visning"
|
82 |
+
|
83 |
+
#: admin.php:96
|
84 |
+
msgid "Leaving a field blank will hide that part of the navigation."
|
85 |
+
msgstr "Hvis du lar et felt være blankt, vil det automatisk skjules på fremsiden."
|
86 |
+
|
87 |
+
#: admin.php:102
|
88 |
+
msgid "Use pagenavi-css.css"
|
89 |
+
msgstr "Bruk pagenavi-css.css"
|
90 |
+
|
91 |
+
#: admin.php:108
|
92 |
+
msgid "Page Navigation Style"
|
93 |
+
msgstr "Utseende for navigasjon"
|
94 |
+
|
95 |
+
#: admin.php:111
|
96 |
+
msgid "Normal"
|
97 |
+
msgstr "Normal"
|
98 |
+
|
99 |
+
#: admin.php:111
|
100 |
+
msgid "Drop-down List"
|
101 |
+
msgstr "Rullegardin"
|
102 |
+
|
103 |
+
#: admin.php:116
|
104 |
+
msgid "Always Show Page Navigation"
|
105 |
+
msgstr "Vis alltid"
|
106 |
+
|
107 |
+
#: admin.php:119
|
108 |
+
msgid "Show navigation even if there's only one page."
|
109 |
+
msgstr "Vis navigasjonsfeltet selv om det bare er en side."
|
110 |
+
|
111 |
+
#: admin.php:123
|
112 |
+
msgid "Number Of Pages To Show"
|
113 |
+
msgstr "Antall sider å vise"
|
114 |
+
|
115 |
+
#: admin.php:130
|
116 |
+
msgid "Number Of Larger Page Numbers To Show"
|
117 |
+
msgstr "Antall avrundinger som skal vises"
|
118 |
+
|
119 |
+
#: admin.php:135
|
120 |
+
msgid "Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts."
|
121 |
+
msgstr "Avrundinger kommer i tillegg til vanlige sidenummer. Dette er meget kjekt om du har fryktelig mange sider."
|
122 |
+
|
123 |
+
#: admin.php:136
|
124 |
+
msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
125 |
+
msgstr "Et eksempel på dette, er at det vil vises side 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
126 |
+
|
127 |
+
#: admin.php:137
|
128 |
+
msgid "Enter 0 to disable."
|
129 |
+
msgstr "Bruk 0 for å deaktivere."
|
130 |
+
|
131 |
+
#: admin.php:141
|
132 |
+
msgid "Show Larger Page Numbers In Multiples Of"
|
133 |
+
msgstr "Avrund oppover med"
|
134 |
+
|
135 |
+
#: admin.php:146
|
136 |
+
msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
|
137 |
+
msgstr "Hvis du for eksempel velger 5, vil det da bli vist 5, 10, 15, 20, 25 osv."
|
138 |
+
|
139 |
+
#: admin.php:151
|
140 |
+
msgid "Page Navigation Options"
|
141 |
+
msgstr "Innstillinger"
|
142 |
+
|
143 |
+
#: scb/AdminPage.php:167
|
144 |
+
msgid "Settings <strong>saved</strong>."
|
145 |
+
msgstr "Endringer er lagret."
|
146 |
+
|
147 |
+
#: scb/AdminPage.php:179
|
148 |
+
#: scb/AdminPage.php:189
|
149 |
+
msgid "Save Changes"
|
150 |
+
msgstr "Lagre endringer"
|
151 |
+
|
152 |
+
#: scb/AdminPage.php:371
|
153 |
+
msgid "Settings"
|
154 |
+
msgstr "Innstillinger"
|
155 |
+
|
156 |
+
#: wp-pagenavi.php:37
|
157 |
+
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
158 |
+
msgstr "Side %CURRENT_PAGE% av %TOTAL_PAGES%"
|
159 |
+
|
160 |
+
#: wp-pagenavi.php:40
|
161 |
+
msgid "« First"
|
162 |
+
msgstr "« Første"
|
163 |
+
|
164 |
+
#: wp-pagenavi.php:41
|
165 |
+
msgid "Last »"
|
166 |
+
msgstr "Siste »"
|
167 |
+
|
168 |
+
#: wp-pagenavi.php:42
|
169 |
+
msgid "«"
|
170 |
+
msgstr "«"
|
171 |
+
|
172 |
+
#: wp-pagenavi.php:43
|
173 |
+
msgid "»"
|
174 |
+
msgstr "»"
|
175 |
+
|
176 |
+
#: wp-pagenavi.php:44
|
177 |
+
#: wp-pagenavi.php:45
|
178 |
+
msgid "..."
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#. Plugin Name of the plugin/theme
|
182 |
+
msgid "WP-PageNavi"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#. Plugin URI of the plugin/theme
|
186 |
+
msgid "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
187 |
+
msgstr ""
|
188 |
+
|
189 |
+
#. Description of the plugin/theme
|
190 |
+
msgid "Adds a more advanced paging navigation to your WordPress blog"
|
191 |
+
msgstr "Gir deg en mer avansert måte å navigere mellom sider på. Men du kan selvsagt også gjøre det enkelt og rent!"
|
192 |
+
|
193 |
+
#. Author of the plugin/theme
|
194 |
+
msgid "Lester 'GaMerZ' Chan & scribu"
|
195 |
+
msgstr ""
|
196 |
+
|
lang/wp-pagenavi-pt_BR.mo
ADDED
Binary file
|
lang/wp-pagenavi-pt_BR.po
ADDED
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of the WordPress plugin WP-PageNavi 2.72 by Lester 'GaMerZ' Chan & scribu.
|
2 |
+
# Copyright (C) 2010 Lester 'GaMerZ' Chan & scribu
|
3 |
+
# This file is distributed under the same license as the WP-PageNavi package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: WP-PageNavi 2.72\n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
|
10 |
+
"POT-Creation-Date: 2010-04-19 11:25+0300\n"
|
11 |
+
"PO-Revision-Date: 2010-06-07 18:30-0300\n"
|
12 |
+
"Last-Translator: Rafael Sirotheau <rsirotheau@gmail.com>\n"
|
13 |
+
"Language-Team: Rafael Sirotheau <rsirotheau@gmail.com>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"X-Poedit-Language: brazilian Portuguese\n"
|
18 |
+
"X-Poedit-Country: BRAZIL\n"
|
19 |
+
|
20 |
+
#: admin.php:9
|
21 |
+
msgid "PageNavi Settings"
|
22 |
+
msgstr "Configurações do PageNavi"
|
23 |
+
|
24 |
+
#: admin.php:10
|
25 |
+
msgid "PageNavi"
|
26 |
+
msgstr "PageNavi"
|
27 |
+
|
28 |
+
#: admin.php:27
|
29 |
+
msgid "Text For Number Of Pages"
|
30 |
+
msgstr "Texto para Número de Páginas"
|
31 |
+
|
32 |
+
#: admin.php:32
|
33 |
+
msgid "The current page number."
|
34 |
+
msgstr "O número da página atual."
|
35 |
+
|
36 |
+
#: admin.php:33
|
37 |
+
#: admin.php:57
|
38 |
+
#: admin.php:65
|
39 |
+
msgid "The total number of pages."
|
40 |
+
msgstr "O número total de páginas."
|
41 |
+
|
42 |
+
#: admin.php:37
|
43 |
+
msgid "Text For Current Page"
|
44 |
+
msgstr "Texto para Página Atual"
|
45 |
+
|
46 |
+
#: admin.php:41
|
47 |
+
#: admin.php:49
|
48 |
+
msgid "The page number."
|
49 |
+
msgstr "O numéro da página."
|
50 |
+
|
51 |
+
#: admin.php:45
|
52 |
+
msgid "Text For Page"
|
53 |
+
msgstr "Texto para Página"
|
54 |
+
|
55 |
+
#: admin.php:53
|
56 |
+
msgid "Text For First Page"
|
57 |
+
msgstr "Texto para Primeira Página"
|
58 |
+
|
59 |
+
#: admin.php:61
|
60 |
+
msgid "Text For Last Page"
|
61 |
+
msgstr "Texto para Última Página"
|
62 |
+
|
63 |
+
#: admin.php:69
|
64 |
+
msgid "Text For Previous Page"
|
65 |
+
msgstr "Texto para Página Anterior"
|
66 |
+
|
67 |
+
#: admin.php:75
|
68 |
+
msgid "Text For Next Page"
|
69 |
+
msgstr "Texto para Próxima Página"
|
70 |
+
|
71 |
+
#: admin.php:81
|
72 |
+
msgid "Text For Previous ..."
|
73 |
+
msgstr "Texto para Anterior ..."
|
74 |
+
|
75 |
+
#: admin.php:87
|
76 |
+
msgid "Text For Next ..."
|
77 |
+
msgstr "Texto para Próximo ..."
|
78 |
+
|
79 |
+
#: admin.php:94
|
80 |
+
msgid "Page Navigation Text"
|
81 |
+
msgstr "Texto da Paginação"
|
82 |
+
|
83 |
+
#: admin.php:95
|
84 |
+
msgid "Leaving a field blank will hide that part of the navigation."
|
85 |
+
msgstr "Deixar um campo em branco vai esconder esta parte da navegação."
|
86 |
+
|
87 |
+
#: admin.php:101
|
88 |
+
msgid "Use pagenavi-css.css"
|
89 |
+
msgstr "Usar pagenavi-css.css"
|
90 |
+
|
91 |
+
#: admin.php:107
|
92 |
+
msgid "Page Navigation Style"
|
93 |
+
msgstr "Estilos da Paginação"
|
94 |
+
|
95 |
+
#: admin.php:110
|
96 |
+
msgid "Normal"
|
97 |
+
msgstr "Normal"
|
98 |
+
|
99 |
+
#: admin.php:110
|
100 |
+
msgid "Drop-down List"
|
101 |
+
msgstr "Lista Drop-down"
|
102 |
+
|
103 |
+
#: admin.php:115
|
104 |
+
msgid "Always Show Page Navigation"
|
105 |
+
msgstr "Sempre mostrar Paginação"
|
106 |
+
|
107 |
+
#: admin.php:118
|
108 |
+
msgid "Show navigation even if there's only one page."
|
109 |
+
msgstr "Mostrar navegação mesmo se tiver apenas uma página."
|
110 |
+
|
111 |
+
#: admin.php:122
|
112 |
+
msgid "Number Of Pages To Show"
|
113 |
+
msgstr "Quantidade de Páginas a mostrar"
|
114 |
+
|
115 |
+
#: admin.php:129
|
116 |
+
msgid "Number Of Larger Page Numbers To Show"
|
117 |
+
msgstr "Quantidade de Páginas Distantes a mostrar"
|
118 |
+
|
119 |
+
#: admin.php:134
|
120 |
+
msgid "Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts."
|
121 |
+
msgstr "Numeração de Páginas Distantes são uma adição a numeração normal. Elas são úteis quando há várias páginas de posts."
|
122 |
+
|
123 |
+
#: admin.php:135
|
124 |
+
msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
125 |
+
msgstr "Por exemplo, a Paginação vai mostrar: Páginas 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
126 |
+
|
127 |
+
#: admin.php:136
|
128 |
+
msgid "Enter 0 to disable."
|
129 |
+
msgstr "Digite 0 para desabilitar."
|
130 |
+
|
131 |
+
#: admin.php:140
|
132 |
+
msgid "Show Larger Page Numbers In Multiples Of"
|
133 |
+
msgstr "Mostrar Páginas Distantes em Múltiplos de"
|
134 |
+
|
135 |
+
#: admin.php:145
|
136 |
+
msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
|
137 |
+
msgstr "Por exemplo, se múltiplo de 5, vai mostrar: 5, 10, 15, 20, 25"
|
138 |
+
|
139 |
+
#: admin.php:150
|
140 |
+
msgid "Page Navigation Options"
|
141 |
+
msgstr "Opção da Paginação"
|
142 |
+
|
143 |
+
#: scb/AdminPage.php:165
|
144 |
+
#: scb/AdminPage.php:176
|
145 |
+
msgid "Save Changes"
|
146 |
+
msgstr "Salvar Mudanças"
|
147 |
+
|
148 |
+
#: scb/AdminPage.php:279
|
149 |
+
msgid "Settings <strong>saved</strong>."
|
150 |
+
msgstr "Configurações <strong>salvas</strong>"
|
151 |
+
|
152 |
+
#: scb/AdminPage.php:337
|
153 |
+
msgid "Settings"
|
154 |
+
msgstr "Configurações"
|
155 |
+
|
156 |
+
#: wp-pagenavi.php:224
|
157 |
+
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
158 |
+
msgstr "Página %CURRENT_PAGE% de %TOTAL_PAGES%"
|
159 |
+
|
160 |
+
#: wp-pagenavi.php:227
|
161 |
+
msgid "« First"
|
162 |
+
msgstr "« Primeira"
|
163 |
+
|
164 |
+
#: wp-pagenavi.php:228
|
165 |
+
msgid "Last »"
|
166 |
+
msgstr "Última »"
|
167 |
+
|
168 |
+
#: wp-pagenavi.php:229
|
169 |
+
msgid "«"
|
170 |
+
msgstr "«"
|
171 |
+
|
172 |
+
#: wp-pagenavi.php:230
|
173 |
+
msgid "»"
|
174 |
+
msgstr "»"
|
175 |
+
|
176 |
+
#: wp-pagenavi.php:231
|
177 |
+
#: wp-pagenavi.php:232
|
178 |
+
msgid "..."
|
179 |
+
msgstr "..."
|
180 |
+
|
181 |
+
#. Plugin Name of the plugin/theme
|
182 |
+
msgid "WP-PageNavi"
|
183 |
+
msgstr "WP-PageNavi"
|
184 |
+
|
185 |
+
#. Plugin URI of the plugin/theme
|
186 |
+
msgid "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
187 |
+
msgstr "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
188 |
+
|
189 |
+
#. Description of the plugin/theme
|
190 |
+
msgid "Adds a more advanced paging navigation to your WordPress blog"
|
191 |
+
msgstr "Adicione uma paginação mais avançada ao seu blog Wordpress"
|
192 |
+
|
193 |
+
#. Author of the plugin/theme
|
194 |
+
msgid "Lester 'GaMerZ' Chan & scribu"
|
195 |
+
msgstr "Lester 'GaMerZ' Chan & scribu"
|
196 |
+
|
lang/wp-pagenavi-ru_RU.mo
CHANGED
Binary file
|
lang/wp-pagenavi-ru_RU.po
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP-PageNavi 2.50\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
-
"Last-Translator:
|
8 |
"Language-Team: Anna Ozeritskaya <anna.ozeritskaya@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -15,219 +15,253 @@ msgstr ""
|
|
15 |
"X-Poedit-Basepath: .\n"
|
16 |
"X-Poedit-SearchPath-0: .\n"
|
17 |
|
18 |
-
#:
|
19 |
-
|
20 |
-
|
21 |
-
msgid "Page Navigation Options"
|
22 |
-
msgstr "Настройки списка страниц"
|
23 |
-
|
24 |
-
#: pagenavi-options.php:53
|
25 |
-
msgid "Updated"
|
26 |
-
msgstr "— обновлено"
|
27 |
-
|
28 |
-
#: pagenavi-options.php:58
|
29 |
-
msgid "No Page Navigation Option Updated"
|
30 |
-
msgstr "Настройки списка страниц не изменились"
|
31 |
-
|
32 |
-
#: pagenavi-options.php:64
|
33 |
-
#: pagenavi-options.php:265
|
34 |
-
msgid "UNINSTALL WP-PageNavi"
|
35 |
-
msgstr "УДАЛИТЬ WP-PageNavi"
|
36 |
-
|
37 |
-
#: pagenavi-options.php:72
|
38 |
-
#, php-format
|
39 |
-
msgid "Setting Key '%s' has been deleted."
|
40 |
-
msgstr "Настройка «%s» удалена."
|
41 |
-
|
42 |
-
#: pagenavi-options.php:76
|
43 |
-
#, php-format
|
44 |
-
msgid "Error deleting Setting Key '%s'."
|
45 |
-
msgstr "Ошибка при удалении настройки «%s»."
|
46 |
-
|
47 |
-
#: pagenavi-options.php:98
|
48 |
-
#: pagenavi-options.php:233
|
49 |
-
msgid "Uninstall WP-PageNavi"
|
50 |
-
msgstr "Удалить список страниц"
|
51 |
|
52 |
-
#:
|
53 |
-
|
54 |
-
|
55 |
-
msgstr "<a href=\"%s\">Нажмите здесь</a> чтобы завершить удаление. WP-PageNavi будет отключён автоматически."
|
56 |
-
|
57 |
-
#: pagenavi-options.php:111
|
58 |
-
msgid "Page Navigation Text"
|
59 |
-
msgstr "Шаблоны списка страниц"
|
60 |
|
61 |
-
#:
|
62 |
msgid "Text For Number Of Pages"
|
63 |
msgstr "Шаблон общего списка страниц"
|
64 |
|
65 |
-
#:
|
66 |
msgid "The current page number."
|
67 |
msgstr "Номер текущей страницы."
|
68 |
|
69 |
-
#:
|
70 |
-
#:
|
71 |
-
#:
|
72 |
msgid "The total number of pages."
|
73 |
msgstr "Общее количество страниц."
|
74 |
|
75 |
-
#:
|
76 |
msgid "Text For Current Page"
|
77 |
msgstr "Элемент «Текущая страница»"
|
78 |
|
79 |
-
#:
|
80 |
-
#:
|
81 |
msgid "The page number."
|
82 |
msgstr "Номер страницы."
|
83 |
|
84 |
-
#:
|
85 |
msgid "Text For Page"
|
86 |
msgstr "Элемент «Страница»"
|
87 |
|
88 |
-
#:
|
89 |
-
msgid "Text For First
|
90 |
-
msgstr "Элемент «Первая
|
|
|
|
|
|
|
|
|
91 |
|
92 |
-
#:
|
93 |
-
msgid "Text For
|
94 |
-
msgstr "Элемент «
|
95 |
|
96 |
-
#:
|
97 |
-
msgid "Text For Next
|
98 |
-
msgstr "Элемент «Следующая
|
99 |
|
100 |
-
#:
|
101 |
-
msgid "Text For Previous
|
102 |
-
msgstr "Элемент «
|
103 |
|
104 |
-
#:
|
105 |
msgid "Text For Next ..."
|
106 |
msgstr "Элемент «Следующие…»"
|
107 |
|
108 |
-
#:
|
109 |
-
msgid "
|
110 |
-
msgstr "
|
111 |
|
112 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
msgid "Page Navigation Style"
|
114 |
msgstr "Стиль списка страниц"
|
115 |
|
116 |
-
#:
|
117 |
msgid "Normal"
|
118 |
msgstr "Обычный"
|
119 |
|
120 |
-
#:
|
121 |
-
msgid "Drop
|
122 |
msgstr "Выпадающий список"
|
123 |
|
124 |
-
#:
|
125 |
-
msgid "
|
126 |
-
msgstr "
|
127 |
|
128 |
-
#:
|
129 |
-
msgid "
|
130 |
-
msgstr "
|
131 |
|
132 |
-
#:
|
133 |
-
|
134 |
-
|
135 |
-
msgstr "Да"
|
136 |
|
137 |
-
#:
|
138 |
-
msgid "
|
139 |
-
msgstr "
|
140 |
|
141 |
-
#:
|
142 |
-
msgid "
|
143 |
-
msgstr "
|
144 |
|
145 |
-
#:
|
146 |
-
msgid "
|
147 |
-
msgstr "Диапазоны страниц дополняют обычную нумерацию и полезны в тех случаях, когда на вашем сайте очень много записей."
|
148 |
-
|
149 |
-
#: pagenavi-options.php:207
|
150 |
-
msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50"
|
151 |
msgstr "Например, список страниц будет выглядеть так: Страницы 1, 2, 3, 4, 5, 10, 20, 30, 40, 50"
|
152 |
|
153 |
-
#:
|
154 |
msgid "Enter 0 to disable."
|
155 |
-
msgstr "Введите 0 чтобы отключить эту функцию."
|
156 |
|
157 |
-
#:
|
158 |
-
msgid "Show
|
159 |
-
msgstr "Коэффициент для диапазонов
|
160 |
|
161 |
-
#:
|
162 |
-
msgid "
|
163 |
-
msgstr "
|
164 |
|
165 |
-
#:
|
166 |
-
msgid "
|
167 |
-
msgstr "
|
168 |
|
169 |
-
#:
|
|
|
170 |
msgid "Save Changes"
|
171 |
msgstr "Сохранить изменения"
|
172 |
|
173 |
-
#:
|
174 |
-
msgid "
|
175 |
-
msgstr "
|
176 |
-
|
177 |
-
#: pagenavi-options.php:238
|
178 |
-
msgid "WARNING:"
|
179 |
-
msgstr "ВНИМАНИЕ:"
|
180 |
-
|
181 |
-
#: pagenavi-options.php:239
|
182 |
-
msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
|
183 |
-
msgstr "Удаление плагина необратимо. Для того, чтобы создать резервную копию БД WordPress и сохранить ваши данные, используйте плагин «Database Backup»."
|
184 |
-
|
185 |
-
#: pagenavi-options.php:242
|
186 |
-
msgid "The following WordPress Options will be DELETED:"
|
187 |
-
msgstr "Будут УДАЛЕНЫ следующие настройки WordPress:"
|
188 |
-
|
189 |
-
#: pagenavi-options.php:247
|
190 |
-
msgid "WordPress Options"
|
191 |
-
msgstr "Настройки WordPress"
|
192 |
-
|
193 |
-
#: pagenavi-options.php:265
|
194 |
-
msgid ""
|
195 |
-
"You Are About To Uninstall WP-PageNavi From WordPress.\\n"
|
196 |
-
"This Action Is Not Reversible.\\n"
|
197 |
-
"\\n"
|
198 |
-
" Choose [Cancel] To Stop, [OK] To Uninstall."
|
199 |
-
msgstr ""
|
200 |
-
"Вы собираетесь удалить плагин WP-PageNavi.\\n"
|
201 |
-
"Это действие необратимо.\\n"
|
202 |
-
"\\n"
|
203 |
-
"Чтобы остановить удаление, выберите [Отмена]. Выберите [OK], если вы хотите его продолжить."
|
204 |
|
205 |
-
#:
|
206 |
-
msgid "
|
207 |
-
msgstr "
|
208 |
|
209 |
-
#: wp-pagenavi.php:
|
210 |
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
211 |
msgstr "Страница %CURRENT_PAGE% из %TOTAL_PAGES%"
|
212 |
|
213 |
-
#: wp-pagenavi.php:
|
214 |
msgid "« First"
|
215 |
msgstr "« Первая"
|
216 |
|
217 |
-
#: wp-pagenavi.php:
|
218 |
msgid "Last »"
|
219 |
msgstr "Последняя »"
|
220 |
|
221 |
-
#: wp-pagenavi.php:
|
222 |
-
msgid "»"
|
223 |
-
msgstr "»"
|
224 |
-
|
225 |
-
#: wp-pagenavi.php:207
|
226 |
msgid "«"
|
227 |
msgstr "«"
|
228 |
|
229 |
-
#: wp-pagenavi.php:
|
230 |
-
|
|
|
|
|
|
|
|
|
231 |
msgid "..."
|
232 |
msgstr "..."
|
233 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP-PageNavi 2.50\n"
|
4 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
|
5 |
+
"POT-Creation-Date: 2010-04-19 11:25+0300\n"
|
6 |
+
"PO-Revision-Date: 2010-06-26 05:23+0300\n"
|
7 |
+
"Last-Translator: Elvis <main@fweb.org.rru>\n"
|
8 |
"Language-Team: Anna Ozeritskaya <anna.ozeritskaya@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
"X-Poedit-Basepath: .\n"
|
16 |
"X-Poedit-SearchPath-0: .\n"
|
17 |
|
18 |
+
#: admin.php:9
|
19 |
+
msgid "PageNavi Settings"
|
20 |
+
msgstr "Настройки плагина"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
+
#: admin.php:10
|
23 |
+
msgid "PageNavi"
|
24 |
+
msgstr "Список страниц"
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
+
#: admin.php:27
|
27 |
msgid "Text For Number Of Pages"
|
28 |
msgstr "Шаблон общего списка страниц"
|
29 |
|
30 |
+
#: admin.php:32
|
31 |
msgid "The current page number."
|
32 |
msgstr "Номер текущей страницы."
|
33 |
|
34 |
+
#: admin.php:33
|
35 |
+
#: admin.php:57
|
36 |
+
#: admin.php:65
|
37 |
msgid "The total number of pages."
|
38 |
msgstr "Общее количество страниц."
|
39 |
|
40 |
+
#: admin.php:37
|
41 |
msgid "Text For Current Page"
|
42 |
msgstr "Элемент «Текущая страница»"
|
43 |
|
44 |
+
#: admin.php:41
|
45 |
+
#: admin.php:49
|
46 |
msgid "The page number."
|
47 |
msgstr "Номер страницы."
|
48 |
|
49 |
+
#: admin.php:45
|
50 |
msgid "Text For Page"
|
51 |
msgstr "Элемент «Страница»"
|
52 |
|
53 |
+
#: admin.php:53
|
54 |
+
msgid "Text For First Page"
|
55 |
+
msgstr "Элемент «Первая страница»"
|
56 |
+
|
57 |
+
#: admin.php:61
|
58 |
+
msgid "Text For Last Page"
|
59 |
+
msgstr "Элемент «Последняя страница»"
|
60 |
|
61 |
+
#: admin.php:69
|
62 |
+
msgid "Text For Previous Page"
|
63 |
+
msgstr "Элемент «Предыдущая страница»"
|
64 |
|
65 |
+
#: admin.php:75
|
66 |
+
msgid "Text For Next Page"
|
67 |
+
msgstr "Элемент «Следующая страница»"
|
68 |
|
69 |
+
#: admin.php:81
|
70 |
+
msgid "Text For Previous ..."
|
71 |
+
msgstr "Элемент «Предыдущие…»"
|
72 |
|
73 |
+
#: admin.php:87
|
74 |
msgid "Text For Next ..."
|
75 |
msgstr "Элемент «Следующие…»"
|
76 |
|
77 |
+
#: admin.php:94
|
78 |
+
msgid "Page Navigation Text"
|
79 |
+
msgstr "Шаблоны списка страниц"
|
80 |
|
81 |
+
#: admin.php:95
|
82 |
+
msgid "Leaving a field blank will hide that part of the navigation."
|
83 |
+
msgstr "Совет: Если Вы оставите какое-то поле пустым, то и в страничной навигации оно не будет отображаться."
|
84 |
+
|
85 |
+
#: admin.php:101
|
86 |
+
msgid "Use pagenavi-css.css"
|
87 |
+
msgstr "Использовать стиль pagenavi-css.css"
|
88 |
+
|
89 |
+
#: admin.php:107
|
90 |
msgid "Page Navigation Style"
|
91 |
msgstr "Стиль списка страниц"
|
92 |
|
93 |
+
#: admin.php:110
|
94 |
msgid "Normal"
|
95 |
msgstr "Обычный"
|
96 |
|
97 |
+
#: admin.php:110
|
98 |
+
msgid "Drop-down List"
|
99 |
msgstr "Выпадающий список"
|
100 |
|
101 |
+
#: admin.php:115
|
102 |
+
msgid "Always Show Page Navigation"
|
103 |
+
msgstr "Всегда показывать список страниц"
|
104 |
|
105 |
+
#: admin.php:118
|
106 |
+
msgid "Show navigation even if there's only one page."
|
107 |
+
msgstr "Показывать навигацию, даже если страниц с записями больше нет."
|
108 |
|
109 |
+
#: admin.php:122
|
110 |
+
msgid "Number Of Pages To Show"
|
111 |
+
msgstr "Кол-во страниц для показа"
|
|
|
112 |
|
113 |
+
#: admin.php:129
|
114 |
+
msgid "Number Of Larger Page Numbers To Show"
|
115 |
+
msgstr "Диапозон страниц для показа"
|
116 |
|
117 |
+
#: admin.php:134
|
118 |
+
msgid "Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts."
|
119 |
+
msgstr "Диапазон страниц дополняют обычную нумерацию и полезен в тех случаях, когда на Вашем сайте очень много записей."
|
120 |
|
121 |
+
#: admin.php:135
|
122 |
+
msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
|
|
|
|
|
|
|
|
123 |
msgstr "Например, список страниц будет выглядеть так: Страницы 1, 2, 3, 4, 5, 10, 20, 30, 40, 50"
|
124 |
|
125 |
+
#: admin.php:136
|
126 |
msgid "Enter 0 to disable."
|
127 |
+
msgstr "Введите 0, чтобы отключить эту функцию."
|
128 |
|
129 |
+
#: admin.php:140
|
130 |
+
msgid "Show Larger Page Numbers In Multiples Of"
|
131 |
+
msgstr "Коэффициент для диапазонов страниц"
|
132 |
|
133 |
+
#: admin.php:145
|
134 |
+
msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
|
135 |
+
msgstr "Например, если коэффициент равен 5, то список страниц будет выглядеть так: 5, 10, 15, 20, 25"
|
136 |
|
137 |
+
#: admin.php:150
|
138 |
+
msgid "Page Navigation Options"
|
139 |
+
msgstr "Настройки списка страниц"
|
140 |
|
141 |
+
#: scb/AdminPage.php:165
|
142 |
+
#: scb/AdminPage.php:176
|
143 |
msgid "Save Changes"
|
144 |
msgstr "Сохранить изменения"
|
145 |
|
146 |
+
#: scb/AdminPage.php:279
|
147 |
+
msgid "Settings <strong>saved</strong>."
|
148 |
+
msgstr "Настройки были <strong>сохранены</strong>."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
|
150 |
+
#: scb/AdminPage.php:337
|
151 |
+
msgid "Settings"
|
152 |
+
msgstr "Настройки"
|
153 |
|
154 |
+
#: wp-pagenavi.php:224
|
155 |
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
156 |
msgstr "Страница %CURRENT_PAGE% из %TOTAL_PAGES%"
|
157 |
|
158 |
+
#: wp-pagenavi.php:227
|
159 |
msgid "« First"
|
160 |
msgstr "« Первая"
|
161 |
|
162 |
+
#: wp-pagenavi.php:228
|
163 |
msgid "Last »"
|
164 |
msgstr "Последняя »"
|
165 |
|
166 |
+
#: wp-pagenavi.php:229
|
|
|
|
|
|
|
|
|
167 |
msgid "«"
|
168 |
msgstr "«"
|
169 |
|
170 |
+
#: wp-pagenavi.php:230
|
171 |
+
msgid "»"
|
172 |
+
msgstr "»"
|
173 |
+
|
174 |
+
#: wp-pagenavi.php:231
|
175 |
+
#: wp-pagenavi.php:232
|
176 |
msgid "..."
|
177 |
msgstr "..."
|
178 |
|
179 |
+
#. Plugin Name of the plugin/theme
|
180 |
+
msgid "WP-PageNavi"
|
181 |
+
msgstr "Список страниц"
|
182 |
+
|
183 |
+
#. Plugin URI of the plugin/theme
|
184 |
+
msgid "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
185 |
+
msgstr "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
186 |
+
|
187 |
+
#. Description of the plugin/theme
|
188 |
+
msgid "Adds a more advanced paging navigation to your WordPress blog"
|
189 |
+
msgstr "Плагин добавляет к Вашему блогу расширенную и легко настраиваемую страничную навигацию"
|
190 |
+
|
191 |
+
#. Author of the plugin/theme
|
192 |
+
msgid "Lester 'GaMerZ' Chan & scribu"
|
193 |
+
msgstr "Авторы Lester 'GaMerZ' Chan & scribu"
|
194 |
+
|
195 |
+
#~ msgid "Updated"
|
196 |
+
#~ msgstr "— обновлено"
|
197 |
+
|
198 |
+
#~ msgid "No Page Navigation Option Updated"
|
199 |
+
#~ msgstr "Настройки списка страниц не изменились"
|
200 |
+
|
201 |
+
#~ msgid "UNINSTALL WP-PageNavi"
|
202 |
+
#~ msgstr "УДАЛИТЬ WP-PageNavi"
|
203 |
+
|
204 |
+
#~ msgid "Setting Key '%s' has been deleted."
|
205 |
+
#~ msgstr "Настройка «%s» удалена."
|
206 |
+
|
207 |
+
#~ msgid "Error deleting Setting Key '%s'."
|
208 |
+
#~ msgstr "Ошибка при удалении настройки «%s»."
|
209 |
+
|
210 |
+
#~ msgid "Uninstall WP-PageNavi"
|
211 |
+
#~ msgstr "Удалить список страниц"
|
212 |
+
|
213 |
+
#~ msgid ""
|
214 |
+
#~ "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-"
|
215 |
+
#~ "PageNavi Will Be Deactivated Automatically."
|
216 |
+
#~ msgstr ""
|
217 |
+
#~ "<a href=\"%s\">Нажмите здесь</a> чтобы завершить удаление. WP-PageNavi "
|
218 |
+
#~ "будет отключён автоматически."
|
219 |
+
|
220 |
+
#~ msgid "Text For Last Post"
|
221 |
+
#~ msgstr "Элемент «Последняя запись»"
|
222 |
+
|
223 |
+
#~ msgid "Text For Next Post"
|
224 |
+
#~ msgstr "Элемент «Следующая запись»"
|
225 |
+
|
226 |
+
#~ msgid "Yes"
|
227 |
+
#~ msgstr "Да"
|
228 |
+
|
229 |
+
#~ msgid "No"
|
230 |
+
#~ msgstr "Нет"
|
231 |
+
|
232 |
+
#~ msgid "If mutiple is in 10, it will show: 10, 20, 30, 40, 50"
|
233 |
+
#~ msgstr "А если 10 — так: 10, 20, 30, 40, 50"
|
234 |
+
|
235 |
+
#~ msgid ""
|
236 |
+
#~ "Deactivating WP-PageNavi plugin does not remove any data that may have "
|
237 |
+
#~ "been created, such as the page navigation options. To completely remove "
|
238 |
+
#~ "this plugin, you can uninstall it here."
|
239 |
+
#~ msgstr ""
|
240 |
+
#~ "При отключении плагина отображения списка страниц созданные данные, "
|
241 |
+
#~ "включая настройки, не удаляются. Для того, чтобы полностью удалить "
|
242 |
+
#~ "плагин, отмените здесь его установку."
|
243 |
+
|
244 |
+
#~ msgid "WARNING:"
|
245 |
+
#~ msgstr "ВНИМАНИЕ:"
|
246 |
+
|
247 |
+
#~ msgid ""
|
248 |
+
#~ "Once uninstalled, this cannot be undone. You should use a Database Backup "
|
249 |
+
#~ "plugin of WordPress to back up all the data first."
|
250 |
+
#~ msgstr ""
|
251 |
+
#~ "Удаление плагина необратимо. Для того, чтобы создать резервную копию БД "
|
252 |
+
#~ "WordPress и сохранить ваши данные, используйте плагин «Database "
|
253 |
+
#~ "Backup»."
|
254 |
+
|
255 |
+
#~ msgid "The following WordPress Options will be DELETED:"
|
256 |
+
#~ msgstr "Будут УДАЛЕНЫ следующие настройки WordPress:"
|
257 |
+
|
258 |
+
#~ msgid "WordPress Options"
|
259 |
+
#~ msgstr "Настройки WordPress"
|
260 |
+
|
261 |
+
#~ msgid ""
|
262 |
+
#~ "You Are About To Uninstall WP-PageNavi From WordPress.\\nThis Action Is "
|
263 |
+
#~ "Not Reversible.\\n\\n Choose [Cancel] To Stop, [OK] To Uninstall."
|
264 |
+
#~ msgstr ""
|
265 |
+
#~ "Вы собираетесь удалить плагин WP-PageNavi.\\nЭто действие необратимо.\\n"
|
266 |
+
#~ "\\nЧтобы остановить удаление, выберите [Отмена]. Выберите [OK], если вы "
|
267 |
+
#~ "хотите его продолжить."
|
lang/wp-pagenavi-sk.mo
ADDED
Binary file
|
lang/wp-pagenavi-sk.po
ADDED
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of the WordPress plugin WP-PageNavi 2.73 by Lester 'GaMerZ' Chan & scribu.
|
2 |
+
# Copyright (C) 2010 Lester 'GaMerZ' Chan & scribu
|
3 |
+
# This file is distributed under the same license as the WP-PageNavi package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: WP-PageNavi 2.73\n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
|
10 |
+
"POT-Creation-Date: 2010-08-17 17:28+0300\n"
|
11 |
+
"PO-Revision-Date: 2010-09-12 17:29+0100\n"
|
12 |
+
"Last-Translator: Martin Adamko <martin@attitude.sk>\n"
|
13 |
+
"Language-Team: www.attitude.sk <martin@attitude.sk>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"X-Poedit-Language: Slovak\n"
|
18 |
+
"X-Poedit-Country: SLOVAKIA\n"
|
19 |
+
|
20 |
+
#: admin.php:9
|
21 |
+
msgid "PageNavi Settings"
|
22 |
+
msgstr "PageNavi Nastavenia"
|
23 |
+
|
24 |
+
#: admin.php:10
|
25 |
+
msgid "PageNavi"
|
26 |
+
msgstr "PageNavi"
|
27 |
+
|
28 |
+
#: admin.php:28
|
29 |
+
msgid "Text For Number Of Pages"
|
30 |
+
msgstr "Text pre Počet strán"
|
31 |
+
|
32 |
+
#: admin.php:33
|
33 |
+
msgid "The current page number."
|
34 |
+
msgstr "Aktuálne číslo strany."
|
35 |
+
|
36 |
+
#: admin.php:34
|
37 |
+
#: admin.php:58
|
38 |
+
#: admin.php:66
|
39 |
+
msgid "The total number of pages."
|
40 |
+
msgstr "Celkový počet strán."
|
41 |
+
|
42 |
+
#: admin.php:38
|
43 |
+
msgid "Text For Current Page"
|
44 |
+
msgstr "Text pre Aktuálnu stranu"
|
45 |
+
|
46 |
+
#: admin.php:42
|
47 |
+
#: admin.php:50
|
48 |
+
msgid "The page number."
|
49 |
+
msgstr "Číslo strany."
|
50 |
+
|
51 |
+
#: admin.php:46
|
52 |
+
msgid "Text For Page"
|
53 |
+
msgstr "Text pre Stranu"
|
54 |
+
|
55 |
+
#: admin.php:54
|
56 |
+
msgid "Text For First Page"
|
57 |
+
msgstr "Text pre Prvú stranu"
|
58 |
+
|
59 |
+
#: admin.php:62
|
60 |
+
msgid "Text For Last Page"
|
61 |
+
msgstr "Text pre Poslednú stranu"
|
62 |
+
|
63 |
+
#: admin.php:70
|
64 |
+
msgid "Text For Previous Page"
|
65 |
+
msgstr "Text pre Predošlú stranu"
|
66 |
+
|
67 |
+
#: admin.php:76
|
68 |
+
msgid "Text For Next Page"
|
69 |
+
msgstr "Text pre Ďalšiu stranu"
|
70 |
+
|
71 |
+
#: admin.php:82
|
72 |
+
msgid "Text For Previous ..."
|
73 |
+
msgstr "Text pre Predošlé ..."
|
74 |
+
|
75 |
+
#: admin.php:88
|
76 |
+
msgid "Text For Next ..."
|
77 |
+
msgstr "Text pre Ďalšie ..."
|
78 |
+
|
79 |
+
#: admin.php:95
|
80 |
+
msgid "Page Navigation Text"
|
81 |
+
msgstr "Text pre Stránkovanie"
|
82 |
+
|
83 |
+
#: admin.php:96
|
84 |
+
msgid "Leaving a field blank will hide that part of the navigation."
|
85 |
+
msgstr "Ak necháte políčko prázdne, skryjete tak túto časť stránkovania."
|
86 |
+
|
87 |
+
#: admin.php:102
|
88 |
+
msgid "Use pagenavi-css.css"
|
89 |
+
msgstr "Použiť pagenavi-css.css"
|
90 |
+
|
91 |
+
#: admin.php:108
|
92 |
+
msgid "Page Navigation Style"
|
93 |
+
msgstr "Spôsob navigácie strán"
|
94 |
+
|
95 |
+
#: admin.php:111
|
96 |
+
msgid "Normal"
|
97 |
+
msgstr "Normálny"
|
98 |
+
|
99 |
+
#: admin.php:111
|
100 |
+
msgid "Drop-down List"
|
101 |
+
msgstr "Rozbaľovacia ponuka"
|
102 |
+
|
103 |
+
#: admin.php:116
|
104 |
+
msgid "Always Show Page Navigation"
|
105 |
+
msgstr "Vždy zobrazovať stránkovanie"
|
106 |
+
|
107 |
+
#: admin.php:119
|
108 |
+
msgid "Show navigation even if there's only one page."
|
109 |
+
msgstr "Zobraziť navigáciu strán aj keď existuje len jedna strana?"
|
110 |
+
|
111 |
+
#: admin.php:123
|
112 |
+
msgid "Number Of Pages To Show"
|
113 |
+
msgstr "Počet strán"
|
114 |
+
|
115 |
+
#: admin.php:130
|
116 |
+
msgid "Number Of Larger Page Numbers To Show"
|
117 |
+
msgstr "Počet strán s vyšším poradím"
|
118 |
+
|
119 |
+
#: admin.php:135
|
120 |
+
msgid "Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts."
|
121 |
+
msgstr "Strany s vyšším poradím sú doplnkom strán s normálnym poradím. Hodia sa, keď počet článkov je naozaj veľký."
|
122 |
+
|
123 |
+
#: admin.php:136
|
124 |
+
msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
125 |
+
msgstr "Na príklad, WP-PageNavi zobrazí: Strany 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
126 |
+
|
127 |
+
#: admin.php:137
|
128 |
+
msgid "Enter 0 to disable."
|
129 |
+
msgstr "Na deaktiváciu zadajte 0."
|
130 |
+
|
131 |
+
#: admin.php:141
|
132 |
+
msgid "Show Larger Page Numbers In Multiples Of"
|
133 |
+
msgstr "Zobraziť strany s vyšším poradím ako násobky"
|
134 |
+
|
135 |
+
#: admin.php:146
|
136 |
+
msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
|
137 |
+
msgstr "Napríklad, ak násobok je 5, zobrazia sa: 5, 10, 15, 20, 25"
|
138 |
+
|
139 |
+
#: admin.php:151
|
140 |
+
msgid "Page Navigation Options"
|
141 |
+
msgstr "Možnosti navigácie strán"
|
142 |
+
|
143 |
+
#: scb/AdminPage.php:167
|
144 |
+
msgid "Settings <strong>saved</strong>."
|
145 |
+
msgstr "Nastavenie <strong>uložené</strong>."
|
146 |
+
|
147 |
+
#: scb/AdminPage.php:179
|
148 |
+
#: scb/AdminPage.php:189
|
149 |
+
msgid "Save Changes"
|
150 |
+
msgstr "Uložiť zmeny"
|
151 |
+
|
152 |
+
#: scb/AdminPage.php:371
|
153 |
+
msgid "Settings"
|
154 |
+
msgstr "Nastavenie"
|
155 |
+
|
156 |
+
#: wp-pagenavi.php:37
|
157 |
+
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
158 |
+
msgstr "Stránka %CURRENT_PAGE% z %TOTAL_PAGES%"
|
159 |
+
|
160 |
+
#: wp-pagenavi.php:40
|
161 |
+
msgid "« First"
|
162 |
+
msgstr "« Prvá"
|
163 |
+
|
164 |
+
#: wp-pagenavi.php:41
|
165 |
+
msgid "Last »"
|
166 |
+
msgstr "Posledná »"
|
167 |
+
|
168 |
+
#: wp-pagenavi.php:42
|
169 |
+
msgid "«"
|
170 |
+
msgstr "«"
|
171 |
+
|
172 |
+
#: wp-pagenavi.php:43
|
173 |
+
msgid "»"
|
174 |
+
msgstr "»"
|
175 |
+
|
176 |
+
#: wp-pagenavi.php:44
|
177 |
+
#: wp-pagenavi.php:45
|
178 |
+
msgid "..."
|
179 |
+
msgstr "..."
|
180 |
+
|
181 |
+
#. Plugin Name of the plugin/theme
|
182 |
+
msgid "WP-PageNavi"
|
183 |
+
msgstr "WP-PageNavi"
|
184 |
+
|
185 |
+
#. Plugin URI of the plugin/theme
|
186 |
+
msgid "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
187 |
+
msgstr "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
188 |
+
|
189 |
+
#. Description of the plugin/theme
|
190 |
+
msgid "Adds a more advanced paging navigation to your WordPress blog"
|
191 |
+
msgstr "Pridá rozšírenie na stránkovanie pre váš WordPress blog"
|
192 |
+
|
193 |
+
#. Author of the plugin/theme
|
194 |
+
msgid "Lester 'GaMerZ' Chan & scribu"
|
195 |
+
msgstr "Lester 'GaMerZ' Chan & scribu"
|
196 |
+
|
lang/wp-pagenavi-tt_RU.mo
ADDED
Binary file
|
lang/wp-pagenavi-tt_RU.po
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of the WordPress plugin WP-PageNavi 2.73 by Lester 'GaMerZ' Chan & scribu.
|
2 |
+
# Copyright (C) 2010 Lester 'GaMerZ' Chan & scribu
|
3 |
+
# This file is distributed under the same license as the WP-PageNavi package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: WP-PageNavi 2.73\n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
|
10 |
+
"POT-Creation-Date: 2010-08-17 17:28+0300\n"
|
11 |
+
"PO-Revision-Date: 2010-12-14 10:18+0200\n"
|
12 |
+
"Last-Translator: scribu <mail@scribu.net>\n"
|
13 |
+
"Language-Team: Tatar <tatarish.l10n@gmail.com>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"X-Poedit-Language: Tatar\n"
|
18 |
+
"X-Poedit-Country: RUSSIAN FEDERATION\n"
|
19 |
+
|
20 |
+
#: admin.php:9
|
21 |
+
msgid "PageNavi Settings"
|
22 |
+
msgstr "PageNavi көйләнеше"
|
23 |
+
|
24 |
+
#: admin.php:10
|
25 |
+
msgid "PageNavi"
|
26 |
+
msgstr "PageNavi"
|
27 |
+
|
28 |
+
#: admin.php:28
|
29 |
+
msgid "Text For Number Of Pages"
|
30 |
+
msgstr "Битнең тәртип саны өчен язма"
|
31 |
+
|
32 |
+
#: admin.php:33
|
33 |
+
msgid "The current page number."
|
34 |
+
msgstr "Әлеге битнең тәртип саны"
|
35 |
+
|
36 |
+
#: admin.php:34
|
37 |
+
#: admin.php:58
|
38 |
+
#: admin.php:66
|
39 |
+
msgid "The total number of pages."
|
40 |
+
msgstr "Барлыкта бит саны"
|
41 |
+
|
42 |
+
#: admin.php:38
|
43 |
+
msgid "Text For Current Page"
|
44 |
+
msgstr "Әлеге бит өчен язма"
|
45 |
+
|
46 |
+
#: admin.php:42
|
47 |
+
#: admin.php:50
|
48 |
+
msgid "The page number."
|
49 |
+
msgstr "Битнең тәртип саны"
|
50 |
+
|
51 |
+
#: admin.php:46
|
52 |
+
msgid "Text For Page"
|
53 |
+
msgstr "Бит язмасы"
|
54 |
+
|
55 |
+
#: admin.php:54
|
56 |
+
msgid "Text For First Page"
|
57 |
+
msgstr "Беренче бит өчен язма"
|
58 |
+
|
59 |
+
#: admin.php:62
|
60 |
+
msgid "Text For Last Page"
|
61 |
+
msgstr "Соңгы бит өчен язма"
|
62 |
+
|
63 |
+
#: admin.php:70
|
64 |
+
msgid "Text For Previous Page"
|
65 |
+
msgstr "Алдагы бит өчен язма"
|
66 |
+
|
67 |
+
#: admin.php:76
|
68 |
+
msgid "Text For Next Page"
|
69 |
+
msgstr "Киләсе бит өчен язма"
|
70 |
+
|
71 |
+
#: admin.php:82
|
72 |
+
msgid "Text For Previous ..."
|
73 |
+
msgstr "Алдагы өчен язма"
|
74 |
+
|
75 |
+
#: admin.php:88
|
76 |
+
msgid "Text For Next ..."
|
77 |
+
msgstr "Киләсе өчен язма"
|
78 |
+
|
79 |
+
#: admin.php:95
|
80 |
+
msgid "Page Navigation Text"
|
81 |
+
msgstr "Битләргә күчеш язмалары"
|
82 |
+
|
83 |
+
#: admin.php:96
|
84 |
+
msgid "Leaving a field blank will hide that part of the navigation."
|
85 |
+
msgstr "Буш калса, күчештә күрсәтелмәс"
|
86 |
+
|
87 |
+
#: admin.php:102
|
88 |
+
msgid "Use pagenavi-css.css"
|
89 |
+
msgstr "pagenavi-css.css кулланасы"
|
90 |
+
|
91 |
+
#: admin.php:108
|
92 |
+
msgid "Page Navigation Style"
|
93 |
+
msgstr "Битләршә күчеш ысулы"
|
94 |
+
|
95 |
+
#: admin.php:111
|
96 |
+
msgid "Normal"
|
97 |
+
msgstr "Гадәти"
|
98 |
+
|
99 |
+
#: admin.php:111
|
100 |
+
msgid "Drop-down List"
|
101 |
+
msgstr "Ачылмалы тезмә"
|
102 |
+
|
103 |
+
#: admin.php:116
|
104 |
+
msgid "Always Show Page Navigation"
|
105 |
+
msgstr "Битләргә күчешне барчакта күрсәтәчәк"
|
106 |
+
|
107 |
+
#: admin.php:119
|
108 |
+
msgid "Show navigation even if there's only one page."
|
109 |
+
msgstr "Бер генә бит булганда да күчешне күрсәтә"
|
110 |
+
|
111 |
+
#: admin.php:123
|
112 |
+
msgid "Number Of Pages To Show"
|
113 |
+
msgstr "Күрсәтәсе бит саны"
|
114 |
+
|
115 |
+
#: admin.php:130
|
116 |
+
msgid "Number Of Larger Page Numbers To Show"
|
117 |
+
msgstr "Соңгы бит"
|
118 |
+
|
119 |
+
#: admin.php:135
|
120 |
+
msgid "Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts."
|
121 |
+
msgstr "Гадәти битләр саннарына олырак битләр саннарын өсти. Битләр саны бик күп булганда уңалы бу."
|
122 |
+
|
123 |
+
#: admin.php:136
|
124 |
+
msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
125 |
+
msgstr "Үрнәк өчен, WP-PageNavi аны болай күрсәтәчәк: 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
|
126 |
+
|
127 |
+
#: admin.php:137
|
128 |
+
msgid "Enter 0 to disable."
|
129 |
+
msgstr "Сүндерер өчен 0 кертәсе"
|
130 |
+
|
131 |
+
#: admin.php:141
|
132 |
+
msgid "Show Larger Page Numbers In Multiples Of"
|
133 |
+
msgstr "Олырак битнең санын арттыру адымы"
|
134 |
+
|
135 |
+
#: admin.php:146
|
136 |
+
msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
|
137 |
+
msgstr "Үрнәк өчен, адымы 5 булса, мондый битләк күрсәтеләчәк: 5, 10, 15, 20, 25"
|
138 |
+
|
139 |
+
#: admin.php:151
|
140 |
+
msgid "Page Navigation Options"
|
141 |
+
msgstr "Битләргә күчеш көйләү"
|
142 |
+
|
143 |
+
#: scb/AdminPage.php:167
|
144 |
+
msgid "Settings <strong>saved</strong>."
|
145 |
+
msgstr "Үзгәрешләр <strong>сакланды</strong>."
|
146 |
+
|
147 |
+
#: scb/AdminPage.php:179
|
148 |
+
#: scb/AdminPage.php:189
|
149 |
+
msgid "Save Changes"
|
150 |
+
msgstr "Үзгәрешне сакла"
|
151 |
+
|
152 |
+
#: scb/AdminPage.php:371
|
153 |
+
msgid "Settings"
|
154 |
+
msgstr "Көйләнеш"
|
155 |
+
|
156 |
+
#: wp-pagenavi.php:37
|
157 |
+
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
158 |
+
msgstr "%CURRENT_PAGE% бит (бары %TOTAL_PAGES%)"
|
159 |
+
|
160 |
+
#: wp-pagenavi.php:40
|
161 |
+
msgid "« First"
|
162 |
+
msgstr "« Беренче"
|
163 |
+
|
164 |
+
#: wp-pagenavi.php:41
|
165 |
+
msgid "Last »"
|
166 |
+
msgstr "Соңгы »"
|
167 |
+
|
168 |
+
#: wp-pagenavi.php:42
|
169 |
+
msgid "«"
|
170 |
+
msgstr "«"
|
171 |
+
|
172 |
+
#: wp-pagenavi.php:43
|
173 |
+
msgid "»"
|
174 |
+
msgstr "»"
|
175 |
+
|
176 |
+
#: wp-pagenavi.php:44
|
177 |
+
#: wp-pagenavi.php:45
|
178 |
+
msgid "..."
|
179 |
+
msgstr "..."
|
180 |
+
|
181 |
+
#. Plugin Name of the plugin/theme
|
182 |
+
msgid "WP-PageNavi"
|
183 |
+
msgstr "WP-PageNavi"
|
184 |
+
|
185 |
+
#. Plugin URI of the plugin/theme
|
186 |
+
msgid "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
187 |
+
msgstr "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
188 |
+
|
189 |
+
#. Description of the plugin/theme
|
190 |
+
msgid "Adds a more advanced paging navigation to your WordPress blog"
|
191 |
+
msgstr "WordPress блогыңа битләр арасында уңайлы күчеч өсти"
|
192 |
+
|
193 |
+
#. Author of the plugin/theme
|
194 |
+
msgid "Lester 'GaMerZ' Chan & scribu"
|
195 |
+
msgstr "Lester 'GaMerZ' Chan & scribu"
|
196 |
+
|
197 |
+
msgid "WP-PageNavi"
|
198 |
+
msgstr "WP-PageNavi"
|
199 |
+
|
200 |
+
#. Plugin URI of the plugin/theme
|
201 |
+
msgid "http://wordpress.org/extend/plugins/wp-pagenavi/"
|
202 |
+
msgstr ""
|
203 |
+
|
lang/wp-pagenavi.pot
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# Translation of the WordPress plugin WP-PageNavi 2.
|
2 |
# Copyright (C) 2010 Lester 'GaMerZ' Chan & scribu
|
3 |
# This file is distributed under the same license as the WP-PageNavi package.
|
4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
@@ -6,9 +6,9 @@
|
|
6 |
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
-
"Project-Id-Version: WP-PageNavi 2.
|
10 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
|
11 |
-
"POT-Creation-Date: 2010-
|
12 |
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
@@ -24,155 +24,155 @@ msgstr ""
|
|
24 |
msgid "PageNavi"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: admin.php:
|
28 |
msgid "Text For Number Of Pages"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: admin.php:
|
32 |
msgid "The current page number."
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: admin.php:
|
36 |
msgid "The total number of pages."
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: admin.php:
|
40 |
msgid "Text For Current Page"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: admin.php:
|
44 |
msgid "The page number."
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: admin.php:
|
48 |
msgid "Text For Page"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: admin.php:
|
52 |
msgid "Text For First Page"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: admin.php:
|
56 |
msgid "Text For Last Page"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: admin.php:
|
60 |
msgid "Text For Previous Page"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: admin.php:
|
64 |
msgid "Text For Next Page"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: admin.php:
|
68 |
msgid "Text For Previous ..."
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: admin.php:
|
72 |
msgid "Text For Next ..."
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: admin.php:
|
76 |
msgid "Page Navigation Text"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: admin.php:
|
80 |
msgid "Leaving a field blank will hide that part of the navigation."
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: admin.php:
|
84 |
msgid "Use pagenavi-css.css"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: admin.php:
|
88 |
msgid "Page Navigation Style"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: admin.php:
|
92 |
msgid "Normal"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: admin.php:
|
96 |
msgid "Drop-down List"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: admin.php:
|
100 |
msgid "Always Show Page Navigation"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: admin.php:
|
104 |
msgid "Show navigation even if there's only one page."
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: admin.php:
|
108 |
msgid "Number Of Pages To Show"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: admin.php:
|
112 |
msgid "Number Of Larger Page Numbers To Show"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: admin.php:
|
116 |
msgid ""
|
117 |
"Larger page numbers are in addition to the normal page numbers. They are "
|
118 |
"useful when there are many pages of posts."
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: admin.php:
|
122 |
msgid ""
|
123 |
"For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, "
|
124 |
"50."
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: admin.php:
|
128 |
msgid "Enter 0 to disable."
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: admin.php:
|
132 |
msgid "Show Larger Page Numbers In Multiples Of"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: admin.php:
|
136 |
msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: admin.php:
|
140 |
msgid "Page Navigation Options"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: scb/AdminPage.php:
|
144 |
-
msgid "
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: scb/AdminPage.php:
|
148 |
-
msgid "
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: scb/AdminPage.php:
|
152 |
msgid "Settings"
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: wp-pagenavi.php:
|
156 |
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: wp-pagenavi.php:
|
160 |
msgid "« First"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: wp-pagenavi.php:
|
164 |
msgid "Last »"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: wp-pagenavi.php:
|
168 |
msgid "«"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: wp-pagenavi.php:
|
172 |
msgid "»"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: wp-pagenavi.php:
|
176 |
msgid "..."
|
177 |
msgstr ""
|
178 |
|
1 |
+
# Translation of the WordPress plugin WP-PageNavi 2.73 by Lester 'GaMerZ' Chan & scribu.
|
2 |
# Copyright (C) 2010 Lester 'GaMerZ' Chan & scribu
|
3 |
# This file is distributed under the same license as the WP-PageNavi package.
|
4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
6 |
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
+
"Project-Id-Version: WP-PageNavi 2.73\n"
|
10 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
|
11 |
+
"POT-Creation-Date: 2010-08-17 17:28+0300\n"
|
12 |
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
24 |
msgid "PageNavi"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: admin.php:28
|
28 |
msgid "Text For Number Of Pages"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: admin.php:33
|
32 |
msgid "The current page number."
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: admin.php:34 admin.php:58 admin.php:66
|
36 |
msgid "The total number of pages."
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: admin.php:38
|
40 |
msgid "Text For Current Page"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: admin.php:42 admin.php:50
|
44 |
msgid "The page number."
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: admin.php:46
|
48 |
msgid "Text For Page"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: admin.php:54
|
52 |
msgid "Text For First Page"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: admin.php:62
|
56 |
msgid "Text For Last Page"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: admin.php:70
|
60 |
msgid "Text For Previous Page"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: admin.php:76
|
64 |
msgid "Text For Next Page"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: admin.php:82
|
68 |
msgid "Text For Previous ..."
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: admin.php:88
|
72 |
msgid "Text For Next ..."
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: admin.php:95
|
76 |
msgid "Page Navigation Text"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: admin.php:96
|
80 |
msgid "Leaving a field blank will hide that part of the navigation."
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: admin.php:102
|
84 |
msgid "Use pagenavi-css.css"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: admin.php:108
|
88 |
msgid "Page Navigation Style"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: admin.php:111
|
92 |
msgid "Normal"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: admin.php:111
|
96 |
msgid "Drop-down List"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: admin.php:116
|
100 |
msgid "Always Show Page Navigation"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: admin.php:119
|
104 |
msgid "Show navigation even if there's only one page."
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: admin.php:123
|
108 |
msgid "Number Of Pages To Show"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: admin.php:130
|
112 |
msgid "Number Of Larger Page Numbers To Show"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: admin.php:135
|
116 |
msgid ""
|
117 |
"Larger page numbers are in addition to the normal page numbers. They are "
|
118 |
"useful when there are many pages of posts."
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: admin.php:136
|
122 |
msgid ""
|
123 |
"For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, "
|
124 |
"50."
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: admin.php:137
|
128 |
msgid "Enter 0 to disable."
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: admin.php:141
|
132 |
msgid "Show Larger Page Numbers In Multiples Of"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: admin.php:146
|
136 |
msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: admin.php:151
|
140 |
msgid "Page Navigation Options"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: scb/AdminPage.php:167
|
144 |
+
msgid "Settings <strong>saved</strong>."
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: scb/AdminPage.php:179 scb/AdminPage.php:189
|
148 |
+
msgid "Save Changes"
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: scb/AdminPage.php:371
|
152 |
msgid "Settings"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: wp-pagenavi.php:37
|
156 |
msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: wp-pagenavi.php:40
|
160 |
msgid "« First"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: wp-pagenavi.php:41
|
164 |
msgid "Last »"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: wp-pagenavi.php:42
|
168 |
msgid "«"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: wp-pagenavi.php:43
|
172 |
msgid "»"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: wp-pagenavi.php:44 wp-pagenavi.php:45
|
176 |
msgid "..."
|
177 |
msgstr ""
|
178 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://lesterchan.net/wordpress
|
|
4 |
Tags: navigation, pagination, paging, pages
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.0
|
7 |
-
Stable tag: 2.
|
8 |
|
9 |
Adds a more advanced paging navigation to your WordPress site.
|
10 |
|
@@ -20,7 +20,7 @@ Example:
|
|
20 |
|
21 |
|
22 |
<br>
|
23 |
-
[Demo](http://lesterchan.net/wordpress/) | [
|
24 |
|
25 |
== Installation ==
|
26 |
|
@@ -66,8 +66,13 @@ Read before upgrading: http://scribu.net/wordpress/wp-pagenavi/wp-2-70.html
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
|
|
69 |
= 2.72 (2010-04-19) =
|
70 |
-
*
|
71 |
|
72 |
= 2.71 (2010-04-18) =
|
73 |
* remove conflicting .left and .right from .extend elements
|
4 |
Tags: navigation, pagination, paging, pages
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.0
|
7 |
+
Stable tag: 2.73
|
8 |
|
9 |
Adds a more advanced paging navigation to your WordPress site.
|
10 |
|
20 |
|
21 |
|
22 |
<br>
|
23 |
+
Links: [Demo](http://lesterchan.net/wordpress/) | [Plugin News](http://scribu.net/wordpress/wp-pagenavi/) | [Translating](http://scribu.net/wordpress/translating-plugins.html)
|
24 |
|
25 |
== Installation ==
|
26 |
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 2.73 (2010-08-17) =
|
70 |
+
* added $options arg to wp_pagenavi()
|
71 |
+
* updated scbFramework
|
72 |
+
* 3 new translations: AL, JA, BR
|
73 |
+
|
74 |
= 2.72 (2010-04-19) =
|
75 |
+
* fixed first link
|
76 |
|
77 |
= 2.71 (2010-04-18) =
|
78 |
* remove conflicting .left and .right from .extend elements
|
scb/AdminPage.php
CHANGED
@@ -10,13 +10,13 @@ abstract class scbAdminPage {
|
|
10 |
/** Page args
|
11 |
* $toplevel string If not empty, will create a new top level menu
|
12 |
* $icon string Path to an icon for the top level menu
|
13 |
-
* $parent string (default: options-general.php)
|
14 |
-
* $capability string (default: 'manage_options')
|
15 |
-
* $page_title string (mandatory)
|
16 |
-
* $menu_title string (default: $page_title)
|
17 |
-
* $page_slug string (default: sanitized $page_title)
|
18 |
-
* $nonce string (default: $page_slug)
|
19 |
-
* $action_link string|bool Text of the action link on the Plugins page (default: 'Settings')
|
20 |
*/
|
21 |
protected $args;
|
22 |
|
@@ -30,6 +30,7 @@ abstract class scbAdminPage {
|
|
30 |
// scbOptions object holder
|
31 |
// Normally, it's used for storing formdata
|
32 |
protected $options;
|
|
|
33 |
|
34 |
// l10n
|
35 |
protected $textdomain;
|
@@ -43,39 +44,39 @@ abstract class scbAdminPage {
|
|
43 |
|
44 |
private static $registered = array();
|
45 |
|
46 |
-
static function register($class, $file, $options = null) {
|
47 |
-
if ( isset(self::$registered[$class]) )
|
48 |
return false;
|
49 |
|
50 |
-
self::$registered[$class] = array($file, $options);
|
51 |
|
52 |
-
add_action('_admin_menu', array(__CLASS__, '_pages_init'));
|
53 |
|
54 |
return true;
|
55 |
}
|
56 |
|
57 |
-
static function replace($old_class, $new_class) {
|
58 |
-
if ( ! isset(self::$registered[$old_class]) )
|
59 |
return false;
|
60 |
|
61 |
self::$registered[$new_class] = self::$registered[$old_class];
|
62 |
-
unset(self::$registered[$old_class]);
|
63 |
|
64 |
return true;
|
65 |
}
|
66 |
|
67 |
-
static function remove($class) {
|
68 |
-
if ( ! isset(self::$registered[$class]) )
|
69 |
return false;
|
70 |
|
71 |
-
unset(self::$registered[$class]);
|
72 |
|
73 |
return true;
|
74 |
}
|
75 |
|
76 |
static function _pages_init() {
|
77 |
foreach ( self::$registered as $class => $args )
|
78 |
-
new $class($args[0], $args[1]);
|
79 |
}
|
80 |
|
81 |
|
@@ -83,23 +84,29 @@ abstract class scbAdminPage {
|
|
83 |
|
84 |
|
85 |
// Constructor
|
86 |
-
function __construct($file, $options = NULL) {
|
87 |
-
if (
|
88 |
$this->options = $options;
|
89 |
$this->formdata = $this->options->get();
|
90 |
}
|
91 |
|
92 |
$this->file = $file;
|
93 |
-
$this->plugin_url = plugin_dir_url($file);
|
94 |
|
95 |
$this->setup();
|
96 |
$this->check_args();
|
97 |
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
if ( $this->args['action_link'] )
|
102 |
-
add_filter('plugin_action_links_' . plugin_basename($file), array($this, '_action_link'));
|
103 |
}
|
104 |
|
105 |
// This is where all the page args can be set
|
@@ -129,65 +136,69 @@ abstract class scbAdminPage {
|
|
129 |
}
|
130 |
|
131 |
// This is where the form data should be validated
|
132 |
-
function validate($new_data, $old_data) {
|
133 |
return $new_data;
|
134 |
}
|
135 |
|
136 |
-
//
|
137 |
function form_handler() {
|
138 |
-
if ( empty($_POST['action']) )
|
139 |
return false;
|
140 |
|
141 |
-
check_admin_referer($this->nonce);
|
142 |
|
143 |
$new_data = array();
|
144 |
-
foreach ( array_keys($this->formdata) as $key )
|
145 |
$new_data[$key] = @$_POST[$key];
|
146 |
|
147 |
-
$new_data = stripslashes_deep($new_data);
|
148 |
|
149 |
-
$this->formdata = $this->validate($new_data, $this->formdata);
|
150 |
|
151 |
-
if ( isset($this->options) )
|
152 |
-
$this->options->
|
153 |
|
154 |
$this->admin_msg();
|
155 |
}
|
156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
|
158 |
// ____________UTILITIES____________
|
159 |
|
160 |
|
161 |
// Generates a form submit button
|
162 |
-
function submit_button($value = '', $action = 'action', $class = "button") {
|
163 |
-
if ( is_array($value) ) {
|
164 |
-
extract(wp_parse_args($value, array(
|
165 |
-
'value' => __('Save Changes', $this->textdomain),
|
166 |
'action' => 'action',
|
167 |
'class' => 'button',
|
168 |
-
'ajax' => true
|
169 |
-
)));
|
170 |
|
171 |
if ( ! $ajax )
|
172 |
$class .= ' no-ajax';
|
173 |
}
|
174 |
else {
|
175 |
-
if ( empty($value) )
|
176 |
-
$value = __('Save Changes', $this->textdomain);
|
177 |
}
|
178 |
|
179 |
-
$input_args = array(
|
180 |
-
'type' => 'submit',
|
181 |
'names' => $action,
|
182 |
'values' => $value,
|
183 |
'extra' => '',
|
184 |
-
'desc' => false
|
185 |
-
);
|
186 |
|
187 |
-
if ( ! empty($class) )
|
188 |
$input_args['extra'] = "class='{$class}'";
|
189 |
|
190 |
-
$output = "<p class='submit'>\n" . scbForms::input($input_args) . "</p>\n";
|
191 |
|
192 |
return $output;
|
193 |
}
|
@@ -195,99 +206,123 @@ abstract class scbAdminPage {
|
|
195 |
/*
|
196 |
Mimics scbForms::form_wrap()
|
197 |
|
198 |
-
$this->form_wrap($content); // generates a form with a default submit button
|
199 |
|
200 |
-
$this->form_wrap($content, false); // generates a form with no submit button
|
201 |
|
202 |
// the second argument is sent to submit_button()
|
203 |
-
$this->form_wrap($content, array(
|
204 |
-
'
|
205 |
-
'name' => 'action',
|
206 |
'ajax' => true,
|
207 |
-
));
|
208 |
*/
|
209 |
-
function form_wrap($content, $submit_button = true) {
|
210 |
-
if ( is_array($submit_button) ) {
|
211 |
-
$content .= call_user_func(array($this, 'submit_button'), $submit_button);
|
212 |
} elseif ( true === $submit_button ) {
|
213 |
$content .= $this->submit_button();
|
214 |
-
} elseif ( false !== strpos($submit_button, '<input') ) {
|
215 |
$content .= $submit_button;
|
216 |
} elseif ( false !== $submit_button ) {
|
217 |
-
$button_args = array_slice(func_get_args(), 1);
|
218 |
-
$content .= call_user_func_array(array($this, 'submit_button'), $button_args);
|
219 |
}
|
220 |
|
221 |
-
return scbForms::form_wrap($content, $this->nonce);
|
222 |
}
|
223 |
|
224 |
-
// See scbForms::
|
225 |
-
function
|
226 |
-
|
227 |
-
$options = $this->formdata;
|
228 |
-
|
229 |
-
return scbForms::input($args, $options);
|
230 |
}
|
231 |
|
232 |
-
//
|
233 |
-
function
|
234 |
-
|
235 |
-
|
|
|
|
|
|
|
236 |
|
237 |
-
return
|
238 |
}
|
239 |
|
240 |
-
//
|
241 |
-
function
|
242 |
-
|
243 |
-
|
244 |
|
245 |
-
return
|
246 |
}
|
247 |
|
248 |
-
//
|
249 |
-
function
|
250 |
-
|
251 |
-
|
|
|
252 |
|
253 |
-
|
|
|
|
|
254 |
}
|
255 |
|
256 |
-
//
|
257 |
-
function
|
258 |
-
$
|
|
|
259 |
|
260 |
-
|
261 |
-
|
|
|
|
|
|
|
262 |
|
263 |
-
|
|
|
|
|
|
|
|
|
|
|
264 |
}
|
265 |
-
|
266 |
-
// Mimics scbForms::form_table_wrap()
|
267 |
-
function form_table_wrap($content) {
|
268 |
-
$output = self::table_wrap($content);
|
269 |
|
270 |
-
|
271 |
-
|
|
|
272 |
|
273 |
-
|
274 |
-
|
|
|
275 |
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
|
|
|
|
280 |
|
281 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
}
|
283 |
|
284 |
// Wraps a string in a <script> tag
|
285 |
-
function js_wrap($string) {
|
286 |
return "\n<script type='text/javascript'>\n" . $string . "\n</script>\n";
|
287 |
}
|
288 |
|
289 |
// Wraps a string in a <style> tag
|
290 |
-
function css_wrap($string) {
|
291 |
return "\n<style type='text/css'>\n" . $string . "\n</style>\n";
|
292 |
}
|
293 |
|
@@ -295,20 +330,15 @@ abstract class scbAdminPage {
|
|
295 |
// ____________INTERNAL METHODS____________
|
296 |
|
297 |
|
298 |
-
function __call($method, $args) {
|
299 |
-
return call_user_func_array(array('scbForms', $method), $args);
|
300 |
-
}
|
301 |
-
|
302 |
-
|
303 |
// Registers a page
|
304 |
function page_init() {
|
305 |
-
extract($this->args);
|
306 |
|
307 |
if ( ! $toplevel ) {
|
308 |
-
$this->pagehook = add_submenu_page($parent, $page_title, $menu_title, $capability, $page_slug, array($this, '_page_content_hook'));
|
309 |
} else {
|
310 |
$func = 'add_' . $toplevel . '_page';
|
311 |
-
$this->pagehook = $func($page_title, $menu_title, $capability, $page_slug, array($this, '_page_content_hook'), $icon_url);
|
312 |
}
|
313 |
|
314 |
if ( ! $this->pagehook )
|
@@ -316,17 +346,21 @@ abstract class scbAdminPage {
|
|
316 |
|
317 |
if ( $ajax_submit ) {
|
318 |
$this->ajax_response();
|
319 |
-
add_action('admin_footer', array($this, 'ajax_submit'), 20);
|
320 |
}
|
321 |
|
322 |
-
add_action('admin_print_styles-' . $this->pagehook, array($this, 'page_head'));
|
|
|
|
|
|
|
|
|
323 |
}
|
324 |
|
325 |
private function check_args() {
|
326 |
-
if ( empty($this->args['page_title']) )
|
327 |
-
trigger_error('Page title cannot be empty', E_USER_WARNING);
|
328 |
|
329 |
-
$this->args = wp_parse_args($this->args, array(
|
330 |
'toplevel' => '',
|
331 |
'icon' => '',
|
332 |
'parent' => 'options-general.php',
|
@@ -334,29 +368,31 @@ abstract class scbAdminPage {
|
|
334 |
'menu_title' => $this->args['page_title'],
|
335 |
'page_slug' => '',
|
336 |
'nonce' => '',
|
337 |
-
'action_link' => __('Settings', $this->textdomain),
|
338 |
-
'ajax_submit' => false,
|
339 |
-
));
|
340 |
|
341 |
-
if ( empty($this->args['page_slug']) )
|
342 |
-
$this->args['page_slug'] = sanitize_title_with_dashes($this->args['menu_title']);
|
343 |
|
344 |
-
if ( empty($this->args['nonce']) )
|
345 |
$this->nonce = $this->args['page_slug'];
|
346 |
}
|
347 |
|
348 |
-
function _contextual_help($help, $screen) {
|
349 |
-
if ( is_object($screen) )
|
350 |
$screen = $screen->id;
|
351 |
|
352 |
-
|
|
|
|
|
353 |
return $actual_help;
|
354 |
|
355 |
return $help;
|
356 |
}
|
357 |
|
358 |
function ajax_response() {
|
359 |
-
if ( ! isset($_POST['_ajax_submit']) || $_POST['_ajax_submit'] != $this->pagehook )
|
360 |
return;
|
361 |
|
362 |
$this->form_handler();
|
@@ -370,40 +406,40 @@ abstract class scbAdminPage {
|
|
370 |
return;
|
371 |
?>
|
372 |
<script type="text/javascript">
|
373 |
-
jQuery(document).ready(function($){
|
374 |
-
var $spinner = $(new Image()).attr('src', '<?php echo admin_url("images/wpspin_light.gif"); ?>');
|
375 |
|
376 |
-
$(':submit').click(function(ev){
|
377 |
-
var $submit = $(this);
|
378 |
-
var $form = $submit.parents('form');
|
379 |
|
380 |
-
if ( $submit.hasClass('no-ajax') || $form.attr('method').toLowerCase() != 'post' )
|
381 |
return true;
|
382 |
|
383 |
var $this_spinner = $spinner.clone();
|
384 |
|
385 |
-
$submit.before($this_spinner).hide();
|
386 |
|
387 |
var data = $form.serializeArray();
|
388 |
-
data.push({name: $submit.attr('name'), value: $submit.val()});
|
389 |
-
data.push({name: '_ajax_submit', value: '<?php echo $this->pagehook; ?>'});
|
390 |
|
391 |
-
$.post(location.href, data, function(response){
|
392 |
-
var $prev = $('.wrap > .updated, .wrap > .error');
|
393 |
-
var $msg = $(response).hide().insertAfter($('.wrap h2'));
|
394 |
if ( $prev.length > 0 )
|
395 |
-
$prev.fadeOut('slow', function(){ $msg.fadeIn('slow'); });
|
396 |
else
|
397 |
-
$msg.fadeIn('slow');
|
398 |
|
399 |
$this_spinner.hide();
|
400 |
$submit.show();
|
401 |
-
});
|
402 |
|
403 |
ev.stopPropagation();
|
404 |
ev.preventDefault();
|
405 |
-
});
|
406 |
-
});
|
407 |
</script>
|
408 |
<?php
|
409 |
}
|
@@ -416,10 +452,10 @@ jQuery(document).ready(function($){
|
|
416 |
$this->page_footer();
|
417 |
}
|
418 |
|
419 |
-
function _action_link($links) {
|
420 |
-
$url = add_query_arg('page', $this->args['page_slug'], admin_url($this->args['parent']));
|
421 |
|
422 |
-
$links[] = html_link($url, $this->args['action_link']);
|
423 |
|
424 |
return $links;
|
425 |
}
|
10 |
/** Page args
|
11 |
* $toplevel string If not empty, will create a new top level menu
|
12 |
* $icon string Path to an icon for the top level menu
|
13 |
+
* $parent string ( default: options-general.php )
|
14 |
+
* $capability string ( default: 'manage_options' )
|
15 |
+
* $page_title string ( mandatory )
|
16 |
+
* $menu_title string ( default: $page_title )
|
17 |
+
* $page_slug string ( default: sanitized $page_title )
|
18 |
+
* $nonce string ( default: $page_slug )
|
19 |
+
* $action_link string|bool Text of the action link on the Plugins page ( default: 'Settings' )
|
20 |
*/
|
21 |
protected $args;
|
22 |
|
30 |
// scbOptions object holder
|
31 |
// Normally, it's used for storing formdata
|
32 |
protected $options;
|
33 |
+
protected $option_name;
|
34 |
|
35 |
// l10n
|
36 |
protected $textdomain;
|
44 |
|
45 |
private static $registered = array();
|
46 |
|
47 |
+
static function register( $class, $file, $options = null ) {
|
48 |
+
if ( isset( self::$registered[$class] ) )
|
49 |
return false;
|
50 |
|
51 |
+
self::$registered[$class] = array( $file, $options );
|
52 |
|
53 |
+
add_action( '_admin_menu', array( __CLASS__, '_pages_init' ) );
|
54 |
|
55 |
return true;
|
56 |
}
|
57 |
|
58 |
+
static function replace( $old_class, $new_class ) {
|
59 |
+
if ( ! isset( self::$registered[$old_class] ) )
|
60 |
return false;
|
61 |
|
62 |
self::$registered[$new_class] = self::$registered[$old_class];
|
63 |
+
unset( self::$registered[$old_class] );
|
64 |
|
65 |
return true;
|
66 |
}
|
67 |
|
68 |
+
static function remove( $class ) {
|
69 |
+
if ( ! isset( self::$registered[$class] ) )
|
70 |
return false;
|
71 |
|
72 |
+
unset( self::$registered[$class] );
|
73 |
|
74 |
return true;
|
75 |
}
|
76 |
|
77 |
static function _pages_init() {
|
78 |
foreach ( self::$registered as $class => $args )
|
79 |
+
new $class( $args[0], $args[1] );
|
80 |
}
|
81 |
|
82 |
|
84 |
|
85 |
|
86 |
// Constructor
|
87 |
+
function __construct( $file, $options = NULL ) {
|
88 |
+
if ( NULL !== $options ) {
|
89 |
$this->options = $options;
|
90 |
$this->formdata = $this->options->get();
|
91 |
}
|
92 |
|
93 |
$this->file = $file;
|
94 |
+
$this->plugin_url = plugin_dir_url( $file );
|
95 |
|
96 |
$this->setup();
|
97 |
$this->check_args();
|
98 |
|
99 |
+
if ( isset( $this->option_name ) ) {
|
100 |
+
add_action( 'admin_init', array( $this, 'option_init' ) );
|
101 |
+
if ( function_exists( 'settings_errors' ) )
|
102 |
+
add_action( 'admin_notices', 'settings_errors' );
|
103 |
+
}
|
104 |
+
|
105 |
+
add_action( 'admin_menu', array( $this, 'page_init' ) );
|
106 |
+
add_filter( 'contextual_help', array( $this, '_contextual_help' ), 10, 2 );
|
107 |
|
108 |
if ( $this->args['action_link'] )
|
109 |
+
add_filter( 'plugin_action_links_' . plugin_basename( $file ), array( $this, '_action_link' ) );
|
110 |
}
|
111 |
|
112 |
// This is where all the page args can be set
|
136 |
}
|
137 |
|
138 |
// This is where the form data should be validated
|
139 |
+
function validate( $new_data, $old_data ) {
|
140 |
return $new_data;
|
141 |
}
|
142 |
|
143 |
+
// Manually handle option saving ( use Settings API instead )
|
144 |
function form_handler() {
|
145 |
+
if ( empty( $_POST['action'] ) )
|
146 |
return false;
|
147 |
|
148 |
+
check_admin_referer( $this->nonce );
|
149 |
|
150 |
$new_data = array();
|
151 |
+
foreach ( array_keys( $this->formdata ) as $key )
|
152 |
$new_data[$key] = @$_POST[$key];
|
153 |
|
154 |
+
$new_data = stripslashes_deep( $new_data );
|
155 |
|
156 |
+
$this->formdata = $this->validate( $new_data, $this->formdata );
|
157 |
|
158 |
+
if ( isset( $this->options ) )
|
159 |
+
$this->options->set( $this->formdata );
|
160 |
|
161 |
$this->admin_msg();
|
162 |
}
|
163 |
|
164 |
+
// Manually generate a standard admin notice ( use Settings API instead )
|
165 |
+
function admin_msg( $msg = '', $class = "updated" ) {
|
166 |
+
if ( empty( $msg ) )
|
167 |
+
$msg = __( 'Settings <strong>saved</strong>.', $this->textdomain );
|
168 |
+
|
169 |
+
echo "<div class='$class fade'><p>$msg</p></div>\n";
|
170 |
+
}
|
171 |
+
|
172 |
|
173 |
// ____________UTILITIES____________
|
174 |
|
175 |
|
176 |
// Generates a form submit button
|
177 |
+
function submit_button( $value = '', $action = 'action', $class = "button" ) {
|
178 |
+
if ( is_array( $value ) ) {
|
179 |
+
extract( wp_parse_args( $value, array( 'value' => __( 'Save Changes', $this->textdomain ),
|
|
|
180 |
'action' => 'action',
|
181 |
'class' => 'button',
|
182 |
+
'ajax' => true ) ) );
|
|
|
183 |
|
184 |
if ( ! $ajax )
|
185 |
$class .= ' no-ajax';
|
186 |
}
|
187 |
else {
|
188 |
+
if ( empty( $value ) )
|
189 |
+
$value = __( 'Save Changes', $this->textdomain );
|
190 |
}
|
191 |
|
192 |
+
$input_args = array( 'type' => 'submit',
|
|
|
193 |
'names' => $action,
|
194 |
'values' => $value,
|
195 |
'extra' => '',
|
196 |
+
'desc' => false );
|
|
|
197 |
|
198 |
+
if ( ! empty( $class ) )
|
199 |
$input_args['extra'] = "class='{$class}'";
|
200 |
|
201 |
+
$output = "<p class='submit'>\n" . scbForms::input( $input_args ) . "</p>\n";
|
202 |
|
203 |
return $output;
|
204 |
}
|
206 |
/*
|
207 |
Mimics scbForms::form_wrap()
|
208 |
|
209 |
+
$this->form_wrap( $content ); // generates a form with a default submit button
|
210 |
|
211 |
+
$this->form_wrap( $content, false ); // generates a form with no submit button
|
212 |
|
213 |
// the second argument is sent to submit_button()
|
214 |
+
$this->form_wrap( $content, array( 'text' => 'Save changes',
|
215 |
+
'name' => 'action',
|
|
|
216 |
'ajax' => true,
|
217 |
+
) );
|
218 |
*/
|
219 |
+
function form_wrap( $content, $submit_button = true ) {
|
220 |
+
if ( is_array( $submit_button ) ) {
|
221 |
+
$content .= call_user_func( array( $this, 'submit_button' ), $submit_button );
|
222 |
} elseif ( true === $submit_button ) {
|
223 |
$content .= $this->submit_button();
|
224 |
+
} elseif ( false !== strpos( $submit_button, '<input' ) ) {
|
225 |
$content .= $submit_button;
|
226 |
} elseif ( false !== $submit_button ) {
|
227 |
+
$button_args = array_slice( func_get_args(), 1 );
|
228 |
+
$content .= call_user_func_array( array( $this, 'submit_button' ), $button_args );
|
229 |
}
|
230 |
|
231 |
+
return scbForms::form_wrap( $content, $this->nonce );
|
232 |
}
|
233 |
|
234 |
+
// See scbForms::form()
|
235 |
+
function form( $rows, $formdata = array() ) {
|
236 |
+
return scbForms::form( $rows, $formdata, $this->nonce );
|
|
|
|
|
|
|
237 |
}
|
238 |
|
239 |
+
// Generates a table wrapped in a form
|
240 |
+
function form_table( $rows, $formdata = array() ) {
|
241 |
+
$output = '';
|
242 |
+
foreach ( $rows as $row )
|
243 |
+
$output .= $this->table_row( $row, $formdata );
|
244 |
+
|
245 |
+
$output = $this->form_table_wrap( $output );
|
246 |
|
247 |
+
return $output;
|
248 |
}
|
249 |
|
250 |
+
// Wraps the given content in a <form><table>
|
251 |
+
function form_table_wrap( $content ) {
|
252 |
+
$output = $this->table_wrap( $content );
|
253 |
+
$output = $this->form_wrap( $output, $this->nonce );
|
254 |
|
255 |
+
return $output;
|
256 |
}
|
257 |
|
258 |
+
// Generates a form table
|
259 |
+
function table( $rows, $formdata = array() ) {
|
260 |
+
$output = '';
|
261 |
+
foreach ( $rows as $row )
|
262 |
+
$output .= $this->table_row( $row, $formdata );
|
263 |
|
264 |
+
$output = $this->table_wrap( $output );
|
265 |
+
|
266 |
+
return $output;
|
267 |
}
|
268 |
|
269 |
+
// Generates a table row
|
270 |
+
function table_row( $args, $formdata = array() ) {
|
271 |
+
return $this->row_wrap( $args['title'], $this->input( $args, $formdata ) );
|
272 |
+
}
|
273 |
|
274 |
+
// Wraps the given content in a <table>
|
275 |
+
function table_wrap( $content ) {
|
276 |
+
return
|
277 |
+
html( 'table class="form-table"', $content );
|
278 |
+
}
|
279 |
|
280 |
+
// Wraps the given content in a <tr><td>
|
281 |
+
function row_wrap( $title, $content ) {
|
282 |
+
return
|
283 |
+
html( 'tr',
|
284 |
+
html( 'th scope="row"', $title )
|
285 |
+
.html( 'td', $content ) );
|
286 |
}
|
|
|
|
|
|
|
|
|
287 |
|
288 |
+
function input( $args, $formdata = array() ) {
|
289 |
+
if ( empty( $formdata ) )
|
290 |
+
$formdata = $this->formdata;
|
291 |
|
292 |
+
if ( isset( $args['name_tree'] ) ) {
|
293 |
+
$tree = ( array ) $args['name_tree'];
|
294 |
+
unset( $args['name_tree'] );
|
295 |
|
296 |
+
$value = $formdata;
|
297 |
+
$name = $this->option_name;
|
298 |
+
foreach ( $tree as $key ) {
|
299 |
+
$value = $value[$key];
|
300 |
+
$name .= '[' . $key . ']';
|
301 |
+
}
|
302 |
|
303 |
+
$args['name'] = $name;
|
304 |
+
unset( $args['names'] );
|
305 |
+
|
306 |
+
unset( $args['values'] );
|
307 |
+
|
308 |
+
$formdata = array( $name => $value );
|
309 |
+
}
|
310 |
+
|
311 |
+
return scbForms::input( $args, $formdata );
|
312 |
+
}
|
313 |
+
|
314 |
+
// Mimic scbForms inheritance
|
315 |
+
function __call( $method, $args ) {
|
316 |
+
return call_user_func_array( array( 'scbForms', $method ), $args );
|
317 |
}
|
318 |
|
319 |
// Wraps a string in a <script> tag
|
320 |
+
function js_wrap( $string ) {
|
321 |
return "\n<script type='text/javascript'>\n" . $string . "\n</script>\n";
|
322 |
}
|
323 |
|
324 |
// Wraps a string in a <style> tag
|
325 |
+
function css_wrap( $string ) {
|
326 |
return "\n<style type='text/css'>\n" . $string . "\n</style>\n";
|
327 |
}
|
328 |
|
330 |
// ____________INTERNAL METHODS____________
|
331 |
|
332 |
|
|
|
|
|
|
|
|
|
|
|
333 |
// Registers a page
|
334 |
function page_init() {
|
335 |
+
extract( $this->args );
|
336 |
|
337 |
if ( ! $toplevel ) {
|
338 |
+
$this->pagehook = add_submenu_page( $parent, $page_title, $menu_title, $capability, $page_slug, array( $this, '_page_content_hook' ) );
|
339 |
} else {
|
340 |
$func = 'add_' . $toplevel . '_page';
|
341 |
+
$this->pagehook = $func( $page_title, $menu_title, $capability, $page_slug, array( $this, '_page_content_hook' ), $icon_url );
|
342 |
}
|
343 |
|
344 |
if ( ! $this->pagehook )
|
346 |
|
347 |
if ( $ajax_submit ) {
|
348 |
$this->ajax_response();
|
349 |
+
add_action( 'admin_footer', array( $this, 'ajax_submit' ), 20 );
|
350 |
}
|
351 |
|
352 |
+
add_action( 'admin_print_styles-' . $this->pagehook, array( $this, 'page_head' ) );
|
353 |
+
}
|
354 |
+
|
355 |
+
function option_init() {
|
356 |
+
register_setting( $this->option_name, $this->option_name, array( $this, 'validate' ) );
|
357 |
}
|
358 |
|
359 |
private function check_args() {
|
360 |
+
if ( empty( $this->args['page_title'] ) )
|
361 |
+
trigger_error( 'Page title cannot be empty', E_USER_WARNING );
|
362 |
|
363 |
+
$this->args = wp_parse_args( $this->args, array(
|
364 |
'toplevel' => '',
|
365 |
'icon' => '',
|
366 |
'parent' => 'options-general.php',
|
368 |
'menu_title' => $this->args['page_title'],
|
369 |
'page_slug' => '',
|
370 |
'nonce' => '',
|
371 |
+
'action_link' => __( 'Settings', $this->textdomain ),
|
372 |
+
'ajax_submit' => false,
|
373 |
+
) );
|
374 |
|
375 |
+
if ( empty( $this->args['page_slug'] ) )
|
376 |
+
$this->args['page_slug'] = sanitize_title_with_dashes( $this->args['menu_title'] );
|
377 |
|
378 |
+
if ( empty( $this->args['nonce'] ) )
|
379 |
$this->nonce = $this->args['page_slug'];
|
380 |
}
|
381 |
|
382 |
+
function _contextual_help( $help, $screen ) {
|
383 |
+
if ( is_object( $screen ) )
|
384 |
$screen = $screen->id;
|
385 |
|
386 |
+
$actual_help = $this->page_help();
|
387 |
+
|
388 |
+
if ( $screen == $this->pagehook && $actual_help )
|
389 |
return $actual_help;
|
390 |
|
391 |
return $help;
|
392 |
}
|
393 |
|
394 |
function ajax_response() {
|
395 |
+
if ( ! isset( $_POST['_ajax_submit'] ) || $_POST['_ajax_submit'] != $this->pagehook )
|
396 |
return;
|
397 |
|
398 |
$this->form_handler();
|
406 |
return;
|
407 |
?>
|
408 |
<script type="text/javascript">
|
409 |
+
jQuery( document ).ready( function( $ ){
|
410 |
+
var $spinner = $( new Image() ).attr( 'src', '<?php echo admin_url( "images/wpspin_light.gif" ); ?>' );
|
411 |
|
412 |
+
$( ':submit' ).click( function( ev ){
|
413 |
+
var $submit = $( this );
|
414 |
+
var $form = $submit.parents( 'form' );
|
415 |
|
416 |
+
if ( $submit.hasClass( 'no-ajax' ) || $form.attr( 'method' ).toLowerCase() != 'post' )
|
417 |
return true;
|
418 |
|
419 |
var $this_spinner = $spinner.clone();
|
420 |
|
421 |
+
$submit.before( $this_spinner ).hide();
|
422 |
|
423 |
var data = $form.serializeArray();
|
424 |
+
data.push( {name: $submit.attr( 'name' ), value: $submit.val()} );
|
425 |
+
data.push( {name: '_ajax_submit', value: '<?php echo $this->pagehook; ?>'} );
|
426 |
|
427 |
+
$.post( location.href, data, function( response ){
|
428 |
+
var $prev = $( '.wrap > .updated, .wrap > .error' );
|
429 |
+
var $msg = $( response ).hide().insertAfter( $( '.wrap h2' ) );
|
430 |
if ( $prev.length > 0 )
|
431 |
+
$prev.fadeOut( 'slow', function(){ $msg.fadeIn( 'slow' ); } );
|
432 |
else
|
433 |
+
$msg.fadeIn( 'slow' );
|
434 |
|
435 |
$this_spinner.hide();
|
436 |
$submit.show();
|
437 |
+
} );
|
438 |
|
439 |
ev.stopPropagation();
|
440 |
ev.preventDefault();
|
441 |
+
} );
|
442 |
+
} );
|
443 |
</script>
|
444 |
<?php
|
445 |
}
|
452 |
$this->page_footer();
|
453 |
}
|
454 |
|
455 |
+
function _action_link( $links ) {
|
456 |
+
$url = add_query_arg( 'page', $this->args['page_slug'], admin_url( $this->args['parent'] ) );
|
457 |
|
458 |
+
$links[] = html_link( $url, $this->args['action_link'] );
|
459 |
|
460 |
return $links;
|
461 |
}
|
scb/BoxesPage.php
ADDED
@@ -0,0 +1,223 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
Creates an admin page with widgets, similar to the dashboard
|
5 |
+
|
6 |
+
For example, if you defined the boxes like this:
|
7 |
+
|
8 |
+
$this->boxes = array( array( 'settings', 'Settings box', 'normal' )
|
9 |
+
... );
|
10 |
+
|
11 |
+
You must also define two methods in your class for each box:
|
12 |
+
|
13 |
+
function settings_box() - this is where the box content is echoed
|
14 |
+
function settings_handler() - this is where the box settings are saved
|
15 |
+
...
|
16 |
+
*/
|
17 |
+
abstract class scbBoxesPage extends scbAdminPage {
|
18 |
+
/*
|
19 |
+
A box definition looks like this:
|
20 |
+
array( $slug, $title, $column );
|
21 |
+
|
22 |
+
Available columns: normal, side, column3, column4
|
23 |
+
*/
|
24 |
+
protected $boxes = array();
|
25 |
+
|
26 |
+
function __construct( $file, $options = null ) {
|
27 |
+
parent::__construct( $file, $options );
|
28 |
+
|
29 |
+
// too late
|
30 |
+
scbUtil::add_uninstall_hook( $this->file, array( $this, 'uninstall' ) );
|
31 |
+
}
|
32 |
+
|
33 |
+
function page_init() {
|
34 |
+
if ( !isset( $this->args['columns'] ) )
|
35 |
+
$this->args['columns'] = 2;
|
36 |
+
|
37 |
+
parent::page_init();
|
38 |
+
|
39 |
+
add_action( 'load-' . $this->pagehook, array( $this, 'boxes_init' ) );
|
40 |
+
add_filter( 'screen_layout_columns', array( $this, 'columns' ) );
|
41 |
+
}
|
42 |
+
|
43 |
+
function default_css() {
|
44 |
+
?>
|
45 |
+
<style type="text/css">
|
46 |
+
.postbox-container + .postbox-container {margin-left: 18px}
|
47 |
+
.postbox-container {padding-right: 0}
|
48 |
+
|
49 |
+
.inside {clear: both; overflow: hidden; padding: 10px 10px 0 10px !important}
|
50 |
+
.inside table {margin: 0 !important; padding: 0 !important}
|
51 |
+
.inside table td {vertical-align: middle !important}
|
52 |
+
.inside table .regular-text {width: 100% !important}
|
53 |
+
.inside .form-table th {width: 30%; max-width: 200px; padding: 10px 0 !important}
|
54 |
+
.inside .widefat .check-column {padding-bottom: 7px !important}
|
55 |
+
.inside p, .inside table {margin: 0 0 10px 0 !important}
|
56 |
+
.inside p.submit {float:left !important; padding: 0 !important}
|
57 |
+
</style>
|
58 |
+
<?php
|
59 |
+
}
|
60 |
+
|
61 |
+
function page_content() {
|
62 |
+
$this->default_css();
|
63 |
+
|
64 |
+
global $screen_layout_columns;
|
65 |
+
|
66 |
+
if ( isset( $screen_layout_columns ) ) {
|
67 |
+
$hide2 = $hide3 = $hide4 = '';
|
68 |
+
switch ( $screen_layout_columns ) {
|
69 |
+
case 4:
|
70 |
+
$width = 'width:24.5%;';
|
71 |
+
break;
|
72 |
+
case 3:
|
73 |
+
$width = 'width:32.67%;';
|
74 |
+
$hide4 = 'display:none;';
|
75 |
+
break;
|
76 |
+
case 2:
|
77 |
+
$width = 'width:49%;';
|
78 |
+
$hide3 = $hide4 = 'display:none;';
|
79 |
+
break;
|
80 |
+
default:
|
81 |
+
$width = 'width:98%;';
|
82 |
+
$hide2 = $hide3 = $hide4 = 'display:none;';
|
83 |
+
}
|
84 |
+
}
|
85 |
+
?>
|
86 |
+
<div id='<?php echo $this->pagehook ?>-widgets' class='metabox-holder'>
|
87 |
+
<?php
|
88 |
+
echo "\t<div class='postbox-container' style='$width'>\n";
|
89 |
+
do_meta_boxes( $this->pagehook, 'normal', '' );
|
90 |
+
|
91 |
+
echo "\t</div><div class='postbox-container' style='{$hide2}$width'>\n";
|
92 |
+
do_meta_boxes( $this->pagehook, 'side', '' );
|
93 |
+
|
94 |
+
echo "\t</div><div class='postbox-container' style='{$hide3}$width'>\n";
|
95 |
+
do_meta_boxes( $this->pagehook, 'column3', '' );
|
96 |
+
|
97 |
+
echo "\t</div><div class='postbox-container' style='{$hide4}$width'>\n";
|
98 |
+
do_meta_boxes( $this->pagehook, 'column4', '' );
|
99 |
+
?>
|
100 |
+
</div></div>
|
101 |
+
<?php
|
102 |
+
}
|
103 |
+
|
104 |
+
function page_footer() {
|
105 |
+
parent::page_footer();
|
106 |
+
$this->_boxes_js_init();
|
107 |
+
}
|
108 |
+
|
109 |
+
function form_handler() {
|
110 |
+
if ( empty( $_POST ) )
|
111 |
+
return;
|
112 |
+
|
113 |
+
check_admin_referer( $this->nonce );
|
114 |
+
|
115 |
+
// Box handler
|
116 |
+
foreach ( $this->boxes as $box ) {
|
117 |
+
$args = isset( $box[4] ) ? $box[4] : array();
|
118 |
+
|
119 |
+
$handler = $box[0] . '_handler';
|
120 |
+
|
121 |
+
if ( method_exists( $this, $handler ) )
|
122 |
+
call_user_func_array( array( $this, $handler ), $args );
|
123 |
+
}
|
124 |
+
|
125 |
+
if ( $this->options )
|
126 |
+
$this->formdata = $this->options->get();
|
127 |
+
}
|
128 |
+
|
129 |
+
function columns( $columns ) {
|
130 |
+
$columns[$this->pagehook] = $this->args['columns'];
|
131 |
+
|
132 |
+
return $columns;
|
133 |
+
}
|
134 |
+
|
135 |
+
function uninstall() {
|
136 |
+
global $wpdb;
|
137 |
+
|
138 |
+
$hook = str_replace( '-', '', $this->pagehook );
|
139 |
+
|
140 |
+
foreach ( array( 'metaboxhidden', 'closedpostboxes', 'wp_metaboxorder', 'screen_layout' ) as $option )
|
141 |
+
$keys[] = "'{$option}_{$hook}'";
|
142 |
+
|
143 |
+
$keys = '( ' . implode( ', ', $keys ) . ' )';
|
144 |
+
|
145 |
+
$wpdb->query( "
|
146 |
+
DELETE FROM {$wpdb->usermeta}
|
147 |
+
WHERE meta_key IN {$keys}
|
148 |
+
" );
|
149 |
+
}
|
150 |
+
|
151 |
+
function boxes_init() {
|
152 |
+
wp_enqueue_script( 'common' );
|
153 |
+
wp_enqueue_script( 'wp-lists' );
|
154 |
+
wp_enqueue_script( 'postbox' );
|
155 |
+
|
156 |
+
$registered = array();
|
157 |
+
foreach( $this->boxes as $box_args ) {
|
158 |
+
@list( $name, $title, $context, $priority, $args ) = $box_args;
|
159 |
+
|
160 |
+
if ( empty( $title ) )
|
161 |
+
$title = ucfirst( $name );
|
162 |
+
if ( empty( $context ) )
|
163 |
+
$context = 'normal';
|
164 |
+
if ( empty( $priority ) )
|
165 |
+
$priority = 'default';
|
166 |
+
if ( empty( $args ) )
|
167 |
+
$args = array();
|
168 |
+
|
169 |
+
if ( isset( $registered[$name] ) ) {
|
170 |
+
if ( empty( $args ) )
|
171 |
+
trigger_error( "Duplicate box name: $name", E_USER_NOTICE );
|
172 |
+
|
173 |
+
$name = $this->_increment( $name );
|
174 |
+
} else {
|
175 |
+
$registered[$name] = true;
|
176 |
+
}
|
177 |
+
|
178 |
+
add_meta_box( $name, $title, array( $this, '_intermediate_callback' ), $this->pagehook, $context, $priority, $args );
|
179 |
+
}
|
180 |
+
}
|
181 |
+
|
182 |
+
// Make it so that $args is actually what's passed to the callback
|
183 |
+
function _intermediate_callback( $_, $box ) {
|
184 |
+
list( $name ) = explode( '-', $box['id'] );
|
185 |
+
|
186 |
+
call_user_func_array( array( $this, $name . '_box' ), $box['args'] );
|
187 |
+
}
|
188 |
+
|
189 |
+
private function _increment( $name ) {
|
190 |
+
$parts = explode( '-', $name );
|
191 |
+
if ( isset( $parts[1] ) )
|
192 |
+
$parts[1]++;
|
193 |
+
else
|
194 |
+
$parts[1] = 2;
|
195 |
+
|
196 |
+
return implode( '-', $parts );
|
197 |
+
}
|
198 |
+
|
199 |
+
// Adds necesary code for JS to work
|
200 |
+
function _boxes_js_init() {
|
201 |
+
echo $this->js_wrap( <<<EOT
|
202 |
+
jQuery( document ).ready( function( $ ){
|
203 |
+
// close postboxes that should be closed
|
204 |
+
$( '.if-js-closed' ).removeClass( 'if-js-closed' ).addClass( 'closed' );
|
205 |
+
// postboxes setup
|
206 |
+
postboxes.add_postbox_toggles( '$this->pagehook' );
|
207 |
+
} );
|
208 |
+
EOT
|
209 |
+
);
|
210 |
+
?>
|
211 |
+
|
212 |
+
<form style='display: none' method='get' action=''>
|
213 |
+
<p>
|
214 |
+
<?php
|
215 |
+
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
|
216 |
+
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
|
217 |
+
?>
|
218 |
+
</p>
|
219 |
+
</form>
|
220 |
+
<?php
|
221 |
+
}
|
222 |
+
}
|
223 |
+
|
scb/Cron.php
ADDED
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class scbCron {
|
4 |
+
protected $schedule;
|
5 |
+
protected $interval;
|
6 |
+
protected $time;
|
7 |
+
|
8 |
+
protected $hook;
|
9 |
+
protected $callback_args;
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Create a new cron job
|
13 |
+
*
|
14 |
+
* @param string Reference to main plugin file
|
15 |
+
* @param array List of args:
|
16 |
+
string $action OR callback $callback
|
17 |
+
string $schedule OR number $interval
|
18 |
+
array $callback_args ( optional )
|
19 |
+
* @param bool Debug mode
|
20 |
+
*/
|
21 |
+
function __construct( $file, $args, $debug = false ) {
|
22 |
+
$this->_set_args( $args );
|
23 |
+
|
24 |
+
scbUtil::add_activation_hook( $file, array( $this, 'reset' ) );
|
25 |
+
register_deactivation_hook( $file, array( $this, 'unschedule' ) );
|
26 |
+
|
27 |
+
add_filter( 'cron_schedules', array( $this, '_add_timing' ) );
|
28 |
+
|
29 |
+
if ( $debug )
|
30 |
+
self::debug();
|
31 |
+
}
|
32 |
+
|
33 |
+
/* Change the interval of the cron job
|
34 |
+
*
|
35 |
+
* @param array List of args:
|
36 |
+
string $schedule OR number $interval
|
37 |
+
timestamp $time ( optional )
|
38 |
+
*/
|
39 |
+
function reschedule( $args ) {
|
40 |
+
extract( $args );
|
41 |
+
|
42 |
+
if ( $schedule && $this->schedule != $schedule ) {
|
43 |
+
$this->schedule = $schedule;
|
44 |
+
} elseif ( $interval && $this->interval != $interval ) {
|
45 |
+
$this->schedule = $interval . 'secs';
|
46 |
+
$this->interval = $interval;
|
47 |
+
}
|
48 |
+
|
49 |
+
$this->time = $time;
|
50 |
+
|
51 |
+
$this->reset();
|
52 |
+
}
|
53 |
+
|
54 |
+
/**
|
55 |
+
* Reset the schedule
|
56 |
+
*/
|
57 |
+
function reset() {
|
58 |
+
$this->unschedule();
|
59 |
+
$this->schedule();
|
60 |
+
}
|
61 |
+
|
62 |
+
/**
|
63 |
+
* Clear the cron job
|
64 |
+
*/
|
65 |
+
function unschedule() {
|
66 |
+
# wp_clear_scheduled_hook( $this->hook, $this->callback_args );
|
67 |
+
self::really_clear_scheduled_hook( $this->hook );
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Execute the job now
|
72 |
+
*/
|
73 |
+
function do_now() {
|
74 |
+
do_action( $this->hook );
|
75 |
+
}
|
76 |
+
|
77 |
+
/**
|
78 |
+
* Execute the job with a given delay
|
79 |
+
* @param int Delay in seconds
|
80 |
+
*/
|
81 |
+
function do_once( $delay = 0 ) {
|
82 |
+
wp_schedule_single_event( time() + $delay, $this->hook, $this->callback_args );
|
83 |
+
}
|
84 |
+
|
85 |
+
/**
|
86 |
+
* Display current cron jobs
|
87 |
+
*/
|
88 |
+
function debug() {
|
89 |
+
add_action( 'admin_footer', array( __CLASS__, '_debug' ) );
|
90 |
+
}
|
91 |
+
|
92 |
+
|
93 |
+
//_____INTERNAL METHODS_____
|
94 |
+
|
95 |
+
|
96 |
+
function _add_timing( $schedules ) {
|
97 |
+
if ( isset( $schedules[$this->schedule] ) )
|
98 |
+
return $schedules;
|
99 |
+
|
100 |
+
$schedules[$this->schedule] = array( 'interval' => $this->interval,
|
101 |
+
'display' => $this->interval . ' seconds' );
|
102 |
+
|
103 |
+
return $schedules;
|
104 |
+
}
|
105 |
+
|
106 |
+
function _debug() {
|
107 |
+
if ( ! current_user_can( 'manage_options' ) )
|
108 |
+
return;
|
109 |
+
|
110 |
+
echo "<pre>";
|
111 |
+
print_r( get_option( 'cron' ) );
|
112 |
+
echo "</pre>";
|
113 |
+
}
|
114 |
+
|
115 |
+
protected function schedule() {
|
116 |
+
if ( ! $this->time )
|
117 |
+
$this->time = time();
|
118 |
+
|
119 |
+
wp_schedule_event( $this->time, $this->schedule, $this->hook, $this->callback_args );
|
120 |
+
}
|
121 |
+
|
122 |
+
protected function _set_args( $args ) {
|
123 |
+
extract( $args );
|
124 |
+
|
125 |
+
// Set hook
|
126 |
+
if ( isset( $action ) ) {
|
127 |
+
$this->hook = $action;
|
128 |
+
} elseif ( isset( $callback ) ) {
|
129 |
+
$this->hook = self::_callback_to_string( $callback );
|
130 |
+
|
131 |
+
add_action( $this->hook, $callback );
|
132 |
+
} elseif ( method_exists( $this, 'callback' ) ) {
|
133 |
+
$this->hook = self::_callback_to_string( $callback );
|
134 |
+
|
135 |
+
add_action( $this->hook, $callback );
|
136 |
+
} else {
|
137 |
+
trigger_error( '$action OR $callback not set', E_USER_WARNING );
|
138 |
+
}
|
139 |
+
|
140 |
+
// Set schedule
|
141 |
+
if ( isset( $interval ) ) {
|
142 |
+
$this->schedule = $interval . 'secs';
|
143 |
+
$this->interval = $interval;
|
144 |
+
} elseif ( isset( $schedule ) ) {
|
145 |
+
$this->schedule = $schedule;
|
146 |
+
} else {
|
147 |
+
trigger_error( '$schedule OR $interval not set', E_USER_WARNING );
|
148 |
+
}
|
149 |
+
|
150 |
+
if ( isset( $callback_args ) )
|
151 |
+
$this->callback_args = ( array ) $callback_args;
|
152 |
+
}
|
153 |
+
|
154 |
+
protected static function really_clear_scheduled_hook( $name ) {
|
155 |
+
$crons = _get_cron_array();
|
156 |
+
|
157 |
+
foreach ( $crons as $timestamp => $hooks ) {
|
158 |
+
foreach ( $hooks as $hook => $args )
|
159 |
+
if ( $hook == $name )
|
160 |
+
unset( $crons[$timestamp][$hook] );
|
161 |
+
|
162 |
+
if ( empty( $hooks ) )
|
163 |
+
unset( $crons[$timestamp] );
|
164 |
+
}
|
165 |
+
|
166 |
+
_set_cron_array( $crons );
|
167 |
+
}
|
168 |
+
|
169 |
+
protected static function _callback_to_string( $callback ) {
|
170 |
+
if ( ! is_array( $callback ) )
|
171 |
+
$str = $callback;
|
172 |
+
elseif ( ! is_string( $callback[0] ) )
|
173 |
+
$str = get_class( $callback[0] ) . '_' . $callback[1];
|
174 |
+
else
|
175 |
+
$str = $callback[0] . '::' . $callback[1];
|
176 |
+
|
177 |
+
$str .= '_hook';
|
178 |
+
|
179 |
+
return $str;
|
180 |
+
}
|
181 |
+
}
|
182 |
+
|
scb/Forms.php
CHANGED
@@ -1,70 +1,37 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
|
4 |
-
const token = '%input%';
|
5 |
-
|
6 |
-
/* Generates one or more form elements of the same type,
|
7 |
-
including <select>s and <textarea>s.
|
8 |
|
9 |
-
|
10 |
-
'type' => string (mandatory)
|
11 |
-
'name' => string | array (mandatory)
|
12 |
-
'value' => string | array
|
13 |
-
'desc' => string | array | false
|
14 |
-
'desc_pos' => 'before' | 'after' | 'foo %input% bar' (default: after)
|
15 |
-
'extra' => string (default: class="regular-text")
|
16 |
-
);
|
17 |
|
18 |
-
|
19 |
-
*/
|
20 |
|
21 |
protected static $args;
|
22 |
protected static $formdata = array();
|
23 |
|
24 |
-
static function input($args, $formdata = array()) {
|
25 |
-
$args = self::validate_data($args);
|
26 |
|
27 |
$error = false;
|
28 |
-
foreach ( array('name', 'value') as $key ) {
|
29 |
$old = $key . 's';
|
30 |
|
31 |
-
if ( isset($args[$old]) ) {
|
32 |
$args[$key] = $args[$old];
|
33 |
-
unset($args[$old]);
|
34 |
}
|
35 |
}
|
36 |
|
37 |
-
if (
|
38 |
-
return trigger_error(
|
39 |
|
40 |
self::$args = $args;
|
41 |
-
self::$formdata = self::validate_data($formdata);
|
42 |
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
}
|
48 |
-
}
|
49 |
-
|
50 |
-
// Deprecated
|
51 |
-
static function select($args, $options = array()) {
|
52 |
-
if ( !empty($options) )
|
53 |
-
$args['value'] = $options;
|
54 |
-
|
55 |
-
self::$args = $args;
|
56 |
-
|
57 |
-
return self::_select();
|
58 |
-
}
|
59 |
-
|
60 |
-
// Deprecated
|
61 |
-
static function textarea($args, $content = '') {
|
62 |
-
if ( !empty($content) )
|
63 |
-
$args['value'] = $content;
|
64 |
-
|
65 |
-
self::$args = $args;
|
66 |
-
|
67 |
-
return self::_textarea();
|
68 |
}
|
69 |
|
70 |
|
@@ -72,41 +39,41 @@ class scbForms {
|
|
72 |
|
73 |
|
74 |
// Generates a table wrapped in a form
|
75 |
-
static function form_table($rows, $formdata = NULL) {
|
76 |
$output = '';
|
77 |
foreach ( $rows as $row )
|
78 |
-
$output .= self::table_row($row, $formdata);
|
79 |
|
80 |
-
$output = self::form_table_wrap($output);
|
81 |
|
82 |
return $output;
|
83 |
}
|
84 |
|
85 |
// Generates a form
|
86 |
-
static function form($inputs, $formdata = NULL, $nonce) {
|
87 |
$output = '';
|
88 |
foreach ( $inputs as $input )
|
89 |
-
$output .= self::input($input, $formdata);
|
90 |
|
91 |
-
$output = self::form_wrap($output, $nonce);
|
92 |
|
93 |
return $output;
|
94 |
}
|
95 |
|
96 |
// Generates a table
|
97 |
-
static function table($rows, $formdata = NULL) {
|
98 |
$output = '';
|
99 |
foreach ( $rows as $row )
|
100 |
-
$output .= self::table_row($row, $formdata);
|
101 |
|
102 |
-
$output = self::table_wrap($output);
|
103 |
|
104 |
return $output;
|
105 |
}
|
106 |
|
107 |
// Generates a table row
|
108 |
-
static function table_row($args, $formdata = NULL) {
|
109 |
-
return self::row_wrap($args['title'], self::input($args, $formdata));
|
110 |
}
|
111 |
|
112 |
|
@@ -114,32 +81,32 @@ class scbForms {
|
|
114 |
|
115 |
|
116 |
// Wraps the given content in a <form><table>
|
117 |
-
static function form_table_wrap($content, $nonce = 'update_options') {
|
118 |
-
$output = self::table_wrap($content);
|
119 |
-
$output = self::form_wrap($output, $nonce);
|
120 |
|
121 |
return $output;
|
122 |
}
|
123 |
|
124 |
-
// Wraps the given content in a <form>
|
125 |
-
static function form_wrap($content, $nonce = 'update_options') {
|
126 |
$output = "\n<form method='post' action=''>\n";
|
127 |
$output .= $content;
|
128 |
-
$output .= wp_nonce_field($action = $nonce, $name = "_wpnonce", $referer = true , $echo = false);
|
129 |
$output .= "\n</form>\n";
|
130 |
|
131 |
return $output;
|
132 |
}
|
133 |
|
134 |
// Wraps the given content in a <table>
|
135 |
-
static function table_wrap($content) {
|
136 |
$output = "\n<table class='form-table'>\n" . $content . "\n</table>\n";
|
137 |
|
138 |
return $output;
|
139 |
}
|
140 |
|
141 |
// Wraps the given content in a <tr><td>
|
142 |
-
static function row_wrap($title, $content) {
|
143 |
return "\n<tr>\n\t<th scope='row'>" . $title . "</th>\n\t<td>\n\t\t" . $content . "\t</td>\n\n</tr>";
|
144 |
}
|
145 |
|
@@ -148,56 +115,56 @@ class scbForms {
|
|
148 |
|
149 |
|
150 |
// Recursivly transform empty arrays to ''
|
151 |
-
private static function validate_data($data) {
|
152 |
-
if ( !
|
153 |
return $data;
|
154 |
|
155 |
-
if ( empty($data) )
|
156 |
return '';
|
157 |
|
158 |
foreach ( $data as $key => &$value )
|
159 |
-
$value = self::validate_data($value);
|
160 |
|
161 |
return $data;
|
162 |
}
|
163 |
|
164 |
// From multiple inputs to single inputs
|
165 |
private static function _input() {
|
166 |
-
extract(wp_parse_args(self::$args, array(
|
167 |
'name' => NULL,
|
168 |
'value' => NULL,
|
169 |
'desc' => NULL,
|
170 |
'checked' => NULL,
|
171 |
-
)));
|
172 |
|
173 |
-
$m_name = is_array($name);
|
174 |
-
$m_value = is_array($value);
|
175 |
-
$m_desc = is_array($desc);
|
176 |
|
177 |
// Correct name
|
178 |
if ( !$m_name && $m_value
|
179 |
&& 'checkbox' == $type
|
180 |
-
&& false === strpos($name, '[')
|
181 |
)
|
182 |
$args['name'] = $name = $name . '[]';
|
183 |
|
184 |
// Expand names or values
|
185 |
if ( !$m_name && !$m_value ) {
|
186 |
-
$a = array($name => $value);
|
187 |
}
|
188 |
elseif ( $m_name && !$m_value ) {
|
189 |
-
$a = array_fill_keys($name, $value);
|
190 |
}
|
191 |
elseif ( !$m_name && $m_value ) {
|
192 |
-
$a = array_fill_keys($value, $name);
|
193 |
}
|
194 |
else {
|
195 |
-
$a = array_combine($name, $value);
|
196 |
}
|
197 |
|
198 |
// Correct descriptions
|
199 |
$_after = '';
|
200 |
-
if ( isset($desc) && !$m_desc && false === strpos($desc, self::token) ) {
|
201 |
if ( $m_value ) {
|
202 |
$_after = $desc;
|
203 |
$args['desc'] = $desc = $value;
|
@@ -217,12 +184,15 @@ class scbForms {
|
|
217 |
$i2 = 'val';
|
218 |
}
|
219 |
|
220 |
-
$func = in_array($type, array('checkbox', 'radio')) ? '_checkbox_single' : '_input_single';
|
221 |
|
222 |
// Set constant args
|
223 |
-
$const_args = self::array_extract(self::$args, array('type', 'desc_pos', 'checked'));
|
224 |
-
if ( isset($extra) )
|
225 |
-
|
|
|
|
|
|
|
226 |
|
227 |
$i = 0;
|
228 |
foreach ( $a as $name => $val ) {
|
@@ -235,115 +205,120 @@ class scbForms {
|
|
235 |
$cur_args['value'] = $$i2;
|
236 |
|
237 |
// Set desc
|
238 |
-
if ( is_array($desc) )
|
239 |
$cur_args['desc'] = $desc[$i];
|
240 |
-
elseif ( isset($desc) )
|
241 |
$cur_args['desc'] = $desc;
|
242 |
|
243 |
// Find relevant formdata
|
244 |
$match = NULL;
|
245 |
if ( $checked === NULL ) {
|
246 |
-
$match = @self::$formdata[str_replace('[]', '', $$i1)];
|
247 |
-
if ( is_array($match) ) {
|
248 |
$match = $match[$i];
|
249 |
}
|
250 |
-
} else if ( is_array($checked) ) {
|
251 |
-
$cur_args['checked'] = isset($checked[$i]) && $checked[$i];
|
252 |
}
|
253 |
|
254 |
-
$output[] = self::$func($cur_args, $match);
|
255 |
|
256 |
$i++;
|
257 |
}
|
258 |
|
259 |
-
return implode("\n", $output) . $_after;
|
260 |
}
|
261 |
|
262 |
// Handle args for checkboxes and radio inputs
|
263 |
-
private static function _checkbox_single($args, $data) {
|
264 |
-
$args = wp_parse_args($args, array(
|
265 |
'name' => NULL,
|
266 |
'value' => true,
|
267 |
'desc_pos' => 'after',
|
268 |
'desc' => NULL,
|
269 |
'checked' => NULL,
|
270 |
'extra' => array(),
|
271 |
-
));
|
272 |
|
273 |
foreach ( $args as $key => &$val )
|
274 |
$$key = &$val;
|
275 |
-
unset($val);
|
276 |
|
277 |
if ( $checked === NULL && $value == $data )
|
278 |
$checked = true;
|
279 |
|
280 |
if ( $checked )
|
281 |
-
$extra[] = 'checked
|
282 |
|
283 |
-
if ( $desc
|
284 |
-
$desc = str_replace('[]', '', $value);
|
285 |
|
286 |
-
return self::_input_gen($args);
|
287 |
}
|
288 |
|
289 |
// Handle args for text inputs
|
290 |
-
private static function _input_single($args, $data) {
|
291 |
-
$args = wp_parse_args($args, array(
|
292 |
'value' => $data,
|
293 |
'desc_pos' => 'after',
|
294 |
-
'extra' => array('class
|
295 |
-
));
|
296 |
|
297 |
foreach ( $args as $key => &$val )
|
298 |
$$key = &$val;
|
299 |
-
unset($val);
|
300 |
|
301 |
-
if ( FALSE === strpos($name, '[') )
|
302 |
-
$extra[] =
|
303 |
|
304 |
-
return self::_input_gen($args);
|
305 |
}
|
306 |
|
307 |
// Generate html with the final args
|
308 |
-
private static function _input_gen($args) {
|
309 |
-
extract(wp_parse_args($args, array(
|
310 |
'name' => NULL,
|
311 |
'value' => NULL,
|
312 |
'desc' => NULL,
|
313 |
'extra' => array()
|
314 |
-
)));
|
315 |
-
|
316 |
-
$extra = self::validate_extra($extra, $name);
|
317 |
|
318 |
-
$
|
319 |
|
320 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
|
322 |
-
return self::add_label($input, $desc, $desc_pos);
|
323 |
}
|
324 |
|
325 |
private static function _select() {
|
326 |
-
extract(wp_parse_args(self::$args, array(
|
327 |
'name' => '',
|
328 |
'value' => array(),
|
329 |
'text' => '',
|
330 |
-
'selected' => array('foo'), // hack to make default blank
|
331 |
-
'extra' =>
|
332 |
'numeric' => false, // use numeric array instead of associative
|
333 |
'desc' => '',
|
334 |
'desc_pos' => '',
|
335 |
-
)), EXTR_SKIP);
|
336 |
|
337 |
-
if ( empty($value) )
|
338 |
-
$value = array('' => '');
|
339 |
|
340 |
-
if ( !is_array($value) )
|
341 |
-
return trigger_error("'value' argument is expected to be an array", E_USER_WARNING);
|
342 |
|
343 |
-
if ( !self::is_associative($value) && !$numeric )
|
344 |
-
$value = array_combine($value, $value);
|
345 |
|
346 |
-
if ( isset(self::$formdata[$name]) )
|
347 |
$cur_val = self::$formdata[$name];
|
348 |
else
|
349 |
$cur_val = $selected;
|
@@ -351,55 +326,32 @@ class scbForms {
|
|
351 |
if ( false === $text ) {
|
352 |
$opts = '';
|
353 |
} else {
|
354 |
-
$opts = "\t<option value=''";
|
355 |
-
if ( $cur_val === array('foo') )
|
356 |
-
$opts .= " selected='selected'";
|
357 |
-
$opts .= ">{$text}</option>\n";
|
358 |
}
|
359 |
|
360 |
foreach ( $value as $key => $value ) {
|
361 |
-
if ( empty($key) || empty($value) )
|
362 |
continue;
|
363 |
|
364 |
-
$
|
365 |
-
if ( (string) $key == (string) $cur_val )
|
366 |
-
$cur_extra[] = "selected='selected'";
|
367 |
-
|
368 |
-
$cur_extra = self::validate_extra($cur_extra, $key);
|
369 |
-
|
370 |
-
$opts .= "\t<option value='{$key}'{$cur_extra}>{$value}</option>\n";
|
371 |
}
|
372 |
|
373 |
-
|
|
|
|
|
374 |
|
375 |
$input = "<select name='{$name}'$extra>\n{$opts}</select>";
|
376 |
|
377 |
-
return self::add_label($input, $desc, $desc_pos);
|
378 |
-
}
|
379 |
-
|
380 |
-
private static function _textarea() {
|
381 |
-
extract(wp_parse_args(self::$args, array(
|
382 |
-
'name' => '',
|
383 |
-
'extra' => 'class="widefat"',
|
384 |
-
'value' => '',
|
385 |
-
'escaped' => false,
|
386 |
-
)), EXTR_SKIP);
|
387 |
-
|
388 |
-
if ( !$escaped )
|
389 |
-
$value = esc_html($value);
|
390 |
-
|
391 |
-
$extra = self::validate_extra($extra, $name);
|
392 |
-
|
393 |
-
return "<textarea name='{$name}'{$extra}>\n{$value}\n</textarea>\n";
|
394 |
}
|
395 |
|
396 |
-
private static function add_label($input, $desc, $desc_pos) {
|
397 |
-
if ( empty($desc_pos) )
|
398 |
$desc_pos = 'after';
|
399 |
|
400 |
$label = '';
|
401 |
-
if ( false === strpos($desc, self::token) ) {
|
402 |
-
switch ($desc_pos) {
|
403 |
case 'before': $label = $desc . ' ' . self::token; break;
|
404 |
case 'after': $label = self::token . ' ' . $desc;
|
405 |
}
|
@@ -407,9 +359,9 @@ class scbForms {
|
|
407 |
$label = $desc;
|
408 |
}
|
409 |
|
410 |
-
$label = trim(str_replace(self::token, $input, $label));
|
411 |
|
412 |
-
if ( empty($desc) )
|
413 |
$output = $input . "\n";
|
414 |
else
|
415 |
$output = "<label>{$label}</label>\n";
|
@@ -417,31 +369,35 @@ class scbForms {
|
|
417 |
return $output;
|
418 |
}
|
419 |
|
420 |
-
private static function validate_extra($extra, $name, $implode = true) {
|
421 |
-
if ( !is_array($extra) )
|
422 |
-
$extra = explode(' ', $extra);
|
423 |
|
424 |
-
|
425 |
-
return '';
|
426 |
|
427 |
-
|
|
|
|
|
428 |
}
|
429 |
|
430 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
431 |
|
432 |
-
private static function is_associative($array) {
|
433 |
-
if ( !is_array($array) || empty($array) )
|
434 |
return false;
|
435 |
|
436 |
-
$keys = array_keys($array);
|
437 |
|
438 |
-
return array_keys($keys) !== $keys;
|
439 |
}
|
440 |
|
441 |
-
private static function array_extract($array, $keys) {
|
442 |
$r = array();
|
443 |
foreach ( $keys as $key )
|
444 |
-
if ( isset($array[$key]) )
|
445 |
$r[$key] = $array[$key];
|
446 |
|
447 |
return $r;
|
@@ -449,10 +405,10 @@ class scbForms {
|
|
449 |
}
|
450 |
|
451 |
// PHP < 5.2
|
452 |
-
if ( !function_exists('array_fill_keys') ) :
|
453 |
-
function array_fill_keys($keys, $value) {
|
454 |
-
if ( !is_array($keys) )
|
455 |
-
trigger_error('First argument is expected to be an array.' . gettype($keys) . 'given', E_USER_WARNING);
|
456 |
|
457 |
$r = array();
|
458 |
foreach ( $keys as $key )
|
1 |
<?php
|
2 |
|
3 |
+
// Documentation: http://scribu.net/wordpress/scb-framework/scb-forms.html
|
|
|
|
|
|
|
|
|
4 |
|
5 |
+
class scbForms {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
+
const token = '%input%';
|
|
|
8 |
|
9 |
protected static $args;
|
10 |
protected static $formdata = array();
|
11 |
|
12 |
+
static function input( $args, $formdata = array() ) {
|
13 |
+
$args = self::validate_data( $args );
|
14 |
|
15 |
$error = false;
|
16 |
+
foreach ( array( 'name', 'value' ) as $key ) {
|
17 |
$old = $key . 's';
|
18 |
|
19 |
+
if ( isset( $args[$old] ) ) {
|
20 |
$args[$key] = $args[$old];
|
21 |
+
unset( $args[$old] );
|
22 |
}
|
23 |
}
|
24 |
|
25 |
+
if ( empty( $args['name'] ) )
|
26 |
+
return trigger_error( 'Empty name', E_USER_WARNING );
|
27 |
|
28 |
self::$args = $args;
|
29 |
+
self::$formdata = self::validate_data( $formdata );
|
30 |
|
31 |
+
if ( 'select' == $args['type'] )
|
32 |
+
return self::_select();
|
33 |
+
else
|
34 |
+
return self::_input();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
36 |
|
37 |
|
39 |
|
40 |
|
41 |
// Generates a table wrapped in a form
|
42 |
+
static function form_table( $rows, $formdata = NULL ) {
|
43 |
$output = '';
|
44 |
foreach ( $rows as $row )
|
45 |
+
$output .= self::table_row( $row, $formdata );
|
46 |
|
47 |
+
$output = self::form_table_wrap( $output );
|
48 |
|
49 |
return $output;
|
50 |
}
|
51 |
|
52 |
// Generates a form
|
53 |
+
static function form( $inputs, $formdata = NULL, $nonce ) {
|
54 |
$output = '';
|
55 |
foreach ( $inputs as $input )
|
56 |
+
$output .= self::input( $input, $formdata );
|
57 |
|
58 |
+
$output = self::form_wrap( $output, $nonce );
|
59 |
|
60 |
return $output;
|
61 |
}
|
62 |
|
63 |
// Generates a table
|
64 |
+
static function table( $rows, $formdata = NULL ) {
|
65 |
$output = '';
|
66 |
foreach ( $rows as $row )
|
67 |
+
$output .= self::table_row( $row, $formdata );
|
68 |
|
69 |
+
$output = self::table_wrap( $output );
|
70 |
|
71 |
return $output;
|
72 |
}
|
73 |
|
74 |
// Generates a table row
|
75 |
+
static function table_row( $args, $formdata = NULL ) {
|
76 |
+
return self::row_wrap( $args['title'], self::input( $args, $formdata ) );
|
77 |
}
|
78 |
|
79 |
|
81 |
|
82 |
|
83 |
// Wraps the given content in a <form><table>
|
84 |
+
static function form_table_wrap( $content, $nonce = 'update_options' ) {
|
85 |
+
$output = self::table_wrap( $content );
|
86 |
+
$output = self::form_wrap( $output, $nonce );
|
87 |
|
88 |
return $output;
|
89 |
}
|
90 |
|
91 |
+
// Wraps the given content in a <form> tag
|
92 |
+
static function form_wrap( $content, $nonce = 'update_options' ) {
|
93 |
$output = "\n<form method='post' action=''>\n";
|
94 |
$output .= $content;
|
95 |
+
$output .= wp_nonce_field( $action = $nonce, $name = "_wpnonce", $referer = true , $echo = false );
|
96 |
$output .= "\n</form>\n";
|
97 |
|
98 |
return $output;
|
99 |
}
|
100 |
|
101 |
// Wraps the given content in a <table>
|
102 |
+
static function table_wrap( $content ) {
|
103 |
$output = "\n<table class='form-table'>\n" . $content . "\n</table>\n";
|
104 |
|
105 |
return $output;
|
106 |
}
|
107 |
|
108 |
// Wraps the given content in a <tr><td>
|
109 |
+
static function row_wrap( $title, $content ) {
|
110 |
return "\n<tr>\n\t<th scope='row'>" . $title . "</th>\n\t<td>\n\t\t" . $content . "\t</td>\n\n</tr>";
|
111 |
}
|
112 |
|
115 |
|
116 |
|
117 |
// Recursivly transform empty arrays to ''
|
118 |
+
private static function validate_data( $data ) {
|
119 |
+
if ( !is_array( $data ) )
|
120 |
return $data;
|
121 |
|
122 |
+
if ( empty( $data ) )
|
123 |
return '';
|
124 |
|
125 |
foreach ( $data as $key => &$value )
|
126 |
+
$value = self::validate_data( $value );
|
127 |
|
128 |
return $data;
|
129 |
}
|
130 |
|
131 |
// From multiple inputs to single inputs
|
132 |
private static function _input() {
|
133 |
+
extract( wp_parse_args( self::$args, array(
|
134 |
'name' => NULL,
|
135 |
'value' => NULL,
|
136 |
'desc' => NULL,
|
137 |
'checked' => NULL,
|
138 |
+
) ) );
|
139 |
|
140 |
+
$m_name = is_array( $name );
|
141 |
+
$m_value = is_array( $value );
|
142 |
+
$m_desc = is_array( $desc );
|
143 |
|
144 |
// Correct name
|
145 |
if ( !$m_name && $m_value
|
146 |
&& 'checkbox' == $type
|
147 |
+
&& false === strpos( $name, '[' )
|
148 |
)
|
149 |
$args['name'] = $name = $name . '[]';
|
150 |
|
151 |
// Expand names or values
|
152 |
if ( !$m_name && !$m_value ) {
|
153 |
+
$a = array( $name => $value );
|
154 |
}
|
155 |
elseif ( $m_name && !$m_value ) {
|
156 |
+
$a = array_fill_keys( $name, $value );
|
157 |
}
|
158 |
elseif ( !$m_name && $m_value ) {
|
159 |
+
$a = array_fill_keys( $value, $name );
|
160 |
}
|
161 |
else {
|
162 |
+
$a = array_combine( $name, $value );
|
163 |
}
|
164 |
|
165 |
// Correct descriptions
|
166 |
$_after = '';
|
167 |
+
if ( isset( $desc ) && !$m_desc && false === strpos( $desc, self::token ) ) {
|
168 |
if ( $m_value ) {
|
169 |
$_after = $desc;
|
170 |
$args['desc'] = $desc = $value;
|
184 |
$i2 = 'val';
|
185 |
}
|
186 |
|
187 |
+
$func = in_array( $type, array( 'checkbox', 'radio' ) ) ? '_checkbox_single' : '_input_single';
|
188 |
|
189 |
// Set constant args
|
190 |
+
$const_args = self::array_extract( self::$args, array( 'type', 'desc_pos', 'checked' ) );
|
191 |
+
if ( isset( $extra ) ) {
|
192 |
+
if ( !is_array( $extra ) )
|
193 |
+
$extra = self::attr_to_array( $extra );
|
194 |
+
$const_args['extra'] = $extra;
|
195 |
+
}
|
196 |
|
197 |
$i = 0;
|
198 |
foreach ( $a as $name => $val ) {
|
205 |
$cur_args['value'] = $$i2;
|
206 |
|
207 |
// Set desc
|
208 |
+
if ( is_array( $desc ) )
|
209 |
$cur_args['desc'] = $desc[$i];
|
210 |
+
elseif ( isset( $desc ) )
|
211 |
$cur_args['desc'] = $desc;
|
212 |
|
213 |
// Find relevant formdata
|
214 |
$match = NULL;
|
215 |
if ( $checked === NULL ) {
|
216 |
+
$match = @self::$formdata[str_replace( '[]', '', $$i1 )];
|
217 |
+
if ( is_array( $match ) ) {
|
218 |
$match = $match[$i];
|
219 |
}
|
220 |
+
} else if ( is_array( $checked ) ) {
|
221 |
+
$cur_args['checked'] = isset( $checked[$i] ) && $checked[$i];
|
222 |
}
|
223 |
|
224 |
+
$output[] = self::$func( $cur_args, $match );
|
225 |
|
226 |
$i++;
|
227 |
}
|
228 |
|
229 |
+
return implode( "\n", $output ) . $_after;
|
230 |
}
|
231 |
|
232 |
// Handle args for checkboxes and radio inputs
|
233 |
+
private static function _checkbox_single( $args, $data ) {
|
234 |
+
$args = wp_parse_args( $args, array(
|
235 |
'name' => NULL,
|
236 |
'value' => true,
|
237 |
'desc_pos' => 'after',
|
238 |
'desc' => NULL,
|
239 |
'checked' => NULL,
|
240 |
'extra' => array(),
|
241 |
+
) );
|
242 |
|
243 |
foreach ( $args as $key => &$val )
|
244 |
$$key = &$val;
|
245 |
+
unset( $val );
|
246 |
|
247 |
if ( $checked === NULL && $value == $data )
|
248 |
$checked = true;
|
249 |
|
250 |
if ( $checked )
|
251 |
+
$extra['checked'] = 'checked';
|
252 |
|
253 |
+
if ( is_null( $desc ) && !is_bool( $value ) )
|
254 |
+
$desc = str_replace( '[]', '', $value );
|
255 |
|
256 |
+
return self::_input_gen( $args );
|
257 |
}
|
258 |
|
259 |
// Handle args for text inputs
|
260 |
+
private static function _input_single( $args, $data ) {
|
261 |
+
$args = wp_parse_args( $args, array(
|
262 |
'value' => $data,
|
263 |
'desc_pos' => 'after',
|
264 |
+
'extra' => array( 'class' => 'regular-text' ),
|
265 |
+
) );
|
266 |
|
267 |
foreach ( $args as $key => &$val )
|
268 |
$$key = &$val;
|
269 |
+
unset( $val );
|
270 |
|
271 |
+
if ( FALSE === strpos( $name, '[' ) )
|
272 |
+
$extra['id'] = $name;
|
273 |
|
274 |
+
return self::_input_gen( $args );
|
275 |
}
|
276 |
|
277 |
// Generate html with the final args
|
278 |
+
private static function _input_gen( $args ) {
|
279 |
+
extract( wp_parse_args( $args, array(
|
280 |
'name' => NULL,
|
281 |
'value' => NULL,
|
282 |
'desc' => NULL,
|
283 |
'extra' => array()
|
284 |
+
) ) );
|
|
|
|
|
285 |
|
286 |
+
$extra = self::array_to_attr( $extra );
|
287 |
|
288 |
+
if ( 'textarea' == $type ) {
|
289 |
+
$value = esc_html( $value );
|
290 |
+
$input = "<textarea name='{$name}'{$extra}>{$value}</textarea>\n";
|
291 |
+
}
|
292 |
+
else {
|
293 |
+
$value = esc_attr( $value );
|
294 |
+
$input = "<input name='{$name}' value='{$value}' type='{$type}'{$extra} /> ";
|
295 |
+
}
|
296 |
|
297 |
+
return self::add_label( $input, $desc, $desc_pos );
|
298 |
}
|
299 |
|
300 |
private static function _select() {
|
301 |
+
extract( wp_parse_args( self::$args, array(
|
302 |
'name' => '',
|
303 |
'value' => array(),
|
304 |
'text' => '',
|
305 |
+
'selected' => array( 'foo' ), // hack to make default blank
|
306 |
+
'extra' => array(),
|
307 |
'numeric' => false, // use numeric array instead of associative
|
308 |
'desc' => '',
|
309 |
'desc_pos' => '',
|
310 |
+
) ), EXTR_SKIP );
|
311 |
|
312 |
+
if ( empty( $value ) )
|
313 |
+
$value = array( '' => '' );
|
314 |
|
315 |
+
if ( !is_array( $value ) )
|
316 |
+
return trigger_error( "'value' argument is expected to be an array", E_USER_WARNING );
|
317 |
|
318 |
+
if ( !self::is_associative( $value ) && !$numeric )
|
319 |
+
$value = array_combine( $value, $value );
|
320 |
|
321 |
+
if ( isset( self::$formdata[$name] ) )
|
322 |
$cur_val = self::$formdata[$name];
|
323 |
else
|
324 |
$cur_val = $selected;
|
326 |
if ( false === $text ) {
|
327 |
$opts = '';
|
328 |
} else {
|
329 |
+
$opts = "\t<option value=''" . selected( $cur_val, array( 'foo' ), false ) . ">{$text}</option>\n";
|
|
|
|
|
|
|
330 |
}
|
331 |
|
332 |
foreach ( $value as $key => $value ) {
|
333 |
+
if ( empty( $key ) || empty( $value ) )
|
334 |
continue;
|
335 |
|
336 |
+
$opts .= "\t<option value='{$key}'" . selected( (string) $key, (string) $cur_val, false) . '>' . $value . "</option>\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
}
|
338 |
|
339 |
+
if ( !is_array( $extra ) )
|
340 |
+
$extra = self::attr_to_array( $extra );
|
341 |
+
$extra = self::array_to_attr( $extra );
|
342 |
|
343 |
$input = "<select name='{$name}'$extra>\n{$opts}</select>";
|
344 |
|
345 |
+
return self::add_label( $input, $desc, $desc_pos );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
}
|
347 |
|
348 |
+
private static function add_label( $input, $desc, $desc_pos ) {
|
349 |
+
if ( empty( $desc_pos ) )
|
350 |
$desc_pos = 'after';
|
351 |
|
352 |
$label = '';
|
353 |
+
if ( false === strpos( $desc, self::token ) ) {
|
354 |
+
switch ( $desc_pos ) {
|
355 |
case 'before': $label = $desc . ' ' . self::token; break;
|
356 |
case 'after': $label = self::token . ' ' . $desc;
|
357 |
}
|
359 |
$label = $desc;
|
360 |
}
|
361 |
|
362 |
+
$label = trim( str_replace( self::token, $input, $label ) );
|
363 |
|
364 |
+
if ( empty( $desc ) )
|
365 |
$output = $input . "\n";
|
366 |
else
|
367 |
$output = "<label>{$label}</label>\n";
|
369 |
return $output;
|
370 |
}
|
371 |
|
|
|
|
|
|
|
372 |
|
373 |
+
// Utilities
|
|
|
374 |
|
375 |
+
|
376 |
+
private static function attr_to_array( $html ) {
|
377 |
+
return shortcode_parse_atts( $html );
|
378 |
}
|
379 |
|
380 |
+
private static function array_to_attr( $attr ) {
|
381 |
+
$out = '';
|
382 |
+
foreach ( $attr as $key => $value )
|
383 |
+
$out .= ' ' . $key . '=' . '"' . esc_attr( $value ) . '"';
|
384 |
+
|
385 |
+
return $out;
|
386 |
+
}
|
387 |
|
388 |
+
private static function is_associative( $array ) {
|
389 |
+
if ( !is_array( $array ) || empty( $array ) )
|
390 |
return false;
|
391 |
|
392 |
+
$keys = array_keys( $array );
|
393 |
|
394 |
+
return array_keys( $keys ) !== $keys;
|
395 |
}
|
396 |
|
397 |
+
private static function array_extract( $array, $keys ) {
|
398 |
$r = array();
|
399 |
foreach ( $keys as $key )
|
400 |
+
if ( isset( $array[$key] ) )
|
401 |
$r[$key] = $array[$key];
|
402 |
|
403 |
return $r;
|
405 |
}
|
406 |
|
407 |
// PHP < 5.2
|
408 |
+
if ( !function_exists( 'array_fill_keys' ) ) :
|
409 |
+
function array_fill_keys( $keys, $value ) {
|
410 |
+
if ( !is_array( $keys ) )
|
411 |
+
trigger_error( 'First argument is expected to be an array.' . gettype( $keys ) . 'given', E_USER_WARNING );
|
412 |
|
413 |
$r = array();
|
414 |
foreach ( $keys as $key )
|
scb/Options.php
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
//
|
4 |
|
5 |
class scbOptions {
|
6 |
-
protected $defaults; // the default value(s)
|
7 |
|
8 |
protected $key; // the option name
|
9 |
-
|
|
|
10 |
|
11 |
public $wp_filter_id; // used by WP hooks
|
12 |
|
@@ -15,56 +15,63 @@ class scbOptions {
|
|
15 |
*
|
16 |
* @param string $key Option name
|
17 |
* @param string $file Reference to main plugin file
|
18 |
-
* @param array $defaults An associative array of default values (optional)
|
19 |
*/
|
20 |
-
public function __construct($key, $file, $defaults = '') {
|
21 |
$this->key = $key;
|
22 |
$this->defaults = $defaults;
|
23 |
-
$this->data = get_option($this->key);
|
24 |
|
25 |
-
|
26 |
-
$this->data = (array) $this->data;
|
27 |
|
28 |
-
|
29 |
-
|
30 |
|
31 |
-
|
|
|
|
|
|
|
|
|
32 |
}
|
33 |
|
34 |
/**
|
35 |
* Get option values for one, many or all fields
|
36 |
*
|
37 |
-
* @param string|array $field The field(s) to get
|
38 |
* @return mixed Whatever is in those fields
|
39 |
*/
|
40 |
-
public function get($field = '') {
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
42 |
}
|
43 |
|
44 |
/**
|
45 |
* Get default values for one, many or all fields
|
46 |
*
|
47 |
-
* @param string|array $field The field(s) to get
|
48 |
* @return mixed Whatever is in those fields
|
49 |
*/
|
50 |
-
public function get_defaults($field = '') {
|
51 |
-
return $this->_get($field, $this->defaults);
|
52 |
}
|
53 |
|
54 |
/**
|
55 |
* Set all data fields, certain fields or a single field
|
56 |
*
|
57 |
* @param string|array $field The field to update or an associative array
|
58 |
-
* @param mixed $value The new value (ignored if $field is array)
|
59 |
* @return null
|
60 |
*/
|
61 |
-
public function set($field, $value = '') {
|
62 |
-
if ( is_array($field) )
|
63 |
$newdata = $field;
|
64 |
else
|
65 |
-
$newdata = array($field => $value);
|
66 |
|
67 |
-
$this->update(array_merge($this->
|
68 |
}
|
69 |
|
70 |
/**
|
@@ -73,7 +80,7 @@ class scbOptions {
|
|
73 |
* @return null
|
74 |
*/
|
75 |
public function reset() {
|
76 |
-
$this->update($this->defaults);
|
77 |
}
|
78 |
|
79 |
/**
|
@@ -82,29 +89,21 @@ class scbOptions {
|
|
82 |
* @return bool
|
83 |
*/
|
84 |
public function cleanup() {
|
85 |
-
$
|
86 |
-
|
87 |
-
if ( ! is_array($this->defaults) )
|
88 |
-
return false;
|
89 |
-
|
90 |
-
foreach ( array_keys($this->defaults) as $key )
|
91 |
-
$r[$key] = $this->data[$key];
|
92 |
-
|
93 |
-
$this->update($r);
|
94 |
-
|
95 |
-
return true;
|
96 |
}
|
97 |
|
98 |
/**
|
99 |
* Update raw data
|
100 |
*
|
101 |
* @param mixed $newdata
|
|
|
102 |
* @return null
|
103 |
*/
|
104 |
-
public function update($newdata) {
|
105 |
-
|
|
|
106 |
|
107 |
-
update_option($this->key, $
|
108 |
}
|
109 |
|
110 |
/**
|
@@ -113,9 +112,7 @@ class scbOptions {
|
|
113 |
* @return null
|
114 |
*/
|
115 |
public function delete() {
|
116 |
-
|
117 |
-
|
118 |
-
delete_option($this->key);
|
119 |
}
|
120 |
|
121 |
|
@@ -124,37 +121,52 @@ class scbOptions {
|
|
124 |
|
125 |
// Add new fields with their default values
|
126 |
function _update_reset() {
|
127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
}
|
129 |
|
130 |
// Get one, more or all fields from an array
|
131 |
-
private function _get($field, $data) {
|
132 |
-
if ( empty($field) )
|
133 |
return $data;
|
134 |
|
135 |
-
if ( is_string($field) )
|
136 |
return $data[$field];
|
137 |
|
138 |
foreach ( $field as $key )
|
139 |
-
if ( isset($data[$key]) )
|
140 |
$result[] = $data[$key];
|
141 |
|
142 |
return $result;
|
143 |
}
|
144 |
|
145 |
// Magic method: $options->field
|
146 |
-
function __get($field) {
|
147 |
-
return $this->
|
148 |
}
|
149 |
|
150 |
// Magic method: $options->field = $value
|
151 |
-
function __set($field, $value) {
|
152 |
-
$this->set($field, $value);
|
153 |
}
|
154 |
|
155 |
-
// Magic method: isset($options->field)
|
156 |
-
function __isset($field) {
|
157 |
-
|
|
|
158 |
}
|
159 |
}
|
160 |
|
1 |
<?php
|
2 |
|
3 |
+
// Documentation: http://scribu.net/wordpress/scb-framework/scb-options.html
|
4 |
|
5 |
class scbOptions {
|
|
|
6 |
|
7 |
protected $key; // the option name
|
8 |
+
|
9 |
+
protected $defaults; // the default value( s )
|
10 |
|
11 |
public $wp_filter_id; // used by WP hooks
|
12 |
|
15 |
*
|
16 |
* @param string $key Option name
|
17 |
* @param string $file Reference to main plugin file
|
18 |
+
* @param array $defaults An associative array of default values ( optional )
|
19 |
*/
|
20 |
+
public function __construct( $key, $file, $defaults = '' ) {
|
21 |
$this->key = $key;
|
22 |
$this->defaults = $defaults;
|
|
|
23 |
|
24 |
+
scbUtil::add_activation_hook( $file, array( $this, '_update_reset' ) );
|
|
|
25 |
|
26 |
+
scbUtil::add_uninstall_hook( $file, array( $this, 'delete' ) );
|
27 |
+
}
|
28 |
|
29 |
+
/**
|
30 |
+
* Get option name
|
31 |
+
*/
|
32 |
+
public function get_key() {
|
33 |
+
return $this->key;
|
34 |
}
|
35 |
|
36 |
/**
|
37 |
* Get option values for one, many or all fields
|
38 |
*
|
39 |
+
* @param string|array $field The field( s ) to get
|
40 |
* @return mixed Whatever is in those fields
|
41 |
*/
|
42 |
+
public function get( $field = '' ) {
|
43 |
+
$data = get_option( $this->key );
|
44 |
+
|
45 |
+
if ( is_array( $this->defaults ) )
|
46 |
+
$data = ( array ) $data;
|
47 |
+
|
48 |
+
return $this->_get( $field, $data );
|
49 |
}
|
50 |
|
51 |
/**
|
52 |
* Get default values for one, many or all fields
|
53 |
*
|
54 |
+
* @param string|array $field The field( s ) to get
|
55 |
* @return mixed Whatever is in those fields
|
56 |
*/
|
57 |
+
public function get_defaults( $field = '' ) {
|
58 |
+
return $this->_get( $field, $this->defaults );
|
59 |
}
|
60 |
|
61 |
/**
|
62 |
* Set all data fields, certain fields or a single field
|
63 |
*
|
64 |
* @param string|array $field The field to update or an associative array
|
65 |
+
* @param mixed $value The new value ( ignored if $field is array )
|
66 |
* @return null
|
67 |
*/
|
68 |
+
public function set( $field, $value = '' ) {
|
69 |
+
if ( is_array( $field ) )
|
70 |
$newdata = $field;
|
71 |
else
|
72 |
+
$newdata = array( $field => $value );
|
73 |
|
74 |
+
$this->update( array_merge( $this->get(), $newdata ) );
|
75 |
}
|
76 |
|
77 |
/**
|
80 |
* @return null
|
81 |
*/
|
82 |
public function reset() {
|
83 |
+
$this->update( $this->defaults, false );
|
84 |
}
|
85 |
|
86 |
/**
|
89 |
* @return bool
|
90 |
*/
|
91 |
public function cleanup() {
|
92 |
+
$this->update( $this->_clean( $this->get() ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
}
|
94 |
|
95 |
/**
|
96 |
* Update raw data
|
97 |
*
|
98 |
* @param mixed $newdata
|
99 |
+
* @param bool $clean wether to remove unrecognized keys or not
|
100 |
* @return null
|
101 |
*/
|
102 |
+
public function update( $newdata, $clean = true ) {
|
103 |
+
if ( $clean )
|
104 |
+
$newdata = $this->_clean( $newdata );
|
105 |
|
106 |
+
update_option( $this->key, $newdata );
|
107 |
}
|
108 |
|
109 |
/**
|
112 |
* @return null
|
113 |
*/
|
114 |
public function delete() {
|
115 |
+
delete_option( $this->key );
|
|
|
|
|
116 |
}
|
117 |
|
118 |
|
121 |
|
122 |
// Add new fields with their default values
|
123 |
function _update_reset() {
|
124 |
+
if ( is_array( $this->defaults ) )
|
125 |
+
$this->update( array_merge( $this->defaults, $this->get() ) );
|
126 |
+
else
|
127 |
+
add_option( $this->key, $this->defaults );
|
128 |
+
}
|
129 |
+
|
130 |
+
private function _clean( $data ) {
|
131 |
+
if ( !is_array( $data ) || !is_array( $this->defaults ) )
|
132 |
+
return $data;
|
133 |
+
|
134 |
+
$r = array();
|
135 |
+
foreach ( array_keys( $this->defaults ) as $key )
|
136 |
+
$r[$key] = @$data[$key];
|
137 |
+
|
138 |
+
return $r;
|
139 |
}
|
140 |
|
141 |
// Get one, more or all fields from an array
|
142 |
+
private function &_get( $field, $data ) {
|
143 |
+
if ( empty( $field ) )
|
144 |
return $data;
|
145 |
|
146 |
+
if ( is_string( $field ) )
|
147 |
return $data[$field];
|
148 |
|
149 |
foreach ( $field as $key )
|
150 |
+
if ( isset( $data[$key] ) )
|
151 |
$result[] = $data[$key];
|
152 |
|
153 |
return $result;
|
154 |
}
|
155 |
|
156 |
// Magic method: $options->field
|
157 |
+
function __get( $field ) {
|
158 |
+
return $this->get( $field );
|
159 |
}
|
160 |
|
161 |
// Magic method: $options->field = $value
|
162 |
+
function __set( $field, $value ) {
|
163 |
+
$this->set( $field, $value );
|
164 |
}
|
165 |
|
166 |
+
// Magic method: isset( $options->field )
|
167 |
+
function __isset( $field ) {
|
168 |
+
$data = $this->get();
|
169 |
+
return isset( $data[$field] );
|
170 |
}
|
171 |
}
|
172 |
|
scb/QueryManipulation.php
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class scbQueryManipulation {
|
4 |
+
|
5 |
+
private $bits = array();
|
6 |
+
private $wp_query;
|
7 |
+
|
8 |
+
private static $filters = array(
|
9 |
+
'posts_where',
|
10 |
+
'posts_join',
|
11 |
+
'posts_groupby',
|
12 |
+
'posts_orderby',
|
13 |
+
'posts_distinct',
|
14 |
+
'post_limits',
|
15 |
+
'posts_fields'
|
16 |
+
);
|
17 |
+
|
18 |
+
public function __construct( $callback, $once = true ) {
|
19 |
+
$this->callback = $callback;
|
20 |
+
|
21 |
+
$this->enable();
|
22 |
+
|
23 |
+
if ( !$once )
|
24 |
+
return;
|
25 |
+
|
26 |
+
add_filter( 'posts_request', array( $this, '_disable' ) );
|
27 |
+
}
|
28 |
+
|
29 |
+
function _disable( $request ) {
|
30 |
+
remove_filter( 'posts_request', array( $this, '_disable' ) );
|
31 |
+
|
32 |
+
$this->disable();
|
33 |
+
|
34 |
+
return $request;
|
35 |
+
}
|
36 |
+
|
37 |
+
public function enable() {
|
38 |
+
foreach ( self::$filters as $filter ) {
|
39 |
+
add_filter( $filter, array( $this, 'collect' ), 999, 2 );
|
40 |
+
add_filter( $filter . '_request' , array( $this, 'update' ), 9 );
|
41 |
+
}
|
42 |
+
|
43 |
+
add_action( 'posts_selection' , array( $this, 'alter' ) );
|
44 |
+
}
|
45 |
+
|
46 |
+
public function disable() {
|
47 |
+
foreach ( self::$filters as $filter ) {
|
48 |
+
remove_filter( $filter, array( $this, 'collect' ), 999, 2 );
|
49 |
+
remove_filter( $filter . '_request' , array( $this, 'update' ), 9 );
|
50 |
+
}
|
51 |
+
|
52 |
+
remove_action( 'posts_selection' , array( $this, 'alter' ) );
|
53 |
+
}
|
54 |
+
|
55 |
+
function collect( $value, $wp_query ) {
|
56 |
+
// remove 'posts_'
|
57 |
+
$key = explode( '_', current_filter() );
|
58 |
+
$key = array_slice( $key, 1 );
|
59 |
+
$key = implode( '_', $key );
|
60 |
+
|
61 |
+
$this->bits[ $key ] = $value;
|
62 |
+
|
63 |
+
$this->wp_query = $wp_query;
|
64 |
+
|
65 |
+
return $value;
|
66 |
+
}
|
67 |
+
|
68 |
+
function alter( $query ) {
|
69 |
+
$this->bits = call_user_func( $this->callback, $this->bits, $this->wp_query );
|
70 |
+
}
|
71 |
+
|
72 |
+
function update( $value ) {
|
73 |
+
// remove 'posts_' and '_request'
|
74 |
+
$key = explode( '_', current_filter() );
|
75 |
+
$key = array_slice( $key, 1, -1 );
|
76 |
+
$key = implode( '_', $key );
|
77 |
+
|
78 |
+
return $this->bits[ $key ];
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
scb/Table.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// Takes care of creating, updating and deleting database tables
|
4 |
+
class scbTable {
|
5 |
+
protected $name;
|
6 |
+
protected $columns;
|
7 |
+
protected $upgrade_method;
|
8 |
+
|
9 |
+
function __construct( $name, $file, $columns, $upgrade_method = 'dbDelta' ) {
|
10 |
+
global $wpdb;
|
11 |
+
|
12 |
+
$this->name = $wpdb->$name = $wpdb->prefix . $name;
|
13 |
+
$this->columns = $columns;
|
14 |
+
$this->upgrade_method = $upgrade_method;
|
15 |
+
|
16 |
+
scbUtil::add_activation_hook( $file, array( $this, 'install' ) );
|
17 |
+
scbUtil::add_uninstall_hook( $file, array( $this, 'uninstall' ) );
|
18 |
+
}
|
19 |
+
|
20 |
+
function install() {
|
21 |
+
global $wpdb;
|
22 |
+
|
23 |
+
$charset_collate = '';
|
24 |
+
if ( $wpdb->has_cap( 'collation' ) ) {
|
25 |
+
if ( ! empty( $wpdb->charset ) )
|
26 |
+
$charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
|
27 |
+
if ( ! empty( $wpdb->collate ) )
|
28 |
+
$charset_collate .= " COLLATE $wpdb->collate";
|
29 |
+
}
|
30 |
+
|
31 |
+
if ( 'dbDelta' == $this->upgrade_method ) {
|
32 |
+
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|
33 |
+
dbDelta( "CREATE TABLE $this->name ( $this->columns ) $charset_collate" );
|
34 |
+
return;
|
35 |
+
}
|
36 |
+
|
37 |
+
if ( 'delete_first' == $this->upgrade_method )
|
38 |
+
$wpdb->query( "DROP TABLE IF EXISTS $this->name;" );
|
39 |
+
|
40 |
+
$wpdb->query( "CREATE TABLE IF NOT EXISTS $this->name ( $this->columns ) $charset_collate;" );
|
41 |
+
}
|
42 |
+
|
43 |
+
function uninstall() {
|
44 |
+
global $wpdb;
|
45 |
+
|
46 |
+
$wpdb->query( "DROP TABLE IF EXISTS $this->name" );
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
scb/Util.php
CHANGED
@@ -1,55 +1,79 @@
|
|
1 |
<?php
|
2 |
|
3 |
class scbUtil {
|
|
|
4 |
// Force script enqueue
|
5 |
-
static function do_scripts($handles) {
|
6 |
global $wp_scripts;
|
7 |
|
8 |
-
if ( ! is_a($wp_scripts, 'WP_Scripts') )
|
9 |
$wp_scripts = new WP_Scripts();
|
10 |
|
11 |
-
$wp_scripts->do_items((array) $handles);
|
12 |
}
|
13 |
|
14 |
// Force style enqueue
|
15 |
-
static function do_styles($handles) {
|
16 |
-
self::do_scripts('jquery');
|
17 |
|
18 |
global $wp_styles;
|
19 |
|
20 |
-
if ( ! is_a($wp_styles, 'WP_Styles') )
|
21 |
$wp_styles = new WP_Styles();
|
22 |
|
23 |
ob_start();
|
24 |
-
$wp_styles->do_items((array) $handles);
|
25 |
-
$content = str_replace(array('"', "\n"), array("'", ''), ob_get_clean());
|
26 |
|
27 |
echo "<script type='text/javascript'>\n";
|
28 |
-
echo "jQuery(document).ready(function($) {\n";
|
29 |
-
echo "$('head').prepend(\"$content\");\n";
|
30 |
-
echo "});\n";
|
31 |
echo "</script>";
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
// Extract certain $keys from $array
|
35 |
-
static function array_extract($array, $keys) {
|
36 |
$r = array();
|
37 |
|
38 |
foreach ( $keys as $key )
|
39 |
-
if ( array_key_exists($key, $array) )
|
40 |
$r[$key] = $array[$key];
|
41 |
|
42 |
return $r;
|
43 |
}
|
44 |
|
45 |
// Extract a certain value from a list of arrays
|
46 |
-
static function array_pluck($array, $key) {
|
47 |
$r = array();
|
48 |
|
49 |
foreach ( $array as $value ) {
|
50 |
-
if ( is_object($value) )
|
51 |
-
$value = get_object_vars($value);
|
52 |
-
if ( array_key_exists($key, $value) )
|
53 |
$r[] = $value[$key];
|
54 |
}
|
55 |
|
@@ -57,7 +81,7 @@ class scbUtil {
|
|
57 |
}
|
58 |
|
59 |
// Transform a list of objects into an associative array
|
60 |
-
static function objects_to_assoc($objects, $key, $value) {
|
61 |
$r = array();
|
62 |
|
63 |
foreach ( $objects as $obj )
|
@@ -67,31 +91,24 @@ class scbUtil {
|
|
67 |
}
|
68 |
|
69 |
// Prepare an array for an IN statement
|
70 |
-
static function array_to_sql($values) {
|
71 |
foreach ( $values as &$val )
|
72 |
-
$val = "'" . esc_sql(trim($val)) . "'";
|
73 |
-
|
74 |
-
return implode(',', $values);
|
75 |
-
}
|
76 |
-
|
77 |
-
// Have more than one uninstall hooks; also prevents an UPDATE query on each page load
|
78 |
-
static function add_uninstall_hook($plugin, $callback) {
|
79 |
-
register_uninstall_hook($plugin, '__return_false'); // dummy
|
80 |
|
81 |
-
|
82 |
}
|
83 |
|
84 |
-
// Example: split_at('</', '<a></a>') => array('<a>', '</a>')
|
85 |
-
static function split_at($delim, $str) {
|
86 |
-
$i = strpos($str, $delim);
|
87 |
|
88 |
if ( false === $i )
|
89 |
return false;
|
90 |
|
91 |
-
$start = substr($str, 0, $i);
|
92 |
-
$finish = substr($str, $i);
|
93 |
|
94 |
-
return array($start, $finish);
|
95 |
}
|
96 |
}
|
97 |
|
@@ -99,51 +116,44 @@ class scbUtil {
|
|
99 |
//_____Minimalist HTML framework_____
|
100 |
|
101 |
|
102 |
-
if ( ! function_exists('html') ):
|
103 |
-
function html($tag, $content = '') {
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
return "<{$tag}>{$content}</{$closing}>";
|
107 |
}
|
108 |
endif;
|
109 |
|
110 |
// Generate an <a> tag
|
111 |
-
if ( ! function_exists('html_link') ):
|
112 |
-
function html_link($url, $title = '') {
|
113 |
-
if ( empty($title) )
|
114 |
$title = $url;
|
115 |
|
116 |
-
return sprintf("<a href='%s'>%s</a>", $url, $title);
|
117 |
}
|
118 |
endif;
|
119 |
|
120 |
|
121 |
//_____Compatibility layer_____
|
122 |
|
123 |
-
|
124 |
-
// WP < 3.0
|
125 |
-
if ( ! function_exists('__return_false') ) :
|
126 |
-
function __return_false() {
|
127 |
-
return false;
|
128 |
-
}
|
129 |
-
endif;
|
130 |
-
|
131 |
-
// WP < ?
|
132 |
-
if ( ! function_exists('__return_true') ) :
|
133 |
-
function __return_true() {
|
134 |
-
return true;
|
135 |
-
}
|
136 |
-
endif;
|
137 |
-
|
138 |
// WP < ?
|
139 |
-
if ( ! function_exists('set_post_field') ) :
|
140 |
-
function set_post_field($field, $value, $post_id) {
|
141 |
global $wpdb;
|
142 |
|
143 |
-
$post_id = absint($post_id);
|
144 |
-
$value = sanitize_post_field($field, $value, $post_id, 'db');
|
145 |
|
146 |
-
return $wpdb->update($wpdb->posts, array($field => $value), array('ID' => $post_id));
|
147 |
}
|
148 |
endif;
|
149 |
|
1 |
<?php
|
2 |
|
3 |
class scbUtil {
|
4 |
+
|
5 |
// Force script enqueue
|
6 |
+
static function do_scripts( $handles ) {
|
7 |
global $wp_scripts;
|
8 |
|
9 |
+
if ( ! is_a( $wp_scripts, 'WP_Scripts' ) )
|
10 |
$wp_scripts = new WP_Scripts();
|
11 |
|
12 |
+
$wp_scripts->do_items( ( array ) $handles );
|
13 |
}
|
14 |
|
15 |
// Force style enqueue
|
16 |
+
static function do_styles( $handles ) {
|
17 |
+
self::do_scripts( 'jquery' );
|
18 |
|
19 |
global $wp_styles;
|
20 |
|
21 |
+
if ( ! is_a( $wp_styles, 'WP_Styles' ) )
|
22 |
$wp_styles = new WP_Styles();
|
23 |
|
24 |
ob_start();
|
25 |
+
$wp_styles->do_items( ( array ) $handles );
|
26 |
+
$content = str_replace( array( '"', "\n" ), array( "'", '' ), ob_get_clean() );
|
27 |
|
28 |
echo "<script type='text/javascript'>\n";
|
29 |
+
echo "jQuery( document ).ready( function( $ ) {\n";
|
30 |
+
echo "$( 'head' ).prepend( \"$content\" );\n";
|
31 |
+
echo "} );\n";
|
32 |
echo "</script>";
|
33 |
}
|
34 |
|
35 |
+
// Enable delayed activation ( to be used with scb_init() )
|
36 |
+
static function add_activation_hook( $plugin, $callback ) {
|
37 |
+
add_action( 'scb_activation_' . plugin_basename( $plugin ), $callback );
|
38 |
+
}
|
39 |
+
|
40 |
+
// Have more than one uninstall hooks; also prevents an UPDATE query on each page load
|
41 |
+
static function add_uninstall_hook( $plugin, $callback ) {
|
42 |
+
register_uninstall_hook( $plugin, '__return_false' ); // dummy
|
43 |
+
|
44 |
+
add_action( 'uninstall_' . plugin_basename( $plugin ), $callback );
|
45 |
+
}
|
46 |
+
|
47 |
+
// Apply a function to each element of a ( nested ) array recursively
|
48 |
+
static function array_map_recursive( $callback, $array ) {
|
49 |
+
array_walk_recursive( $array, array( __CLASS__, 'array_map_recursive_helper' ), $callback );
|
50 |
+
|
51 |
+
return $array;
|
52 |
+
}
|
53 |
+
|
54 |
+
static function array_map_recursive_helper( &$val, $key, $callback ) {
|
55 |
+
$val = call_user_func( $callback, $val );
|
56 |
+
}
|
57 |
+
|
58 |
// Extract certain $keys from $array
|
59 |
+
static function array_extract( $array, $keys ) {
|
60 |
$r = array();
|
61 |
|
62 |
foreach ( $keys as $key )
|
63 |
+
if ( array_key_exists( $key, $array ) )
|
64 |
$r[$key] = $array[$key];
|
65 |
|
66 |
return $r;
|
67 |
}
|
68 |
|
69 |
// Extract a certain value from a list of arrays
|
70 |
+
static function array_pluck( $array, $key ) {
|
71 |
$r = array();
|
72 |
|
73 |
foreach ( $array as $value ) {
|
74 |
+
if ( is_object( $value ) )
|
75 |
+
$value = get_object_vars( $value );
|
76 |
+
if ( array_key_exists( $key, $value ) )
|
77 |
$r[] = $value[$key];
|
78 |
}
|
79 |
|
81 |
}
|
82 |
|
83 |
// Transform a list of objects into an associative array
|
84 |
+
static function objects_to_assoc( $objects, $key, $value ) {
|
85 |
$r = array();
|
86 |
|
87 |
foreach ( $objects as $obj )
|
91 |
}
|
92 |
|
93 |
// Prepare an array for an IN statement
|
94 |
+
static function array_to_sql( $values ) {
|
95 |
foreach ( $values as &$val )
|
96 |
+
$val = "'" . esc_sql( trim( $val ) ) . "'";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
+
return implode( ',', $values );
|
99 |
}
|
100 |
|
101 |
+
// Example: split_at( '</', '<a></a>' ) => array( '<a>', '</a>' )
|
102 |
+
static function split_at( $delim, $str ) {
|
103 |
+
$i = strpos( $str, $delim );
|
104 |
|
105 |
if ( false === $i )
|
106 |
return false;
|
107 |
|
108 |
+
$start = substr( $str, 0, $i );
|
109 |
+
$finish = substr( $str, $i );
|
110 |
|
111 |
+
return array( $start, $finish );
|
112 |
}
|
113 |
}
|
114 |
|
116 |
//_____Minimalist HTML framework_____
|
117 |
|
118 |
|
119 |
+
if ( ! function_exists( 'html' ) ):
|
120 |
+
function html( $tag, $attributes = array(), $content = '' ) {
|
121 |
+
if ( is_array( $attributes ) ) {
|
122 |
+
$closing = $tag;
|
123 |
+
foreach ( $attributes as $key => $value ) {
|
124 |
+
$tag .= ' ' . $key . '="' . esc_attr( $value ) . '"';
|
125 |
+
}
|
126 |
+
} else {
|
127 |
+
$content = $attributes;
|
128 |
+
list( $closing ) = explode(' ', $tag, 2);
|
129 |
+
}
|
130 |
|
131 |
return "<{$tag}>{$content}</{$closing}>";
|
132 |
}
|
133 |
endif;
|
134 |
|
135 |
// Generate an <a> tag
|
136 |
+
if ( ! function_exists( 'html_link' ) ):
|
137 |
+
function html_link( $url, $title = '' ) {
|
138 |
+
if ( empty( $title ) )
|
139 |
$title = $url;
|
140 |
|
141 |
+
return sprintf( "<a href='%s'>%s</a>", esc_url( $url ), $title );
|
142 |
}
|
143 |
endif;
|
144 |
|
145 |
|
146 |
//_____Compatibility layer_____
|
147 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
// WP < ?
|
149 |
+
if ( ! function_exists( 'set_post_field' ) ) :
|
150 |
+
function set_post_field( $field, $value, $post_id ) {
|
151 |
global $wpdb;
|
152 |
|
153 |
+
$post_id = absint( $post_id );
|
154 |
+
$value = sanitize_post_field( $field, $value, $post_id, 'db' );
|
155 |
|
156 |
+
return $wpdb->update( $wpdb->posts, array( $field => $value ), array( 'ID' => $post_id ) );
|
157 |
}
|
158 |
endif;
|
159 |
|
scb/Widget.php
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// Adds compatibility methods between WP_Widget and scbForms
|
4 |
+
|
5 |
+
abstract class scbWidget extends WP_Widget {
|
6 |
+
protected $defaults = array();
|
7 |
+
|
8 |
+
private static $scb_widgets = array();
|
9 |
+
|
10 |
+
static function init( $class, $file = '', $base = '' ) {
|
11 |
+
self::$scb_widgets[] = $class;
|
12 |
+
|
13 |
+
add_action( 'widgets_init', array( __CLASS__, '_scb_register' ) );
|
14 |
+
|
15 |
+
// for auto-uninstall
|
16 |
+
if ( $file && $base && class_exists( 'scbOptions' ) )
|
17 |
+
new scbOptions( "widget_$base", $file );
|
18 |
+
}
|
19 |
+
|
20 |
+
static function _scb_register() {
|
21 |
+
foreach ( self::$scb_widgets as $widget )
|
22 |
+
register_widget( $widget );
|
23 |
+
}
|
24 |
+
|
25 |
+
// A pre-filled method, for convenience
|
26 |
+
function widget( $args, $instance ) {
|
27 |
+
$instance = wp_parse_args( $instance, $this->defaults );
|
28 |
+
|
29 |
+
extract( $args );
|
30 |
+
|
31 |
+
echo $before_widget;
|
32 |
+
|
33 |
+
$title = apply_filters( 'widget_title', isset( $instance['title'] ) ? $instance['title'] : '', $instance, $this->id_base );
|
34 |
+
|
35 |
+
if ( ! empty( $title ) )
|
36 |
+
echo $before_title . $title . $after_title;
|
37 |
+
|
38 |
+
$this->content( $instance );
|
39 |
+
|
40 |
+
echo $after_widget;
|
41 |
+
}
|
42 |
+
|
43 |
+
// This is where the actual widget content goes
|
44 |
+
function content( $instance ) {}
|
45 |
+
|
46 |
+
|
47 |
+
//_____HELPER METHODS_____
|
48 |
+
|
49 |
+
|
50 |
+
// See scbForms::input()
|
51 |
+
// Allows extra parameter $args['title']
|
52 |
+
protected function input( $args, $formdata = array() ) {
|
53 |
+
// Add default class
|
54 |
+
if ( !isset( $args['extra'] ) )
|
55 |
+
$args['extra'] = 'class="regular-text"';
|
56 |
+
|
57 |
+
// Add default label position
|
58 |
+
if ( !in_array( $args['type'], array( 'checkbox', 'radio' ) ) && empty( $args['desc_pos'] ) )
|
59 |
+
$args['desc_pos'] = 'before';
|
60 |
+
|
61 |
+
// Then add prefix to names and formdata
|
62 |
+
$new_formdata = array();
|
63 |
+
foreach ( ( array ) $args['name'] as $name )
|
64 |
+
$new_formdata[$this->scb_get_field_name( $name )] = @$formdata[$name];
|
65 |
+
$new_names = array_keys( $new_formdata );
|
66 |
+
|
67 |
+
// Finally, replace the old names
|
68 |
+
if ( 1 == count( $new_names ) )
|
69 |
+
$args['name'] = $new_names[0];
|
70 |
+
else
|
71 |
+
$args['name'] = $new_names;
|
72 |
+
|
73 |
+
return scbForms::input( $args, $new_formdata );
|
74 |
+
}
|
75 |
+
|
76 |
+
|
77 |
+
//_____INTERNAL METHODS_____
|
78 |
+
|
79 |
+
|
80 |
+
private function scb_get_field_name( $name ) {
|
81 |
+
if ( $split = scbUtil::split_at( '[', $name ) )
|
82 |
+
list( $basename, $extra ) = $split;
|
83 |
+
else
|
84 |
+
return $this->get_field_name( $name );
|
85 |
+
|
86 |
+
return str_replace( '[]', '', $this->get_field_name( $basename ) ) . $extra;
|
87 |
+
}
|
88 |
+
}
|
89 |
+
|
scb/load.php
CHANGED
@@ -1,77 +1,85 @@
|
|
1 |
<?php
|
2 |
-
/*
|
3 |
-
To load scbFramework, you just need to add this line at the beginning of your plugin:
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
7 |
|
8 |
-
if ( !class_exists('
|
9 |
-
class
|
10 |
|
11 |
private static $candidates;
|
|
|
|
|
|
|
12 |
private static $loaded;
|
13 |
|
14 |
-
static function init(
|
15 |
-
$
|
16 |
-
|
17 |
-
self::$candidates[$rev] = $dir;
|
18 |
|
19 |
-
self
|
|
|
20 |
|
21 |
-
|
22 |
-
|
23 |
|
24 |
-
|
25 |
-
|
26 |
|
27 |
-
|
|
|
|
|
28 |
|
29 |
-
|
|
|
30 |
|
31 |
-
$
|
32 |
-
|
33 |
-
$plugin_dir = dirname($plugin);
|
34 |
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
37 |
break;
|
38 |
}
|
39 |
-
|
40 |
|
41 |
-
|
42 |
-
|
43 |
|
44 |
-
|
45 |
-
array_unshift($current, $plugin);
|
46 |
|
47 |
-
|
48 |
-
}
|
49 |
|
50 |
-
|
51 |
-
|
52 |
-
if ( class_exists($class_name) )
|
53 |
continue;
|
54 |
-
|
55 |
-
$fpath = $path . substr($class_name, 3) . '.php';
|
56 |
-
|
57 |
-
if ( file_exists($fpath) ) {
|
58 |
-
self::$loaded[$class_name] = $fpath;
|
59 |
include $fpath;
|
|
|
60 |
}
|
61 |
}
|
|
|
|
|
|
|
|
|
62 |
}
|
63 |
|
64 |
static function get_info() {
|
65 |
-
|
66 |
|
67 |
-
return array(self::$loaded, self::$candidates);
|
68 |
}
|
69 |
}
|
70 |
endif;
|
71 |
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
|
1 |
<?php
|
|
|
|
|
2 |
|
3 |
+
$GLOBALS['_scb_data'] = array( 24, __FILE__, array(
|
4 |
+
'scbUtil', 'scbOptions', 'scbForms', 'scbTable',
|
5 |
+
'scbWidget', 'scbAdminPage', 'scbBoxesPage',
|
6 |
+
'scbQueryManipulation', 'scbCron',
|
7 |
+
) );
|
8 |
|
9 |
+
if ( !class_exists( 'scbLoad4' ) ) :
|
10 |
+
class scbLoad4 {
|
11 |
|
12 |
private static $candidates;
|
13 |
+
private static $classes;
|
14 |
+
private static $callbacks = array();
|
15 |
+
|
16 |
private static $loaded;
|
17 |
|
18 |
+
static function init( $callback = '' ) {
|
19 |
+
list( $rev, $file, $classes ) = $GLOBALS['_scb_data'];
|
|
|
|
|
20 |
|
21 |
+
self::$candidates[$file] = $rev;
|
22 |
+
self::$classes[$file] = $classes;
|
23 |
|
24 |
+
if ( !empty( $callback ) ) {
|
25 |
+
self::$callbacks[$file] = $callback;
|
26 |
|
27 |
+
add_action( 'activate_plugin', array( __CLASS__, 'delayed_activation' ) );
|
28 |
+
}
|
29 |
|
30 |
+
// TODO: don't load when activating a plugin ?
|
31 |
+
add_action( 'plugins_loaded', array( __CLASS__, 'load' ), 10, 0 );
|
32 |
+
}
|
33 |
|
34 |
+
static function delayed_activation( $plugin ) {
|
35 |
+
$plugin_dir = dirname( $plugin );
|
36 |
|
37 |
+
if ( '.' == $plugin_dir )
|
38 |
+
return;
|
|
|
39 |
|
40 |
+
foreach ( self::$callbacks as $file => $callback )
|
41 |
+
if ( plugin_basename( dirname( dirname( $file ) ) ) == $plugin_dir ) {
|
42 |
+
self::load( false );
|
43 |
+
call_user_func( $callback );
|
44 |
+
do_action( 'scb_activation_' . $plugin );
|
45 |
break;
|
46 |
}
|
47 |
+
}
|
48 |
|
49 |
+
static function load( $do_callbacks = true ) {
|
50 |
+
arsort( self::$candidates );
|
51 |
|
52 |
+
$file = key( self::$candidates );
|
|
|
53 |
|
54 |
+
$path = dirname( $file ) . '/';
|
|
|
55 |
|
56 |
+
foreach ( self::$classes[$file] as $class_name ) {
|
57 |
+
if ( class_exists( $class_name ) )
|
|
|
58 |
continue;
|
59 |
+
|
60 |
+
$fpath = $path . substr( $class_name, 3 ) . '.php';
|
61 |
+
if ( file_exists( $fpath ) ) {
|
|
|
|
|
62 |
include $fpath;
|
63 |
+
self::$loaded[] = $fpath;
|
64 |
}
|
65 |
}
|
66 |
+
|
67 |
+
if ( $do_callbacks )
|
68 |
+
foreach ( self::$callbacks as $callback )
|
69 |
+
call_user_func( $callback );
|
70 |
}
|
71 |
|
72 |
static function get_info() {
|
73 |
+
arsort( self::$candidates );
|
74 |
|
75 |
+
return array( self::$loaded, self::$candidates );
|
76 |
}
|
77 |
}
|
78 |
endif;
|
79 |
|
80 |
+
if ( !function_exists( 'scb_init' ) ) :
|
81 |
+
function scb_init( $callback = '' ) {
|
82 |
+
scbLoad4::init( $callback );
|
83 |
+
}
|
84 |
+
endif;
|
85 |
|
wp-pagenavi.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP-PageNavi
|
4 |
-
Version: 2.
|
5 |
Description: Adds a more advanced paging navigation to your WordPress blog
|
6 |
Author: Lester 'GaMerZ' Chan & scribu
|
7 |
Plugin URI: http://wordpress.org/extend/plugins/wp-pagenavi/
|
@@ -9,12 +9,12 @@ Text Domain: wp-pagenavi
|
|
9 |
Domain Path: /lang
|
10 |
|
11 |
|
12 |
-
Copyright 2009 Lester Chan (email : lesterchan@gmail.com)
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License as published by
|
16 |
the Free Software Foundation; either version 2 of the License, or
|
17 |
-
(at your option) any later version.
|
18 |
|
19 |
This program is distributed in the hope that it will be useful,
|
20 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
@@ -26,224 +26,37 @@ along with this program; if not, write to the Free Software
|
|
26 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
27 |
*/
|
28 |
|
29 |
-
|
30 |
-
function wp_pagenavi($before = '', $after = '') {
|
31 |
-
global $wp_query;
|
32 |
-
|
33 |
-
$options = PageNavi_Core::$options->get();
|
34 |
-
|
35 |
-
$posts_per_page = intval(get_query_var('posts_per_page'));
|
36 |
-
$paged = intval(get_query_var('paged'));
|
37 |
-
|
38 |
-
$request = $wp_query->request;
|
39 |
-
$numposts = $wp_query->found_posts;
|
40 |
-
$max_page = $wp_query->max_num_pages;
|
41 |
-
|
42 |
-
if ( $max_page <= 1 && !intval($options['always_show']) )
|
43 |
-
return;
|
44 |
-
|
45 |
-
if ( empty($paged) )
|
46 |
-
$paged = 1;
|
47 |
-
|
48 |
-
$pages_to_show = intval($options['num_pages']);
|
49 |
-
$larger_page_to_show = intval($options['num_larger_page_numbers']);
|
50 |
-
$larger_page_multiple = intval($options['larger_page_numbers_multiple']);
|
51 |
-
$pages_to_show_minus_1 = $pages_to_show - 1;
|
52 |
-
$half_page_start = floor($pages_to_show_minus_1/2);
|
53 |
-
$half_page_end = ceil($pages_to_show_minus_1/2);
|
54 |
-
$start_page = $paged - $half_page_start;
|
55 |
-
|
56 |
-
if ( $start_page <= 0 )
|
57 |
-
$start_page = 1;
|
58 |
-
|
59 |
-
$end_page = $paged + $half_page_end;
|
60 |
-
|
61 |
-
if ( ($end_page - $start_page) != $pages_to_show_minus_1 )
|
62 |
-
$end_page = $start_page + $pages_to_show_minus_1;
|
63 |
-
|
64 |
-
if ( $end_page > $max_page ) {
|
65 |
-
$start_page = $max_page - $pages_to_show_minus_1;
|
66 |
-
$end_page = $max_page;
|
67 |
-
}
|
68 |
-
|
69 |
-
if ( $start_page <= 0 )
|
70 |
-
$start_page = 1;
|
71 |
-
|
72 |
-
$out = '';
|
73 |
-
switch ( intval($options['style']) ) {
|
74 |
-
// Normal
|
75 |
-
case 1:
|
76 |
-
if ( !empty($options['pages_text']) ) {
|
77 |
-
$pages_text = str_replace(
|
78 |
-
array("%CURRENT_PAGE%", "%TOTAL_PAGES%"),
|
79 |
-
array(number_format_i18n($paged), number_format_i18n($max_page)),
|
80 |
-
$options['pages_text']);
|
81 |
-
$out .= "<span class='pages'>$pages_text</span>";
|
82 |
-
}
|
83 |
-
|
84 |
-
if ( $start_page >= 2 && $pages_to_show < $max_page ) {
|
85 |
-
$first_text = str_replace('%TOTAL_PAGES%', number_format_i18n($max_page), $options['first_text']);
|
86 |
-
$out .= _wp_pagenavi_single(1, 'first', $first_text, '%TOTAL_PAGES%');
|
87 |
-
|
88 |
-
if ( !empty($options['dotleft_text']) )
|
89 |
-
$out .= "<span class='extend'>{$options['dotleft_text']}</span>";
|
90 |
-
}
|
91 |
-
|
92 |
-
$larger_pages_array = array();
|
93 |
-
if ( $larger_page_multiple )
|
94 |
-
for ( $i = $larger_page_multiple; $i <= $max_page; $i += $larger_page_multiple )
|
95 |
-
$larger_pages_array[] = $i;
|
96 |
-
|
97 |
-
$larger_page_start = 0;
|
98 |
-
foreach ( $larger_pages_array as $larger_page ) {
|
99 |
-
if ( $larger_page < $start_page && $larger_page_start < $larger_page_to_show ) {
|
100 |
-
$out .= _wp_pagenavi_single($larger_page, 'smaller page', $options['page_text']);
|
101 |
-
$larger_page_start++;
|
102 |
-
}
|
103 |
-
}
|
104 |
-
|
105 |
-
if ( !empty($options['prev_text']) )
|
106 |
-
$out .= get_previous_posts_link($options['prev_text']);
|
107 |
-
|
108 |
-
for ( $i = $start_page; $i <= $end_page; $i++) {
|
109 |
-
if ( $i == $paged && !empty($options['current_text']) ) {
|
110 |
-
$current_page_text = str_replace('%PAGE_NUMBER%', number_format_i18n($i), $options['current_text']);
|
111 |
-
$out .= "<span class='current'>$current_page_text</span>";
|
112 |
-
} else {
|
113 |
-
$out .= _wp_pagenavi_single($i, 'page', $options['page_text']);
|
114 |
-
}
|
115 |
-
}
|
116 |
-
|
117 |
-
if ( !empty($options['next_text']) )
|
118 |
-
$out .= get_next_posts_link($options['next_text'], $max_page);
|
119 |
-
|
120 |
-
$larger_page_end = 0;
|
121 |
-
foreach ( $larger_pages_array as $larger_page ) {
|
122 |
-
if ( $larger_page > $end_page && $larger_page_end < $larger_page_to_show ) {
|
123 |
-
$out .= _wp_pagenavi_single($larger_page, 'larger page', $options['page_text']);
|
124 |
-
$larger_page_end++;
|
125 |
-
}
|
126 |
-
}
|
127 |
-
|
128 |
-
if ( $end_page < $max_page ) {
|
129 |
-
if ( !empty($options['dotright_text']) )
|
130 |
-
$out .= "<span class='extend'>{$options['dotright_text']}</span>";
|
131 |
-
|
132 |
-
$out .= _wp_pagenavi_single($max_page, 'last', $options['last_text'], '%TOTAL_PAGES%');
|
133 |
-
}
|
134 |
-
break;
|
135 |
-
|
136 |
-
// Dropdown
|
137 |
-
case 2:
|
138 |
-
$out .= '<form action="" method="get">'."\n";
|
139 |
-
$out .= '<select size="1" onchange="document.location.href = this.options[this.selectedIndex].value;">'."\n";
|
140 |
-
|
141 |
-
for ( $i = 1; $i <= $max_page; $i++ ) {
|
142 |
-
$page_num = $i;
|
143 |
-
if ( $page_num == 1 )
|
144 |
-
$page_num = 0;
|
145 |
-
|
146 |
-
if ( $i == $paged ) {
|
147 |
-
$current_page_text = str_replace('%PAGE_NUMBER%', number_format_i18n($i), $options['current_text']);
|
148 |
-
$out .= '<option value="'.esc_url(get_pagenum_link($page_num)).'" selected="selected" class="current">'.$current_page_text."</option>\n";
|
149 |
-
} else {
|
150 |
-
$page_text = str_replace('%PAGE_NUMBER%', number_format_i18n($i), $options['page_text']);
|
151 |
-
$out .= '<option value="'.esc_url(get_pagenum_link($page_num)).'">'.$page_text."</option>\n";
|
152 |
-
}
|
153 |
-
}
|
154 |
-
|
155 |
-
$out .= "</select>\n";
|
156 |
-
$out .= "</form>\n";
|
157 |
-
break;
|
158 |
-
}
|
159 |
-
$out = $before . "<div class='wp-pagenavi'>\n$out\n</div>" . $after;
|
160 |
-
|
161 |
-
echo apply_filters('wp_pagenavi', $out);
|
162 |
-
}
|
163 |
-
|
164 |
-
function _wp_pagenavi_single($page, $class, $raw_text, $format = '%PAGE_NUMBER%') {
|
165 |
-
if ( empty($raw_text) )
|
166 |
-
return '';
|
167 |
-
|
168 |
-
$text = str_replace($format, number_format_i18n($page), $raw_text);
|
169 |
-
|
170 |
-
return "<a href='" . esc_url(get_pagenum_link($page)) . "' class='$class'>$text</a>";
|
171 |
-
}
|
172 |
-
|
173 |
-
|
174 |
-
### Function: Page Navigation: Drop Down Menu (Deprecated)
|
175 |
-
function wp_pagenavi_dropdown() {
|
176 |
-
wp_pagenavi();
|
177 |
-
}
|
178 |
-
|
179 |
-
|
180 |
-
class PageNavi_Core {
|
181 |
-
static $options;
|
182 |
-
|
183 |
-
function init($options) {
|
184 |
-
self::$options = $options;
|
185 |
-
|
186 |
-
add_action('wp_print_styles', array(__CLASS__, 'stylesheets'));
|
187 |
-
|
188 |
-
add_filter('previous_posts_link_attributes', array(__CLASS__, 'previous_posts_link_attributes'));
|
189 |
-
add_filter('next_posts_link_attributes', array(__CLASS__, 'next_posts_link_attributes'));
|
190 |
-
}
|
191 |
-
|
192 |
-
function stylesheets() {
|
193 |
-
if ( !self::$options->use_pagenavi_css )
|
194 |
-
return;
|
195 |
-
|
196 |
-
if ( @file_exists(STYLESHEETPATH . '/pagenavi-css.css') ) {
|
197 |
-
$css_file = get_stylesheet_directory_uri() . '/pagenavi-css.css';
|
198 |
-
} elseif ( @file_exists(TEMPLATEPATH . '/pagenavi-css.css') ) {
|
199 |
-
$css_file = get_template_directory_uri() . '/pagenavi-css.css';
|
200 |
-
} else {
|
201 |
-
$css_file = plugins_url('pagenavi-css.css', __FILE__);
|
202 |
-
}
|
203 |
-
|
204 |
-
wp_enqueue_style('wp-pagenavi', $css_file, false, '2.70');
|
205 |
-
}
|
206 |
-
|
207 |
-
function previous_posts_link_attributes() {
|
208 |
-
return 'class="previouspostslink"';
|
209 |
-
}
|
210 |
-
|
211 |
-
function next_posts_link_attributes() {
|
212 |
-
return 'class="nextpostslink"';
|
213 |
-
}
|
214 |
-
}
|
215 |
-
|
216 |
|
217 |
function _pagenavi_init() {
|
218 |
-
|
219 |
-
require dirname(__FILE__) . '/scb/load.php';
|
220 |
|
221 |
-
|
222 |
|
223 |
-
$options = new scbOptions('pagenavi_options', __FILE__, array(
|
224 |
-
'pages_text' => __('Page %CURRENT_PAGE% of %TOTAL_PAGES%', 'wp-pagenavi'),
|
225 |
'current_text' => '%PAGE_NUMBER%',
|
226 |
'page_text' => '%PAGE_NUMBER%',
|
227 |
-
'first_text' => __('« First', 'wp-pagenavi'),
|
228 |
-
'last_text' => __('Last »', 'wp-pagenavi'),
|
229 |
-
'prev_text' => __('«', 'wp-pagenavi'),
|
230 |
-
'next_text' => __('»', 'wp-pagenavi'),
|
231 |
-
'dotleft_text' => __('...', 'wp-pagenavi'),
|
232 |
-
'dotright_text' => __('...', 'wp-pagenavi'),
|
233 |
'num_pages' => 5,
|
234 |
'num_larger_page_numbers' => 3,
|
235 |
'larger_page_numbers_multiple' => 10,
|
236 |
'always_show' => false,
|
237 |
'use_pagenavi_css' => true,
|
238 |
'style' => 1,
|
239 |
-
));
|
240 |
|
241 |
-
PageNavi_Core::init($options);
|
242 |
|
243 |
if ( is_admin() ) {
|
244 |
-
require_once dirname(__FILE__) . '/admin.php';
|
245 |
-
new PageNavi_Options_Page(__FILE__, $options);
|
246 |
}
|
247 |
}
|
248 |
-
_pagenavi_init
|
249 |
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP-PageNavi
|
4 |
+
Version: 2.73
|
5 |
Description: Adds a more advanced paging navigation to your WordPress blog
|
6 |
Author: Lester 'GaMerZ' Chan & scribu
|
7 |
Plugin URI: http://wordpress.org/extend/plugins/wp-pagenavi/
|
9 |
Domain Path: /lang
|
10 |
|
11 |
|
12 |
+
Copyright 2009 Lester Chan ( email : lesterchan@gmail.com )
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License as published by
|
16 |
the Free Software Foundation; either version 2 of the License, or
|
17 |
+
( at your option ) any later version.
|
18 |
|
19 |
This program is distributed in the hope that it will be useful,
|
20 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
26 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
27 |
*/
|
28 |
|
29 |
+
require dirname( __FILE__ ) . '/scb/load.php';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
function _pagenavi_init() {
|
32 |
+
load_plugin_textdomain( 'wp-pagenavi', '', dirname( plugin_basename( __FILE__ ) ) . '/lang' );
|
|
|
33 |
|
34 |
+
require_once dirname( __FILE__ ) . '/core.php';
|
35 |
|
36 |
+
$options = new scbOptions( 'pagenavi_options', __FILE__, array(
|
37 |
+
'pages_text' => __( 'Page %CURRENT_PAGE% of %TOTAL_PAGES%', 'wp-pagenavi' ),
|
38 |
'current_text' => '%PAGE_NUMBER%',
|
39 |
'page_text' => '%PAGE_NUMBER%',
|
40 |
+
'first_text' => __( '« First', 'wp-pagenavi' ),
|
41 |
+
'last_text' => __( 'Last »', 'wp-pagenavi' ),
|
42 |
+
'prev_text' => __( '«', 'wp-pagenavi' ),
|
43 |
+
'next_text' => __( '»', 'wp-pagenavi' ),
|
44 |
+
'dotleft_text' => __( '...', 'wp-pagenavi' ),
|
45 |
+
'dotright_text' => __( '...', 'wp-pagenavi' ),
|
46 |
'num_pages' => 5,
|
47 |
'num_larger_page_numbers' => 3,
|
48 |
'larger_page_numbers_multiple' => 10,
|
49 |
'always_show' => false,
|
50 |
'use_pagenavi_css' => true,
|
51 |
'style' => 1,
|
52 |
+
) );
|
53 |
|
54 |
+
PageNavi_Core::init( $options );
|
55 |
|
56 |
if ( is_admin() ) {
|
57 |
+
require_once dirname( __FILE__ ) . '/admin.php';
|
58 |
+
new PageNavi_Options_Page( __FILE__, $options );
|
59 |
}
|
60 |
}
|
61 |
+
scb_init( '_pagenavi_init' );
|
62 |
|