Version Description
(12/02/2011) = * add functionalities to use in WP Multisite * remove message in header, current is not fixed the ticked in core and the message on Admin Bar an Notice is enough * check on WP 3.3RC1
Download this release
Release Info
| Developer | Bueltge |
| Plugin | |
| Version | 1.7.0 |
| Comparing to | |
| See all releases | |
Code changes from version 1.6.10 to 1.7.0
- WP Maintenance Mode-da_DK.txt +0 -0
- css/jquery.countdown.css +0 -0
- css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- css/overcast/images/ui-bg_flat_55_c0402a_40x100.png +0 -0
- css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png +0 -0
- css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
- css/overcast/images/ui-bg_glass_35_dddddd_1x400.png +0 -0
- css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png +0 -0
- css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png +0 -0
- css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
- css/overcast/images/ui-icons_3383bb_256x240.png +0 -0
- css/overcast/images/ui-icons_454545_256x240.png +0 -0
- css/overcast/images/ui-icons_70b2e1_256x240.png +0 -0
- css/overcast/images/ui-icons_999999_256x240.png +0 -0
- css/overcast/images/ui-icons_fbc856_256x240.png +0 -0
- css/overcast/jquery-ui-1.7.2.custom.css +0 -0
- css/style.css +0 -0
- index.php +0 -0
- js/de_DE.datetimepicker.js +0 -0
- js/jquery.countdown-ar.js +0 -0
- js/jquery.countdown-cs.js +0 -0
- js/jquery.countdown-da.js +0 -0
- js/jquery.countdown-de.js +0 -0
- js/jquery.countdown-es.js +0 -0
- js/jquery.countdown-fa.js +0 -0
- js/jquery.countdown-fi.js +0 -0
- js/jquery.countdown-fr.js +0 -0
- js/jquery.countdown-gl.js +0 -0
- js/jquery.countdown-he.js +0 -0
- js/jquery.countdown-hu.js +0 -0
- js/jquery.countdown-id.js +0 -0
- js/jquery.countdown-it.js +0 -0
- js/jquery.countdown-ja.js +0 -0
- js/jquery.countdown-ko.js +0 -0
- js/jquery.countdown-lt.js +0 -0
- js/jquery.countdown-lv.js +0 -0
- js/jquery.countdown-my.js +0 -0
- js/jquery.countdown-nb.js +0 -0
- js/jquery.countdown-nl.js +0 -0
- js/jquery.countdown-pl.js +0 -0
- js/jquery.countdown-pt-BR.js +0 -0
- js/jquery.countdown-ro.js +0 -0
- js/jquery.countdown-ru.js +0 -0
- js/jquery.countdown-sk.js +0 -0
- js/jquery.countdown-sv.js +0 -0
- js/jquery.countdown-tr.js +0 -0
- js/jquery.countdown-uk.js +0 -0
- js/jquery.countdown-zh-CN.js +0 -0
- js/jquery.countdown-zh-TW.js +0 -0
- js/jquery.countdown.js +0 -0
- js/jquery.countdown.min.js +0 -0
- js/jquery.countdown.pack.js +0 -0
- js/ui.datetimepicker-de.js +0 -0
- js/ui.datetimepicker.js +0 -0
- languages/wp-maintenance-mode-ar_AR.mo +0 -0
- languages/wp-maintenance-mode-ar_AR.po +0 -0
- languages/wp-maintenance-mode-be_BY.mo +0 -0
- languages/wp-maintenance-mode-be_BY.po +0 -0
- languages/wp-maintenance-mode-bn_BD.mo +0 -0
- languages/wp-maintenance-mode-bn_BD.po +0 -0
- languages/wp-maintenance-mode-da_DK.mo +0 -0
- languages/wp-maintenance-mode-da_DK.po +0 -0
- languages/wp-maintenance-mode-de_DE.mo +0 -0
- languages/wp-maintenance-mode-de_DE.po +0 -0
- languages/wp-maintenance-mode-es_ES.mo +0 -0
- languages/wp-maintenance-mode-es_ES.po +0 -0
- languages/wp-maintenance-mode-fr_FR.mo +0 -0
- languages/wp-maintenance-mode-fr_FR.po +0 -0
- languages/wp-maintenance-mode-hr.mo +0 -0
- languages/wp-maintenance-mode-hr.po +0 -0
- languages/wp-maintenance-mode-it_IT.mo +0 -0
- languages/wp-maintenance-mode-it_IT.po +0 -0
- languages/wp-maintenance-mode-nl_NL.mo +0 -0
- languages/wp-maintenance-mode-nl_NL.po +0 -0
- languages/wp-maintenance-mode-pl_PL.mo +0 -0
- languages/wp-maintenance-mode-pl_PL.po +0 -0
- languages/wp-maintenance-mode-ro_RO.mo +0 -0
- languages/wp-maintenance-mode-ro_RO.po +0 -0
- languages/wp-maintenance-mode-ru_RU.mo +0 -0
- languages/wp-maintenance-mode-ru_RU.po +0 -0
- languages/wp-maintenance-mode-sq_AL.mo +0 -0
- languages/wp-maintenance-mode-sq_AL.po +0 -0
- languages/wp-maintenance-mode-tr_TR.mo +0 -0
- languages/wp-maintenance-mode-tr_TR.po +0 -0
- languages/wp-maintenance-mode-xx_XX.pot +0 -0
- license.txt +0 -0
- readme.txt +13 -23
- screenshot-1.png +0 -0
- screenshot-10.png +0 -0
- screenshot-11.png +0 -0
- screenshot-12.png +0 -0
- screenshot-13.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- screenshot-5.png +0 -0
- screenshot-6.png +0 -0
- screenshot-7.png +0 -0
- screenshot-8.png +0 -0
- screenshot-9.png +0 -0
- site.php +8 -5
- styles/af.css +0 -0
- styles/be.css +0 -0
- styles/cm.css +0 -0
- styles/dh.css +0 -0
- styles/es.css +0 -0
- styles/fl.css +0 -0
- styles/fv.css +0 -0
- styles/images/background.jpg +0 -0
- styles/images/bg.gif +0 -0
- styles/images/bg.jpg +0 -0
- styles/images/box-bg.jpg +0 -0
- styles/images/button.png +0 -0
- styles/images/do-not-enter.jpg +0 -0
- styles/images/es/bg-image.png +0 -0
- styles/images/es/bg.jpg +0 -0
- styles/images/es/button.png +0 -0
- styles/images/es/m-mode.png +0 -0
- styles/images/gnome-control_48px.png +0 -0
- styles/images/gnome_key_32px.png +0 -0
- styles/images/headline-af-de_DE.jpg +0 -0
- styles/images/headline-af-en_US.jpg +0 -0
- styles/images/headline-de_DE.jpg +0 -0
- styles/images/headline-en_US.jpg +0 -0
- styles/images/lego-bg.jpg +0 -0
- styles/images/lego-content.jpg +0 -0
- styles/images/leiste.jpg +0 -0
- styles/images/monster.jpg +0 -0
- styles/images/wartungsmodus.jpg +0 -0
- styles/ks.css +0 -0
- styles/ln.css +0 -0
- styles/monster.css +0 -0
- styles/nicki.css +0 -0
- styles/txt.css +0 -0
- styles/wartung-de_DE.swf +0 -0
- styles/wartung-es_ES.swf +0 -0
- styles/wartung.swf +0 -0
- uninstall.php +9 -3
- wp-maintenance-mode.php +133 -40
WP Maintenance Mode-da_DK.txt
CHANGED
|
File without changes
|
css/jquery.countdown.css
CHANGED
|
File without changes
|
css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png
CHANGED
|
File without changes
|
css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png
CHANGED
|
File without changes
|
css/overcast/images/ui-bg_flat_55_c0402a_40x100.png
CHANGED
|
File without changes
|
css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png
CHANGED
|
File without changes
|
css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png
CHANGED
|
File without changes
|
css/overcast/images/ui-bg_glass_35_dddddd_1x400.png
CHANGED
|
File without changes
|
css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png
CHANGED
|
File without changes
|
css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png
CHANGED
|
File without changes
|
css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png
CHANGED
|
File without changes
|
css/overcast/images/ui-icons_3383bb_256x240.png
CHANGED
|
File without changes
|
css/overcast/images/ui-icons_454545_256x240.png
CHANGED
|
File without changes
|
css/overcast/images/ui-icons_70b2e1_256x240.png
CHANGED
|
File without changes
|
css/overcast/images/ui-icons_999999_256x240.png
CHANGED
|
File without changes
|
css/overcast/images/ui-icons_fbc856_256x240.png
CHANGED
|
File without changes
|
css/overcast/jquery-ui-1.7.2.custom.css
CHANGED
|
File without changes
|
css/style.css
CHANGED
|
File without changes
|
index.php
CHANGED
|
File without changes
|
js/de_DE.datetimepicker.js
CHANGED
|
File without changes
|
js/jquery.countdown-ar.js
CHANGED
|
File without changes
|
js/jquery.countdown-cs.js
CHANGED
|
File without changes
|
js/jquery.countdown-da.js
CHANGED
|
File without changes
|
js/jquery.countdown-de.js
CHANGED
|
File without changes
|
js/jquery.countdown-es.js
CHANGED
|
File without changes
|
js/jquery.countdown-fa.js
CHANGED
|
File without changes
|
js/jquery.countdown-fi.js
CHANGED
|
File without changes
|
js/jquery.countdown-fr.js
CHANGED
|
File without changes
|
js/jquery.countdown-gl.js
CHANGED
|
File without changes
|
js/jquery.countdown-he.js
CHANGED
|
File without changes
|
js/jquery.countdown-hu.js
CHANGED
|
File without changes
|
js/jquery.countdown-id.js
CHANGED
|
File without changes
|
js/jquery.countdown-it.js
CHANGED
|
File without changes
|
js/jquery.countdown-ja.js
CHANGED
|
File without changes
|
js/jquery.countdown-ko.js
CHANGED
|
File without changes
|
js/jquery.countdown-lt.js
CHANGED
|
File without changes
|
js/jquery.countdown-lv.js
CHANGED
|
File without changes
|
js/jquery.countdown-my.js
CHANGED
|
File without changes
|
js/jquery.countdown-nb.js
CHANGED
|
File without changes
|
js/jquery.countdown-nl.js
CHANGED
|
File without changes
|
js/jquery.countdown-pl.js
CHANGED
|
File without changes
|
js/jquery.countdown-pt-BR.js
CHANGED
|
File without changes
|
js/jquery.countdown-ro.js
CHANGED
|
File without changes
|
js/jquery.countdown-ru.js
CHANGED
|
File without changes
|
js/jquery.countdown-sk.js
CHANGED
|
File without changes
|
js/jquery.countdown-sv.js
CHANGED
|
File without changes
|
js/jquery.countdown-tr.js
CHANGED
|
File without changes
|
js/jquery.countdown-uk.js
CHANGED
|
File without changes
|
js/jquery.countdown-zh-CN.js
CHANGED
|
File without changes
|
js/jquery.countdown-zh-TW.js
CHANGED
|
File without changes
|
js/jquery.countdown.js
CHANGED
|
File without changes
|
js/jquery.countdown.min.js
CHANGED
|
File without changes
|
js/jquery.countdown.pack.js
CHANGED
|
File without changes
|
js/ui.datetimepicker-de.js
CHANGED
|
File without changes
|
js/ui.datetimepicker.js
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-ar_AR.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-ar_AR.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-be_BY.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-be_BY.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-bn_BD.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-bn_BD.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-da_DK.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-da_DK.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-de_DE.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-de_DE.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-es_ES.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-es_ES.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-fr_FR.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-fr_FR.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-hr.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-hr.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-it_IT.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-it_IT.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-nl_NL.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-nl_NL.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-pl_PL.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-pl_PL.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-ro_RO.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-ro_RO.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-ru_RU.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-ru_RU.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-sq_AL.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-sq_AL.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-tr_TR.mo
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-tr_TR.po
CHANGED
|
File without changes
|
languages/wp-maintenance-mode-xx_XX.pot
CHANGED
|
File without changes
|
license.txt
CHANGED
|
File without changes
|
readme.txt
CHANGED
|
@@ -5,12 +5,12 @@ Plugin URI: http://bueltge.de/wp-wartungsmodus-plugin/101/
|
|
| 5 |
Author: Frank Bültge
|
| 6 |
Author URI: http://bueltge.de/
|
| 7 |
Donate link: http://bueltge.de/wunschliste/
|
| 8 |
-
Tags: maintenance, mode, admin, administration, unavailable, coming soon
|
| 9 |
Requires at least: 2.6
|
| 10 |
Tested up to: 3.3
|
| 11 |
-
Stable tag: 1.
|
| 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 |
|
| 15 |
== Description ==
|
| 16 |
Adds a maintenance-page to your blog that lets visitors know your blog is down for maintenancetime. User with rights for theme-options get full access to the blog including the frontend.
|
|
@@ -64,7 +64,7 @@ Example:
|
|
| 64 |
|
| 65 |
|
| 66 |
= Requirements =
|
| 67 |
-
1. WordPress version 2.6 and later
|
| 68 |
1. PHP 5
|
| 69 |
|
| 70 |
|
|
@@ -113,23 +113,6 @@ Please visit [Automatisches Backup der WordPress-Datenbank](http://www.beedy.de/
|
|
| 113 |
= How to: Use a contact form inside the Maintenance Message =
|
| 114 |
Please use a plugin for the form-function with the possibility Shortcode, like [Contact Form 7](http://wordpress.org/extend/plugins/contact-form-7/). Use a Shortcode of the plugin inside the teyt on the options of the plugin WP Maintenance Mode, thats all.
|
| 115 |
|
| 116 |
-
= Localizations =
|
| 117 |
-
* Thanks to [Hüseyin Ülkü](http://www.salsabar.org/ "Hüseyin Ülkü") for turkey language file
|
| 118 |
-
* Thanks to [Gilles WALET](http://www.nevermindfr.com/ "Gilles WALET") for frensh language file
|
| 119 |
-
* Thanks to [Jürgen Toth](http://www.relijoc.ro/ "Jürgen Toth") for romanian language file
|
| 120 |
-
* Thanks to [Gianni Diurno](http://gidibao.net/ "Gianni Diurno") for italian language file and an [tutorial](http://gidibao.net/index.php/2010/09/16/wp-maintenance-mode-in-italiano/ "WP Maintenance Mode in italiano") for italien users
|
| 121 |
-
* Thanks to [Romeo Shuka](http://www.romeolab.com/wp-wartungsmodus-shqip "About this Plugin in albanian language") for albanian language file
|
| 122 |
-
* Thanks to [TodoWordPress](http://www.todowp.org/ "TodoWordPress") for spanish language file
|
| 123 |
-
* Thanks to FatCow for belorussion language file
|
| 124 |
-
* Thanks to [yuarez](http://yuraz.uni.cc "yuraz.uni.cc") for croatian languge files
|
| 125 |
-
* Thanks to [Georg](http://wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=250 "wordpress.blogos.dk") for danish languge files
|
| 126 |
-
* Thanks to [Jakub Dirska](http://www.bellartis.com "bellartis.com") for polish languge files
|
| 127 |
-
* Thanks to [Rene](http://wpwebshop.com/blog/ "wpwebshop.com/blog") for durch translation files and hints to my errors on my bad english.
|
| 128 |
-
* Thanks to [Alejandro Garcia](http://blog.wrsmexico.com "blog.wrsmexico.com") for a spanish flash-file for the style "Animate"
|
| 129 |
-
* Thanks to [S.M. Mehdi Akram (Royal)](http://mehdiakram.wordpress.com/ "mehdiakram.wordpress.com") for (mother) bengali language files.
|
| 130 |
-
* Thanks to [Yaser Maadan](http://www.englize.com "www.englize.com") for a arabic language files
|
| 131 |
-
* Thanks to [Andrew Kovalev] (http://www.portablecomponentsforall.com/)
|
| 132 |
-
|
| 133 |
= More Plugins =
|
| 134 |
Please see also my [Premium Plugins](http://wpplugins.com/author/malo.conny/). Maybe you find an solution for your requirement.
|
| 135 |
|
|
@@ -238,7 +221,7 @@ Please visit [Automatisches Backup der WordPress-Datenbank](http://www.beedy.de/
|
|
| 238 |
* Thanks to [Hüseyin Ülkü](http://www.salsabar.org/ "Hüseyin Ülkü") for turkey language file
|
| 239 |
* Thanks to [Gilles WALET](http://www.nevermindfr.com/ "Gilles WALET") for frensh language file
|
| 240 |
* Thanks to [Jürgen Toth](http://www.relijoc.ro/ "Jürgen Toth") for romanian language file
|
| 241 |
-
* Thanks to [Gianni Diurno](http://gidibao.net/ "Gianni Diurno") for italian language file
|
| 242 |
* Thanks to [Romeo Shuka](http://www.romeolab.com/wp-wartungsmodus-shqip "About this Plugin in albanian language") for albanian language file
|
| 243 |
* Thanks to [TodoWordPress](http://www.todowp.org/ "TodoWordPress") for spanish language file
|
| 244 |
* Thanks to FatCow for belorussion language file
|
|
@@ -246,12 +229,19 @@ Please visit [Automatisches Backup der WordPress-Datenbank](http://www.beedy.de/
|
|
| 246 |
* Thanks to [Georg](http://wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=250 "wordpress.blogos.dk") for danish languge files
|
| 247 |
* Thanks to [Jakub Dirska](http://www.bellartis.com "bellartis.com") for polish languge files
|
| 248 |
* Thanks to [Rene](http://wpwebshop.com/blog/ "wpwebshop.com/blog") for durch translation files and hints to my errors on my bad english.
|
|
|
|
| 249 |
* Thanks to [S.M. Mehdi Akram (Royal)](http://mehdiakram.wordpress.com/ "mehdiakram.wordpress.com") for (mother) bengali language files.
|
| 250 |
* Thanks to [Yaser Maadan](http://www.englize.com "www.englize.com") for a arabic language files
|
|
|
|
| 251 |
|
| 252 |
|
| 253 |
== Changelog ==
|
| 254 |
-
= 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 255 |
* add hint in Admin Bar, if active
|
| 256 |
* small changes for WP Codex
|
| 257 |
|
| 5 |
Author: Frank Bültge
|
| 6 |
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.3
|
| 11 |
+
Stable tag: 1.7.0
|
| 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. Works on WP Multisite installs.
|
| 14 |
|
| 15 |
== Description ==
|
| 16 |
Adds a maintenance-page to your blog that lets visitors know your blog is down for maintenancetime. User with rights for theme-options get full access to the blog including the frontend.
|
| 64 |
|
| 65 |
|
| 66 |
= Requirements =
|
| 67 |
+
1. WordPress version 2.6 and later, works also on Multisite
|
| 68 |
1. PHP 5
|
| 69 |
|
| 70 |
|
| 113 |
= How to: Use a contact form inside the Maintenance Message =
|
| 114 |
Please use a plugin for the form-function with the possibility Shortcode, like [Contact Form 7](http://wordpress.org/extend/plugins/contact-form-7/). Use a Shortcode of the plugin inside the teyt on the options of the plugin WP Maintenance Mode, thats all.
|
| 115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
= More Plugins =
|
| 117 |
Please see also my [Premium Plugins](http://wpplugins.com/author/malo.conny/). Maybe you find an solution for your requirement.
|
| 118 |
|
| 221 |
* Thanks to [Hüseyin Ülkü](http://www.salsabar.org/ "Hüseyin Ülkü") for turkey language file
|
| 222 |
* Thanks to [Gilles WALET](http://www.nevermindfr.com/ "Gilles WALET") for frensh language file
|
| 223 |
* Thanks to [Jürgen Toth](http://www.relijoc.ro/ "Jürgen Toth") for romanian language file
|
| 224 |
+
* Thanks to [Gianni Diurno](http://gidibao.net/ "Gianni Diurno") for italian language file and an [tutorial](http://gidibao.net/index.php/2010/09/16/wp-maintenance-mode-in-italiano/ "WP Maintenance Mode in italiano") for italien users
|
| 225 |
* Thanks to [Romeo Shuka](http://www.romeolab.com/wp-wartungsmodus-shqip "About this Plugin in albanian language") for albanian language file
|
| 226 |
* Thanks to [TodoWordPress](http://www.todowp.org/ "TodoWordPress") for spanish language file
|
| 227 |
* Thanks to FatCow for belorussion language file
|
| 229 |
* Thanks to [Georg](http://wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=250 "wordpress.blogos.dk") for danish languge files
|
| 230 |
* Thanks to [Jakub Dirska](http://www.bellartis.com "bellartis.com") for polish languge files
|
| 231 |
* Thanks to [Rene](http://wpwebshop.com/blog/ "wpwebshop.com/blog") for durch translation files and hints to my errors on my bad english.
|
| 232 |
+
* Thanks to [Alejandro Garcia](http://blog.wrsmexico.com "blog.wrsmexico.com") for a spanish flash-file for the style "Animate"
|
| 233 |
* Thanks to [S.M. Mehdi Akram (Royal)](http://mehdiakram.wordpress.com/ "mehdiakram.wordpress.com") for (mother) bengali language files.
|
| 234 |
* Thanks to [Yaser Maadan](http://www.englize.com "www.englize.com") for a arabic language files
|
| 235 |
+
* Thanks to [Andrew Kovalev](http://www.portablecomponentsforall.com/)
|
| 236 |
|
| 237 |
|
| 238 |
== Changelog ==
|
| 239 |
+
= 1.7.0 (12/02/2011) =
|
| 240 |
+
* add functionalities to use in WP Multisite
|
| 241 |
+
* remove message in header, current is not fixed the ticked in core and the message on Admin Bar an Notice is enough
|
| 242 |
+
* check on WP 3.3RC1
|
| 243 |
+
|
| 244 |
+
= 1.6.10 (08/30/2011) =
|
| 245 |
* add hint in Admin Bar, if active
|
| 246 |
* small changes for WP Codex
|
| 247 |
|
screenshot-1.png
CHANGED
|
File without changes
|
screenshot-10.png
CHANGED
|
File without changes
|
screenshot-11.png
CHANGED
|
File without changes
|
screenshot-12.png
CHANGED
|
File without changes
|
screenshot-13.png
CHANGED
|
File without changes
|
screenshot-2.png
CHANGED
|
File without changes
|
screenshot-3.png
CHANGED
|
File without changes
|
screenshot-4.png
CHANGED
|
File without changes
|
screenshot-5.png
CHANGED
|
File without changes
|
screenshot-6.png
CHANGED
|
File without changes
|
screenshot-7.png
CHANGED
|
File without changes
|
screenshot-8.png
CHANGED
|
File without changes
|
screenshot-9.png
CHANGED
|
File without changes
|
site.php
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
<?php
|
| 2 |
if ( !isset($value) ) {
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
| 4 |
$unitvalues = $WPMaintenanceMode->case_unit($value['unit']);
|
| 5 |
}
|
| 6 |
?>
|
|
@@ -19,14 +22,14 @@ if ( !isset($value) ) {
|
|
| 19 |
<link rel="stylesheet" type="text/css" href="<?php echo WP_PLUGIN_URL . '/' . FB_WM_BASEDIR ?>/css/jquery.countdown.css" media="all" />
|
| 20 |
|
| 21 |
<?php
|
| 22 |
-
if ( !defined('WP_CONTENT_URL') )
|
| 23 |
define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
|
| 24 |
-
if ( !defined('WP_PLUGIN_URL') )
|
| 25 |
define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
|
| 26 |
|
| 27 |
-
if ( !defined('FB_WM_BASENAME') )
|
| 28 |
define( 'FB_WM_BASENAME', plugin_basename(__FILE__) );
|
| 29 |
-
if ( !defined('FB_WM_BASEDIR') )
|
| 30 |
define( 'FB_WM_BASEDIR', dirname( plugin_basename(__FILE__) ) );
|
| 31 |
|
| 32 |
global $user_ID;
|
| 1 |
<?php
|
| 2 |
if ( !isset($value) ) {
|
| 3 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 4 |
+
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
| 5 |
+
else
|
| 6 |
+
$value = get_option( FB_WM_TEXTDOMAIN );
|
| 7 |
$unitvalues = $WPMaintenanceMode->case_unit($value['unit']);
|
| 8 |
}
|
| 9 |
?>
|
| 22 |
<link rel="stylesheet" type="text/css" href="<?php echo WP_PLUGIN_URL . '/' . FB_WM_BASEDIR ?>/css/jquery.countdown.css" media="all" />
|
| 23 |
|
| 24 |
<?php
|
| 25 |
+
if ( ! defined('WP_CONTENT_URL') )
|
| 26 |
define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
|
| 27 |
+
if ( ! defined('WP_PLUGIN_URL') )
|
| 28 |
define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
|
| 29 |
|
| 30 |
+
if ( ! defined('FB_WM_BASENAME') )
|
| 31 |
define( 'FB_WM_BASENAME', plugin_basename(__FILE__) );
|
| 32 |
+
if ( ! defined('FB_WM_BASEDIR') )
|
| 33 |
define( 'FB_WM_BASEDIR', dirname( plugin_basename(__FILE__) ) );
|
| 34 |
|
| 35 |
global $user_ID;
|
styles/af.css
CHANGED
|
File without changes
|
styles/be.css
CHANGED
|
File without changes
|
styles/cm.css
CHANGED
|
File without changes
|
styles/dh.css
CHANGED
|
File without changes
|
styles/es.css
CHANGED
|
File without changes
|
styles/fl.css
CHANGED
|
File without changes
|
styles/fv.css
CHANGED
|
File without changes
|
styles/images/background.jpg
CHANGED
|
File without changes
|
styles/images/bg.gif
CHANGED
|
File without changes
|
styles/images/bg.jpg
CHANGED
|
File without changes
|
styles/images/box-bg.jpg
CHANGED
|
File without changes
|
styles/images/button.png
CHANGED
|
File without changes
|
styles/images/do-not-enter.jpg
CHANGED
|
File without changes
|
styles/images/es/bg-image.png
CHANGED
|
File without changes
|
styles/images/es/bg.jpg
CHANGED
|
File without changes
|
styles/images/es/button.png
CHANGED
|
File without changes
|
styles/images/es/m-mode.png
CHANGED
|
File without changes
|
styles/images/gnome-control_48px.png
CHANGED
|
File without changes
|
styles/images/gnome_key_32px.png
CHANGED
|
File without changes
|
styles/images/headline-af-de_DE.jpg
CHANGED
|
File without changes
|
styles/images/headline-af-en_US.jpg
CHANGED
|
File without changes
|
styles/images/headline-de_DE.jpg
CHANGED
|
File without changes
|
styles/images/headline-en_US.jpg
CHANGED
|
File without changes
|
styles/images/lego-bg.jpg
CHANGED
|
File without changes
|
styles/images/lego-content.jpg
CHANGED
|
File without changes
|
styles/images/leiste.jpg
CHANGED
|
File without changes
|
styles/images/monster.jpg
CHANGED
|
File without changes
|
styles/images/wartungsmodus.jpg
CHANGED
|
File without changes
|
styles/ks.css
CHANGED
|
File without changes
|
styles/ln.css
CHANGED
|
File without changes
|
styles/monster.css
CHANGED
|
File without changes
|
styles/nicki.css
CHANGED
|
File without changes
|
styles/txt.css
CHANGED
|
File without changes
|
styles/wartung-de_DE.swf
CHANGED
|
File without changes
|
styles/wartung-es_ES.swf
CHANGED
|
File without changes
|
styles/wartung.swf
CHANGED
|
File without changes
|
uninstall.php
CHANGED
|
@@ -1,5 +1,11 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
exit();
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
if( ! defined( 'ABSPATH') && ! defined('WP_UNINSTALL_PLUGIN') )
|
| 3 |
exit();
|
| 4 |
|
| 5 |
+
if ( is_multisite() && isset($_GET['networkwide']) && 1 == $_GET['networkwide'] ) {
|
| 6 |
+
add_site_option( 'wp-maintenance-mode' );
|
| 7 |
+
add_site_option( 'wp-maintenance-mode-msqd' );
|
| 8 |
+
} else {
|
| 9 |
+
delete_option( 'wp-maintenance-mode' );
|
| 10 |
+
delete_option( 'wp-maintenance-mode-msqd' );
|
| 11 |
+
}
|
wp-maintenance-mode.php
CHANGED
|
@@ -8,8 +8,8 @@
|
|
| 8 |
* Author: Frank Bültge
|
| 9 |
* Author URI: http://bueltge.de/
|
| 10 |
* Donate URI: http://bueltge.de/wunschliste/
|
| 11 |
-
* Version: 1.
|
| 12 |
-
* Last change:
|
| 13 |
* Licence: GPLv2
|
| 14 |
*/
|
| 15 |
|
|
@@ -59,19 +59,12 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 59 |
class WPMaintenanceMode {
|
| 60 |
|
| 61 |
function WPMaintenanceMode() {
|
| 62 |
-
global $wp_version;
|
| 63 |
|
| 64 |
register_activation_hook( __FILE__, array(&$this, 'add_config') );
|
| 65 |
add_action( 'load-plugins.php', array(&$this, 'add_scripts') );
|
| 66 |
add_action( 'init', array(&$this, 'on_init'), 1 );
|
| 67 |
add_action( 'admin_init', array(&$this, 'admin_init') );
|
| 68 |
-
|
| 69 |
-
add_action( 'after_plugin_row_' . FB_WM_BASENAME, array(&$this, 'add_config_form'), 10, 3 );
|
| 70 |
-
add_filter( 'plugin_action_links_' . FB_WM_BASENAME, array(&$this, 'add_settings_link' ), 10, 2 );
|
| 71 |
-
} else {
|
| 72 |
-
add_action( 'after_plugin_row', array(&$this, 'add_config_form'), 10, 3 );
|
| 73 |
-
add_filter( 'plugin_action_links', array(&$this, 'add_settings_link' ), 10, 2 );
|
| 74 |
-
}
|
| 75 |
add_action( 'wp_ajax_wm_config-update', array(&$this, 'save_config' ) );
|
| 76 |
add_action( 'wp_ajax_wm_config-active', array(&$this, 'save_active' ) );
|
| 77 |
}
|
|
@@ -124,9 +117,16 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 124 |
|
| 125 |
load_plugin_textdomain( FB_WM_TEXTDOMAIN, FALSE, FB_WM_BASEDIR . '/languages' );
|
| 126 |
|
| 127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
|
| 129 |
-
if ( 1 === $valuemsqld ) {
|
| 130 |
$this -> on_active();
|
| 131 |
add_action( 'admin_bar_menu', array( $this, 'add_admin_bar_alert' ), 9999 );
|
| 132 |
}
|
|
@@ -152,20 +152,44 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 152 |
|
| 153 |
function admin_init() {
|
| 154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
wp_enqueue_style( 'wp-maintenance-mode-options', $this->get_plugins_url( 'css/style.css', __FILE__ ) );
|
| 156 |
}
|
| 157 |
|
| 158 |
|
| 159 |
function add_settings_link( $links, $file ) {
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
|
|
|
| 164 |
|
| 165 |
return $links;
|
| 166 |
}
|
| 167 |
|
| 168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
function add_script2admin_footer() {
|
| 170 |
?>
|
| 171 |
<script type="text/javascript">
|
|
@@ -251,8 +275,10 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 251 |
|
| 252 |
//if ( 0 < count($_POST['checked']) )
|
| 253 |
// return;
|
| 254 |
-
|
| 255 |
-
|
|
|
|
|
|
|
| 256 |
?>
|
| 257 |
<tr id="wm_config_tr" >
|
| 258 |
<td colspan="3">
|
|
@@ -495,8 +521,14 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 495 |
'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>',
|
| 496 |
'exclude' => 'wp-cron, feed, wp-admin'
|
| 497 |
);
|
| 498 |
-
|
| 499 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 500 |
|
| 501 |
$old_check = get_option( 'wartungsmodus' );
|
| 502 |
if ($old_check)
|
|
@@ -507,14 +539,24 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 507 |
function save_active() {
|
| 508 |
|
| 509 |
$this->data = array();
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 513 |
if ( isset($_POST['wm_config-active']) )
|
| 514 |
$this->data['active'] = (int) $_POST['wm_config-active'];
|
| 515 |
|
| 516 |
-
|
| 517 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 518 |
|
| 519 |
die( __( 'Updated', FB_WM_TEXTDOMAIN ) );
|
| 520 |
}
|
|
@@ -523,7 +565,10 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 523 |
function save_config() {
|
| 524 |
|
| 525 |
$this->data = array();
|
| 526 |
-
|
|
|
|
|
|
|
|
|
|
| 527 |
|
| 528 |
if ( isset($_POST['wm_config-time']) )
|
| 529 |
$this->data['time'] = (int) $_POST['wm_config-time'];
|
|
@@ -557,7 +602,10 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 557 |
if ( isset($_POST['wm_config-date']) )
|
| 558 |
$this->data['date'] = $this->esc_attr( $_POST['wm_config-date'] );
|
| 559 |
|
| 560 |
-
|
|
|
|
|
|
|
|
|
|
| 561 |
|
| 562 |
die( __( 'Updated', FB_WM_TEXTDOMAIN ) );
|
| 563 |
}
|
|
@@ -565,8 +613,13 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 565 |
|
| 566 |
function del_config() {
|
| 567 |
|
| 568 |
-
|
| 569 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 570 |
}
|
| 571 |
|
| 572 |
|
|
@@ -582,7 +635,10 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 582 |
|
| 583 |
|
| 584 |
function check_exclude() {
|
| 585 |
-
|
|
|
|
|
|
|
|
|
|
| 586 |
|
| 587 |
if ( !isset($value['exclude']) )
|
| 588 |
return FALSE;
|
|
@@ -597,7 +653,10 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 597 |
|
| 598 |
|
| 599 |
function check_role() {
|
| 600 |
-
|
|
|
|
|
|
|
|
|
|
| 601 |
|
| 602 |
if ( is_super_admin() )
|
| 603 |
return TRUE;
|
|
@@ -681,7 +740,10 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 681 |
$datetime = NULL;
|
| 682 |
$time = NULL;
|
| 683 |
$date = NULL;
|
| 684 |
-
|
|
|
|
|
|
|
|
|
|
| 685 |
|
| 686 |
if ( isset($value['radio']) && 1 === $value['radio'] ) {
|
| 687 |
$datetime = explode( ' ', $value['date'] );
|
|
@@ -711,14 +773,28 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 711 |
function on_active() {
|
| 712 |
global $current_user;
|
| 713 |
|
| 714 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 715 |
|
| 716 |
$message = __( 'Caution: Maintenance mode is <strong>active</strong>!', FB_WM_TEXTDOMAIN );
|
| 717 |
add_filter( 'login_message', create_function( '', "return '<div id=\"login_error\">$message</div>';" ) );
|
| 718 |
$admin_notices = '<div id="message" class="error fade" style="background-color: #FFEBE8 !important;"><p>' . $message . ' <a href="plugins.php#wm-pluginconflink">' . __( 'Deactivate or change Settings', FB_WM_TEXTDOMAIN ) . '</a></p></div>';
|
|
|
|
|
|
|
| 719 |
add_action( 'admin_notices', create_function( '', "echo '$admin_notices';" ) );
|
| 720 |
-
$in_admin_header = '<a id="mm_in_admin_header" href="
|
| 721 |
-
add_action( 'in_admin_header', create_function( '', "echo '$in_admin_header';" ) );
|
| 722 |
/**
|
| 723 |
// actual a ticket in trac #14126
|
| 724 |
// @link http://core.trac.wordpress.org/ticket/14126
|
|
@@ -782,7 +858,10 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 782 |
|
| 783 |
function add_link() {
|
| 784 |
|
| 785 |
-
|
|
|
|
|
|
|
|
|
|
| 786 |
?>
|
| 787 |
<div id="footer">
|
| 788 |
<p><a href="http://bueltge.de/"><?php _e( 'Plugin by:', FB_WM_TEXTDOMAIN ); ?> <img src="http://bueltge.de/favicon.ico" alt="bueltge.de" width="16" height="16" /></a>
|
|
@@ -818,7 +897,10 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 818 |
function add_theme() {
|
| 819 |
|
| 820 |
$locale = get_locale();
|
| 821 |
-
|
|
|
|
|
|
|
|
|
|
| 822 |
|
| 823 |
$theme = '';
|
| 824 |
$link = '';
|
|
@@ -886,7 +968,10 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 886 |
function add_flash() {
|
| 887 |
|
| 888 |
$locale = get_locale();
|
| 889 |
-
|
|
|
|
|
|
|
|
|
|
| 890 |
|
| 891 |
$flash = '';
|
| 892 |
$object = '';
|
|
@@ -917,7 +1002,10 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 917 |
function add_content() {
|
| 918 |
|
| 919 |
$locale = get_locale();
|
| 920 |
-
|
|
|
|
|
|
|
|
|
|
| 921 |
$echo = NULL;
|
| 922 |
// default for unit
|
| 923 |
if ( !isset($value['unit']) )
|
|
@@ -971,11 +1059,16 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 971 |
|
| 972 |
function add_admin_bar_alert() {
|
| 973 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 974 |
$GLOBALS['wp_admin_bar'] -> add_menu(
|
| 975 |
array(
|
| 976 |
'id' => 'mm_alert',
|
| 977 |
'title' => __( 'Caution: Maintenance mode is <strong>active</strong>!', FB_WM_TEXTDOMAIN ),
|
| 978 |
-
'href' =>
|
| 979 |
)
|
| 980 |
);
|
| 981 |
}
|
| 8 |
* Author: Frank Bültge
|
| 9 |
* Author URI: http://bueltge.de/
|
| 10 |
* Donate URI: http://bueltge.de/wunschliste/
|
| 11 |
+
* Version: 1.7.0
|
| 12 |
+
* Last change: 2.12.2011
|
| 13 |
* Licence: GPLv2
|
| 14 |
*/
|
| 15 |
|
| 59 |
class WPMaintenanceMode {
|
| 60 |
|
| 61 |
function WPMaintenanceMode() {
|
|
|
|
| 62 |
|
| 63 |
register_activation_hook( __FILE__, array(&$this, 'add_config') );
|
| 64 |
add_action( 'load-plugins.php', array(&$this, 'add_scripts') );
|
| 65 |
add_action( 'init', array(&$this, 'on_init'), 1 );
|
| 66 |
add_action( 'admin_init', array(&$this, 'admin_init') );
|
| 67 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
add_action( 'wp_ajax_wm_config-update', array(&$this, 'save_config' ) );
|
| 69 |
add_action( 'wp_ajax_wm_config-active', array(&$this, 'save_active' ) );
|
| 70 |
}
|
| 117 |
|
| 118 |
load_plugin_textdomain( FB_WM_TEXTDOMAIN, FALSE, FB_WM_BASEDIR . '/languages' );
|
| 119 |
|
| 120 |
+
if ( is_multisite() && ! function_exists( 'is_plugin_active_for_network' ) ) {
|
| 121 |
+
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 125 |
+
$valuemsqld = get_site_option( FB_WM_TEXTDOMAIN . '-msqld' );
|
| 126 |
+
else
|
| 127 |
+
$valuemsqld = (int) get_option( FB_WM_TEXTDOMAIN . '-msqld' );
|
| 128 |
|
| 129 |
+
if ( 1 === $valuemsqld || '1' === $valuemsqld ) {
|
| 130 |
$this -> on_active();
|
| 131 |
add_action( 'admin_bar_menu', array( $this, 'add_admin_bar_alert' ), 9999 );
|
| 132 |
}
|
| 152 |
|
| 153 |
function admin_init() {
|
| 154 |
|
| 155 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) {
|
| 156 |
+
// multisite install
|
| 157 |
+
add_filter( 'network_admin_plugin_action_links', array( $this, 'add_settings_link' ), 10, 2 );
|
| 158 |
+
add_action( 'after_plugin_row_' . FB_WM_BASENAME, array(&$this, 'add_config_form'), 10, 3 );
|
| 159 |
+
} else {
|
| 160 |
+
// Single mode install of WP
|
| 161 |
+
if ( version_compare( $GLOBALS['wp_version'], '2.7alpha', '>' ) ) {
|
| 162 |
+
add_action( 'after_plugin_row_' . FB_WM_BASENAME, array(&$this, 'add_config_form'), 10, 3 );
|
| 163 |
+
add_filter( 'plugin_action_links_' . FB_WM_BASENAME, array(&$this, 'add_settings_link' ), 10, 2 );
|
| 164 |
+
} else {
|
| 165 |
+
add_action( 'after_plugin_row', array(&$this, 'add_config_form'), 10, 3 );
|
| 166 |
+
add_filter( 'plugin_action_links', array(&$this, 'add_settings_link' ), 10, 2 );
|
| 167 |
+
}
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
wp_enqueue_style( 'wp-maintenance-mode-options', $this->get_plugins_url( 'css/style.css', __FILE__ ) );
|
| 171 |
}
|
| 172 |
|
| 173 |
|
| 174 |
function add_settings_link( $links, $file ) {
|
| 175 |
+
if ( plugin_basename( __FILE__ ) == $file )
|
| 176 |
+
array_unshift(
|
| 177 |
+
$links,
|
| 178 |
+
sprintf( '<a id="wm-pluginconflink" href="javascript:void(0)" title="Configure this plugin">%s</a>', __('Settings') )
|
| 179 |
+
);
|
| 180 |
|
| 181 |
return $links;
|
| 182 |
}
|
| 183 |
|
| 184 |
|
| 185 |
+
function network_admin_add_settings_link( $links, $file ) {
|
| 186 |
+
if ( parent :: get_plugin_string() == $file )
|
| 187 |
+
$links[] = '<a id="wm-pluginconflink" href="javascript:void(0)" title="Configure this plugin">' . __('Settings') . '</a>';
|
| 188 |
+
|
| 189 |
+
return $links;
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
|
| 193 |
function add_script2admin_footer() {
|
| 194 |
?>
|
| 195 |
<script type="text/javascript">
|
| 275 |
|
| 276 |
//if ( 0 < count($_POST['checked']) )
|
| 277 |
// return;
|
| 278 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 279 |
+
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
| 280 |
+
else
|
| 281 |
+
$value = get_option( FB_WM_TEXTDOMAIN );
|
| 282 |
?>
|
| 283 |
<tr id="wm_config_tr" >
|
| 284 |
<td colspan="3">
|
| 521 |
'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>',
|
| 522 |
'exclude' => 'wp-cron, feed, wp-admin'
|
| 523 |
);
|
| 524 |
+
// if is active in network of multisite
|
| 525 |
+
if ( is_multisite() && isset($_GET['networkwide']) && 1 == $_GET['networkwide'] ) {
|
| 526 |
+
add_site_option( FB_WM_TEXTDOMAIN, $this->data );
|
| 527 |
+
add_site_option( FB_WM_TEXTDOMAIN . '-msqld', $this->data['active'] );
|
| 528 |
+
} else {
|
| 529 |
+
add_option( FB_WM_TEXTDOMAIN, $this->data );
|
| 530 |
+
add_option( FB_WM_TEXTDOMAIN . '-msqld', $this->data['active'] );
|
| 531 |
+
}
|
| 532 |
|
| 533 |
$old_check = get_option( 'wartungsmodus' );
|
| 534 |
if ($old_check)
|
| 539 |
function save_active() {
|
| 540 |
|
| 541 |
$this->data = array();
|
| 542 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) {
|
| 543 |
+
$this->data = get_site_option( FB_WM_TEXTDOMAIN );
|
| 544 |
+
$this->datamsqld = get_site_option( FB_WM_TEXTDOMAIN . '-msqld' );
|
| 545 |
+
} else {
|
| 546 |
+
$this->data = get_option( FB_WM_TEXTDOMAIN );
|
| 547 |
+
$this->datamsqld = get_option( FB_WM_TEXTDOMAIN . '-msqld' );
|
| 548 |
+
}
|
| 549 |
+
|
| 550 |
if ( isset($_POST['wm_config-active']) )
|
| 551 |
$this->data['active'] = (int) $_POST['wm_config-active'];
|
| 552 |
|
| 553 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) {
|
| 554 |
+
update_site_option( FB_WM_TEXTDOMAIN, $this->data );
|
| 555 |
+
update_site_option( FB_WM_TEXTDOMAIN . '-msqld', $this->data['active'] );
|
| 556 |
+
} else {
|
| 557 |
+
update_option( FB_WM_TEXTDOMAIN, $this->data );
|
| 558 |
+
update_option( FB_WM_TEXTDOMAIN . '-msqld', $this->data['active'] );
|
| 559 |
+
}
|
| 560 |
|
| 561 |
die( __( 'Updated', FB_WM_TEXTDOMAIN ) );
|
| 562 |
}
|
| 565 |
function save_config() {
|
| 566 |
|
| 567 |
$this->data = array();
|
| 568 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 569 |
+
$this->data = get_site_option( FB_WM_TEXTDOMAIN );
|
| 570 |
+
else
|
| 571 |
+
$this->data = get_option( FB_WM_TEXTDOMAIN );
|
| 572 |
|
| 573 |
if ( isset($_POST['wm_config-time']) )
|
| 574 |
$this->data['time'] = (int) $_POST['wm_config-time'];
|
| 602 |
if ( isset($_POST['wm_config-date']) )
|
| 603 |
$this->data['date'] = $this->esc_attr( $_POST['wm_config-date'] );
|
| 604 |
|
| 605 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 606 |
+
update_site_option( FB_WM_TEXTDOMAIN, $this->data );
|
| 607 |
+
else
|
| 608 |
+
update_option( FB_WM_TEXTDOMAIN, $this->data );
|
| 609 |
|
| 610 |
die( __( 'Updated', FB_WM_TEXTDOMAIN ) );
|
| 611 |
}
|
| 613 |
|
| 614 |
function del_config() {
|
| 615 |
|
| 616 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) {
|
| 617 |
+
delete_site_option( FB_WM_TEXTDOMAIN );
|
| 618 |
+
delete_site_option( FB_WM_TEXTDOMAIN . '-msqld' );
|
| 619 |
+
} else {
|
| 620 |
+
delete_option( FB_WM_TEXTDOMAIN );
|
| 621 |
+
delete_option( FB_WM_TEXTDOMAIN . '-msqld' );
|
| 622 |
+
}
|
| 623 |
}
|
| 624 |
|
| 625 |
|
| 635 |
|
| 636 |
|
| 637 |
function check_exclude() {
|
| 638 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 639 |
+
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
| 640 |
+
else
|
| 641 |
+
$value = get_option( FB_WM_TEXTDOMAIN );
|
| 642 |
|
| 643 |
if ( !isset($value['exclude']) )
|
| 644 |
return FALSE;
|
| 653 |
|
| 654 |
|
| 655 |
function check_role() {
|
| 656 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 657 |
+
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
| 658 |
+
else
|
| 659 |
+
$value = get_option( FB_WM_TEXTDOMAIN );
|
| 660 |
|
| 661 |
if ( is_super_admin() )
|
| 662 |
return TRUE;
|
| 740 |
$datetime = NULL;
|
| 741 |
$time = NULL;
|
| 742 |
$date = NULL;
|
| 743 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 744 |
+
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
| 745 |
+
else
|
| 746 |
+
$value = get_option( FB_WM_TEXTDOMAIN );
|
| 747 |
|
| 748 |
if ( isset($value['radio']) && 1 === $value['radio'] ) {
|
| 749 |
$datetime = explode( ' ', $value['date'] );
|
| 773 |
function on_active() {
|
| 774 |
global $current_user;
|
| 775 |
|
| 776 |
+
if ( is_multisite() && ! function_exists( 'is_plugin_active_for_network' ) ) {
|
| 777 |
+
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
| 778 |
+
}
|
| 779 |
+
|
| 780 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 781 |
+
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
| 782 |
+
else
|
| 783 |
+
$value = get_option( FB_WM_TEXTDOMAIN );
|
| 784 |
+
|
| 785 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 786 |
+
$settings_link = network_admin_url() . 'plugins.php#wm-pluginconflink';
|
| 787 |
+
else
|
| 788 |
+
$settings_link = admin_url() . 'plugins.php#wm-pluginconflink';
|
| 789 |
|
| 790 |
$message = __( 'Caution: Maintenance mode is <strong>active</strong>!', FB_WM_TEXTDOMAIN );
|
| 791 |
add_filter( 'login_message', create_function( '', "return '<div id=\"login_error\">$message</div>';" ) );
|
| 792 |
$admin_notices = '<div id="message" class="error fade" style="background-color: #FFEBE8 !important;"><p>' . $message . ' <a href="plugins.php#wm-pluginconflink">' . __( 'Deactivate or change Settings', FB_WM_TEXTDOMAIN ) . '</a></p></div>';
|
| 793 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 794 |
+
add_action( 'network_admin_notices', create_function( '', "echo '$admin_notices';" ) );
|
| 795 |
add_action( 'admin_notices', create_function( '', "echo '$admin_notices';" ) );
|
| 796 |
+
$in_admin_header = '<a id="mm_in_admin_header" href="' . $settings_link . '" title="' . __( 'Deactivate or change Settings', FB_WM_TEXTDOMAIN ) . '">' . $message . '</a>';
|
| 797 |
+
//add_action( 'in_admin_header', create_function( '', "echo '$in_admin_header';" ) );
|
| 798 |
/**
|
| 799 |
// actual a ticket in trac #14126
|
| 800 |
// @link http://core.trac.wordpress.org/ticket/14126
|
| 858 |
|
| 859 |
function add_link() {
|
| 860 |
|
| 861 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 862 |
+
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
| 863 |
+
else
|
| 864 |
+
$value = get_option( FB_WM_TEXTDOMAIN );
|
| 865 |
?>
|
| 866 |
<div id="footer">
|
| 867 |
<p><a href="http://bueltge.de/"><?php _e( 'Plugin by:', FB_WM_TEXTDOMAIN ); ?> <img src="http://bueltge.de/favicon.ico" alt="bueltge.de" width="16" height="16" /></a>
|
| 897 |
function add_theme() {
|
| 898 |
|
| 899 |
$locale = get_locale();
|
| 900 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 901 |
+
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
| 902 |
+
else
|
| 903 |
+
$value = get_option( FB_WM_TEXTDOMAIN );
|
| 904 |
|
| 905 |
$theme = '';
|
| 906 |
$link = '';
|
| 968 |
function add_flash() {
|
| 969 |
|
| 970 |
$locale = get_locale();
|
| 971 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 972 |
+
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
| 973 |
+
else
|
| 974 |
+
$value = get_option( FB_WM_TEXTDOMAIN );
|
| 975 |
|
| 976 |
$flash = '';
|
| 977 |
$object = '';
|
| 1002 |
function add_content() {
|
| 1003 |
|
| 1004 |
$locale = get_locale();
|
| 1005 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 1006 |
+
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
| 1007 |
+
else
|
| 1008 |
+
$value = get_option( FB_WM_TEXTDOMAIN );
|
| 1009 |
$echo = NULL;
|
| 1010 |
// default for unit
|
| 1011 |
if ( !isset($value['unit']) )
|
| 1059 |
|
| 1060 |
function add_admin_bar_alert() {
|
| 1061 |
|
| 1062 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
| 1063 |
+
$settings_link = network_admin_url() . 'plugins.php#wm-pluginconflink';
|
| 1064 |
+
else
|
| 1065 |
+
$settings_link = admin_url() . 'plugins.php#wm-pluginconflink';
|
| 1066 |
+
|
| 1067 |
$GLOBALS['wp_admin_bar'] -> add_menu(
|
| 1068 |
array(
|
| 1069 |
'id' => 'mm_alert',
|
| 1070 |
'title' => __( 'Caution: Maintenance mode is <strong>active</strong>!', FB_WM_TEXTDOMAIN ),
|
| 1071 |
+
'href' => $settings_link
|
| 1072 |
)
|
| 1073 |
);
|
| 1074 |
}
|
