WP-PageNavi - Version 2.82

Version Description

  • fixed prev/next links not appearing in some conditions
  • added Hebrew, Georgian and Azerbaijani translations
  • updated scbFramework
Download this release

Release Info

Developer scribu
Plugin Icon WP-PageNavi
Version 2.82
Comparing to
See all releases

Code changes from version 2.81 to 2.82

core.php CHANGED
@@ -77,11 +77,13 @@ function wp_pagenavi( $args = array() ) {
77
  // First
78
  $first_text = str_replace( '%TOTAL_PAGES%', number_format_i18n( $total_pages ), $options['first_text'] );
79
  $out .= $instance->get_single( 1, 'first', $first_text, '%TOTAL_PAGES%' );
 
80
 
81
- // Previous
82
- if ( $paged > 1 && !empty( $options['prev_text'] ) )
83
- $out .= $instance->get_single( $paged - 1, 'previouspostslink', $options['prev_text'] );
84
 
 
85
  if ( !empty( $options['dotleft_text'] ) )
86
  $out .= "<span class='extend'>{$options['dotleft_text']}</span>";
87
  }
@@ -133,11 +135,13 @@ function wp_pagenavi( $args = array() ) {
133
  if ( $end_page < $total_pages ) {
134
  if ( !empty( $options['dotright_text'] ) )
135
  $out .= "<span class='extend'>{$options['dotright_text']}</span>";
 
136
 
137
- // Next
138
- if ( $paged < $total_pages && !empty( $options['next_text'] ) )
139
- $out .= $instance->get_single( $paged + 1, 'nextpostslink', $options['next_text'] );
140
 
 
141
  // Last
142
  $out .= $instance->get_single( $total_pages, 'last', $options['last_text'], '%TOTAL_PAGES%' );
143
  }
77
  // First
78
  $first_text = str_replace( '%TOTAL_PAGES%', number_format_i18n( $total_pages ), $options['first_text'] );
79
  $out .= $instance->get_single( 1, 'first', $first_text, '%TOTAL_PAGES%' );
80
+ }
81
 
82
+ // Previous
83
+ if ( $paged > 1 && !empty( $options['prev_text'] ) )
84
+ $out .= $instance->get_single( $paged - 1, 'previouspostslink', $options['prev_text'] );
85
 
86
+ if ( $start_page >= 2 && $pages_to_show < $total_pages ) {
87
  if ( !empty( $options['dotleft_text'] ) )
88
  $out .= "<span class='extend'>{$options['dotleft_text']}</span>";
89
  }
135
  if ( $end_page < $total_pages ) {
136
  if ( !empty( $options['dotright_text'] ) )
137
  $out .= "<span class='extend'>{$options['dotright_text']}</span>";
138
+ }
139
 
140
+ // Next
141
+ if ( $paged < $total_pages && !empty( $options['next_text'] ) )
142
+ $out .= $instance->get_single( $paged + 1, 'nextpostslink', $options['next_text'] );
143
 
144
+ if ( $end_page < $total_pages ) {
145
  // Last
146
  $out .= $instance->get_single( $total_pages, 'last', $options['last_text'], '%TOTAL_PAGES%' );
147
  }
