wp-maintenance-mode
Last commit date
assets
8 years ago
includes
8 years ago
languages
8 years ago
views
8 years ago
index.php
8 years ago
readme.md
8 years ago
readme.txt
8 years ago
uninstall.php
8 years ago
wp-maintenance-mode.php
8 years ago
readme.txt
432 lines
| 1 | === WP Maintenance Mode === |
| 2 | Contributors: Designmodo |
| 3 | Plugin Name: WP Maintenance Mode |
| 4 | Plugin URI: https://designmodo.com/ |
| 5 | Author: Designmodo |
| 6 | Author URI: https://designmodo.com/ |
| 7 | Tags: maintenance mode, admin, administration, unavailable, coming soon, multisite, landing page, under construction, contact form, subscribe, countdown |
| 8 | Requires at least: 3.5 |
| 9 | Tested up to: 4.9.4 |
| 10 | Stable tag: 2.1.1 |
| 11 | License: GPL-2.0+ |
| 12 | |
| 13 | Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page. The new Bot functionality is here! |
| 14 | |
| 15 | == Description == |
| 16 | |
| 17 | Add a maintenance page to your blog that lets visitors know your blog is down for maintenance, or add a coming soon page for a new website. User with admin rights gets full access to the blog including the front end. |
| 18 | |
| 19 | Activate the plugin and your blog is in maintenance-mode, works and only registered users with enough rights can see the front end. You can use a date with a countdown timer for visitor information or set a value and unit for information. |
| 20 | |
| 21 | Also works with WordPress Multisite installs (each blog from the network has it's own maintenance settings). |
| 22 | |
| 23 | = Features = |
| 24 | |
| 25 | * Fully customizable (change colors, texts and backgrounds); |
| 26 | * Subscription form (export emails to .csv file); |
| 27 | * Countdown timer (remaining time); |
| 28 | * Contact form (receive emails from visitors); |
| 29 | * Coming soon page; |
| 30 | * Landing page templates; |
| 31 | * WordPress multisite; |
| 32 | * Responsive design; |
| 33 | * Social media icons; |
| 34 | * Works with any WordPress theme; |
| 35 | * SEO options; |
| 36 | * Exclude URLs from maintenance; |
| 37 | * Bot functionality to collect the emails in a friendly and efficient way. |
| 38 | |
| 39 | = Bugs, technical hints or contribute = |
| 40 | |
| 41 | Please give us feedback, contribute and file technical bugs on [GitHub Repo](https://github.com/Designmodocom/WP-Maintenance-Mode). |
| 42 | |
| 43 | = Credits = |
| 44 | |
| 45 | Developed by [Designmodo](https://designmodo.com) & [StrictThemes – WordPress Themes](http://strictthemes.com/) |
| 46 | |
| 47 | == Installation == |
| 48 | |
| 49 | 1. Unpack the download package |
| 50 | 2. Upload all files to the `/wp-content/plugins/` directory, include folders |
| 51 | 3. Activate the plugin through the 'Plugins' menu in WordPress |
| 52 | 4. Go to `Settings` page, where you can change what settings you need (pay attention to **Exclude** option!) |
| 53 | |
| 54 | == Screenshots == |
| 55 | |
| 56 | 1. Maintenance Mode Example |
| 57 | 2. Maintenance Mode Example #2 |
| 58 | 3. Contact Form |
| 59 | 4. Dashboard General Settings |
| 60 | 5. Dashboard Design Settings |
| 61 | 6. Dashboard Modules Settings |
| 62 | 7. Dashboard Bot Settings |
| 63 | |
| 64 | == Frequently Asked Questions == |
| 65 | |
| 66 | = How to use plugin filters = |
| 67 | See [GitHub Repo] (https://github.com/Designmodocom/WP-Maintenance-Mode) FAQ. |
| 68 | |
| 69 | = Cache Plugin Support = |
| 70 | WP Maintenance Mode can be unstable due the cache plugins, we recommend to deactivate any cache plugin when maintenance mode is active. |
| 71 | |
| 72 | = Exclude list = |
| 73 | If you change your login url, please add the new slug (url: http://domain.com/newlogin, then you should add: newlogin) to Exclude list from plugin settings -> General Tab. |
| 74 | |
| 75 | == Changelog == |
| 76 | |
| 77 | = 2.1.1 (1/03/2018) = |
| 78 | * fixed a visual bug with wrap container |
| 79 | * added internationalization support for bot fixed strings |
| 80 | * fixed path for loading data.js required for the bot (thanks @ [George Jipa](https://github.com/georgejipa)) |
| 81 | * added wpmm_before_scripts hook, fires just before loading the scripts |
| 82 | * moved data.js to uploads directory (thanks @ [George Jipa](https://github.com/georgejipa)) |
| 83 | |
| 84 | = 2.1 (27/02/2018) = |
| 85 | * added bot feature |
| 86 | * css fixes |
| 87 | * new css transitions for buttons |
| 88 | * fixed https problem (thanks @ [George Jipa](https://github.com/georgejipa)) |
| 89 | * updated translations, help us! :) |
| 90 | |
| 91 | = 2.0.9 (29/11/2016) = |
| 92 | * new hook (`wpmm_after_body`) in maintenance mode template (thanks @ [Karolína Vyskočilová](https://github.com/vyskoczilova)) |
| 93 | * pt_PT (portuguese) language update (thanks @ [Pedro Mendonça](https://github.com/pedro-mendonca)) |
| 94 | * maintenance mode template can also be loaded from theme/child-theme folder (thanks @ [Florian Tiar](https://github.com/Mahjouba91) and [Lachlan Heywood](https://github.com/lachieh)) |
| 95 | * new hooks for contact form (if you want to add new fields): `wpmm_contact_form_start`, `wpmm_contact_form_before_message`, `wpmm_contact_form_after_message`, `wpmm_contact_form_end` |
| 96 | * new hook for contact form validation (if you want to validate new fields): `wpmm_contact_validation` |
| 97 | * new hooks for contact form template (if you want to display new fields): `wpmm_contact_template_start`, `wpmm_contact_template_before_message`, `wpmm_contact_template_after_message`, `wpmm_contact_template_end` |
| 98 | * some javascript improvements |
| 99 | * small css fix for contact form (thanks @ [frontenddev](https://wordpress.org/support/topic/please-fix-modal-window-of-contact-form/)) |
| 100 | |
| 101 | = 2.0.8 (09/09/2016) = |
| 102 | * add wp_scripts() function (in helpers.php) to maintain backward compatibility (for those with WP < 4.2.0) |
| 103 | * css fix for subscribe button on maintenance page |
| 104 | * fix multisite administrator access issue |
| 105 | * pt_PT (portuguese) language update (thanks @ Pedro Mendonça) |
| 106 | * new hooks for Contact module: `wpmm_contact_template`, `wpmm_contact_subject`, `wpmm_contact_headers` |
| 107 | * jQuery (google cdn) path fix when SCRIPT_DEBUG is true |
| 108 | |
| 109 | = 2.0.7 (06/07/2016) = |
| 110 | * reset_settings _wpnonce check (thanks # Wordfence) |
| 111 | * modules > google analytics code sanitization (thanks @ Wordfence) |
| 112 | * move sidebar banners from our servers to plugin folder... as WordPress staff requested |
| 113 | * Subscribe button error on Mobile version (thanks @ Hostílio Thumbo) |
| 114 | * replace $wp_scripts global with wp_scripts() function |
| 115 | * de_DE language file update (thanks @ tt22tt) |
| 116 | |
| 117 | = 2.0.6 (20/06/2016) = |
| 118 | * notifications update |
| 119 | * languages update |
| 120 | |
| 121 | = 2.0.5 (17/06/2016) = |
| 122 | * roles (array) fix |
| 123 | |
| 124 | = 2.0.4 (17/06/2016) = |
| 125 | * fixed issue: responsive subscribe form |
| 126 | * fixed issue: jQuery was loaded from a different folder on some WP installations |
| 127 | * fixed issue: errors after update (strstr on empty strings because of saving empty lines on exclude list) |
| 128 | * fixed issue: if "Redirection" from "General" tab is active, also redirects ajax calls |
| 129 | * fixed issue: settings page title was wrong placed |
| 130 | * "contact" feature update - nice email template + reply-to email header |
| 131 | * refactoring for some methods |
| 132 | * all assets are now minified |
| 133 | * rewrite count db records function (used on subscribers count) |
| 134 | * compatible with https://github.com/afragen/github-updater |
| 135 | * compatible with wp-cli http://wp-cli.org/ |
| 136 | * improved responsivity |
| 137 | * improved roles access; now you can set multiple roles (editor, author, subscriber, contributor) and administrator will always have access to backend and frontend |
| 138 | * it_IT translation by benedettogit (https://github.com/benedettogit) |
| 139 | * updated all language files (need help for 100% translation) |
| 140 | |
| 141 | |
| 142 | = 2.0.3 (07/10/2014) = |
| 143 | * WP_Super_Cache issue was fixed |
| 144 | * fixed "Subscribe" button issue on Safari mobile |
| 145 | * fixed color of subscribe-success message (same color as subscribe_text) |
| 146 | * "Social networks" module edits: settings for links target + a new social network: linkedin |
| 147 | * new module "Google Analytics" |
| 148 | * loginform shortcode reintroduced |
| 149 | * dashboard link on maintenance page reintroduced |
| 150 | * the content editor accepts new css inline properties: min-height, max-height, min-width, max-width. Use them wisely! :) |
| 151 | * Settings & sidebar view + old translation files edited |
| 152 | * Update from old version 1.x to 2.x issue was fixed |
| 153 | * Translate on activation issue was fixed |
| 154 | * de_DE translation by Frank Bültge (http://bueltge.github.io/) |
| 155 | * pt_PT translation (100% translated) by Pedro Mendonça (http://www.pedromendonca.pt) |
| 156 | * ru_RU translation (100% translated) by affectiosus (https://github.com/affectiosus) |
| 157 | * nl_NL translation by dhunink (https://github.com/dhunink) |
| 158 | * es_ES translation (100% translated) by Erick Ruiz de Chavez (http://erickruizdechavez.com/) |
| 159 | * fr_FR translation by Florian TIAR (https://github.com/Mahjouba91) |
| 160 | * pt_BR translation by Jonatas Araújo (http://www.designworld.com.br/) |
| 161 | * sv_SE translation by Andréas Lundgren (http://adevade.com/) |
| 162 | |
| 163 | = 2.0.2 (04/09/2014) = |
| 164 | * Removed "Author Link" option from General |
| 165 | * Countdown - save details fix |
| 166 | |
| 167 | = 2.0.1 (02/09/2014) = |
| 168 | * Reintroduced some deprecated actions from old version (but still available in next 4 releases, after that will be removed) and replaced with new ones: |
| 169 | - `wm_head` -> `wpmm_head` |
| 170 | - `wm_footer` -> `wpmm_footer` |
| 171 | * Multisite settings link fix |
| 172 | * WP_Maintenance_Mode: init (array checking for custom_css arrays, move delete cache part into a helper, etc.), add_subscriber, send_contact, redirect fixes & optimizations |
| 173 | * WP_Maintenance_Mode_Admin: save_plugin_settings fixes, delete_cache (new method) |
| 174 | * Settings & Maintenance views fixes |
| 175 | * Readme.txt changes |
| 176 | |
| 177 | = 2.0.0 (01/09/2014) = |
| 178 | * Changed design and functionality, new features |
| 179 | * Changed multisite behaviour: now you can activate maintenance individually (each blog from the network has it's own maintenance settings) |
| 180 | * Removed actions: `wm_header`, `wm_footer`, `wm_content` |
| 181 | * Removed filters: `wm_header` |
| 182 | * Removed [loginform] shortcode |
| 183 | * Some filters are deprecated (but still available in next 4 releases, after that will be removed) and replaced with new ones: |
| 184 | - `wm_heading` -> `wpmm_heading`, |
| 185 | - `wp_maintenance_mode_status_code` -> `wpmm_status_code` |
| 186 | - `wm_title` -> `wpmm_meta_title` |
| 187 | - `wm_meta_author` -> `wpmm_meta_author` |
| 188 | - `wm_meta_description` -> `wpmm_meta_description` |
| 189 | - `wm_meta_keywords` -> `wpmm_meta_keywords` |
| 190 | * Added new filters: |
| 191 | - `wpmm_backtime` - can be used to change the backtime from page header |
| 192 | - `wpmm_meta_robots` - can be used to change `Robots Meta Tag` option (from General) |
| 193 | - `wpmm_text` - can be used to change `Text` option (from Design > Content) |
| 194 | - `wpmm_scripts` - can be used to embed new javascripts files |
| 195 | - `wpmm_styles` - can be used to embed new css files |
| 196 | - `wpmm_search_bots` - if you have `Bypass for Search Bots` option (from General) activated, it can be used to add new bots (useragents) |
| 197 | * Removed themes and now we have a "Design" & "Modules" tabs, where the look and functionality of the maintenance page can be changed as you need |
| 198 | |
| 199 | = 07/07/2014 = |
| 200 | * Switch to new owner, contributor |
| 201 | |
| 202 | = 1.8.11 (07/25/2013) = |
| 203 | * Fixes for php notices in scrict mode |
| 204 | * Alternative for check url, if curl is not installed |
| 205 | |
| 206 | = 1.8.10 (07/18/2013) = |
| 207 | * Add check for urls, Performance topics |
| 208 | * Change default setting of 'Support Link' to false |
| 209 | * Fix network settings php notices |
| 210 | |
| 211 | = 1.8.9 (06/20/2013) = |
| 212 | * Allow empty header, title, heading string |
| 213 | * Small code changes |
| 214 | * Add Support function |
| 215 | * Remove preview, will include later in a new release with extra settings page |
| 216 | |
| 217 | = 1.8.8 (06/05/2013) = |
| 218 | * Fix path to localized flash content |
| 219 | * Fix preview function |
| 220 | * Add ukrainian translation |
| 221 | * Add czech translation |
| 222 | * Fix exclude function for IP |
| 223 | * Security fix for save status via Ajax |
| 224 | |
| 225 | = 1.8.7 (04/07/2013) = |
| 226 | * Add RTL support for splash page |
| 227 | * Add Filter Hook `wp_maintenance_mode_status_code` Status Code; default is 503 |
| 228 | * Add support for custom splash page; leave a file with this name `wp-maintenance-mode.php` in the wp-content; the plugin use this file |
| 229 | The plugin checks in `WP_CONTENT_DIR . '/wp-maintenance-mode.php'` |
| 230 | * Small minor changes |
| 231 | * Add filter for more date on splash page |
| 232 | |
| 233 | = 1.8.6 (02/22/2013) = |
| 234 | * Remove log inside console for JS |
| 235 | * Add support for time inside the countdown |
| 236 | * Add filter hook `wm_meta_author`for the meta data author |
| 237 | * Add filter hook `wm_meta_description` for custom description |
| 238 | * Add filter hook `wm_meta_keywords`for custom meta keys |
| 239 | |
| 240 | = 1.8.5 (01/24/2013) = |
| 241 | * Added new settings for hide, view notices about the active maintenance mode |
| 242 | * Changes on source, codex |
| 243 | * Fix PHP Notices [Support Thread](http://wordpress.org/support/topic/error-message-in-settings-1) |
| 244 | * Change default settings, added ajax |
| 245 | * Fix Preview function |
| 246 | * Fix uninstall in WPMU |
| 247 | * Small updates on styles for login form |
| 248 | |
| 249 | = 1.8.4 (12/06/2012) = |
| 250 | * Fix for include JS in frontend to use countdown |
| 251 | * Small mini fix for a php notice |
| 252 | * Add charset on spalsh page for strange databases |
| 253 | * Enhanced default exclude adresses |
| 254 | * Add shortcode `[loginform]` for easy use a login form in splash page |
| 255 | * Test with WordPress 3.5 |
| 256 | |
| 257 | = 1.8.3 = |
| 258 | * Fix for the forgotten update of JS-files; slow SVN :( |
| 259 | * Minor Fixes |
| 260 | |
| 261 | = 1.8.2 = |
| 262 | * Add different access for Frontend and Backend |
| 263 | * Add Rewrite after Login for Frontend Access |
| 264 | * Different small changes |
| 265 | * Test for WP 3.5 |
| 266 | |
| 267 | = 1.8.1 = |
| 268 | * Add option for value of robots meta tag |
| 269 | * Add option for optional admin login |
| 270 | |
| 271 | = 1.8.0 = |
| 272 | * Include all scripts in backend via function |
| 273 | * Update datepicker and countdown js |
| 274 | * Supportet IP as exclude for see the frontend |
| 275 | * Add support for flish cache od WP Super Cache and W3 Total Cache plugins |
| 276 | * Fix for changes in WP 3.3 Multisite |
| 277 | |
| 278 | = 1.7.1 (12/05/2011) = |
| 279 | * fix for WP smaller 3.2* on Network |
| 280 | |
| 281 | = 1.7.0 (12/02/2011) = |
| 282 | * add functionalities to use in WP Multisite |
| 283 | * remove message in header, current is not fixed the ticked in core and the message on Admin Bar an Notice is enough |
| 284 | * check on WP 3.3RC1 |
| 285 | |
| 286 | = 1.6.10 (08/30/2011) = |
| 287 | * add hint in Admin Bar, if active |
| 288 | * small changes for WP Codex |
| 289 | |
| 290 | = 1.6.9 (06/13/2011) = |
| 291 | * Small fix for empty string on custom design |
| 292 | |
| 293 | = 1.6.8 (04/05/2011) = |
| 294 | * Small changes on check for datepicker |
| 295 | * Fix for Design monster |
| 296 | |
| 297 | = 1.6.7 (01/05/2011) = |
| 298 | * Bugfix: new check for files for different themes; hope this fix the server errors |
| 299 | * Bugfix: fix add default settings |
| 300 | * Maintenance: different changes on the syntax |
| 301 | * Feature: add check for Super Admin on WP Multisite; has allways the rights for access |
| 302 | * Feature: now it is possible to exclude feed from maintenance mode |
| 303 | * Maintenance: check with 3.0.4 and 3.1-RC2 |
| 304 | * Maintenance: update language file: .pot, de_DE |
| 305 | * Bugfix: JavaScript error on Bulk Actions on plugins fixed |
| 306 | * Maintenance: fix all notice, if set no values |
| 307 | |
| 308 | = 1.6.6. (10/09/2010) = |
| 309 | * Maintenance: many changes on the code; $locale and hook in side frontend |
| 310 | * Maintenance: change attribute_escaped to esc_attr with custom method for WP smaller 2.8 |
| 311 | * Maintenance: Update german language files |
| 312 | * Feature: Shortcodes is now possible in the "Text" option |
| 313 | * Feature: no cache header rewrite |
| 314 | |
| 315 | = 1.6.5 (09/16/2010) = |
| 316 | * add new design "Chemistry" by [elmastudio.de](http://www.elmastudio.de/ "elmastudio.de") |
| 317 | * changes for include methods od class for preview |
| 318 | * changes the possibility for include of language specific flash files |
| 319 | |
| 320 | = 1.6.4 (09/13/2010) = |
| 321 | * add preview functions |
| 322 | * bugfix for list in wp-admin/plugins.php |
| 323 | * remove datepicker.regional - dont work fine |
| 324 | * different small changes |
| 325 | * new language file .pot |
| 326 | * add flash file and change on plugin for style "Animate" for spanish language |
| 327 | |
| 328 | = 1.6.3 (07/27/2010) = |
| 329 | * bugfix to include stylesheet on maintenance mode message |
| 330 | |
| 331 | = 1.6.2 (07/08/2010) = |
| 332 | * add functions for hint in the new UI of WP 3.0 |
| 333 | * add more WP Codex standard source |
| 334 | * fix strings in the language and languages files |
| 335 | * add datetimepicker-de |
| 336 | |
| 337 | = 1.6.1 (06/18/2010) = |
| 338 | * fix a problem with https://; see [Ticket #13941](http://core.trac.wordpress.org/ticket/13941) |
| 339 | |
| 340 | = 1.6 (05/17/2010) = |
| 341 | * bugfix for exclude sites |
| 342 | |
| 343 | = 1.5.9 (05/07/2010) = |
| 344 | * change different points |
| 345 | * add possibility to wotk with MySQLDumper |
| 346 | |
| 347 | = 1.5.8 (21/03/2010)= |
| 348 | * fix exclude error |
| 349 | * add textareas for heading and header fields |
| 350 | |
| 351 | = 1.5.7 (03/18/2010) = |
| 352 | * block admin-area via role |
| 353 | * add message for registered users with not enough rights |
| 354 | * add message on login-page |
| 355 | * different changes |
| 356 | |
| 357 | = 1.5.6 (02/25/2010) = |
| 358 | * changes on css, site.php and different syntax on the plugin |
| 359 | |
| 360 | = 1.5.5 (02/23/2010) = |
| 361 | * SORRY, small bug for the url to jQuery |
| 362 | |
| 363 | = 1.5.4 (02/23/2010) = |
| 364 | * add time for countdown |
| 365 | * changes for WP 3.0 |
| 366 | * changees on rights to see frontend |
| 367 | |
| 368 | = 1.5.3 (01/05/2010) = |
| 369 | * Fix for JavaScript with WordPress 2.9 |
| 370 | * Add new custom fields for fronted: title, header, heading |
| 371 | * Fix for setting userrole to see frontend |
| 372 | * Change laguage files |
| 373 | |
| 374 | = 1.5.2 (01/04/2010) = |
| 375 | * add user-role setting |
| 376 | * correctly the de_DE language file |
| 377 | |
| 378 | = 1.5.1 (10/04/2009) = |
| 379 | * add small fix |
| 380 | * add language files (en_ES, ro_RO) |
| 381 | |
| 382 | = 1.5.0 (09/28/2009) = |
| 383 | * add countdown |
| 384 | * change options |
| 385 | * change default options |
| 386 | * add field for own adress to excerpt of the maintenance mode |
| 387 | * etc. |
| 388 | |
| 389 | = 1.4.9 (07/09/2009) = |
| 390 | * also ready for WordPress 2.6 |
| 391 | * add romanian language files |
| 392 | * add italian language file by [Gianni Diurno](http://gidibao.net/ "Gianni Diurno") |
| 393 | |
| 394 | = 1.4.8 (03/09/2009) = |
| 395 | * add design "Damask" by [Fabian Letscher](http://fabianletscher.de/ "Fabian Letscher") |
| 396 | * add design "Lego" by [Alex Frison](http://www.afrison.com/ "Alex Frison") |
| 397 | |
| 398 | = 1.4.7 (26/08/2009) = |
| 399 | * change doc-type to utf-8 without BOM |
| 400 | |
| 401 | = v1.4.6 (24/08/2009) = |
| 402 | * add design "Animate (Flash)" by [Sebastian Schmiedel](http://www.cayou-media.de/ "Sebastian Schmiedel") |
| 403 | * add new hook for add content `wm_content` to include flash on content |
| 404 | * add frensh language files |
| 405 | |
| 406 | = v1.4.5 (19/08/2009) = |
| 407 | * fix html string in text on frontend |
| 408 | * add design "Paint" by [Marvin Labod](http://bugeyes.de/ "Marvin Labod") |
| 409 | * add turkey language files |
| 410 | |
| 411 | = v1.4.4 (18/08/2009) = |
| 412 | * add design "Chastely" by [Florian Andreas Vogelmaier](http://fv-web.de/ "Florian Andreas Vogelmaier") |
| 413 | * add design "Only Typo" by [Robert Pfotenhauer](http://krautsuppe.de/ "Robert Pfotenhauer") |
| 414 | |
| 415 | = v1.4.3 (13/08/2009) = |
| 416 | * add option for the Text |
| 417 | * add option for active maintenance mode |
| 418 | * add design "The FF Error" by [Thomas Meschke](http://www.lokalnetz.com/ "Thomas Meschke") |
| 419 | * add design "Monster" by [Sebastian Sebald](http://www.backseatsurfer.de "Sebastian Sebald") |
| 420 | |
| 421 | = v1.4.2 (10/08/2009) = |
| 422 | * add design "The Sun" by [Nicki Steiger](http://mynicki.net/ "Nicki Steiger") |
| 423 | * now it is possible to add own css and add in settings the url to the css-file |
| 424 | |
| 425 | = v1.4.1 (07/08/2009) = |
| 426 | * small html-fix |
| 427 | |
| 428 | = v1.4 (06/08/2009) = |
| 429 | * complety new code |
| 430 | * options menu |
| 431 | * new designs by [David Hellmann](http://www.davidhellmann.com/ "David Hellmann") |
| 432 |