WP Maintenance Mode - Version 1.8.4

Version Description

  • Fix for include JS in frontend to use countdown
  • Small mini fix for a php notice
  • Add charset on spalsh page for strange databases
  • Enhanced default exclude adresses
  • Add shortcode [loginform] for easy use a login form in splash page
  • Test with WordPress 3.5
Download this release

Release Info

Developer Bueltge
Plugin Icon 128x128 WP Maintenance Mode
Version 1.8.4
Comparing to
See all releases

Code changes from version 1.8.3 to 1.8.4

inc/login-form.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * WordPress Login Form
4
+ *
5
+ * @since 11/25/2012
6
+ * @uses [loginform redirect="http://my-redirect-url.com"]
7
+ */
8
+
9
+ class WPMaintenanceMode_Login_Form {
10
+
11
+ public function __construct() {
12
+
13
+ add_shortcode( 'loginform', array( $this, 'login_form_shortcode' ) );
14
+ }
15
+
16
+ /**
17
+ * Get a default login form
18
+ *
19
+ * @param $atts Array
20
+ * @param $content String
21
+ */
22
+ public function login_form_shortcode( $atts, $content = NULL ) {
23
+
24
+ if ( is_multisite() && is_plugin_active_for_network( FB_WM_BASENAME ) )
25
+ $value = get_site_option( FB_WM_TEXTDOMAIN );
26
+ else
27
+ $value = get_option( FB_WM_TEXTDOMAIN );
28
+
29
+ extract( shortcode_atts(
30
+ array(
31
+ 'redirect' => ''
32
+ ),
33
+ $atts
34
+ ) );
35
+
36
+ if ( ! is_user_logged_in() ) {
37
+
38
+ // set default link
39
+ if ( '' == get_permalink() )
40
+ $redirect_default_url = home_url( '/' );
41
+
42
+ if ( ! isset( $value['rewrite'] ) || empty( $value['rewrite'] ) )
43
+ $redirect_url = $redirect_default_url;
44
+ else
45
+ $redirect_url = $value['rewrite'];
46
+
47
+ $form = wp_login_form( array(
48
+ 'echo' => FALSE,
49
+ 'redirect' => $redirect_url
50
+ ) );
51
+ }
52
+
53
+ return $form;
54
+ }
55
+
56
+ } // end class
57
+ new WPMaintenanceMode_Login_Form();
58
+
inc/wp-maintenance-mode-settings.php CHANGED
@@ -211,7 +211,10 @@ class WPMaintenanceMode_Settings {
211
  <td class="alternate">
212
  <textarea class="code" style="width: 95%;" cols="40" rows="4" name="wm_config-text" id="wm_config-text"><?php if ( isset($value['text']) ) echo esc_attr($value['text']); ?></textarea>
213
  <br />
214
- <small><?php _e( 'Use the first <em>%1$s</em> for the time value or countdown and second <em>%2$s</em> for the unit of the time or countdown-value; HTML and Shortcodes are possible', FB_WM_TEXTDOMAIN ); ?></small>
 
 
 
215
  </td>
216
  </tr>
217
  <tr valign="top">
@@ -221,7 +224,7 @@ class WPMaintenanceMode_Settings {
221
  <td>
222
  <?php
223
  if ( isset($value['exclude']) && '' !== $value['exclude'][0] ) {
224
- if ( 1 < count($value['exclude']) ) {
225
  $value_exclude = join( ', ', $value['exclude'] );
226
  } else {
227
  $value_exclude = $value['exclude'];
@@ -230,7 +233,7 @@ class WPMaintenanceMode_Settings {
230
  $value_exclude = NULL;
231
  }
232
  ?>
233
- <input size="30" type="text" id="wm_config-exclude" name="wm_config-exclude" value="<?php echo $value_exclude; ?>" />
234
  <br />
235
  <small><?php _e( 'Exclude feed, pages, posts, archives or IPs from the maintenance mode. Add the Slug of page or post as a comma-separated list.<br />Example:', FB_WM_TEXTDOMAIN ); ?> <code>wp-cron, feed, wp-admin, ?page_id=12, about, category/test, 127.0.0.1</code></small>
236
  </td>
211
  <td class="alternate">
212
  <textarea class="code" style="width: 95%;" cols="40" rows="4" name="wm_config-text" id="wm_config-text"><?php if ( isset($value['text']) ) echo esc_attr($value['text']); ?></textarea>
213
  <br />
214
+ <small>
215
+ <?php _e( 'Use the first <em>%1$s</em> for the time value or countdown and second <em>%2$s</em> for the unit of the time or countdown-value; HTML and Shortcodes are possible.', FB_WM_TEXTDOMAIN ); ?>
216
+ <?php _e( 'Use <code>[loginform]</code> for add the default login form in the maintenance page.', FB_WM_TEXTDOMAIN ); ?>
217
+ </small>
218
  </td>
219
  </tr>
220
  <tr valign="top">
224
  <td>
225
  <?php
226
  if ( isset($value['exclude']) && '' !== $value['exclude'][0] ) {
227
+ if ( 1 <= count($value['exclude']) ) {
228
  $value_exclude = join( ', ', $value['exclude'] );
229
  } else {
230
  $value_exclude = $value['exclude'];
233
  $value_exclude = NULL;
234
  }
235
  ?>
236
+ <input class="large-text" size="30" type="text" id="wm_config-exclude" name="wm_config-exclude" value="<?php echo $value_exclude; ?>" />
237
  <br />
238
  <small><?php _e( 'Exclude feed, pages, posts, archives or IPs from the maintenance mode. Add the Slug of page or post as a comma-separated list.<br />Example:', FB_WM_TEXTDOMAIN ); ?> <code>wp-cron, feed, wp-admin, ?page_id=12, about, category/test, 127.0.0.1</code></small>
239
  </td>
languages/wp-maintenance-mode-ja_JP.mo ADDED
Binary file
languages/wp-maintenance-mode-ja_JP.po ADDED
@@ -0,0 +1,452 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-11-14 12:06+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Frank Bueltge <frank@bueltge.de>\n"
8
+ "Language-Team: Jun Shirasawa <groovebrain@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
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-SourceCharset: UTF-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
15
+ "X-Poedit-Basepath: c:\\xampp\\htdocs\\wp-plugins\\wp-maintenance-mode\\\n"
16
+ "X-Textdomain-Support: yes\n"
17
+ "X-Generator: Poedit 1.5.4\n"
18
+ "Language: ja_JP\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ # @ wp-maintenance-mode
22
+ #: site.php:15
23
+ #: site.php:57
24
+ msgid "Maintenance Mode"
25
+ msgstr "メンテナンスモード"
26
+
27
+ # @ wp-maintenance-mode
28
+ #: site.php:64
29
+ msgid "Access to the admin area blocked"
30
+ msgstr "管理機能へのアクセスはブロックされています"
31
+
32
+ # @ wp-maintenance-mode
33
+ #: site.php:67
34
+ msgid "Admin-Logout"
35
+ msgstr "管理者ログアウト"
36
+
37
+ # @ wp-maintenance-mode
38
+ #: site.php:71
39
+ msgid "Admin-Login"
40
+ msgstr "管理者ログイン"
41
+
42
+ # @ default
43
+ #: wp-maintenance-mode.php:209
44
+ #: wp-maintenance-mode.php:219
45
+ msgid "Settings"
46
+ msgstr "設定"
47
+
48
+ # @ wp-maintenance-mode
49
+ #: wp-maintenance-mode.php:236
50
+ msgid "Maintenance mode"
51
+ msgstr "メンテナンスモード"
52
+
53
+ #: wp-maintenance-mode.php:237
54
+ #, php-format
55
+ msgid "<p>Sorry for the inconvenience.<br />Our website is currently undergoing scheduled maintenance.<br /><strong>Please try back in %1$s %2$s</strong><br />Thank you for your understanding.</p>"
56
+ msgstr "<p>ご不便をおかけしており大変恐縮です。<br />現在メンテナンス中でございます。<br /><strong>およそ %1$s %2$s</strong> 辺りには終了する見込みでございます。<br />お手数をおかけしますが、再度ご訪問いただけますようお願い申し上げます。</p>"
57
+
58
+ # @ wp-maintenance-mode
59
+ #: wp-maintenance-mode.php:277
60
+ #: wp-maintenance-mode.php:339
61
+ msgid "Updated"
62
+ msgstr "更新しました。"
63
+
64
+ # @ wp-maintenance-mode
65
+ #: wp-maintenance-mode.php:477
66
+ msgid "seconds"
67
+ msgstr "秒"
68
+
69
+ # @ wp-maintenance-mode
70
+ #: wp-maintenance-mode.php:481
71
+ msgid "minutes"
72
+ msgstr "分"
73
+
74
+ # @ wp-maintenance-mode
75
+ #: wp-maintenance-mode.php:485
76
+ msgid "hours"
77
+ msgstr "時間"
78
+
79
+ # @ wp-maintenance-mode
80
+ #: wp-maintenance-mode.php:489
81
+ msgid "days"
82
+ msgstr "日"
83
+
84
+ # @ wp-maintenance-mode
85
+ #: wp-maintenance-mode.php:493
86
+ msgid "weeks"
87
+ msgstr "週間"
88
+
89
+ # @ wp-maintenance-mode
90
+ #: wp-maintenance-mode.php:497
91
+ msgid "months"
92
+ msgstr "ヶ月"
93
+
94
+ # @ wp-maintenance-mode
95
+ #: wp-maintenance-mode.php:501
96
+ msgid "years"
97
+ msgstr "年"
98
+
99
+ #: wp-maintenance-mode.php:565
100
+ msgid " &amp; WP Super Cache flushed."
101
+ msgstr " &amp; WP Super Cache のフラッシュを行ないました。"
102
+
103
+ #: wp-maintenance-mode.php:572
104
+ msgid " &amp; W3 Total Cache for pages flushed."
105
+ msgstr " &amp; W3 Total Cache のフラッシュを行ないました。"
106
+
107
+ # @ wp-maintenance-mode
108
+ #: wp-maintenance-mode.php:575
109
+ #: wp-maintenance-mode.php:853
110
+ msgid "Caution: Maintenance mode is <strong>active</strong>!"
111
+ msgstr "注意: メンテナンスモードは<strong>有効</strong>です!"
112
+
113
+ # @ wp-maintenance-mode
114
+ #: wp-maintenance-mode.php:577
115
+ #: wp-maintenance-mode.php:581
116
+ msgid "Deactivate or change Settings"
117
+ msgstr "無効化または設定変更"
118
+
119
+ # @ wp-maintenance-mode
120
+ #: wp-maintenance-mode.php:651
121
+ msgid "Plugin by:"
122
+ msgstr "プラグイン作成:"
123
+
124
+ # @ wp-maintenance-mode
125
+ #: wp-maintenance-mode.php:653
126
+ #: wp-maintenance-mode.php:655
127
+ #: wp-maintenance-mode.php:657
128
+ #: wp-maintenance-mode.php:659
129
+ #: wp-maintenance-mode.php:661
130
+ #: wp-maintenance-mode.php:663
131
+ #: wp-maintenance-mode.php:665
132
+ #: wp-maintenance-mode.php:667
133
+ #: wp-maintenance-mode.php:669
134
+ #: wp-maintenance-mode.php:671
135
+ #: wp-maintenance-mode.php:673
136
+ msgid "Design by:"
137
+ msgstr "デザイン:"
138
+
139
+ # @ wp-maintenance-mode
140
+ #: inc/wp-maintenance-mode-settings.php:37
141
+ #: inc/wp-maintenance-mode-settings.php:313
142
+ #, php-format
143
+ msgid "Plugin %s settings <strong>updated</strong>."
144
+ msgstr "プラグイン %s の設定が <strong>変更されました</strong>。"
145
+
146
+ # @ wp-maintenance-mode
147
+ #: inc/wp-maintenance-mode-settings.php:40
148
+ #: inc/wp-maintenance-mode-settings.php:53
149
+ #, php-format
150
+ msgid "Plugin %s active status <strong>updated</strong>."
151
+ msgstr "プラグイン %s の有効無効状態が <strong>更新されました</strong>。"
152
+
153
+ # @ wp-maintenance-mode
154
+ #: inc/wp-maintenance-mode-settings.php:43
155
+ msgid "Plugin Activate"
156
+ msgstr "プラグイン有効化"
157
+
158
+ # @ wp-maintenance-mode
159
+ #: inc/wp-maintenance-mode-settings.php:47
160
+ #: inc/wp-maintenance-mode-settings.php:66
161
+ #: inc/wp-maintenance-mode-settings.php:110
162
+ #: inc/wp-maintenance-mode-settings.php:123
163
+ #: inc/wp-maintenance-mode-settings.php:176
164
+ msgid "False"
165
+ msgstr "いいえ"
166
+
167
+ # @ wp-maintenance-mode
168
+ #: inc/wp-maintenance-mode-settings.php:48
169
+ #: inc/wp-maintenance-mode-settings.php:67
170
+ #: inc/wp-maintenance-mode-settings.php:111
171
+ #: inc/wp-maintenance-mode-settings.php:124
172
+ #: inc/wp-maintenance-mode-settings.php:177
173
+ msgid "True"
174
+ msgstr "はい"
175
+
176
+ # @ wp-maintenance-mode
177
+ #: inc/wp-maintenance-mode-settings.php:50
178
+ msgid "Update"
179
+ msgstr "更新"
180
+
181
+ # @ wp-maintenance-mode
182
+ #: inc/wp-maintenance-mode-settings.php:56
183
+ msgid "Plugin Settings"
184
+ msgstr "プラグイン設定"
185
+
186
+ # @ wp-maintenance-mode
187
+ #: inc/wp-maintenance-mode-settings.php:62
188
+ msgid "Countdown:"
189
+ msgstr "Countdown:"
190
+
191
+ # @ wp-maintenance-mode
192
+ #: inc/wp-maintenance-mode-settings.php:73
193
+ #: inc/wp-maintenance-mode-settings.php:76
194
+ msgid "Click for datepicker"
195
+ msgstr "カウントダウン"
196
+
197
+ # @ wp-maintenance-mode
198
+ #: inc/wp-maintenance-mode-settings.php:73
199
+ msgid "Date:"
200
+ msgstr "日付:"
201
+
202
+ # @ wp-maintenance-mode
203
+ #: inc/wp-maintenance-mode-settings.php:77
204
+ msgid "Activate countdown for using this. Use value and unit or use the countdown and set the date."
205
+ msgstr "これを使うには「カウントダウン」を有効にして下さい。値と単位を使うか、カウントダウンを使って日数を設定して下さい。"
206
+
207
+ # @ wp-maintenance-mode
208
+ #: inc/wp-maintenance-mode-settings.php:82
209
+ msgid "Value:"
210
+ msgstr "値:"
211
+
212
+ # @ wp-maintenance-mode
213
+ #: inc/wp-maintenance-mode-settings.php:90
214
+ msgid "Unit:"
215
+ msgstr "単位:"
216
+
217
+ # @ wp-maintenance-mode
218
+ #: inc/wp-maintenance-mode-settings.php:94
219
+ msgid "second"
220
+ msgstr "秒"
221
+
222
+ # @ wp-maintenance-mode
223
+ #: inc/wp-maintenance-mode-settings.php:95
224
+ msgid "minute"
225
+ msgstr "分"
226
+
227
+ # @ wp-maintenance-mode
228
+ #: inc/wp-maintenance-mode-settings.php:96
229
+ msgid "hour"
230
+ msgstr "時"
231
+
232
+ # @ wp-maintenance-mode
233
+ #: inc/wp-maintenance-mode-settings.php:97
234
+ msgid "day"
235
+ msgstr "日"
236
+
237
+ # @ wp-maintenance-mode
238
+ #: inc/wp-maintenance-mode-settings.php:98
239
+ msgid "week"
240
+ msgstr "週"
241
+
242
+ # @ wp-maintenance-mode
243
+ #: inc/wp-maintenance-mode-settings.php:99
244
+ msgid "month"
245
+ msgstr "月"
246
+
247
+ # @ wp-maintenance-mode
248
+ #: inc/wp-maintenance-mode-settings.php:100
249
+ msgid "year"
250
+ msgstr "年"
251
+
252
+ # @ wp-maintenance-mode
253
+ #: inc/wp-maintenance-mode-settings.php:106
254
+ msgid "Link:"
255
+ msgstr "リンク:"
256
+
257
+ # @ wp-maintenance-mode
258
+ #: inc/wp-maintenance-mode-settings.php:114
259
+ msgid "Please leave a link to the plugin- and design-author on your maintenance mode site."
260
+ msgstr "プラグイン作者とデザイン担当へのリンクは残して置いて下さるとありがたいです。"
261
+
262
+ # @ wp-maintenance-mode
263
+ #: inc/wp-maintenance-mode-settings.php:119
264
+ msgid "Admin Link:"
265
+ msgstr "Admin Link:"
266
+
267
+ #: inc/wp-maintenance-mode-settings.php:127
268
+ msgid "Do you will a link to the admin area of your install?"
269
+ msgstr "管理領域へのリンクを置きますか?"
270
+
271
+ # @ wp-maintenance-mode
272
+ #: inc/wp-maintenance-mode-settings.php:132
273
+ msgid "Theme:"
274
+ msgstr "テーマ:"
275
+
276
+ # @ wp-maintenance-mode
277
+ #: inc/wp-maintenance-mode-settings.php:136
278
+ msgid "Own Style"
279
+ msgstr "独自デザイン"
280
+
281
+ # @ wp-maintenance-mode
282
+ #: inc/wp-maintenance-mode-settings.php:137
283
+ msgid "Simple Text"
284
+ msgstr "単純テキスト"
285
+
286
+ # @ wp-maintenance-mode
287
+ #: inc/wp-maintenance-mode-settings.php:138
288
+ msgid "The Truck"
289
+ msgstr "Der Truck"
290
+
291
+ # @ wp-maintenance-mode
292
+ #: inc/wp-maintenance-mode-settings.php:139
293
+ msgid "The Sun"
294
+ msgstr "The Sun"
295
+
296
+ # @ wp-maintenance-mode
297
+ #: inc/wp-maintenance-mode-settings.php:140
298
+ msgid "The FF Error"
299
+ msgstr "The FF Error"
300
+
301
+ # @ wp-maintenance-mode
302
+ #: inc/wp-maintenance-mode-settings.php:141
303
+ msgid "Monster"
304
+ msgstr "Monster"
305
+
306
+ # @ wp-maintenance-mode
307
+ #: inc/wp-maintenance-mode-settings.php:142
308
+ msgid "Chastely"
309
+ msgstr "Chastely"
310
+
311
+ # @ wp-maintenance-mode
312
+ #: inc/wp-maintenance-mode-settings.php:143
313
+ msgid "Only Typo"
314
+ msgstr "Only Typo"
315
+
316
+ # @ wp-maintenance-mode
317
+ #: inc/wp-maintenance-mode-settings.php:144
318
+ msgid "Paint"
319
+ msgstr "Paint"
320
+
321
+ # @ wp-maintenance-mode
322
+ #: inc/wp-maintenance-mode-settings.php:145
323
+ msgid "Animate (Flash)"
324
+ msgstr "Animate (Flash)"
325
+
326
+ # @ wp-maintenance-mode
327
+ #: inc/wp-maintenance-mode-settings.php:146
328
+ msgid "Damask"
329
+ msgstr "Damask"
330
+
331
+ # @ wp-maintenance-mode
332
+ #: inc/wp-maintenance-mode-settings.php:147
333
+ msgid "Lego"
334
+ msgstr "Lego"
335
+
336
+ # @ wp-maintenance-mode
337
+ #: inc/wp-maintenance-mode-settings.php:148
338
+ msgid "Chemistry"
339
+ msgstr "Chemielabor"
340
+
341
+ # @ wp-maintenance-mode
342
+ #: inc/wp-maintenance-mode-settings.php:154
343
+ msgid "Own Style URL:"
344
+ msgstr "独自スタイルのURL:"
345
+
346
+ # @ wp-maintenance-mode
347
+ #: inc/wp-maintenance-mode-settings.php:157
348
+ msgid "URL to the css-file (incl. http://)"
349
+ msgstr "CSSファイルへのリンク(http:// で始まること)"
350
+
351
+ # @ wp-maintenance-mode
352
+ #: inc/wp-maintenance-mode-settings.php:159
353
+ msgid "<strong>Coution:</strong> Please don&acute;t copy the stylesheet in your plugin folder, it will be deleted on the next automatical update of the plugin!"
354
+ msgstr "<strong>ご注意:</strong> スタイルシートをプラグインディレクトリの中にコピーしないで下さい。次回の自動更新の時に削除されてしまいます!"
355
+
356
+ # @ wp-maintenance-mode
357
+ #: inc/wp-maintenance-mode-settings.php:164
358
+ #: inc/wp-maintenance-mode-settings.php:167
359
+ msgid "Preview"
360
+ msgstr "プレビュー"
361
+
362
+ #: inc/wp-maintenance-mode-settings.php:172
363
+ msgid "noindex, nofollow:"
364
+ msgstr "noindex, nofollow:"
365
+
366
+ #: inc/wp-maintenance-mode-settings.php:180
367
+ msgid "The robots meta tag lets you utilize a granular, page-specific approach to controlling how an individual page should be indexed and served to users in search results. Set TRUE for noindex, nofollow; set FALSE for index, follow."
368
+ msgstr "ロボットメタタグは、どのページがインデックスされ検索結果に載せられてユーザーに提供されるかを、きめ細かくページ単位で制御するやり方を可能にします。インデックスもリンク追跡もしなければ「はい」を、インデックスもリンク追跡も許可するなら「いいえ」を設定して下さい。"
369
+
370
+ # @ wp-maintenance-mode
371
+ #: inc/wp-maintenance-mode-settings.php:185
372
+ msgid "Title:"
373
+ msgstr "タイトル:"
374
+
375
+ # @ wp-maintenance-mode
376
+ #: inc/wp-maintenance-mode-settings.php:188
377
+ #: inc/wp-maintenance-mode-settings.php:196
378
+ #: inc/wp-maintenance-mode-settings.php:204
379
+ msgid "Leave empty for default."
380
+ msgstr "空にしておくとデフォルト値が使われます。"
381
+
382
+ # @ wp-maintenance-mode
383
+ #: inc/wp-maintenance-mode-settings.php:193
384
+ msgid "Header:"
385
+ msgstr "ヘッダー:"
386
+
387
+ # @ wp-maintenance-mode
388
+ #: inc/wp-maintenance-mode-settings.php:201
389
+ msgid "Heading:"
390
+ msgstr "ヘッディング:"
391
+
392
+ # @ wp-maintenance-mode
393
+ #: inc/wp-maintenance-mode-settings.php:209
394
+ msgid "Text:"
395
+ msgstr "テキスト:"
396
+
397
+ # @ wp-maintenance-mode
398
+ #: inc/wp-maintenance-mode-settings.php:214
399
+ #, php-format
400
+ msgid "Use the first <em>%1$s</em> for the time value or countdown and second <em>%2$s</em> for the unit of the time or countdown-value; HTML and Shortcodes are possible"
401
+ msgstr "最初の %1$s はカウントダウンの時間値、二番目の %2$s はカウントダウン値に対する単位です。HTMLの記法やショートコードも記述可能です。"
402
+
403
+ # @ wp-maintenance-mode
404
+ #: inc/wp-maintenance-mode-settings.php:219
405
+ msgid "Exclude:"
406
+ msgstr "除外対象"
407
+
408
+ # @ wp-maintenance-mode
409
+ #: inc/wp-maintenance-mode-settings.php:235
410
+ msgid "Exclude feed, pages, posts, archives or IPs from the maintenance mode. Add the Slug of page or post as a comma-separated list.<br />Example:"
411
+ msgstr "フィード、ページや投稿、または特定のIPアドレスからのアクセスをメンテナンスから除外できます。ページや投稿のスラッグをカンマで区切って入力して下さい。"
412
+
413
+ #: inc/wp-maintenance-mode-settings.php:240
414
+ msgid "Backend Role:"
415
+ msgstr "バックエンドロール:"
416
+
417
+ # @ wp-maintenance-mode
418
+ #: inc/wp-maintenance-mode-settings.php:265
419
+ msgid "Allowed userrole to access the backend of this blog."
420
+ msgstr "このブログのバックエンドに対するアクセスを持ったユーザーロール"
421
+
422
+ # @ wp-maintenance-mode
423
+ #: inc/wp-maintenance-mode-settings.php:266
424
+ #: inc/wp-maintenance-mode-settings.php:297
425
+ msgid "Super Admin has always access."
426
+ msgstr "特権管理者は常にアクセスできます。"
427
+
428
+ #: inc/wp-maintenance-mode-settings.php:271
429
+ msgid "Frontend Role:"
430
+ msgstr "フロントエンドロール:"
431
+
432
+ # @ wp-maintenance-mode
433
+ #: inc/wp-maintenance-mode-settings.php:296
434
+ msgid "Allowed userrole to see the frontend of this blog."
435
+ msgstr "このブログのフロントエンドにアクセスできるユーザーロール"
436
+
437
+ #: inc/wp-maintenance-mode-settings.php:302
438
+ msgid "Redirection:"
439
+ msgstr "リダイレクト:"
440
+
441
+ #: inc/wp-maintenance-mode-settings.php:307
442
+ msgid "If you want that after the login the destination address is not standard to the dashboard, then defining a URL. (incl. http://)"
443
+ msgstr ""
444
+
445
+ # @ wp-maintenance-mode
446
+ #: inc/wp-maintenance-mode-settings.php:316
447
+ msgid "Save"
448
+ msgstr "保存"
449
+
450
+ msgid "Rewrite:"
451
+ msgstr "書き直す:"
452
+
readme.txt CHANGED
@@ -7,8 +7,8 @@ Author URI: http://bueltge.de/
7
  Donate link: http://bueltge.de/wunschliste/
8
  Tags: maintenance, mode, admin, administration, unavailable, coming soon, multisite
9
  Requires at least: 2.6
10
- Tested up to: 3.5-beta3
11
- Stable tag: 1.8.3
12
 
13
  Adds a splash page to your site that lets visitors know your site is down for maintenance. Full access to the back- & front-end is optional.
14
 
@@ -17,6 +17,8 @@ Adds a maintenance-page to your blog that lets visitors know your blog is down f
17
  Activate the plugin and your blog is in maintenance-mode, works and see the frontend, only registered users with enough rights. You can use a date with a countdown for informations the visitors or set a value and unit for infomrations.
18
  Also you can add urls for exlude of maintenance mode.
19
 
 
 
20
  You can add your own html and stylesheet and add the url of this style to the options of the plugin. Write your style to this markup and upload to the webspace; after add the url include http:// to the settings of this plugin and change th theme to `"Own Theme"`:
21
 
22
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
@@ -239,9 +241,18 @@ Please visit [Automatisches Backup der WordPress-Datenbank](http://www.beedy.de/
239
  * Thanks to [Brian Flores](http://www.inmotionhosting.com/) for serbian translation
240
  * Lithuanian translation files by [Vincent G](http://www.host1plus.com)
241
  * Swedish translation files by [Kenneth Andersson](http://www.telia.se/)
 
242
 
243
 
244
  == Changelog ==
 
 
 
 
 
 
 
 
245
  = 1.8.3 =
246
  * Fix for the forgotten update of JS-files; slow SVN :(
247
  * Minor Fixes, see (Bugtracker)[http://bueltge.de/bt/view.php?id=2]
7
  Donate link: http://bueltge.de/wunschliste/
8
  Tags: maintenance, mode, admin, administration, unavailable, coming soon, multisite
9
  Requires at least: 2.6
10
+ Tested up to: 3.5-RC3
11
+ Stable tag: 1.8.4
12
 
13
  Adds a splash page to your site that lets visitors know your site is down for maintenance. Full access to the back- & front-end is optional.
14
 
17
  Activate the plugin and your blog is in maintenance-mode, works and see the frontend, only registered users with enough rights. You can use a date with a countdown for informations the visitors or set a value and unit for infomrations.
18
  Also you can add urls for exlude of maintenance mode.
19
 
20
+ Use the shortcode `[loginform]` for easy use a login form on the maintenance page.
21
+
22
  You can add your own html and stylesheet and add the url of this style to the options of the plugin. Write your style to this markup and upload to the webspace; after add the url include http:// to the settings of this plugin and change th theme to `"Own Theme"`:
23
 
24
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
241
  * Thanks to [Brian Flores](http://www.inmotionhosting.com/) for serbian translation
242
  * Lithuanian translation files by [Vincent G](http://www.host1plus.com)
243
  * Swedish translation files by [Kenneth Andersson](http://www.telia.se/)
244
+ * Japanese translation files by [Groove Brain]
245
 
246
 
247
  == Changelog ==
248
+ = 1.8.4 =
249
+ * Fix for include JS in frontend to use countdown
250
+ * Small mini fix for a php notice
251
+ * Add charset on spalsh page for strange databases
252
+ * Enhanced default exclude adresses
253
+ * Add shortcode `[loginform]` for easy use a login form in splash page
254
+ * Test with WordPress 3.5
255
+
256
  = 1.8.3 =
257
  * Fix for the forgotten update of JS-files; slow SVN :(
258
  * Minor Fixes, see (Bugtracker)[http://bueltge.de/bt/view.php?id=2]
site.php CHANGED
@@ -81,13 +81,13 @@ if ( !isset($value) ) {
81
  <?php
82
  $td = WPMaintenanceMode::check_datetime();
83
  if ( isset($td[2]) && 0 !== $td[2] ) {
84
-
85
  $locale = substr($locale, 0, 2);
86
  ?>
87
  <script type="text/javascript" src="<?php bloginfo('url') ?>/wp-includes/js/jquery/jquery.js"></script>
88
- <script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown.pack.js', basename(dirname(__FILE__ ))); ?>"></script>
89
  <?php if ( @file_exists( FB_WM_BASE . '/js/jquery.countdown-' . $locale . '.js') ) { ?>
90
- <script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown-' . $locale . '.js', basename(dirname(__FILE__ )) ); ?>"></script>
91
  <?php } ?>
92
  <script type="text/javascript">
93
  jQuery(document).ready( function($){
81
  <?php
82
  $td = WPMaintenanceMode::check_datetime();
83
  if ( isset($td[2]) && 0 !== $td[2] ) {
84
+
85
  $locale = substr($locale, 0, 2);
86
  ?>
87
  <script type="text/javascript" src="<?php bloginfo('url') ?>/wp-includes/js/jquery/jquery.js"></script>
88
+ <script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown.pack.js', __FILE__ ); ?>"></script>
89
  <?php if ( @file_exists( FB_WM_BASE . '/js/jquery.countdown-' . $locale . '.js') ) { ?>
90
+ <script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown-' . $locale . '.js', __FILE__ ); ?>"></script>
91
  <?php } ?>
92
  <script type="text/javascript">
93
  jQuery(document).ready( function($){
wp-maintenance-mode.php CHANGED
@@ -8,8 +8,8 @@
8
  * Author: Frank B&uuml;ltge
9
  * Author URI: http://bueltge.de/
10
  * Donate URI: http://bueltge.de/wunschliste/
11
- * Version: 1.8.3
12
- * Last change: 11/15/2012
13
  * License: GPLv3
14
  *
15
  *
@@ -108,7 +108,7 @@ if ( ! class_exists('WPMaintenanceMode') ) {
108
  // function for WP < 2.8
109
  function get_plugins_url( $path = '', $plugin = '' ) {
110
 
111
- if ( function_exists('plugin_url') )
112
  return plugins_url($path, $plugin);
113
 
114
  if ( function_exists('is_ssl') )
@@ -124,15 +124,15 @@ if ( ! class_exists('WPMaintenanceMode') ) {
124
  $url = str_replace( 'http://', "{$scheme}://", $url );
125
  }
126
 
127
- if ( !empty($plugin) && is_string($plugin) ) {
128
  $folder = dirname(plugin_basename($plugin));
129
  if ('.' != $folder)
130
  $url .= '/' . ltrim($folder, '/');
131
  }
132
 
133
- if ( !empty($path) && is_string($path) && ( FALSE === strpos($path, '..') ) )
134
  $url .= '/' . ltrim($path, '/');
135
-
136
  return apply_filters('plugins_url', $url, $path, $plugin);
137
  }
138
 
@@ -203,6 +203,7 @@ if ( ! class_exists('WPMaintenanceMode') ) {
203
 
204
 
205
  function add_settings_link( $links, $file ) {
 
206
  if ( plugin_basename( __FILE__ ) == $file )
207
  array_unshift(
208
  $links,
@@ -235,7 +236,7 @@ if ( ! class_exists('WPMaintenanceMode') ) {
235
  'unit' => 1,
236
  'title' => __( 'Maintenance mode', FB_WM_TEXTDOMAIN ),
237
  'text' => __( '<p>Sorry for the inconvenience.<br />Our website is currently undergoing scheduled maintenance.<br /><strong>Please try back in %1$s %2$s</strong><br />Thank you for your understanding.</p>', FB_WM_TEXTDOMAIN ),
238
- 'exclude' => 'wp-cron, feed, login'
239
  );
240
  // if is active in network of multisite
241
  if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) {
@@ -400,7 +401,7 @@ if ( ! class_exists('WPMaintenanceMode') ) {
400
  else
401
  $value = get_option( FB_WM_TEXTDOMAIN );
402
 
403
- if ( ! isset($value['exclude']) )
404
  return FALSE;
405
 
406
  foreach ( (array) $value['exclude'] as $exclude ) {
@@ -601,6 +602,11 @@ if ( ! class_exists('WPMaintenanceMode') ) {
601
  if ( isset($value['unit']) )
602
  $unitvalues = $this->case_unit($value['unit']);
603
 
 
 
 
 
 
604
  // set backtime for header status
605
  if ( isset($value['time']) )
606
  $backtime = $value['time'] * $unitvalues['multiplier'];
@@ -614,6 +620,7 @@ if ( ! class_exists('WPMaintenanceMode') ) {
614
  ) {
615
  $rolestatus = 'norights';
616
  nocache_headers();
 
617
  header("HTTP/1.0 503 Service Unavailable");
618
  header("Retry-After: $backtime");
619
  include('site.php');
@@ -635,6 +642,7 @@ if ( ! class_exists('WPMaintenanceMode') ) {
635
  exit();
636
  } else if ( strstr($_SERVER['PHP_SELF'], 'feed/') || strstr($_SERVER['PHP_SELF'], 'trackback/') ) {
637
  nocache_headers();
 
638
  header("HTTP/1.0 503 Service Unavailable");
639
  header("Retry-After: $backtime");
640
  exit();
@@ -789,11 +797,14 @@ if ( ! class_exists('WPMaintenanceMode') ) {
789
  function add_content() {
790
 
791
  $locale = get_locale();
 
792
  if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
793
  $value = get_site_option( FB_WM_TEXTDOMAIN );
794
  else
795
  $value = get_option( FB_WM_TEXTDOMAIN );
 
796
  $echo = NULL;
 
797
  // default for unit
798
  if ( ! isset($value['unit']) )
799
  $value['unit'] = NULL;
@@ -801,9 +812,12 @@ if ( ! class_exists('WPMaintenanceMode') ) {
801
  $unitvalues = $this->case_unit($value['unit']);
802
  $td = $this->check_datetime();
803
 
 
 
 
804
  if ( isset($value['radio']) && 1 === $value['radio'] && 0 !== $td[2] ) {
805
  $echo = wp_sprintf(
806
- stripslashes_deep( $value['text']),
807
  '<br /><span id="countdown"></span>',
808
  date_i18n( get_option('date_format'), strtotime( $td[0][0] ) )
809
  );
8
  * Author: Frank B&uuml;ltge
9
  * Author URI: http://bueltge.de/
10
  * Donate URI: http://bueltge.de/wunschliste/
11
+ * Version: 1.8.4
12
+ * Last change: 11/25/2012
13
  * License: GPLv3
14
  *
15
  *
108
  // function for WP < 2.8
109
  function get_plugins_url( $path = '', $plugin = '' ) {
110
 
111
+ if ( function_exists('plugins_url') )
112
  return plugins_url($path, $plugin);
113
 
114
  if ( function_exists('is_ssl') )
124
  $url = str_replace( 'http://', "{$scheme}://", $url );
125
  }
126
 
127
+ if ( ! empty($plugin) && is_string($plugin) ) {
128
  $folder = dirname(plugin_basename($plugin));
129
  if ('.' != $folder)
130
  $url .= '/' . ltrim($folder, '/');
131
  }
132
 
133
+ if ( ! empty($path) && is_string($path) && ( FALSE === strpos($path, '..') ) )
134
  $url .= '/' . ltrim($path, '/');
135
+
136
  return apply_filters('plugins_url', $url, $path, $plugin);
137
  }
138
 
203
 
204
 
205
  function add_settings_link( $links, $file ) {
206
+
207
  if ( plugin_basename( __FILE__ ) == $file )
208
  array_unshift(
209
  $links,
236
  'unit' => 1,
237
  'title' => __( 'Maintenance mode', FB_WM_TEXTDOMAIN ),
238
  'text' => __( '<p>Sorry for the inconvenience.<br />Our website is currently undergoing scheduled maintenance.<br /><strong>Please try back in %1$s %2$s</strong><br />Thank you for your understanding.</p>', FB_WM_TEXTDOMAIN ),
239
+ 'exclude' => 'wp-cron, feed, wp-login, login, wp-admin'
240
  );
241
  // if is active in network of multisite
242
  if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) {
401
  else
402
  $value = get_option( FB_WM_TEXTDOMAIN );
403
 
404
+ if ( ! isset($value['exclude']) || empty( $value['exclude'][0] ) )
405
  return FALSE;
406
 
407
  foreach ( (array) $value['exclude'] as $exclude ) {
602
  if ( isset($value['unit']) )
603
  $unitvalues = $this->case_unit($value['unit']);
604
 
605
+ if ( get_bloginfo('charset') )
606
+ $charset = get_bloginfo('charset');
607
+ else
608
+ $charset = 'UTF-8';
609
+
610
  // set backtime for header status
611
  if ( isset($value['time']) )
612
  $backtime = $value['time'] * $unitvalues['multiplier'];
620
  ) {
621
  $rolestatus = 'norights';
622
  nocache_headers();
623
+ header("Content-type: text/html; charset=$charset");
624
  header("HTTP/1.0 503 Service Unavailable");
625
  header("Retry-After: $backtime");
626
  include('site.php');
642
  exit();
643
  } else if ( strstr($_SERVER['PHP_SELF'], 'feed/') || strstr($_SERVER['PHP_SELF'], 'trackback/') ) {
644
  nocache_headers();
645
+ header("Content-type: text/html; charset=$charset");
646
  header("HTTP/1.0 503 Service Unavailable");
647
  header("Retry-After: $backtime");
648
  exit();
797
  function add_content() {
798
 
799
  $locale = get_locale();
800
+
801
  if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
802
  $value = get_site_option( FB_WM_TEXTDOMAIN );
803
  else
804
  $value = get_option( FB_WM_TEXTDOMAIN );
805
+
806
  $echo = NULL;
807
+
808
  // default for unit
809
  if ( ! isset($value['unit']) )
810
  $value['unit'] = NULL;
812
  $unitvalues = $this->case_unit($value['unit']);
813
  $td = $this->check_datetime();
814
 
815
+ if ( ! empty( $value['text'] ) )
816
+ $value['text'] = apply_filters( 'the_content', $value['text'] );
817
+
818
  if ( isset($value['radio']) && 1 === $value['radio'] && 0 !== $td[2] ) {
819
  $echo = wp_sprintf(
820
+ stripslashes_deep( $value['text'] ),
821
  '<br /><span id="countdown"></span>',
822
  date_i18n( get_option('date_format'), strtotime( $td[0][0] ) )
823
  );