lang/wp-pagenavi-az_AZ.mo ADDED
Binary file
lang/wp-pagenavi-az_AZ.po ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 2012-01-06 18:05+0400\n"
12
+ "Last-Translator: Zaur <zaurbayramov@hotmail.com>\n"
13
+ "Language-Team: thebayramli <info@bloglayaq.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: Azerbaijani\n"
18
+ "X-Poedit-Country: AZERBAIJAN\n"
19
+ "X-Poedit-SourceCharset: utf-8\n"
20
+ "X-Poedit-Basepath: .\n"
21
+ "X-Poedit-SearchPath-0: __\n"
22
+ "X-Poedit-SearchPath-1: _e\n"
23
+
24
+ #: admin.php:9
25
+ msgid "PageNavi Settings"
26
+ msgstr "PageNavi Tənzimləmələri"
27
+
28
+ #: admin.php:10
29
+ msgid "PageNavi"
30
+ msgstr "PageNavi"
31
+
32
+ #: admin.php:28
33
+ msgid "Text For Number Of Pages"
34
+ msgstr "Səhifələrin Sayı Üçün Mətn"
35
+
36
+ #: admin.php:33
37
+ msgid "The current page number."
38
+ msgstr "Hazırkı səhifə nömrəsi"
39
+
40
+ #: admin.php:34
41
+ #: admin.php:58
42
+ #: admin.php:66
43
+ msgid "The total number of pages."
44
+ msgstr "Toplam səhifələr nömrəsi"
45
+
46
+ #: admin.php:38
47
+ msgid "Text For Current Page"
48
+ msgstr "Hazırkı Səhifə Üçün Mətn"
49
+
50
+ #: admin.php:42
51
+ #: admin.php:50
52
+ msgid "The page number."
53
+ msgstr "Səhifə Nömrəsi"
54
+
55
+ #: admin.php:46
56
+ msgid "Text For Page"
57
+ msgstr "Səhifə Üçün Nömrə"
58
+
59
+ #: admin.php:54
60
+ msgid "Text For First Page"
61
+ msgstr "İlk Səhifə Üçün Mətn"
62
+
63
+ #: admin.php:62
64
+ msgid "Text For Last Page"
65
+ msgstr "Son Səhifə Üçün Mətn"
66
+
67
+ #: admin.php:70
68
+ msgid "Text For Previous Page"
69
+ msgstr "Əvvəlki Səhifə Üçün Mətn"
70
+
71
+ #: admin.php:76
72
+ msgid "Text For Next Page"
73
+ msgstr "Sonrakı Səhifə Üçün Mətn"
74
+
75
+ #: admin.php:82
76
+ msgid "Text For Previous ..."
77
+ msgstr "Əvvəlki Üçün Mətn ..."
78
+
79
+ #: admin.php:88
80
+ msgid "Text For Next ..."
81
+ msgstr "Sonrakı Üçün Mətn ..."
82
+
83
+ #: admin.php:95
84
+ msgid "Page Navigation Text"
85
+ msgstr "Səhifə Naviqasiya Mətni"
86
+
87
+ #: admin.php:96
88
+ msgid "Leaving a field blank will hide that part of the navigation."
89
+ msgstr "Bu sahəni boş qoymaq naviqasiyanın bu hissəsin gizlədəcəkdir."
90
+
91
+ #: admin.php:102
92
+ msgid "Use pagenavi-css.css"
93
+ msgstr "pagenavi-css.css istifadə etmək"
94
+
95
+ #: admin.php:108
96
+ msgid "Page Navigation Style"
97
+ msgstr "Səhifə Naviqasiya Stili"
98
+
99
+ #: admin.php:111
100
+ msgid "Normal"
101
+ msgstr "Normal"
102
+
103
+ #: admin.php:111
104
+ msgid "Drop-down List"
105
+ msgstr "Açılan Siyahı"
106
+
107
+ #: admin.php:116
108
+ msgid "Always Show Page Navigation"
109
+ msgstr "Həmişə Səhifə Naviqasiyasın Göstər"
110
+
111
+ #: admin.php:119
112
+ msgid "Show navigation even if there's only one page."
113
+ msgstr "Bir səhifə olduqda belə naviqasiyanı göstər"
114
+
115
+ #: admin.php:123
116
+ msgid "Number Of Pages To Show"
117
+ msgstr "Göstərmək Üçün Səhifələr Nömrəsi"
118
+
119
+ #: admin.php:130
120
+ msgid "Number Of Larger Page Numbers To Show"
121
+ msgstr "Göstərmək Üçün Böyük Səhifə Nömrələrinin Nömrəsi"
122
+
123
+ #: admin.php:135
124
+ msgid "Larger page numbers are in addition to the normal page numbers. They are useful when there are many pages of posts."
125
+ msgstr "Böyük səhifə nömrələri normal səhifə nömrələrinə əlavə olaraq. Çoxlu post səhifələri olduqda faydalıdır."
126
+
127
+ #: admin.php:136
128
+ msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
129
+ msgstr "Məsələn, WP-PageNavi belə göstərəcək: Səhifələr 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
130
+
131
+ #: admin.php:137
132
+ msgid "Enter 0 to disable."
133
+ msgstr "Qadağan etmək üçün 0 daxil et."
134
+
135
+ #: admin.php:141
136
+ msgid "Show Larger Page Numbers In Multiples Of"
137
+ msgstr "Böyük Səhifə Nömrələrin Çoxsaylı olaraq Göstər"
138
+
139
+ #: admin.php:146
140
+ msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
141
+ msgstr "Məsələn, əgər 5 çoxsaylı olarsa, belə görünəcəkdir: 5, 10, 15, 20, 25"
142
+
143
+ #: admin.php:151
144
+ msgid "Page Navigation Options"
145
+ msgstr "Səhifə Naviqasiya Seçimləri"
146
+
147
+ #: scb/AdminPage.php:167
148
+ msgid "Settings <strong>saved</strong>."
149
+ msgstr "Tənzimləmələr <strong>yaddaşda saxlandı</strong>."
150
+
151
+ #: scb/AdminPage.php:179
152
+ #: scb/AdminPage.php:189
153
+ msgid "Save Changes"
154
+ msgstr "Dəyişiklikləri Yaddaşda Saxla"
155
+
156
+ #: scb/AdminPage.php:371
157
+ msgid "Settings"
158
+ msgstr "Tənzimləmələr"
159
+
160
+ #: wp-pagenavi.php:37
161
+ msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
162
+ msgstr "Səhifə %CURRENT_PAGE% - %TOTAL_PAGES%"
163
+
164
+ #: wp-pagenavi.php:40
165
+ msgid "&laquo; First"
166
+ msgstr "&laquo; İlk"
167
+
168
+ #: wp-pagenavi.php:41
169
+ msgid "Last &raquo;"
170
+ msgstr "Son &raquo;"
171
+
172
+ #: wp-pagenavi.php:42
173
+ msgid "&laquo;"
174
+ msgstr "&laquo;"
175
+
176
+ #: wp-pagenavi.php:43
177
+ msgid "&raquo;"
178
+ msgstr "&raquo;"
179
+
180
+ #: wp-pagenavi.php:44
181
+ #: wp-pagenavi.php:45
182
+ msgid "..."
183
+ msgstr "..."
184
+
185
+ #. Plugin Name of the plugin/theme
186
+ msgid "WP-PageNavi"
187
+ msgstr "WP-PageNavi"
188
+
189
+ #. Plugin URI of the plugin/theme
190
+ msgid "http://wordpress.org/extend/plugins/wp-pagenavi/"
191
+ msgstr "http://wordpress.org/extend/plugins/wp-pagenavi/"
192
+
193
+ #. Description of the plugin/theme
194
+ msgid "Adds a more advanced paging navigation to your WordPress blog"
195
+ msgstr "WordPress blogunuza müasir səhifə naviqasiyası əlavə edir"
196
+
197
+ #. Author of the plugin/theme
198
+ msgid "Lester 'GaMerZ' Chan & scribu"
199
+ msgstr "Lester 'GaMerZ' Chan & scribu"
200
+
lang/wp-pagenavi-et.mo ADDED
Binary file
lang/wp-pagenavi-et.po ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Estonian\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: 2012-02-09 20:12+0300\n"
12
+ "Last-Translator: Martin Orn <martin@orn.ee>\n"
13
+ "Language-Team: Martin Orn <martin@orn.ee>\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: Estonian\n"
18
+ "X-Poedit-Country: ESTONIA\n"
19
+ "X-Poedit-SourceCharset: utf-8\n"
20
+
21
+ #: admin.php:9
22
+ msgid "PageNavi Settings"
23
+ msgstr "PageNavi Seaded"
24
+
25
+ #: admin.php:10
26
+ msgid "PageNavi"
27
+ msgstr "PageNavi"
28
+
29
+ #: admin.php:28
30
+ msgid "Text For Number Of Pages"
31
+ msgstr "Lehtede arvu tekst"
32
+
33
+ #: admin.php:33
34
+ msgid "The current page number."
35
+ msgstr "Avatud lehe number."
36
+
37
+ #: admin.php:34
38
+ #: admin.php:58
39
+ #: admin.php:66
40
+ msgid "The total number of pages."
41
+ msgstr "Lehtede koguarv."
42
+
43
+ #: admin.php:38
44
+ msgid "Text For Current Page"
45
+ msgstr "Avatud lehe tekst"
46
+
47
+ #: admin.php:42
48
+ #: admin.php:50
49
+ msgid "The page number."
50
+ msgstr "Lehe number."
51
+
52
+ #: admin.php:46
53
+ msgid "Text For Page"
54
+ msgstr "Lehe tekst"
55
+
56
+ #: admin.php:54
57
+ msgid "Text For First Page"
58
+ msgstr "Esimese lehe tekst"
59
+
60
+ #: admin.php:62
61
+ msgid "Text For Last Page"
62
+ msgstr "Viimase lehe tekst"
63
+
64
+ #: admin.php:70
65
+ msgid "Text For Previous Page"
66
+ msgstr "Eelmise lehe tekst"
67
+
68
+ #: admin.php:76
69
+ msgid "Text For Next Page"
70
+ msgstr "Järgmise lehe tekst"
71
+
72
+ #: admin.php:82
73
+ msgid "Text For Previous ..."
74
+ msgstr "Eelmise tekst"
75
+
76
+ #: admin.php:88
77
+ msgid "Text For Next ..."
78
+ msgstr "Järgmise tekst"
79
+
80
+ #: admin.php:95
81
+ msgid "Page Navigation Text"
82
+ msgstr "Lehe navigatsiooni stiil"
83
+
84
+ #: admin.php:96
85
+ msgid "Leaving a field blank will hide that part of the navigation."
86
+ msgstr "Jättes lahtri tühjaks, peidab vastava navigatsiooni osa."
87
+
88
+ #: admin.php:102
89
+ msgid "Use pagenavi-css.css"
90
+ msgstr "Kasuta pagenavi-css.css faili"
91
+
92
+ #: admin.php:108
93
+ msgid "Page Navigation Style"
94
+ msgstr "Lehe navigatsiooni stiil"
95
+
96
+ #: admin.php:111
97
+ msgid "Normal"
98
+ msgstr "Normaalne"
99
+
100
+ #: admin.php:111
101
+ msgid "Drop-down List"
102
+ msgstr "Rippmenüü"
103
+
104
+ #: admin.php:116
105
+ msgid "Always Show Page Navigation"
106
+ msgstr "Näita alati lehe navigatsiooni"
107
+
108
+ #: admin.php:119
109
+ msgid "Show navigation even if there's only one page."
110
+ msgstr "Näita navigatsiooni isegi, kui on ainult üks leht."
111
+
112
+ #: admin.php:123
113
+ msgid "Number Of Pages To Show"
114
+ msgstr "Lehtede arv, mida näidata"
115
+
116
+ #: admin.php:130
117
+ msgid "Number Of Larger Page Numbers To Show"
118
+ msgstr "Suuremate lehtede arv, mida näidata"
119
+
120
+ #: admin.php:135
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 "Suuremad lehe numbrid on lisaks tavalistele lehe numbritele. Need on kasulikud, kui postituste lehti on palju."
123
+
124
+ #: admin.php:136
125
+ msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
126
+ msgstr "Näiteks, WP-PageNavi näiteb: Lehed 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
127
+
128
+ #: admin.php:137
129
+ msgid "Enter 0 to disable."
130
+ msgstr "Sisesta 0, et välistada."
131
+
132
+ #: admin.php:141
133
+ msgid "Show Larger Page Numbers In Multiples Of"
134
+ msgstr "Näita suuremate lehtede numbreid intervalliga"
135
+
136
+ #: admin.php:146
137
+ msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
138
+ msgstr "Näiteks, kui intervall on 5, siis kuvatakse: 5, 10, 15, 20, 25"
139
+
140
+ #: admin.php:151
141
+ msgid "Page Navigation Options"
142
+ msgstr "Lehe navigatsiooni valikud"
143
+
144
+ #: scb/AdminPage.php:167
145
+ msgid "Settings <strong>saved</strong>."
146
+ msgstr "Seaded <strong>salvestatud</strong>."
147
+
148
+ #: scb/AdminPage.php:179
149
+ #: scb/AdminPage.php:189
150
+ msgid "Save Changes"
151
+ msgstr "Salvesta muudatused"
152
+
153
+ #: scb/AdminPage.php:371
154
+ msgid "Settings"
155
+ msgstr "Seaded"
156
+
157
+ #: wp-pagenavi.php:37
158
+ msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
159
+ msgstr "Lehekülg %CURRENT_PAGE% - %TOTAL_PAGES%"
160
+
161
+ #: wp-pagenavi.php:40
162
+ msgid "&laquo; First"
163
+ msgstr "&laquo; Esimene"
164
+
165
+ #: wp-pagenavi.php:41
166
+ msgid "Last &raquo;"
167
+ msgstr "Viimane &raquo;"
168
+
169
+ #: wp-pagenavi.php:42
170
+ msgid "&laquo;"
171
+ msgstr "&laquo;"
172
+
173
+ #: wp-pagenavi.php:43
174
+ msgid "&raquo;"
175
+ msgstr "&raquo;"
176
+
177
+ #: wp-pagenavi.php:44
178
+ #: wp-pagenavi.php:45
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 "Lisab oluliselt edasiarenenuma lehe navigatsiooni sinu WordPressi lehele"
193
+
194
+ #. Author of the plugin/theme
195
+ msgid "Lester 'GaMerZ' Chan & scribu"
196
+ msgstr "Lester 'GaMerZ' Chan & scribu"
197
+
lang/wp-pagenavi-fa_IR.mo CHANGED
Binary file
lang/wp-pagenavi-fa_IR.po CHANGED
@@ -1,244 +1,219 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Wp-Pagenavi_fa\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2009-04-01 12:14+0330\n"
6
  "PO-Revision-Date: \n"
7
- "Last-Translator: mostafa <mostafa.s1990@gmail.com>\n"
8
- "Language-Team: Persian Wordpress <Mostafa.s1990@gmail.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: Persian\n"
13
- "X-Poedit-Country: IRAN, ISLAMIC REPUBLIC OF\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
- "X-Poedit-Basepath: F:\\Program Files\\apserv\\AppServ\\www\\wordpress\\wp-content\\plugins\\wp-pagenavi\n"
17
- "X-Poedit-SearchPath-0: F:\\Program Files\\apserv\\AppServ\\www\\wordpress\\wp-content\\plugins\\wp-pagenavi\n"
18
 
19
- #: F:\Program
20
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:46
21
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:107
22
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:171
23
- msgid "Page Navigation Options"
24
  msgstr "تنظیمات شماره بندی صفحات"
25
 
26
- #: F:\Program
27
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:51
28
- msgid "Updated"
29
- msgstr "به روز رسانی"
30
-
31
- #: F:\Program
32
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:56
33
- msgid "No Page Navigation Option Updated"
34
- msgstr "تنظیمات شماره بندی صفحان به روز رسانی نشد"
35
-
36
- #: F:\Program
37
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:62
38
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:240
39
- msgid "UNINSTALL WP-PageNavi"
40
- msgstr "حذف این پلاگین"
41
-
42
- #: F:\Program
43
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:70
44
- #, php-format
45
- msgid "Setting Key '%s' has been deleted."
46
- msgstr ""
47
-
48
- #: F:\Program
49
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:74
50
- #, php-format
51
- msgid "Error deleting Setting Key '%s'."
52
- msgstr ""
53
-
54
- #: F:\Program
55
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:96
56
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:208
57
- msgid "Uninstall WP-PageNavi"
58
- msgstr "حذف این پلاگین"
59
-
60
- #: F:\Program
61
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:97
62
- #, php-format
63
- msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-PageNavi Will Be Deactivated Automatically."
64
- msgstr ""
65
-
66
- #: F:\Program
67
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:108
68
- msgid "Page Navigation Text"
69
- msgstr "متن شماره بندی صفحات"
70
 
71
- #: F:\Program
72
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:111
73
  msgid "Text For Number Of Pages"
74
  msgstr "متن برای شماره از صفحات"
75
 
76
- #: F:\Program
77
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:114
78
  msgid "The current page number."
79
  msgstr "تعداد صفحات جاری."
80
 
81
- #: F:\Program
82
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:115
83
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:136
84
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:143
85
  msgid "The total number of pages."
86
  msgstr "کل شماره از صفحات."
87
 
88
- #: F:\Program
89
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:119
90
  msgid "Text For Current Page"
91
  msgstr "متن برای صفحه جاری"
92
 
93
- #: F:\Program
94
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:122
95
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:129
96
  msgid "The page number."
97
  msgstr "شماره صفحه."
98
 
99
- #: F:\Program
100
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:126
101
  msgid "Text For Page"
102
  msgstr "متن برای صفحات"
103
 
104
- #: F:\Program
105
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:133
106
- msgid "Text For First Post"
107
  msgstr "متن برای نوشته بعدی"
108
 
109
- #: F:\Program
110
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:140
111
- msgid "Text For Last Post"
112
- msgstr "متن برای صفحه قبلی"
113
-
114
- #: F:\Program
115
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:147
116
- msgid "Text For Next Post"
117
- msgstr "متن بعد از نوشته بعدی"
118
 
119
- #: F:\Program
120
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:153
121
- msgid "Text For Previous Post"
122
  msgstr "متن قبل از نوشته قبلی"
123
 
124
- #: F:\Program
125
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:159
126
- msgid "Text For Next ..."
127
- msgstr "نوشته برای بعدی..."
128
 
129
- #: F:\Program
130
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:165
131
  msgid "Text For Previous ..."
132
  msgstr "نوشته برای قبلی..."
133
 
134
- #: F:\Program
135
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:174
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  msgid "Page Navigation Style"
137
  msgstr "قالب شماره صفحات"
138
 
139
- #: F:\Program
140
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:177
141
  msgid "Normal"
142
  msgstr "معمولی"
143
 
144
- #: F:\Program
145
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:178
146
- msgid "Drop Down List"
147
  msgstr "به صورت فهرست"
148
 
149
- #: F:\Program
150
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:183
151
- msgid "Number Of Pages To Show?"
152
- msgstr "تعداد شماره صفحه برای نمایش؟"
153
-
154
- #: F:\Program
155
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:189
156
- msgid "Always Show Page Navigation?"
157
  msgstr "همیشه شماره صفحات نمایش داده شود؟"
158
 
159
- #: F:\Program
160
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:192
161
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:239
162
- msgid "Yes"
163
- msgstr "بله"
164
-
165
- #: F:\Program
166
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:193
167
- msgid "No"
168
- msgstr "خیر"
169
 
170
- #: F:\Program
171
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:199
172
- msgid "Save Changes"
173
- msgstr "ذخیره تغییرات"
174
 
175
- #: F:\Program
176
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:210
177
- msgid "Deactivating WP-PageNavi plugin does not remove any data that may have been created, such as the page navigation options. To completely remove this plugin, you can uninstall it here."
178
- msgstr "برای حذف پلاگین, ابتدا WP-PageNavi را غیر فعال کنید, با حذف کامل این افزونه, تنظیمات آن از بین نمی رود."
179
 
180
- #: F:\Program
181
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:213
182
- msgid "WARNING:"
183
- msgstr "اخطار:"
184
 
185
- #: F:\Program
186
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:214
187
- msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
188
- msgstr ""
189
 
190
- #: F:\Program
191
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:217
192
- msgid "The following WordPress Options will be DELETED:"
193
- msgstr "شرح حذفیات در تنظیمات وردپرس:"
194
 
195
- #: F:\Program
196
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:222
197
- msgid "WordPress Options"
198
- msgstr "تنظیمات وردپرس"
199
 
200
- #: F:\Program
201
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/pagenavi-options.php:240
202
- msgid ""
203
- "You Are About To Uninstall WP-PageNavi From WordPress.\\n"
204
- "This Action Is Not Reversible.\\n"
205
- "\\n"
206
- " Choose [Cancel] To Stop, [OK] To Uninstall."
207
- msgstr ""
208
 
209
- #: F:\Program
210
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/wp-pagenavi.php:61
211
- msgid "PageNavi"
212
- msgstr "شماره صفحات"
213
 
214
- #: F:\Program
215
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/wp-pagenavi.php:197
216
  msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
217
  msgstr "صفحه %CURRENT_PAGE% از %TOTAL_PAGES%"
218
 
219
- #: F:\Program
220
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/wp-pagenavi.php:200
221
  msgid "&laquo; First"
222
  msgstr "&laquo; بعدی"
223
 
224
- #: F:\Program
225
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/wp-pagenavi.php:201
226
  msgid "Last &raquo;"
227
  msgstr "قبلی &raquo;"
228
 
229
- #: F:\Program
230
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/wp-pagenavi.php:202
231
- msgid "&raquo;"
232
- msgstr "&raquo;"
233
-
234
- #: F:\Program
235
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/wp-pagenavi.php:203
236
  msgid "&laquo;"
237
  msgstr "&laquo;"
238
 
239
- #: F:\Program
240
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/wp-pagenavi.php:204
241
- #: Files\apserv\AppServ\www\wordpress\wp-content\plugins\wp-pagenavi/wp-pagenavi.php:205
 
 
 
242
  msgid "..."
243
  msgstr "..."
244
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Wp-Pagenavi\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-12 00:58+0330\n"
6
  "PO-Revision-Date: \n"
7
+ "Last-Translator: Parsa <i@parsa.ws>\n"
8
+ "Language-Team: www.parsa.ws <i@parsa.ws>\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: Persian\n"
13
+ "X-Poedit-Country: IRAN\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
+ "X-Poedit-Basepath: .\n"
17
+ "X-Poedit-SearchPath-0: ..\n"
18
 
19
+ #: ../admin.php:9
20
+ msgid "PageNavi Settings"
 
 
 
21
  msgstr "تنظیمات شماره بندی صفحات"
22
 
23
+ #: ../admin.php:10
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
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
+ msgid "Text For First Page"
 
56
  msgstr "متن برای نوشته بعدی"
57
 
58
+ #: ../admin.php:62
59
+ msgid "Text For Last Page"
60
+ msgstr "متن برای صفحات"
 
 
 
 
 
 
61
 
62
+ #: ../admin.php:70
63
+ msgid "Text For Previous Page"
 
64
  msgstr "متن قبل از نوشته قبلی"
65
 
66
+ #: ../admin.php:76
67
+ msgid "Text For Next Page"
68
+ msgstr "متن برای صفحات"
 
69
 
70
+ #: ../admin.php:82
 
71
  msgid "Text For Previous ..."
72
  msgstr "نوشته برای قبلی..."
73
 
74
+ #: ../admin.php:88
75
+ msgid "Text For Next ..."
76
+ msgstr "نوشته برای بعدی..."
77
+
78
+ #: ../admin.php:95
79
+ msgid "Page Navigation Text"
80
+ msgstr "متن شماره بندی صفحات"
81
+
82
+ #: ../admin.php:96
83
+ msgid "Leaving a field blank will hide that part of the navigation."
84
+ msgstr "خالی بودن یک فیلد باعث حذف از ناوبری خواهد شد"
85
+
86
+ #: ../admin.php:102
87
+ msgid "Use pagenavi-css.css"
88
+ msgstr "استفاده از pagenavi-css.css"
89
+
90
+ #: ../admin.php:108
91
  msgid "Page Navigation Style"
92
  msgstr "قالب شماره صفحات"
93
 
94
+ #: ../admin.php:111
 
95
  msgid "Normal"
96
  msgstr "معمولی"
97
 
98
+ #: ../admin.php:111
99
+ msgid "Drop-down List"
 
100
  msgstr "به صورت فهرست"
101
 
102
+ #: ../admin.php:116
103
+ msgid "Always Show Page Navigation"
 
 
 
 
 
 
104
  msgstr "همیشه شماره صفحات نمایش داده شود؟"
105
 
106
+ #: ../admin.php:119
107
+ msgid "Show navigation even if there's only one page."
108
+ msgstr "نمایش ناوبری، حتی اگر تنها یک صفحه وجود دارد."
 
 
 
 
 
 
 
109
 
110
+ #: ../admin.php:123
111
+ msgid "Number Of Pages To Show"
112
+ msgstr "تعداد شماره صفحه برای نمایش؟"
 
113
 
114
+ #: ../admin.php:130
115
+ msgid "Number Of Larger Page Numbers To Show"
116
+ msgstr "تعداد شماره صفحه برای نمایش؟"
 
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 "شماره صفحه بزرگتر علاوه بر شماره صفحه عادی هستند. مفید هستند وقتی که صفحات بسیاری از پست وجود دارد."
 
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 "برای مثال، افزونه نمایش خواهد داد: برگه‌ها 10، 20، 30، 40، 50"
 
125
 
126
+ #: ../admin.php:137
127
+ msgid "Enter 0 to disable."
128
+ msgstr "برای غیر فعال کردن 0 را وارد کنید."
 
129
 
130
+ #: ../admin.php:141
131
+ msgid "Show Larger Page Numbers In Multiples Of"
132
+ msgstr "نمایش اعداد بزرگتر صفحه در تقسیم عددی بر مضرب"
 
133
 
134
+ #: ../admin.php:146
135
+ msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
136
+ msgstr "برای مثال، اگر 5 را وارد نمائید، نمایش خواهد داد: 5، 10، 15، 20، 25"
 
 
 
 
 
137
 
138
+ #: ../admin.php:151
139
+ msgid "Page Navigation Options"
140
+ msgstr "تنظیمات شماره بندی صفحات"
 
141
 
142
+ #: ../wp-pagenavi.php:37
 
143
  msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
144
  msgstr "صفحه %CURRENT_PAGE% از %TOTAL_PAGES%"
145
 
146
+ #: ../wp-pagenavi.php:40
 
147
  msgid "&laquo; First"
148
  msgstr "&laquo; بعدی"
149
 
150
+ #: ../wp-pagenavi.php:41
 
151
  msgid "Last &raquo;"
152
  msgstr "قبلی &raquo;"
153
 
154
+ #: ../wp-pagenavi.php:42
 
 
 
 
 
 
155
  msgid "&laquo;"
156
  msgstr "&laquo;"
157
 
158
+ #: ../wp-pagenavi.php:43
159
+ msgid "&raquo;"
160
+ msgstr "&raquo;"
161
+
162
+ #: ../wp-pagenavi.php:44
163
+ #: ../wp-pagenavi.php:45
164
  msgid "..."
165
  msgstr "..."
166
 
167
+ #: ../scb/AdminPage.php:165
168
+ msgid "Settings <strong>saved</strong>."
169
+ msgstr "تنظیمات ذخیره شدند"
170
+
171
+ #: ../scb/AdminPage.php:178
172
+ #: ../scb/AdminPage.php:189
173
+ msgid "Save Changes"
174
+ msgstr "ذخیره تغییرات"
175
+
176
+ #: ../scb/AdminPage.php:351
177
+ msgid "Settings"
178
+ msgstr "تنظیمات"
179
+
180
+ #~ msgid "Updated"
181
+ #~ msgstr "به روز رسانی"
182
+
183
+ #~ msgid "No Page Navigation Option Updated"
184
+ #~ msgstr "تنظیمات شماره بندی صفحان به روز رسانی نشد"
185
+
186
+ #~ msgid "UNINSTALL WP-PageNavi"
187
+ #~ msgstr "حذف این پلاگین"
188
+
189
+ #~ msgid "Uninstall WP-PageNavi"
190
+ #~ msgstr "حذف این پلاگین"
191
+
192
+ #~ msgid "Text For Last Post"
193
+ #~ msgstr "متن برای صفحه قبلی"
194
+
195
+ #~ msgid "Text For Next Post"
196
+ #~ msgstr "متن بعد از نوشته بعدی"
197
+
198
+ #~ msgid "Yes"
199
+ #~ msgstr "بله"
200
+
201
+ #~ msgid "No"
202
+ #~ msgstr "خیر"
203
+
204
+ #~ msgid ""
205
+ #~ "Deactivating WP-PageNavi plugin does not remove any data that may have "
206
+ #~ "been created, such as the page navigation options. To completely remove "
207
+ #~ "this plugin, you can uninstall it here."
208
+ #~ msgstr ""
209
+ #~ "برای حذف پلاگین, ابتدا WP-PageNavi را غیر فعال کنید, با حذف کامل این "
210
+ #~ "افزونه, تنظیمات آن از بین نمی رود."
211
+
212
+ #~ msgid "WARNING:"
213
+ #~ msgstr "اخطار:"
214
+
215
+ #~ msgid "The following WordPress Options will be DELETED:"
216
+ #~ msgstr "شرح حذفیات در تنظیمات وردپرس:"
217
+
218
+ #~ msgid "WordPress Options"
219
+ #~ msgstr "تنظیمات وردپرس"
lang/wp-pagenavi-ka_GE.mo ADDED
Binary file
lang/wp-pagenavi-ka_GE.po ADDED
@@ -0,0 +1,268 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP-PageNavi\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: 2011-10-08 09:47-0800\n"
7
+ "Last-Translator: Temur Danelia <temur@danelia.info>\n"
8
+ "Language-Team: www.bizwebmaster.com <temur@danelia.info>\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: Georgian\n"
13
+ "X-Poedit-Country: GEORGIA\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: .\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: admin.php:9
20
+ msgid "PageNavi Settings"
21
+ msgstr "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 "გვერდების რაოდენობის ტექსტი"
30
+
31
+ #: admin.php:32
32
+ msgid "The current page number."
33
+ msgstr "მიმდინარე გვერდის ნომერი."
34
+
35
+ #: admin.php:33
36
+ #: admin.php:57
37
+ #: admin.php:65
38
+ msgid "The total number of pages."
39
+ msgstr "სულ გვერდების რაოდენობა."
40
+
41
+ #: admin.php:37
42
+ msgid "Text For Current Page"
43
+ msgstr "მიმდინარე გვერდის ტექსტი"
44
+
45
+ #: admin.php:41
46
+ #: admin.php:49
47
+ msgid "The page number."
48
+ msgstr "გვერდის ნომერი"
49
+
50
+ #: admin.php:45
51
+ msgid "Text For Page"
52
+ msgstr "გვერდის ტექსტი"
53
+
54
+ #: admin.php:53
55
+ msgid "Text For First Page"
56
+ msgstr "პირველი გვერდის ტექსტი"
57
+
58
+ #: admin.php:61
59
+ msgid "Text For Last Page"
60
+ msgstr "ბოლო გვერდის ტექსტი"
61
+
62
+ #: admin.php:69
63
+ msgid "Text For Previous Page"
64
+ msgstr "წინა გვერდის ტექსტი"
65
+
66
+ #: admin.php:75
67
+ msgid "Text For Next Page"
68
+ msgstr "მომდევნო გვერდის ტექსტი"
69
+
70
+ #: admin.php:81
71
+ msgid "Text For Previous ..."
72
+ msgstr "წინა ... ტექსტი"
73
+
74
+ #: admin.php:87
75
+ msgid "Text For Next ..."
76
+ msgstr "მომდევნო ... ტესტი"
77
+
78
+ #: admin.php:94
79
+ msgid "Page Navigation Text"
80
+ msgstr "გვერდების ნავიგაციის ტექსტი"
81
+
82
+ #: admin.php:95
83
+ msgid "Leaving a field blank will hide that part of the navigation."
84
+ msgstr "თუკი რომელიმე ველს დატოვებთ ცარიელს, იგი არ გამოჩნდება ნავიგაციაში."
85
+
86
+ #: admin.php:101
87
+ msgid "Use pagenavi-css.css"
88
+ msgstr "გამოიყენეთ pagenavi-css.css"
89
+
90
+ #: admin.php:107
91
+ msgid "Page Navigation Style"
92
+ msgstr "გვერდების ნავიგაციის სტილი"
93
+
94
+ #: admin.php:110
95
+ msgid "Normal"
96
+ msgstr "ჩვეულებრივი"
97
+
98
+ #: admin.php:110
99
+ msgid "Drop-down List"
100
+ msgstr "ჩამოსაშლელი სია"
101
+
102
+ #: admin.php:115
103
+ msgid "Always Show Page Navigation"
104
+ msgstr "ყოველთვის აჩვენე გვერდების ნავიგაცია"
105
+
106
+ #: admin.php:118
107
+ msgid "Show navigation even if there's only one page."
108
+ msgstr "აჩვენე ნავიგაცია მხოლოდ 1 გვერდის შემთხვევაშიც."
109
+
110
+ #: admin.php:122
111
+ msgid "Number Of Pages To Show"
112
+ msgstr "საჩვენებელი გვერდების რაოდენობა"
113
+
114
+ #: admin.php:129
115
+ msgid "Number Of Larger Page Numbers To Show"
116
+ msgstr "გვერდების მრავალთანრიგიანი ნომრების ჩვენება"
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 "მრავალთანრიგიანი ნომრები ჩვეულებრივი ნომრების დამატებითი ფუნქციაა. ეს ფუნქცია მოსახერხებელია დიდი რაოდენობით გვერდების ქონის შემთხვევაში"
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 "მაგალითად, WP-PageNavi აჩვენებს: გვერდები 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
125
+
126
+ #: admin.php:136
127
+ msgid "Enter 0 to disable."
128
+ msgstr "შეიყვანეთ 0 ამ ფუნქციის გამოსართავად."
129
+
130
+ #: admin.php:140
131
+ msgid "Show Larger Page Numbers In Multiples Of"
132
+ msgstr "მრავალთანრიგიანი გვერდების მამრავლი"
133
+
134
+ #: admin.php:145
135
+ msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
136
+ msgstr "მაგალითად, თუკი მამრავლი ტოლის 5-ის, გვერდების ნავიგაციას ექნება შემდეგი სახე: 5, 10, 15, 20, 25"
137
+
138
+ #: admin.php:150
139
+ msgid "Page Navigation Options"
140
+ msgstr "გვერდების ნავიგაციის პარამეტრები"
141
+
142
+ #: scb/AdminPage.php:165
143
+ #: scb/AdminPage.php:176
144
+ msgid "Save Changes"
145
+ msgstr "ცვლილებების შენახვა"
146
+
147
+ #: scb/AdminPage.php:279
148
+ msgid "Settings <strong>saved</strong>."
149
+ msgstr "პარამეტრები <strong>შენახულია</strong>."
150
+
151
+ #: scb/AdminPage.php:337
152
+ msgid "Settings"
153
+ msgstr "პარამეტრები"
154
+
155
+ #: wp-pagenavi.php:224
156
+ msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
157
+ msgstr "გვერდი %CURRENT_PAGE% (%TOTAL_PAGES%)"
158
+
159
+ #: wp-pagenavi.php:227
160
+ msgid "&laquo; First"
161
+ msgstr "&laquo; პირველი"
162
+
163
+ #: wp-pagenavi.php:228
164
+ msgid "Last &raquo;"
165
+ msgstr "ბოლო &raquo;"
166
+
167
+ #: wp-pagenavi.php:229
168
+ msgid "&laquo;"
169
+ msgstr "&laquo;"
170
+
171
+ #: wp-pagenavi.php:230
172
+ msgid "&raquo;"
173
+ msgstr "&raquo;"
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 "დაუმატებს გვერდების ნავიგაციის ფუნქციას თქვენს ვორდპრესის ბოლოგს"
191
+
192
+ #. Author of the plugin/theme
193
+ msgid "Lester 'GaMerZ' Chan & scribu"
194
+ msgstr "Lester 'GaMerZ' Chan & scribu"
195
+
196
+ #~ msgid "Updated"
197
+ #~ msgstr "&mdash; обновлено"
198
+
199
+ #~ msgid "No Page Navigation Option Updated"
200
+ #~ msgstr "Настройки списка страниц не изменились"
201
+
202
+ #~ msgid "UNINSTALL WP-PageNavi"
203
+ #~ msgstr "УДАЛИТЬ WP-PageNavi"
204
+
205
+ #~ msgid "Setting Key '%s' has been deleted."
206
+ #~ msgstr "Настройка &laquo;%s&raquo; удалена."
207
+
208
+ #~ msgid "Error deleting Setting Key '%s'."
209
+ #~ msgstr "Ошибка при удалении настройки &laquo;%s&raquo;."
210
+
211
+ #~ msgid "Uninstall WP-PageNavi"
212
+ #~ msgstr "Удалить список страниц"
213
+
214
+ #~ msgid ""
215
+ #~ "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-"
216
+ #~ "PageNavi Will Be Deactivated Automatically."
217
+ #~ msgstr ""
218
+ #~ "<a href=\"%s\">Нажмите здесь</a> чтобы завершить удаление. WP-PageNavi "
219
+ #~ "будет отключён автоматически."
220
+
221
+ #~ msgid "Text For Last Post"
222
+ #~ msgstr "Элемент &laquo;Последняя запись&raquo;"
223
+
224
+ #~ msgid "Text For Next Post"
225
+ #~ msgstr "Элемент &laquo;Следующая запись&raquo;"
226
+
227
+ #~ msgid "Yes"
228
+ #~ msgstr "Да"
229
+
230
+ #~ msgid "No"
231
+ #~ msgstr "Нет"
232
+
233
+ #~ msgid "If mutiple is in 10, it will show: 10, 20, 30, 40, 50"
234
+ #~ msgstr "А если 10&nbsp;&mdash; так: 10, 20, 30, 40, 50"
235
+
236
+ #~ msgid ""
237
+ #~ "Deactivating WP-PageNavi plugin does not remove any data that may have "
238
+ #~ "been created, such as the page navigation options. To completely remove "
239
+ #~ "this plugin, you can uninstall it here."
240
+ #~ msgstr ""
241
+ #~ "При отключении плагина отображения списка страниц созданные данные, "
242
+ #~ "включая настройки, не удаляются. Для того, чтобы полностью удалить "
243
+ #~ "плагин, отмените здесь его установку."
244
+
245
+ #~ msgid "WARNING:"
246
+ #~ msgstr "ВНИМАНИЕ:"
247
+
248
+ #~ msgid ""
249
+ #~ "Once uninstalled, this cannot be undone. You should use a Database Backup "
250
+ #~ "plugin of WordPress to back up all the data first."
251
+ #~ msgstr ""
252
+ #~ "Удаление плагина необратимо. Для того, чтобы создать резервную копию БД "
253
+ #~ "WordPress и сохранить ваши данные, используйте плагин &laquo;Database "
254
+ #~ "Backup&raquo;."
255
+
256
+ #~ msgid "The following WordPress Options will be DELETED:"
257
+ #~ msgstr "Будут УДАЛЕНЫ следующие настройки WordPress:"
258
+
259
+ #~ msgid "WordPress Options"
260
+ #~ msgstr "Настройки WordPress"
261
+
262
+ #~ msgid ""
263
+ #~ "You Are About To Uninstall WP-PageNavi From WordPress.\\nThis Action Is "
264
+ #~ "Not Reversible.\\n\\n Choose [Cancel] To Stop, [OK] To Uninstall."
265
+ #~ msgstr ""
266
+ #~ "Вы собираетесь удалить плагин WP-PageNavi.\\nЭто действие необратимо.\\n"
267
+ #~ "\\nЧтобы остановить удаление, выберите [Отмена]. Выберите [OK], если вы "
268
+ #~ "хотите его продолжить."
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: GamerZ, scribu
3
  Tags: navigation, pagination, paging, pages
4
  Requires at least: 3.1
5
  Tested up to: 3.3
6
- Stable tag: 2.81
7
 
8
  Adds a more advanced paging navigation interface.
9
 
@@ -24,9 +24,9 @@ You can either install it automatically from the WordPress admin, or do it manua
24
  1. Unzip the archive and put the `wp-pagenavi` folder into your plugins folder (/wp-content/plugins/).
25
  1. Activate the plugin from the Plugins menu.
26
 
27
- = Usage =
28
 
29
- In your theme, you need to find calls to next_posts_link() and previous_posts_link() and replace them.
30
 
31
  In the Twentyten theme, it looks like this:
32
 
@@ -39,6 +39,8 @@ You would replace those two lines with this:
39
 
40
  `<?php wp_pagenavi(); ?>`
41
 
 
 
42
  For multipart pages, you would look for code like this:
43
 
44
  `<?php wp_link_pages( ... ); ?>`
@@ -88,6 +90,11 @@ You can do that like so:
88
 
89
  == Changelog ==
90
 
 
 
 
 
 
91
  = 2.81 =
92
  * require an explicit type; fixes bugs with multipart pages
93
 
3
  Tags: navigation, pagination, paging, pages
4
  Requires at least: 3.1
5
  Tested up to: 3.3
6
+ Stable tag: 2.82
7
 
8
  Adds a more advanced paging navigation interface.
9
 
24
  1. Unzip the archive and put the `wp-pagenavi` folder into your plugins folder (/wp-content/plugins/).
25
  1. Activate the plugin from the Plugins menu.
26
 
27
+ = Archives =
28
 
29
+ In your theme, you need to find calls to `next_posts_link()` and `previous_posts_link()` and replace them.
30
 
31
  In the Twentyten theme, it looks like this:
32
 
39
 
40
  `<?php wp_pagenavi(); ?>`
41
 
42
+ = Multipart pages =
43
+
44
  For multipart pages, you would look for code like this:
45
 
46
  `<?php wp_link_pages( ... ); ?>`
90
 
91
  == Changelog ==
92
 
93
+ = 2.82 =
94
+ * fixed prev/next links not appearing in some conditions
95
+ * added Hebrew, Georgian and Azerbaijani translations
96
+ * updated scbFramework
97
+
98
  = 2.81 =
99
  * require an explicit type; fixes bugs with multipart pages
100
 
scb/AdminPage.php CHANGED
@@ -80,13 +80,10 @@ abstract class scbAdminPage {
80
 
81
 
82
  // Constructor
83
- function __construct( $file, $options = NULL ) {
84
  if ( is_a( $options, 'scbOptions' ) )
85
  $this->options = $options;
86
 
87
- $this->file = $file;
88
- $this->plugin_url = plugin_dir_url( $file );
89
-
90
  $this->setup();
91
  $this->check_args();
92
 
@@ -99,8 +96,13 @@ abstract class scbAdminPage {
99
  add_action( 'admin_menu', array( $this, 'page_init' ), $this->args['admin_action_priority'] );
100
  add_filter( 'contextual_help', array( $this, '_contextual_help' ), 10, 2 );
101
 
102
- if ( $this->args['action_link'] )
103
- add_filter( 'plugin_action_links_' . plugin_basename( $file ), array( $this, '_action_link' ) );
 
 
 
 
 
104
  }
105
 
106
  // This is where all the page args can be set
@@ -162,7 +164,7 @@ abstract class scbAdminPage {
162
  if ( empty( $msg ) )
163
  $msg = __( 'Settings <strong>saved</strong>.', $this->textdomain );
164
 
165
- echo "<div class='$class fade'><p>$msg</p></div>\n";
166
  }
167
 
168
 
@@ -187,18 +189,19 @@ abstract class scbAdminPage {
187
  $value = __( 'Save Changes', $this->textdomain );
188
  }
189
 
190
- $input_args = array( 'type' => 'submit',
191
- 'names' => $action,
192
- 'values' => $value,
 
193
  'extra' => '',
194
- 'desc' => false );
 
 
195
 
196
  if ( ! empty( $class ) )
197
- $input_args['extra'] = "class='{$class}'";
198
 
199
- $output = "<p class='submit'>\n" . scbForms::input( $input_args ) . "</p>\n";
200
-
201
- return $output;
202
  }
203
 
204
  /*
80
 
81
 
82
  // Constructor
83
+ function __construct( $file = false, $options = null ) {
84
  if ( is_a( $options, 'scbOptions' ) )
85
  $this->options = $options;
86
 
 
 
 
87
  $this->setup();
88
  $this->check_args();
89
 
96
  add_action( 'admin_menu', array( $this, 'page_init' ), $this->args['admin_action_priority'] );
97
  add_filter( 'contextual_help', array( $this, '_contextual_help' ), 10, 2 );
98
 
99
+ if ( $file ) {
100
+ $this->file = $file;
101
+ $this->plugin_url = plugin_dir_url( $file );
102
+
103
+ if ( $this->args['action_link'] )
104
+ add_filter( 'plugin_action_links_' . plugin_basename( $file ), array( $this, '_action_link' ) );
105
+ }
106
  }
107
 
108
  // This is where all the page args can be set
164
  if ( empty( $msg ) )
165
  $msg = __( 'Settings <strong>saved</strong>.', $this->textdomain );
166
 
167
+ echo scb_admin_notice( $msg, $class );
168
  }
169
 
170
 
189
  $value = __( 'Save Changes', $this->textdomain );
190
  }
191
 
192
+ $input_args = array(
193
+ 'type' => 'submit',
194
+ 'name' => $action,
195
+ 'value' => $value,
196
  'extra' => '',
197
+ 'desc' => false,
198
+ 'wrap' => html( 'p class="submit"', scbForms::TOKEN )
199
+ );
200
 
201
  if ( ! empty( $class ) )
202
+ $input_args['extra'] = compact( 'class' );
203
 
204
+ return scbForms::input( $input_args );
 
 
205
  }
206
 
207
  /*
scb/BoxesPage.php CHANGED
@@ -11,10 +11,9 @@ abstract class scbBoxesPage extends scbAdminPage {
11
  */
12
  protected $boxes = array();
13
 
14
- function __construct( $file, $options = null ) {
15
  parent::__construct( $file, $options );
16
 
17
- // too late
18
  scbUtil::add_uninstall_hook( $this->file, array( $this, 'uninstall' ) );
19
  }
20
 
11
  */
12
  protected $boxes = array();
13
 
14
+ function __construct( $file = false, $options = null ) {
15
  parent::__construct( $file, $options );
16
 
 
17
  scbUtil::add_uninstall_hook( $this->file, array( $this, 'uninstall' ) );
18
  }
19
 
scb/Cron.php CHANGED
@@ -19,7 +19,7 @@ class scbCron {
19
  string $schedule OR number $interval
20
  array $callback_args (optional)
21
  */
22
- function __construct( $file, $args ) {
23
  extract( $args, EXTR_SKIP );
24
 
25
  // Set time & schedule
19
  string $schedule OR number $interval
20
  array $callback_args (optional)
21
  */
22
+ function __construct( $file = false, $args ) {
23
  extract( $args, EXTR_SKIP );
24
 
25
  // Set time & schedule
scb/Forms.php CHANGED
@@ -4,35 +4,30 @@
4
 
5
  class scbForms {
6
 
7
- const token = '%input%';
8
 
9
  protected static $cur_name;
10
 
11
  static function input( $args, $formdata = false ) {
12
- // setle on singular keys
13
- foreach ( array( 'name', 'value' ) as $key ) {
14
- $old = $key . 's';
15
-
16
- if ( isset( $args[$old] ) ) {
17
- $args[$key] = $args[$old];
18
- unset( $args[$old] );
19
- }
20
- }
21
-
22
  if ( !empty( $formdata ) ) {
23
  $form = new scbForm( $formdata );
24
  return $form->input( $args );
25
  }
26
 
27
- if ( empty( $args['name'] ) )
28
  return trigger_error( 'Empty name', E_USER_WARNING );
 
29
 
30
  $args = wp_parse_args( $args, array(
31
  'desc' => '',
32
- 'desc_pos' => '',
 
33
  ) );
34
 
35
- $val_is_array = isset( $args['value'] ) && is_array( $args['value'] );
 
 
 
36
 
37
  if ( isset( $args['extra'] ) && !is_array( $args['extra'] ) )
38
  $args['extra'] = shortcode_parse_atts( $args['extra'] );
@@ -42,20 +37,19 @@ class scbForms {
42
  switch ( $args['type'] ) {
43
  case 'select':
44
  case 'radio':
45
- if ( ! $val_is_array )
46
- return trigger_error( "'value' argument is expected to be an array", E_USER_WARNING );
47
-
48
- return self::_single_choice( $args );
49
  break;
50
  case 'checkbox':
51
- if ( $val_is_array )
52
- return self::_multiple_choice( $args );
53
  else
54
- return self::_checkbox( $args );
55
  break;
56
  default:
57
- return self::_input( $args );
58
  }
 
 
59
  }
60
 
61
 
@@ -168,7 +162,7 @@ class scbForms {
168
  $checked = array();
169
 
170
  $opts = '';
171
- foreach ( $value as $value => $title ) {
172
  if ( empty( $value ) || empty( $title ) )
173
  continue;
174
 
@@ -177,21 +171,22 @@ class scbForms {
177
  'value' => $value,
178
  'checked' => in_array( $value, $checked ),
179
  'desc' => $title,
180
- 'desc_pos' => $desc_pos
181
  ) );
182
  }
183
 
184
- return $opts;
185
  }
186
 
187
  private static function _expand_values( &$args ) {
188
- $value =& $args['value'];
189
 
190
- if ( !empty( $value ) && !self::is_associative( $value ) ) {
191
  if ( is_array( $args['desc'] ) ) {
192
- $value = array_combine( $value, $args['desc'] ); // back-compat
 
193
  } elseif ( !$args['numeric'] ) {
194
- $value = array_combine( $value, $value );
195
  }
196
  }
197
  }
@@ -200,11 +195,12 @@ class scbForms {
200
  extract( $args );
201
 
202
  if ( array( 'foo' ) == $selected ) {
203
- $selected = key( $value ); // radio buttons should always have one option selected
 
204
  }
205
 
206
  $opts = '';
207
- foreach ( $value as $value => $title ) {
208
  if ( empty( $value ) || empty( $title ) )
209
  continue;
210
 
@@ -213,11 +209,11 @@ class scbForms {
213
  'value' => $value,
214
  'checked' => ( (string) $value == (string) $selected ),
215
  'desc' => $title,
216
- 'desc_pos' => $desc_pos
217
  ) );
218
  }
219
 
220
- return $opts;
221
  }
222
 
223
  private static function _select( $args ) {
@@ -236,7 +232,7 @@ class scbForms {
236
  );
237
  }
238
 
239
- foreach ( $value as $value => $title ) {
240
  if ( empty( $value ) || empty( $title ) )
241
  continue;
242
 
@@ -322,27 +318,17 @@ class scbForms {
322
  }
323
 
324
  private static function add_label( $input, $desc, $desc_pos ) {
325
- if ( empty( $desc_pos ) )
326
- $desc_pos = 'after';
327
-
328
- $label = '';
329
- if ( false === strpos( $desc, self::token ) ) {
330
- switch ( $desc_pos ) {
331
- case 'before': $label = $desc . ' ' . self::token; break;
332
- case 'after': $label = self::token . ' ' . $desc;
333
- }
334
- } else {
335
- $label = $desc;
336
- }
337
-
338
- $label = trim( str_replace( self::token, $input, $label ) );
339
 
 
340
  if ( empty( $desc ) )
341
- $output = $input;
342
- else
343
- $output = html( 'label', $label );
344
 
345
- return $output . "\n";
 
 
 
346
  }
347
 
348
 
@@ -373,13 +359,14 @@ class scbForms {
373
  *
374
  * @param array|string $name The name of the value
375
  * @param array $value The data that will be traversed
 
376
  *
377
  * @return mixed
378
  */
379
- static function get_value( $name, $value ) {
380
  foreach ( (array) $name as $key ) {
381
  if ( !isset( $value[ $key ] ) )
382
- return null;
383
 
384
  $value = $value[$key];
385
  }
@@ -387,6 +374,57 @@ class scbForms {
387
  return $value;
388
  }
389
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
390
  private static function is_associative( $array ) {
391
  $keys = array_keys( $array );
392
  return array_keys( $keys ) !== $keys;
4
 
5
  class scbForms {
6
 
7
+ const TOKEN = '%input%';
8
 
9
  protected static $cur_name;
10
 
11
  static function input( $args, $formdata = false ) {
 
 
 
 
 
 
 
 
 
 
12
  if ( !empty( $formdata ) ) {
13
  $form = new scbForm( $formdata );
14
  return $form->input( $args );
15
  }
16
 
17
+ if ( empty( $args['name'] ) ) {
18
  return trigger_error( 'Empty name', E_USER_WARNING );
19
+ }
20
 
21
  $args = wp_parse_args( $args, array(
22
  'desc' => '',
23
+ 'desc_pos' => 'after',
24
+ 'wrap' => self::TOKEN,
25
  ) );
26
 
27
+ if ( isset( $args['value'] ) && is_array( $args['value'] ) ) {
28
+ $args['values'] = $args['value'];
29
+ unset( $args['value'] );
30
+ }
31
 
32
  if ( isset( $args['extra'] ) && !is_array( $args['extra'] ) )
33
  $args['extra'] = shortcode_parse_atts( $args['extra'] );
37
  switch ( $args['type'] ) {
38
  case 'select':
39
  case 'radio':
40
+ $input = self::_single_choice( $args );
 
 
 
41
  break;
42
  case 'checkbox':
43
+ if ( isset( $args['values'] ) )
44
+ $input = self::_multiple_choice( $args );
45
  else
46
+ $input = self::_checkbox( $args );
47
  break;
48
  default:
49
+ $input = self::_input( $args );
50
  }
51
+
52
+ return str_replace( self::TOKEN, $input, $args['wrap'] );
53
  }
54
 
55
 
162
  $checked = array();
163
 
164
  $opts = '';
165
+ foreach ( $values as $value => $title ) {
166
  if ( empty( $value ) || empty( $title ) )
167
  continue;
168
 
171
  'value' => $value,
172
  'checked' => in_array( $value, $checked ),
173
  'desc' => $title,
174
+ 'desc_pos' => 'after'
175
  ) );
176
  }
177
 
178
+ return self::add_desc( $opts, $desc, $desc_pos );
179
  }
180
 
181
  private static function _expand_values( &$args ) {
182
+ $values =& $args['values'];
183
 
184
+ if ( !empty( $values ) && !self::is_associative( $values ) ) {
185
  if ( is_array( $args['desc'] ) ) {
186
+ $values = array_combine( $values, $args['desc'] ); // back-compat
187
+ $args['desc'] = false;
188
  } elseif ( !$args['numeric'] ) {
189
+ $values = array_combine( $values, $values );
190
  }
191
  }
192
  }
195
  extract( $args );
196
 
197
  if ( array( 'foo' ) == $selected ) {
198
+ // radio buttons should always have one option selected
199
+ $selected = key( $values );
200
  }
201
 
202
  $opts = '';
203
+ foreach ( $values as $value => $title ) {
204
  if ( empty( $value ) || empty( $title ) )
205
  continue;
206
 
209
  'value' => $value,
210
  'checked' => ( (string) $value == (string) $selected ),
211
  'desc' => $title,
212
+ 'desc_pos' => 'after'
213
  ) );
214
  }
215
 
216
+ return self::add_desc( $opts, $desc, $desc_pos );
217
  }
218
 
219
  private static function _select( $args ) {
232
  );
233
  }
234
 
235
+ foreach ( $values as $value => $title ) {
236
  if ( empty( $value ) || empty( $title ) )
237
  continue;
238
 
318
  }
319
 
320
  private static function add_label( $input, $desc, $desc_pos ) {
321
+ return html( 'label', self::add_desc( $input, $desc, $desc_pos ) ) . "\n";
322
+ }
 
 
 
 
 
 
 
 
 
 
 
 
323
 
324
+ private static function add_desc( $input, $desc, $desc_pos ) {
325
  if ( empty( $desc ) )
326
+ return $input;
 
 
327
 
328
+ if ( 'before' == $desc_pos )
329
+ return $desc . ' ' . $input;
330
+ else
331
+ return $input . ' ' . $desc;
332
  }
333
 
334
 
359
  *
360
  * @param array|string $name The name of the value
361
  * @param array $value The data that will be traversed
362
+ * @param mixed $fallback The value returned when the key is not found
363
  *
364
  * @return mixed
365
  */
366
+ static function get_value( $name, $value, $fallback = null ) {
367
  foreach ( (array) $name as $key ) {
368
  if ( !isset( $value[ $key ] ) )
369
+ return $fallback;
370
 
371
  $value = $value[$key];
372
  }
374
  return $value;
375
  }
376
 
377
+ /**
378
+ * Given a list of fields, extract the appropriate POST data and return it.
379
+ *
380
+ * @param array $fields List of args that would be sent to scbForms::input()
381
+ * @param array $to_update Existing data to update
382
+ *
383
+ * @return array
384
+ */
385
+ static function validate_post_data( $fields, $to_update = array() ) {
386
+ foreach ( $fields as $field ) {
387
+ $value = scbForms::get_value( $field['name'], $_POST );
388
+
389
+ $value = stripslashes_deep( $value );
390
+
391
+ switch ( $field['type'] ) {
392
+ case 'checkbox':
393
+ if ( isset( $field['values'] ) && is_array( $field['values'] ) )
394
+ $value = array_intersect( $field['values'], (array) $value );
395
+ else
396
+ $value = (bool) $value;
397
+
398
+ break;
399
+ case 'radio':
400
+ case 'select':
401
+ if ( !isset( $field['values'][ $value ] ) )
402
+ continue 2;
403
+ }
404
+
405
+ self::set_value( $to_update, $field['name'], $value );
406
+ }
407
+
408
+ return $to_update;
409
+ }
410
+
411
+ private static function set_value( &$arr, $name, $value ) {
412
+ $name = (array) $name;
413
+
414
+ $final_key = array_pop( $name );
415
+
416
+ while ( !empty( $name ) ) {
417
+ $key = array_shift( $name );
418
+
419
+ if ( !isset( $arr[ $key ] ) )
420
+ $arr[ $key ] = array();
421
+
422
+ $arr =& $arr[ $key ];
423
+ }
424
+
425
+ $arr[ $final_key ] = $value;
426
+ }
427
+
428
  private static function is_associative( $array ) {
429
  $keys = array_keys( $array );
430
  return array_keys( $keys ) !== $keys;
scb/Options.php CHANGED
@@ -103,7 +103,7 @@ class scbOptions {
103
  if ( $clean )
104
  $newdata = $this->_clean( $newdata );
105
 
106
- update_option( $this->key, $newdata );
107
  }
108
 
109
  /**
@@ -126,12 +126,7 @@ class scbOptions {
126
 
127
  // Keep only the keys defined in $this->defaults
128
  private function _clean( $data ) {
129
- $r = array();
130
- foreach ( array_keys( $this->defaults ) as $key )
131
- if ( isset( $data[$key] ) )
132
- $r[$key] = $data[$key];
133
-
134
- return $r;
135
  }
136
 
137
  // Get one, more or all fields from an array
103
  if ( $clean )
104
  $newdata = $this->_clean( $newdata );
105
 
106
+ update_option( $this->key, array_merge( $this->get(), $newdata ) );
107
  }
108
 
109
  /**
126
 
127
  // Keep only the keys defined in $this->defaults
128
  private function _clean( $data ) {
129
+ return wp_array_slice_assoc( $data, array_keys( $this->defaults ) );
 
 
 
 
 
130
  }
131
 
132
  // Get one, more or all fields from an array
scb/Table.php CHANGED
@@ -8,14 +8,11 @@ class scbTable {
8
  protected $upgrade_method;
9
 
10
  function __construct( $name, $file, $columns, $upgrade_method = 'dbDelta' ) {
11
- global $wpdb;
12
-
13
  $this->name = $name;
14
  $this->columns = $columns;
15
  $this->upgrade_method = $upgrade_method;
16
 
17
- $wpdb->tables[] = $name;
18
- $wpdb->$name = $wpdb->prefix . $name;
19
 
20
  if ( $file ) {
21
  scbUtil::add_activation_hook( $file, array( $this, 'install' ) );
@@ -24,36 +21,58 @@ class scbTable {
24
  }
25
 
26
  function install() {
27
- global $wpdb;
 
 
 
 
 
 
28
 
29
- $full_table_name = $wpdb->prefix . $this->name;
 
 
 
 
 
 
 
30
 
31
- $charset_collate = '';
32
- if ( $wpdb->has_cap( 'collation' ) ) {
33
- if ( ! empty( $wpdb->charset ) )
34
- $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
35
- if ( ! empty( $wpdb->collate ) )
36
- $charset_collate .= " COLLATE $wpdb->collate";
37
- }
38
 
39
- if ( 'dbDelta' == $this->upgrade_method ) {
40
- require_once ABSPATH . 'wp-admin/includes/upgrade.php';
41
- dbDelta( "CREATE TABLE $full_table_name ( $this->columns ) $charset_collate" );
42
- return;
43
- }
 
44
 
45
- if ( 'delete_first' == $this->upgrade_method )
46
- $wpdb->query( "DROP TABLE IF EXISTS $full_table_name;" );
47
 
48
- $wpdb->query( "CREATE TABLE IF NOT EXISTS $full_table_name ( $this->columns ) $charset_collate;" );
 
 
 
 
 
49
  }
50
 
51
- function uninstall() {
52
- global $wpdb;
 
 
 
53
 
54
- $full_table_name = $wpdb->prefix . $this->name;
 
55
 
56
- $wpdb->query( "DROP TABLE IF EXISTS $full_table_name" );
57
- }
 
 
 
 
 
58
  }
59
 
8
  protected $upgrade_method;
9
 
10
  function __construct( $name, $file, $columns, $upgrade_method = 'dbDelta' ) {
 
 
11
  $this->name = $name;
12
  $this->columns = $columns;
13
  $this->upgrade_method = $upgrade_method;
14
 
15
+ scb_register_table( $name );
 
16
 
17
  if ( $file ) {
18
  scbUtil::add_activation_hook( $file, array( $this, 'install' ) );
21
  }
22
 
23
  function install() {
24
+ scb_install_table( $this->name, $this->columns, $this->upgrade_method );
25
+ }
26
+
27
+ function uninstall() {
28
+ scb_uninstall_table( $this->name );
29
+ }
30
+ }
31
 
32
+ /**
33
+ * Register a table with $wpdb
34
+ *
35
+ * @param string $key The key to be used on the $wpdb object
36
+ * @param string $name The actual name of the table, without $wpdb->prefix
37
+ */
38
+ function scb_register_table( $key, $name = false ) {
39
+ global $wpdb;
40
 
41
+ if ( !$name )
42
+ $name = $key;
 
 
 
 
 
43
 
44
+ $wpdb->tables[] = $name;
45
+ $wpdb->$key = $wpdb->prefix . $name;
46
+ }
47
+
48
+ function scb_install_table( $key, $columns, $upgrade_method = 'dbDelta' ) {
49
+ global $wpdb;
50
 
51
+ $full_table_name = $wpdb->$key;
 
52
 
53
+ $charset_collate = '';
54
+ if ( $wpdb->has_cap( 'collation' ) ) {
55
+ if ( ! empty( $wpdb->charset ) )
56
+ $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
57
+ if ( ! empty( $wpdb->collate ) )
58
+ $charset_collate .= " COLLATE $wpdb->collate";
59
  }
60
 
61
+ if ( 'dbDelta' == $upgrade_method ) {
62
+ require_once ABSPATH . 'wp-admin/includes/upgrade.php';
63
+ dbDelta( "CREATE TABLE $full_table_name ( $columns ) $charset_collate" );
64
+ return;
65
+ }
66
 
67
+ if ( 'delete_first' == $upgrade_method )
68
+ $wpdb->query( "DROP TABLE IF EXISTS $full_table_name;" );
69
 
70
+ $wpdb->query( "CREATE TABLE IF NOT EXISTS $full_table_name ( $columns ) $charset_collate;" );
71
+ }
72
+
73
+ function scb_uninstall_table( $key ) {
74
+ global $wpdb;
75
+
76
+ $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->$key );
77
  }
78
 
scb/Util.php CHANGED
@@ -32,7 +32,7 @@ class scbUtil {
32
  echo "</script>";
33
  }
34
 
35
- // Enable delayed activation ( to be used with scb_init() )
36
  static function add_activation_hook( $plugin, $callback ) {
37
  if ( defined( 'SCB_LOAD_MU' ) )
38
  register_activation_hook( $plugin, $callback );
@@ -40,13 +40,22 @@ class scbUtil {
40
  add_action( 'scb_activation_' . plugin_basename( $plugin ), $callback );
41
  }
42
 
43
- // Have more than one uninstall hooks; also prevents an UPDATE query on each page load
 
 
 
 
 
44
  static function add_uninstall_hook( $plugin, $callback ) {
45
  register_uninstall_hook( $plugin, '__return_false' ); // dummy
46
 
47
  add_action( 'uninstall_' . plugin_basename( $plugin ), $callback );
48
  }
49
 
 
 
 
 
50
  // Get the current, full URL
51
  static function get_current_url() {
52
  return ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
@@ -103,6 +112,10 @@ class scbUtil {
103
  }
104
  }
105
 
 
 
 
 
106
 
107
  // Transform a list of objects into an associative array
108
  function scb_list_fold( $list, $key, $value ) {
32
  echo "</script>";
33
  }
34
 
35
+ // Enable delayed activation; to be used with scb_init()
36
  static function add_activation_hook( $plugin, $callback ) {
37
  if ( defined( 'SCB_LOAD_MU' ) )
38
  register_activation_hook( $plugin, $callback );
40
  add_action( 'scb_activation_' . plugin_basename( $plugin ), $callback );
41
  }
42
 
43
+ static function do_activation( $plugin ) {
44
+ do_action( 'scb_activation_' . plugin_basename( $plugin ) );
45
+ }
46
+
47
+ // Allows more than one uninstall hooks.
48
+ // Also prevents an UPDATE query on each page load.
49
  static function add_uninstall_hook( $plugin, $callback ) {
50
  register_uninstall_hook( $plugin, '__return_false' ); // dummy
51
 
52
  add_action( 'uninstall_' . plugin_basename( $plugin ), $callback );
53
  }
54
 
55
+ static function do_uninstall( $plugin ) {
56
+ do_action( 'uninstall_' . plugin_basename( $plugin ) );
57
+ }
58
+
59
  // Get the current, full URL
60
  static function get_current_url() {
61
  return ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
112
  }
113
  }
114
 
115
+ // Return a standard admin notice
116
+ function scb_admin_notice( $msg, $class = 'updated' ) {
117
+ return "<div class='$class fade'><p>$msg</p></div>\n";
118
+ }
119
 
120
  // Transform a list of objects into an associative array
121
  function scb_list_fold( $list, $key, $value ) {
scb/load.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- $GLOBALS['_scb_data'] = array( 42, __FILE__, array(
4
  'scbUtil', 'scbOptions', 'scbForms', 'scbTable',
5
  'scbWidget', 'scbAdminPage', 'scbBoxesPage',
6
  'scbCron', 'scbHooks',
@@ -9,7 +9,7 @@ $GLOBALS['_scb_data'] = array( 42, __FILE__, array(
9
  if ( !class_exists( 'scbLoad4' ) ) :
10
  class scbLoad4 {
11
 
12
- private static $candidates;
13
  private static $classes;
14
  private static $callbacks = array();
15
 
1
  <?php
2
 
3
+ $GLOBALS['_scb_data'] = array( 49, __FILE__, array(
4
  'scbUtil', 'scbOptions', 'scbForms', 'scbTable',
5
  'scbWidget', 'scbAdminPage', 'scbBoxesPage',
6
  'scbCron', 'scbHooks',
9
  if ( !class_exists( 'scbLoad4' ) ) :
10
  class scbLoad4 {
11
 
12
+ private static $candidates = array();
13
  private static $classes;
14
  private static $callbacks = array();
15
 
wp-pagenavi.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: WP-PageNavi
4
- Version: 2.81
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/
@@ -26,7 +26,7 @@ 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
- @include dirname( __FILE__ ) . '/scb/load.php';
30
 
31
  function _pagenavi_init() {
32
  load_plugin_textdomain( 'wp-pagenavi', '', dirname( plugin_basename( __FILE__ ) ) . '/lang' );
1
  <?php
2
  /*
3
  Plugin Name: WP-PageNavi
4
+ Version: 2.82
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/
26
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27
  */
28
 
29
+ include dirname( __FILE__ ) . '/scb/load.php';
30
 
31
  function _pagenavi_init() {
32
  load_plugin_textdomain( 'wp-pagenavi', '', dirname( plugin_basename( __FILE__ ) ) . '/lang' );