├── assets
├── icon-128x128.png
├── icon-256x256.png
├── screenshot-1.png
├── screenshot-2.png
├── screenshot-3.png
├── screenshot-4.png
├── screenshot-5.png
├── screenshot-6.png
├── screenshot-7.png
├── screenshot-8.png
├── screenshot-9.png
├── banner-1544x500.jpg
└── banner-772x250.jpg
├── wpml-config.xml
├── languages
├── lj-maintenance-mode-de_DE.mo
├── lj-maintenance-mode-en_CA.mo
├── lj-maintenance-mode-es_CL.mo
├── lj-maintenance-mode-fr_FR.mo
├── lj-maintenance-mode-hu_HU.mo
├── lj-maintenance-mode-it_IT.mo
├── lj-maintenance-mode-lt_LT.mo
├── lj-maintenance-mode-nl_NL.mo
├── lj-maintenance-mode-hu_HU.po
├── lj-maintenance-mode-en_CA.po
├── lj-maintenance-mode-es_CL.po
├── lj-maintenance-mode-lt_LT.po
├── lj-maintenance-mode-de_DE.po
├── lj-maintenance-mode-it_IT.po
├── lj-maintenance-mode.pot
├── lj-maintenance-mode-fr_FR.po
└── lj-maintenance-mode-nl_NL.po
├── .gitattributes
├── .gitignore
├── uninstall.php
├── README.md
├── CHANGELOG.MD
├── readme.txt
└── lj-maintenance-mode.php
/assets/icon-128x128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lukasjuhas/lj-maintenance-mode/HEAD/assets/icon-128x128.png
--------------------------------------------------------------------------------
/assets/icon-256x256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lukasjuhas/lj-maintenance-mode/HEAD/assets/icon-256x256.png
--------------------------------------------------------------------------------
/assets/screenshot-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lukasjuhas/lj-maintenance-mode/HEAD/assets/screenshot-1.png
--------------------------------------------------------------------------------
/assets/screenshot-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lukasjuhas/lj-maintenance-mode/HEAD/assets/screenshot-2.png
--------------------------------------------------------------------------------
/assets/screenshot-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lukasjuhas/lj-maintenance-mode/HEAD/assets/screenshot-3.png
--------------------------------------------------------------------------------
/assets/screenshot-4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lukasjuhas/lj-maintenance-mode/HEAD/assets/screenshot-4.png
--------------------------------------------------------------------------------
/assets/screenshot-5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lukasjuhas/lj-maintenance-mode/HEAD/assets/screenshot-5.png
--------------------------------------------------------------------------------
/assets/screenshot-6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lukasjuhas/lj-maintenance-mode/HEAD/assets/screenshot-6.png
--------------------------------------------------------------------------------
/assets/screenshot-7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lukasjuhas/lj-maintenance-mode/HEAD/assets/screenshot-7.png
--------------------------------------------------------------------------------
/assets/screenshot-8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lukasjuhas/lj-maintenance-mode/HEAD/assets/screenshot-8.png
--------------------------------------------------------------------------------
/assets/screenshot-9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lukasjuhas/lj-maintenance-mode/HEAD/assets/screenshot-9.png
--------------------------------------------------------------------------------
/assets/banner-1544x500.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lukasjuhas/lj-maintenance-mode/HEAD/assets/banner-1544x500.jpg
--------------------------------------------------------------------------------
/assets/banner-772x250.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lukasjuhas/lj-maintenance-mode/HEAD/assets/banner-772x250.jpg
--------------------------------------------------------------------------------
/wpml-config.xml:
--------------------------------------------------------------------------------
1 |
Our Website is currently undergoing " 22 | "scheduled maintenance. Please check back soon.
" 23 | msgstr "" 24 | "Nuestro sitio web se encuentra " 25 | "momentáneamente en mantención. Por favor vuelva a visitarnos pronto.
" 26 | 27 | #: lj-maintenance-mode.php:68 lj-maintenance-mode.php:71 28 | msgid "" 29 | "Important: Don't forget to flush your cache using WP Super Cache when " 30 | "enabling or disabling Maintenance Mode." 31 | msgstr "" 32 | "Importante: no olvide limpiar el caché usando WP Super Cache cuando active o " 33 | "desactive el modo de mantención." 34 | 35 | #: lj-maintenance-mode.php:74 36 | msgid "" 37 | "Maintenance Mode is currently active. To make sure that it works, open your " 38 | "web page in either private / incognito mode, different browser or simply log " 39 | "out. Logged in users are not affected by the Maintenance Mode." 40 | msgstr "" 41 | "El modo de mantención está activado. Para confirmar su funcionamiento, " 42 | "visite el sitio en modo privado/incógnito, o utilizando un navegador " 43 | "distinto, o simplemente termine la sesión activa. Los usuarios con sesión " 44 | "activa no se ven afectados por el modo de mantención." 45 | 46 | #. Plugin Name of the plugin/theme 47 | #: lj-maintenance-mode.php:144 lj-maintenance-mode.php:176 48 | msgid "Maintenance Mode" 49 | msgstr "Modo de mantención" 50 | 51 | #: lj-maintenance-mode.php:185 52 | msgid "Enabled" 53 | msgstr "Activado" 54 | 55 | #: lj-maintenance-mode.php:196 56 | msgid "Content" 57 | msgstr "Contenido" 58 | 59 | #: lj-maintenance-mode.php:200 60 | msgid "Preview" 61 | msgstr "Vista previa" 62 | 63 | #: lj-maintenance-mode.php:201 64 | msgid "Support" 65 | msgstr "Soporte" 66 | 67 | #: lj-maintenance-mode.php:229 68 | msgctxt "Admin bar indicator" 69 | msgid "Disabled" 70 | msgstr "Desactivado" 71 | 72 | #: lj-maintenance-mode.php:232 73 | msgctxt "Admin bar indicator" 74 | msgid "Enabled" 75 | msgstr "Activado" 76 | 77 | #: lj-maintenance-mode.php:236 lj-maintenance-mode.php:240 78 | msgctxt "Admin bar indicator" 79 | msgid "Maintenance Mode" 80 | msgstr "Modo mantención" 81 | 82 | #: lj-maintenance-mode.php:253 83 | msgctxt "Plugin Settings link" 84 | msgid "Settings" 85 | msgstr "Ajustes" 86 | 87 | #: lj-maintenance-mode.php:271 88 | msgid "Website Under Maintenance" 89 | msgstr "Sitio web en mantención" 90 | 91 | #. Plugin URI of the plugin/theme 92 | msgid "https://github.com/lukasjuhas/lj-maintenance-mode" 93 | msgstr "https://github.com/lukasjuhas/lj-maintenance-mode" 94 | 95 | #. Description of the plugin/theme 96 | msgid "" 97 | "Very simple Maintenance Mode & Coming soon page. Using default Wordpress " 98 | "markup, No ads, no paid upgrades." 99 | msgstr "" 100 | "Muy simple página para modo mantención & pronto disponible. Usa markup " 101 | "Wordpress nativo, sin publicidad ni actualizaciones de pago." 102 | 103 | #. Author of the plugin/theme 104 | msgid "Lukas Juhas" 105 | msgstr "Lukas Juhas" 106 | 107 | #. Author URI of the plugin/theme 108 | msgid "http://lukasjuhas.com" 109 | msgstr "http://lukasjuhas.com" 110 | -------------------------------------------------------------------------------- /languages/lj-maintenance-mode-lt_LT.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2016 Maintenance Mode 2 | # This file is distributed under the same license as the Maintenance Mode package. 3 | msgid "" 4 | msgstr "" 5 | "Project-Id-Version: Maintenance Mode 1.4.1\n" 6 | "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/lj-maintenance-" 7 | "mode\n" 8 | "POT-Creation-Date: 2016-08-22 16:21+0300\n" 9 | "MIME-Version: 1.0\n" 10 | "Content-Type: text/plain; charset=UTF-8\n" 11 | "Content-Transfer-Encoding: 8bit\n" 12 | "PO-Revision-Date: 2016-08-22 16:46+0300\n" 13 | "Language-Team: \n" 14 | "X-Generator: Poedit 1.8.8\n" 15 | "Last-Translator: \n" 16 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" 17 | "%100<10 || n%100>=20) ? 1 : 2);\n" 18 | "Language: lt\n" 19 | 20 | #: lj-maintenance-mode.php:65 21 | msgid "" 22 | "Our Website is currently undergoing " 23 | "scheduled maintenance. Please check back soon.
" 24 | msgstr "" 25 | "Atsiprašome, bet šiuo metu " 26 | "vykdomi svetainės priežiūros darbai, apsilankykite vėliau.
" 27 | 28 | #: lj-maintenance-mode.php:68 lj-maintenance-mode.php:71 29 | msgid "" 30 | "Important: Don't forget to flush your cache using WP Super Cache when " 31 | "enabling or disabling Maintenance Mode." 32 | msgstr "" 33 | "Svarbu: jei naudojate WP Super Cache, nepamirškite išvalyti laikinosios " 34 | "atminties, įjungdami ar išjungdami priežiūros režimą." 35 | 36 | #: lj-maintenance-mode.php:74 37 | msgid "" 38 | "Maintenance Mode is currently active. To make sure that it works, open your " 39 | "web page in either private / incognito mode, different browser or simply log " 40 | "out. Logged in users are not affected by the Maintenance Mode." 41 | msgstr "" 42 | "Priežiūros režimas aktyvus. Norėdami įsitikinti, aplankykite svetainę " 43 | "privačiame / inkognito režime, kitoje naršyklėje arba prieš tai atsijunkite. " 44 | "Prisijungę vartotojai svetainę matys įprastu, ne priežiūros režimu." 45 | 46 | #. Plugin Name of the plugin/theme 47 | #: lj-maintenance-mode.php:144 lj-maintenance-mode.php:176 48 | msgid "Maintenance Mode" 49 | msgstr "Priežiūros režimas" 50 | 51 | #: lj-maintenance-mode.php:185 52 | msgid "Enabled" 53 | msgstr "Įjungtas" 54 | 55 | #: lj-maintenance-mode.php:196 56 | msgid "Content" 57 | msgstr "Turinys" 58 | 59 | #: lj-maintenance-mode.php:200 60 | msgid "Preview" 61 | msgstr "Peržiūra" 62 | 63 | #: lj-maintenance-mode.php:201 64 | msgid "Support" 65 | msgstr "Pagalba" 66 | 67 | #: lj-maintenance-mode.php:229 68 | msgctxt "Admin bar indicator" 69 | msgid "Disabled" 70 | msgstr "išjungtas" 71 | 72 | #: lj-maintenance-mode.php:232 73 | msgctxt "Admin bar indicator" 74 | msgid "Enabled" 75 | msgstr "įjungtas" 76 | 77 | #: lj-maintenance-mode.php:236 lj-maintenance-mode.php:240 78 | msgctxt "Admin bar indicator" 79 | msgid "Maintenance Mode" 80 | msgstr "Priežiūros režimas" 81 | 82 | #: lj-maintenance-mode.php:253 83 | msgctxt "Plugin Settings link" 84 | msgid "Settings" 85 | msgstr "Nuostatos" 86 | 87 | #: lj-maintenance-mode.php:271 88 | msgid "Website Under Maintenance" 89 | msgstr "Vykdomi svetainės priežiūros darbai" 90 | 91 | #. Plugin URI of the plugin/theme 92 | msgid "https://github.com/lukasjuhas/lj-maintenance-mode" 93 | msgstr "https://github.com/lukasjuhas/lj-maintenance-mode" 94 | 95 | #. Description of the plugin/theme 96 | msgid "" 97 | "Very simple Maintenance Mode & Coming soon page. Using default Wordpress " 98 | "markup, No ads, no paid upgrades." 99 | msgstr "" 100 | "Itin paprastas priežiūros režimo puslapis. Naudojamas įprastas Wordpress " 101 | "stilius, jokių reklamų, jokių mokamų patobulinimų." 102 | 103 | #. Author of the plugin/theme 104 | msgid "Lukas Juhas" 105 | msgstr "Lukas Juhas" 106 | 107 | #. Author URI of the plugin/theme 108 | msgid "http://lukasjuhas.com" 109 | msgstr "http://lukasjuhas.com" 110 | -------------------------------------------------------------------------------- /languages/lj-maintenance-mode-de_DE.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: Maintenance Mode 1.4.1\n" 4 | "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/lj-maintenance-" 5 | "mode\n" 6 | "POT-Creation-Date: 2016-01-02 13:33:47+00:00\n" 7 | "PO-Revision-Date: Fri Mar 04 2016 15:37:58 GMT+0100 (Mitteleuropäische Zeit)\n" 8 | "Last-Translator: Sebastian WeyerOur Website is currently undergoing " 29 | "scheduled maintenance. Please check back soon.
" 30 | msgstr "" 31 | "Unsere Webseite befindet sich momentan " 32 | "in einer Wartung. Bitte komme später wieder.
" 33 | 34 | #: lj-maintenance-mode.php:68 lj-maintenance-mode.php:71 35 | msgid "" 36 | "Important: Don't forget to flush your cache using WP Super Cache when " 37 | "enabling or disabling Maintenance Mode." 38 | msgstr "" 39 | "Wichtig: Bei der Nutzung von WP Super Cache muss nach Aktivierung oder " 40 | "Deaktivierung des Wartungsmodus der Cache geleert werden!" 41 | 42 | #: lj-maintenance-mode.php:74 43 | msgid "" 44 | "Maintenance Mode is currently active. To make sure that it works, open your " 45 | "web page in either private / incognito mode, different browser or simply log " 46 | "out. Logged in users are not affected by the Maintenance Mode." 47 | msgstr "" 48 | "Der Wartungsmodus ist momentan aktiviert. Um sicherzustellen dass er " 49 | "ordnungsgemäß funktioniert öffne deine Webseite in einem anderen Browser " 50 | "oder logge dich aus Wordpress aus. Eingeloggte Benutzer sind vom " 51 | "Wartungsmodus nicht betroffen." 52 | 53 | #. #-#-#-#-# plugin.pot (Maintenance Mode 1.4.1) #-#-#-#-# 54 | #. Plugin Name of the plugin/theme 55 | #: lj-maintenance-mode.php:144 lj-maintenance-mode.php:176 56 | msgid "Maintenance Mode" 57 | msgstr "Wartungsmodus" 58 | 59 | #: lj-maintenance-mode.php:185 60 | msgid "Enabled" 61 | msgstr "Aktiviert" 62 | 63 | #: lj-maintenance-mode.php:196 64 | msgid "Content" 65 | msgstr "Inhalt" 66 | 67 | #: lj-maintenance-mode.php:200 68 | msgid "Preview" 69 | msgstr "Vorschau" 70 | 71 | #: lj-maintenance-mode.php:201 72 | msgid "Support" 73 | msgstr "Hilfe" 74 | 75 | #: lj-maintenance-mode.php:229 76 | msgctxt "Admin bar indicator" 77 | msgid "Disabled" 78 | msgstr "Deaktiviert" 79 | 80 | #: lj-maintenance-mode.php:232 81 | msgctxt "Admin bar indicator" 82 | msgid "Enabled" 83 | msgstr "Aktiviert" 84 | 85 | #: lj-maintenance-mode.php:236 lj-maintenance-mode.php:240 86 | msgctxt "Admin bar indicator" 87 | msgid "Maintenance Mode" 88 | msgstr "Wartungsmodus" 89 | 90 | #: lj-maintenance-mode.php:253 91 | msgctxt "Plugin Settings link" 92 | msgid "Settings" 93 | msgstr "Einstellungen" 94 | 95 | #: lj-maintenance-mode.php:271 96 | msgid "Website Under Maintenance" 97 | msgstr "Webseite im Wartungsmodus" 98 | 99 | #. Plugin URI of the plugin/theme 100 | msgid "https://github.com/lukasjuhas/lj-maintenance-mode" 101 | msgstr "https://github.com/lukasjuhas/lj-maintenance-mode" 102 | 103 | #. Description of the plugin/theme 104 | msgid "" 105 | "Very simple Maintenance Mode & Coming soon page. Using default Wordpress " 106 | "markup, No ads, no paid upgrades." 107 | msgstr "" 108 | "Sehr einfacher Wartungsmodus. Nutzung des Standard Wordpress Markup, Keine " 109 | "Werbung, keine bezahlten Upgrades." 110 | 111 | #. Author of the plugin/theme 112 | msgid "Lukas Juhas" 113 | msgstr "Lukas Juhas" 114 | 115 | #. Author URI of the plugin/theme 116 | msgid "http://lukasjuhas.com" 117 | msgstr "http://lukasjuhas.com" 118 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Maintenance Mode 2 | ====================== 3 | 4 | ## Description 5 | 6 | As a web developer working with Wordpress almost every day, very often I came across problem that If I wanted simple maintenance plugin to do some updates on my or client's website, I came across all these useless and overcomplicated plugins until I decided that I'll make one myself which will be the one I'll be confident and happy to use with ease. 7 | 8 | [Maintenance Mode](https://plugins.itsluk.as/maintenance-mode/) is very simple and it's using Wordpress's wp_die() function which is core function of Wordpress, which makes this plugin feel and work as a part of Wordpress core. There is settings page under "Settings" in the main wp-admin menu where you can enable maintenance mode or change content using WYSIWYG editor so you can also add pictures, links etc. When activated and logged in as admin, you can see website as usual, rest of the users / visitors can see maintenance mode. You can see the maintenance mode as admin in preview mode using preview link on the settings page or simply open website in private mode or different browser to double check if it's enabled and working. There is also indicator in admin bar that changes colour to red when maintenance mode is enabled. 9 | 10 | ### Features: ### 11 | * **Simplicity** - Built to be as simple as possible. Easy to use. 12 | * **Customisable** - WYSIWYG available in full glory. You can add images and other media including links and pretty much everything you can do with WYSIWYG. Text / Code tab is available too for custom markup. 13 | * **Works on mobile** - Because of it's simplicity, maintenance mode works very well on mobile devices. 14 | * **NO ADS** - No ads. Seriously. 15 | * **NO PAID UPGRADES** - No paid upgrades. Seriously. 16 | * **Updates** - Regular updates and maintenance. 17 | * **Support** - Support button available. 18 | * **Preview** - Preview button available. 19 | * **Compact** - It's developed to be as compact as possible. 20 | * **Role Control** - User Role control is available since 2.0 21 | * **WPML Compatible** - Plugin is compatible with WPML plugin 22 | * **Optional widgets** - Optionally add widgets above and/or below the content 23 | * **Optional style sheet** - Optionally add a custom style sheet 24 | * **Optional ability to add code snippet** - Optionally add a code snippet to the page. 25 | * **Support for Analytify plugin** - If you use the Analytify plugin, you can automatically insert the Google Analytics tracking code. 26 | 27 | Bugs and pull requests are welcomed. 28 | 29 | ## Filters ## 30 | 31 | `ljmm_site_title` - Filter page title while in maintenance mode 32 | 33 | `ljmm_admin_bar_indicator_enabled` - Control visibility of admin bar indicator 34 | 35 | `limm_css_filename` - The filename of the CSS style sheet (as found in the theme's stylesheet directory) - just the filename, for example: `maintenance.min.css`. (Note: you do not need to use this filter for a stylesheet; see FAQs below.) 36 | 37 | `ljmm_css_url` - The url of the css file. 38 | 39 | 40 | ## Actions ## 41 | `ljmm_before_mm` - Runs at the beginning of core maintenance method 42 | 43 | ## Wordpress Info 44 | 45 | * Requires at least: 3.5.0 46 | * Tested up to: 4.9 47 | 48 | ## Installation 49 | 50 | 1. Upload `lj-maintenance-mode` to the `/wp-content/plugins/` directory 51 | 1. Activate the plugin through the 'Plugins' menu in WordPress 52 | 1. Navigate to Settings -> Maintenance Mode or simply click on Admin Bar indicator for settings to enable maintenance mode. 53 | 54 | ## FAQ 55 | 1. Is this plugin really ad free ?Our Website is currently undergoing " 32 | "scheduled maintenance. Please check back soon.
" 33 | msgstr "" 34 | "Il nostro sito è attualmente in fase di " 35 | "manutenzione pianificata. Si prega di riprovare a breve.
" 36 | 37 | #: lj-maintenance-mode.php:156 trunk/lj-maintenance-mode.php:156 38 | msgid "Enabled" 39 | msgstr "Abilitata" 40 | 41 | #: lj-maintenance-mode.php:161 42 | msgid "" 43 | "Maintenance Mode is currently active. To make sure that it works, open your " 44 | "web page in either private / incognito mode, different browser or simply log " 45 | "out. Logged in users are not affected by the Maintenance Mode." 46 | msgstr "" 47 | "La modalità di manutenzione è attualmente attiva. Per assicurarsi che " 48 | "funzioni, aprire il sito web in modalità incognito / privato, da un'altro " 49 | "browser o fare il logout. Gli utenti loggati non sono influenzati dalla " 50 | "modalità di manutenzione." 51 | 52 | #: lj-maintenance-mode.php:167 trunk/lj-maintenance-mode.php:167 53 | msgid "Content" 54 | msgstr "Contenuto" 55 | 56 | #: lj-maintenance-mode.php:171 trunk/lj-maintenance-mode.php:171 57 | msgid "Preview" 58 | msgstr "Anteprima" 59 | 60 | #: lj-maintenance-mode.php:172 trunk/lj-maintenance-mode.php:172 61 | msgid "Support" 62 | msgstr "Supporto" 63 | 64 | #: lj-maintenance-mode.php:200 65 | msgctxt "Admin bar indicator" 66 | msgid "Disabled" 67 | msgstr "Disabilitata" 68 | 69 | #: lj-maintenance-mode.php:203 70 | msgctxt "Admin bar indicator" 71 | msgid "Enabled" 72 | msgstr "Abilitata" 73 | 74 | #: lj-maintenance-mode.php:207 lj-maintenance-mode.php:211 75 | msgctxt "Admin bar indicator" 76 | msgid "Maintenance Mode" 77 | msgstr "Modalità di Manutenzione" 78 | 79 | #: lj-maintenance-mode.php:224 80 | msgctxt "Plugin Settings link" 81 | msgid "Settings" 82 | msgstr "Impostazioni" 83 | 84 | #: lj-maintenance-mode.php:242 trunk/lj-maintenance-mode.php:242 85 | msgid "Website Under Maintenance" 86 | msgstr "Sito in Manutenzione" 87 | 88 | #: lj-maintenance-mode.php:271 trunk/lj-maintenance-mode.php:271 89 | msgid "" 90 | "Important: Don't forget to flush your cache using WP Super Cache when " 91 | "enabling or disabling Maintenance Mode." 92 | msgstr "" 93 | "Importante: Non dimenticare di svuotare la cache usando WP Super Cache " 94 | "quando attivi o disattivi la modalità di manutenzione." 95 | 96 | #: lj-maintenance-mode.php:276 trunk/lj-maintenance-mode.php:276 97 | msgid "" 98 | "Important: Don't forget to flush your cache using W3 Total Cache when " 99 | "enabling or disabling Maintenance Mode." 100 | msgstr "" 101 | "Importante: Non dimenticare di svuotare la cache usando W3 Total Cache " 102 | "quando attivi o disatti la modalità di manutenzione." 103 | 104 | #. Plugin URI of the plugin/theme 105 | msgid "https://github.com/lukasjuhas/lj-maintenance-mode" 106 | msgstr "https://github.com/lukasjuhas/lj-maintenance-mode" 107 | 108 | #. Description of the plugin/theme 109 | msgid "" 110 | "Very simple Maintenance Mode & Coming soon page. Using default Wordpress " 111 | "markup, No ads, no paid upgrades." 112 | msgstr "" 113 | "Semplice Pagina \"Modalità di Manutenzione & In Arrivo\". Utilizza il markup " 114 | "Wordpress predefinito, Nessuna pubblicità, nessun aggiornamento a pagamento." 115 | 116 | #. Author of the plugin/theme 117 | msgid "Lukas Juhas" 118 | msgstr "Lukas Juhas" 119 | 120 | #. Author URI of the plugin/theme 121 | msgid "http://lukasjuhas.com" 122 | msgstr "http://lukasjuhas.com" 123 | -------------------------------------------------------------------------------- /languages/lj-maintenance-mode.pot: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2017 Maintenance Mode 2 | # This file is distributed under the same license as the Maintenance Mode package. 3 | #, fuzzy 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: Maintenance Mode 2.2.3\n" 7 | "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/lj-maintenance-" 8 | "mode\n" 9 | "POT-Creation-Date: 2017-01-17 13:55+0000\n" 10 | "MIME-Version: 1.0\n" 11 | "Content-Type: text/plain; charset=UTF-8\n" 12 | "Content-Transfer-Encoding: 8bit\n" 13 | "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n" 14 | "Last-Translator: Lukas JuhasOur Website is currently undergoing " 21 | "scheduled maintenance. Please check back soon.
" 22 | msgstr "" 23 | 24 | #: lj-maintenance-mode.php:69 25 | msgid "" 26 | "Important: Don't forget to flush your cache using WP Super Cache when " 27 | "enabling or disabling Maintenance Mode." 28 | msgstr "" 29 | 30 | #: lj-maintenance-mode.php:69 lj-maintenance-mode.php:72 31 | msgid "" 32 | "Important: Don't forget to flush your cache using W3 Total Cache when " 33 | "enabling or disabling Maintenance Mode." 34 | msgstr "" 35 | 36 | #: lj-maintenance-mode.php:69 lj-maintenance-mode.php:72 37 | msgid "" 38 | "Important: Don't forget to flush your cache using Comet Cache when enabling or disabling Maintenance Mode." 39 | msgstr "" 40 | 41 | #: lj-maintenance-mode.php:75 42 | msgid "" 43 | "Maintenance Mode is currently active. To make sure that it works, open your " 44 | "web page in either private / incognito mode, different browser or simply log " 45 | "out. Logged in users are not affected by the Maintenance Mode." 46 | msgstr "" 47 | 48 | #. Plugin Name of the plugin/theme 49 | #: lj-maintenance-mode.php:161 lj-maintenance-mode.php:199 50 | msgid "Maintenance Mode" 51 | msgstr "" 52 | 53 | #: lj-maintenance-mode.php:209 54 | msgid "Enabled" 55 | msgstr "" 56 | 57 | #: lj-maintenance-mode.php:221 58 | msgid "Preview" 59 | msgstr "" 60 | 61 | #: lj-maintenance-mode.php:222 62 | msgid "Support" 63 | msgstr "" 64 | 65 | #: lj-maintenance-mode.php:236 66 | msgid "Advanced Settings" 67 | msgstr "" 68 | 69 | #: lj-maintenance-mode.php:244 70 | msgid "Site Title" 71 | msgstr "" 72 | 73 | #: lj-maintenance-mode.php:248 74 | msgid "Overrides default site meta title." 75 | msgstr "" 76 | 77 | #: lj-maintenance-mode.php:252 78 | msgid "Mode" 79 | msgstr "" 80 | 81 | #: lj-maintenance-mode.php:259 82 | msgid "Default" 83 | msgstr "" 84 | 85 | #: lj-maintenance-mode.php:263 86 | msgid "Coming Soon Page" 87 | msgstr "" 88 | 89 | #: lj-maintenance-mode.php:265 90 | msgid "Default sets HTTP to 503, coming soon will set HTTP to 200." 91 | msgstr "" 92 | 93 | #: lj-maintenance-mode.php 94 | msgid "If you are putting your site into maintenance mode for a longer period of time, you should set this to "Coming Soon Page". Otherwise use "Maintenance Mode"." 95 | msgstr "" 96 | 97 | #: lj-maintenance-mode.php:265 98 | msgid "Learn more." 99 | msgstr "" 100 | 101 | #: lj-maintenance-mode.php:273 102 | msgid "User Roles" 103 | msgstr "" 104 | 105 | #: lj-maintenance-mode.php:274 106 | msgid "" 107 | "Tick the ones that can access front-end of your website if maintenance mode " 108 | "is enabled" 109 | msgstr "" 110 | 111 | #: lj-maintenance-mode.php:275 112 | msgid "Please note that this does NOT apply to admin area" 113 | msgstr "" 114 | 115 | #: lj-maintenance-mode.php:276 116 | msgid "Toggle all" 117 | msgstr "" 118 | 119 | #: lj-maintenance-mode.php:296 120 | msgid "User Role control is currently not avialable on your website. Sorry!" 121 | msgstr "" 122 | 123 | #: lj-maintenance-mode.php:346 124 | msgctxt "Admin bar indicator" 125 | msgid "Disabled" 126 | msgstr "" 127 | 128 | #: lj-maintenance-mode.php:349 129 | msgctxt "Admin bar indicator" 130 | msgid "Enabled" 131 | msgstr "" 132 | 133 | #: lj-maintenance-mode.php:360 134 | msgctxt "Admin bar indicator" 135 | msgid "Maintenance Mode" 136 | msgstr "" 137 | 138 | #: lj-maintenance-mode.php:374 139 | msgctxt "Plugin Settings link" 140 | msgid "Settings" 141 | msgstr "" 142 | 143 | #: lj-maintenance-mode.php:375 144 | msgctxt "Plugin Support link" 145 | msgid "Support" 146 | msgstr "" 147 | 148 | #: lj-maintenance-mode.php:387 149 | msgid "Website Under Maintenance" 150 | msgstr "" 151 | 152 | #. Plugin URI of the plugin/theme 153 | msgid "https://plugins.itsluk.as/maintenance-mode/" 154 | msgstr "" 155 | 156 | #. Description of the plugin/theme 157 | msgid "" 158 | "Very simple Maintenance Mode & Coming soon page using default Wordpress markup with no ads or paid upgrades." 159 | msgstr "" 160 | 161 | #. Author of the plugin/theme 162 | msgid "Lukas Juhas" 163 | msgstr "" 164 | 165 | #. Author URI of the plugin/theme 166 | msgid "https://plugins.itsluk.as/" 167 | msgstr "" 168 | -------------------------------------------------------------------------------- /languages/lj-maintenance-mode-fr_FR.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2017 Maintenance Mode 2 | # This file is distributed under the same license as the Maintenance Mode package. 3 | msgid "" 4 | msgstr "" 5 | "Project-Id-Version: Maintenance Mode 2.3\n" 6 | "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/lj-maintenance-" 7 | "mode\n" 8 | "POT-Creation-Date: 2017-03-29 23:04+0200\n" 9 | "PO-Revision-Date: 2017-03-29 23:18+0200\n" 10 | "Last-Translator: \n" 11 | "Language-Team: \n" 12 | "Language: fr_FR\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "X-Generator: Poedit 1.8.11\n" 17 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 18 | 19 | #: lj-maintenance-mode.php:66 20 | msgid "" 21 | "Our Website is currently undergoing " 22 | "scheduled maintenance. Please check back soon.
" 23 | msgstr "" 24 | "Notre site est actuellement en maintenance, " 25 | "merci de patienter.
" 26 | 27 | #: lj-maintenance-mode.php:69 28 | msgid "" 29 | "Important: Don't forget to flush your cache using WP Super Cache when " 30 | "enabling or disabling Maintenance Mode." 31 | msgstr "" 32 | "Important : si vous utilisez WP Super Cache, n'oubliez pas de vider le cache " 33 | "quand vous activez ou désactivez Mode Maintenance." 34 | 35 | #: lj-maintenance-mode.php:69 lj-maintenance-mode.php:72 36 | msgid "" 37 | "Important: Don't forget to flush your cache using W3 Total Cache when " 38 | "enabling or disabling Maintenance Mode." 39 | msgstr "" 40 | "Important : si vous utilisez W3 Total Cache, n'oubliez pas de vider le cache " 41 | "quand vous activez ou désactivez Mode Maintenance." 42 | 43 | #: lj-maintenance-mode.php:69 lj-maintenance-mode.php:72 44 | msgid "" 45 | "Important: Don't forget to flush your cache using Comet Cache when enabling " 46 | "or disabling Maintenance Mode." 47 | msgstr "" 48 | "Important : si vous utilisez Comet Cache, n'oubliez pas de vider le cache " 49 | "quand vous activez ou désactivez Maintenance Mode." 50 | 51 | #: lj-maintenance-mode.php:75 52 | msgid "" 53 | "Maintenance Mode is currently active. To make sure that it works, open your " 54 | "web page in either private / incognito mode, different browser or simply log " 55 | "out. Logged in users are not affected by the Maintenance Mode." 56 | msgstr "" 57 | "Mode Maintenance est actuellement actif. Pour vous assurer qu'il fonctionne, " 58 | "ouvrez au choix une page web en mode privé/incognito, un autre navigateur ou " 59 | "simplement déconnectez vous. Les utilisateurs connectés ne sont pas affectés " 60 | "par le Mode Maintenance." 61 | 62 | #. Plugin Name of the plugin/theme 63 | #: lj-maintenance-mode.php:161 lj-maintenance-mode.php:199 64 | msgid "Maintenance Mode" 65 | msgstr "Mode Maintenance" 66 | 67 | #: lj-maintenance-mode.php:209 68 | msgid "Enabled" 69 | msgstr "Activé" 70 | 71 | #: lj-maintenance-mode.php:221 72 | msgid "Preview" 73 | msgstr "Prévisualisation" 74 | 75 | #: lj-maintenance-mode.php:222 76 | msgid "Support" 77 | msgstr "Assistance" 78 | 79 | #: lj-maintenance-mode.php:236 80 | msgid "Advanced Settings" 81 | msgstr "Paramètres Avancés" 82 | 83 | #: lj-maintenance-mode.php:244 84 | msgid "Site Title" 85 | msgstr "Titre du site" 86 | 87 | #: lj-maintenance-mode.php:248 88 | msgid "Overrides default site meta title." 89 | msgstr "Remplace la balise meta title par défaut du site." 90 | 91 | #: lj-maintenance-mode.php:252 92 | msgid "Mode" 93 | msgstr "Mode" 94 | 95 | #: lj-maintenance-mode.php:259 96 | msgid "Default" 97 | msgstr "Défaut" 98 | 99 | #: lj-maintenance-mode.php:263 100 | msgid "Coming Soon Page" 101 | msgstr "Page Ouverture Prochaine" 102 | 103 | #: lj-maintenance-mode.php:265 104 | msgid "Default sets HTTP to 503, coming soon will set HTTP to 200." 105 | msgstr "" 106 | "L'option par défaut met le code HTTP à 503, l'option Ouverture Prochaine met " 107 | "le code HTTP à 200." 108 | 109 | #: lj-maintenance-mode.php 110 | msgid "" 111 | "If you are putting your site into maintenance mode for a longer period of " 112 | "time, you should set this to \"Coming Soon Page\". Otherwise use " 113 | "\"Maintenance Mode\"." 114 | msgstr "" 115 | "Si vous mettez votre site en mode maintenance pour une longue période de " 116 | "temps, vous devriez utiliser « Ouverture Prochaine ». Sinon, utilisez « Mode " 117 | "Maintenance »." 118 | 119 | #: lj-maintenance-mode.php:265 120 | msgid "Learn more." 121 | msgstr "En savoir plus." 122 | 123 | #: lj-maintenance-mode.php:273 124 | msgid "User Roles" 125 | msgstr "Rôles Utilisateurs" 126 | 127 | #: lj-maintenance-mode.php:274 128 | msgid "" 129 | "Tick the ones that can access front-end of your website if maintenance mode " 130 | "is enabled" 131 | msgstr "" 132 | "Cochez ceux qui peuvent accéder au front-end de votre site quand Mode " 133 | "Maintenance est activé" 134 | 135 | #: lj-maintenance-mode.php:275 136 | msgid "Please note that this does NOT apply to admin area" 137 | msgstr "Merci de noter que cela NE S'APPLIQUE PAS au panneau d'administration" 138 | 139 | #: lj-maintenance-mode.php:276 140 | msgid "Toggle all" 141 | msgstr "Tout basculer" 142 | 143 | #: lj-maintenance-mode.php:296 144 | msgid "User Role control is currently not avialable on your website. Sorry!" 145 | msgstr "" 146 | "La gestion des Rôles n'est actuellement pas disponible sur votre site. " 147 | "Désolé !" 148 | 149 | #: lj-maintenance-mode.php:346 150 | msgctxt "Admin bar indicator" 151 | msgid "Disabled" 152 | msgstr "Désactivé" 153 | 154 | #: lj-maintenance-mode.php:349 155 | msgctxt "Admin bar indicator" 156 | msgid "Enabled" 157 | msgstr "Activé" 158 | 159 | #: lj-maintenance-mode.php:360 160 | msgctxt "Admin bar indicator" 161 | msgid "Maintenance Mode" 162 | msgstr "Mode Maintenance" 163 | 164 | #: lj-maintenance-mode.php:374 165 | msgctxt "Plugin Settings link" 166 | msgid "Settings" 167 | msgstr "Paramètres" 168 | 169 | #: lj-maintenance-mode.php:375 170 | msgctxt "Plugin Support link" 171 | msgid "Support" 172 | msgstr "Assistance" 173 | 174 | #: lj-maintenance-mode.php:387 175 | msgid "Website Under Maintenance" 176 | msgstr "Site En Maintenance" 177 | 178 | #. Plugin URI of the plugin/theme 179 | msgid "https://plugins.itsluk.as/maintenance-mode/" 180 | msgstr "https://plugins.itsluk.as/maintenance-mode/" 181 | 182 | #. Description of the plugin/theme 183 | msgid "" 184 | "Very simple Maintenance Mode & Coming soon page using default Wordpress " 185 | "markup with no ads or paid upgrades." 186 | msgstr "" 187 | "Une page Maintenance En Cours & Ouverture Prochaine très simple qui utilise " 188 | "le markup par défaut de WordPress sans publicité ou mises à jour payantes." 189 | 190 | #. Author of the plugin/theme 191 | msgid "Lukas Juhas" 192 | msgstr "Lukas Juhas" 193 | 194 | #. Author URI of the plugin/theme 195 | msgid "https://plugins.itsluk.as/" 196 | msgstr "https://plugins.itsluk.as/" 197 | 198 | #~ msgid "" 199 | #~ "Very simple Maintenance Mode & Coming soon page. Using default Wordpress " 200 | #~ "markup, No ads, no paid upgrades." 201 | #~ msgstr "" 202 | #~ "Une page Maintenance En Cours & Ouverture Prochaine très simple. Utilise " 203 | #~ "le markup par défaut de WordPress, pas de publicités, pas de mises à jour " 204 | #~ "payantes." 205 | -------------------------------------------------------------------------------- /CHANGELOG.MD: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 2.4.4 4 | * Bumped up "Tested up to" 5 | 6 | ## 2.4.3 7 | * Added support for older PHP versions as per pre-2.4 8 | 9 | ## 2.4.2 10 | * Add workaround capability management to support user role and capabilities plugins by using `delete_plugins` capability for super admins and `ljmm_control` for rest of the users 11 | 12 | ## 2.4.1 13 | * Merge capabilities handling, tidy up and potentially fix capabilities issues some of the users have experienced 14 | 15 | ## 2.4 16 | * More customisable than ever! 17 | * Added support for stylesheet, widgets, code snippet injection and Analytify/Google Analytics tracking code (Thanks to Eric Mueller at [@switchplus](https://github.com/switchplus)) 18 | * Custom capability (Thanks to [@gabrielbijleveld](https://github.com/gabrielbijleveld)) 19 | * Code refactor and improvements 20 | * Overall tidy up of the code 21 | * Update broken support link 22 | * Added shortcode support (Plugins like Contact Form 7 will work from now on) 23 | * New icons and banners 24 | 25 | ## 2.3.2 26 | * Added SiteOrigin Page Builder compatibility (Thanks to [@relgit](https://github.com/relgit)) 27 | 28 | ## 2.3.1 29 | * Hot Fix issue where user got locked out of admin area in maintenance mode. 30 | 31 | ## 2.3 32 | * Small refactor, extract some of the parts to it's own method to make everything a bit cleaner 33 | * Added 'ljmm_content' filter 34 | * Move mode up to the "main" setting area instead of advanced settings 35 | * From now on, `init` hook instead of `get_header` is used for maintenance mode 36 | * Dedicated method to check if maintenance mode is enabled to make things cleaner 37 | * Improve current_user_can checks. From codex: current_user_can( $capability ) will aways return true if user is Super Admin, unless specifically denied - see [inline source code](https://developer.wordpress.org/reference/classes/wp_user/has_cap/) 38 | * Update readme 39 | * Preview mode will now perform capabilities check. (Thanks to [@esemlabel](https://wordpress.org/support/users/esemlabel/)) 40 | * Added Comet Cache support. (Thanks to [@doume](https://wordpress.org/support/users/doume/)) 41 | * Update translation files 42 | * Updated French translation (Thanks to [@doume](https://wordpress.org/support/users/doume/)) 43 | 44 | ## 2.2.5 45 | * Add French translation (Thanks to [@doume](https://wordpress.org/support/users/doume/)) 46 | 47 | ## 2.2.4 48 | * Added missing translation strings (Thanks to [@doume](https://wordpress.org/support/users/doume/) for reporting this issue) 49 | * Updated advanced settings toggle (Thanks to [@doume](https://wordpress.org/support/users/doume/) for reporting this issue) 50 | 51 | ## 2.2.3 52 | * Updated POT file.(Thanks to [@doume](https://wordpress.org/support/users/doume/) for reporting this issue) 53 | * Corrected typo for w3 total cache warning message. (Thanks to [@doume](https://wordpress.org/support/users/doume/) for reporting this issue) 54 | 55 | ## 2.2.2 56 | * Fixed typo in variable ($cache_plugin_enabled). (Thanks to [@doume](https://wordpress.org/support/users/doume/) for reporting this issue) 57 | 58 | ## 2.2.1 59 | * Added Dutch translation (Thanks to [@edwarddekker](https://github.com/edwarddekker)) 60 | 61 | ## 2.2 62 | * From now on, you can change status code being used while using maintenance mode between 503 (maintenance mode) or 200 (for "coming soon" page) 63 | * Correct support url 64 | * General code tidy up 65 | 66 | ## 2.1 67 | * added WPML compatibility 68 | * added TML (Theme My Login) compatibility 69 | * Fixed issue where plugin capabilities were not being removed on uninstall 70 | * Shorten admin bar indicator text, added icon 71 | * Add support link to the plugins page 72 | * Minor code tidy up 73 | 74 | ## 2.0.4 75 | * Added Lithuanian translation (Thanks to [@gedeminas](https://github.com/gedeminas)) 76 | 77 | ## 2.0.3 78 | * Added Spanish Translations. (Thanks to [@bcien](https://github.com/bcien)) 79 | * Fixed issue where on non English sites admin bar indicator was broken. 80 | 81 | ## 2.0.2 82 | * Fix db prefixing while getting roles. thanks @gablau 83 | * Further checks improvements regarding problems caused by latest update for some users 84 | * Add missing function wrapper for translations 85 | 86 | ## 2.0.1 87 | * Improved checks regarding problems caused by latest update for some users 88 | 89 | ## 2.0 90 | * Advanced settings 91 | * Role Control 92 | * You can now change title of the site while Maintenance Mode is enabled (in advanced settings) 93 | * General tidy up of code 94 | * Fix issue where Jetpack share was appearing in maintenance mode 95 | * Settings page tidy up and corrections to formatting. 96 | 97 | ## 1.4.3 98 | * Added German (DE) translations. (Thanks to Hoellenwesen) 99 | 100 | ## 1.4.2 101 | * Update Pot file 102 | * Small adjustments 103 | 104 | ## 1.4.1 105 | * Bug fixes 106 | 107 | ## 1.4 108 | * Bug fixes (Thanks to [@gablau](https://github.com/gablau)) 109 | * Security fixes - saving content more safely (Thanks to [@gablau](https://github.com/gablau)) 110 | * Languages: Add Italian (100%) (Thanks to [@gablau](https://github.com/gablau)) 111 | * Add compatibility while installed along wp-maintenance-mode [@gablau](https://github.com/gablau)) 112 | * Code: Avoid duplicating same code and use it as method instead. 113 | * Code: Tidy up default messages and group them together within method to avoid repeating yourself and also searching all across code in order to change the messages in the future. 114 | 115 | ## 1.3.3 116 | * Improvement: If MM is enabled, added message describing how to check if the maintenance mode is enabled as this was causing lot of confusion and unnecessary support tickets. 117 | * Improvement: Move preview and support buttons to a more convenient place, also highlight the preview button. 118 | * Languages: Add Canadian (100%), Hungarian(83%) languages. 119 | 120 | ## 1.3.2 121 | * Fixed: Issue where non admin users could see admin bar indicator. 122 | 123 | ## 1.3.1 124 | * Google is being notified right way from now on. 125 | * Typo corrections 126 | * General code tidy up 127 | 128 | ## 1.3 129 | * Improvement: Translations adjustments and corrections. Plugin is now fully translatable. 130 | * Improvement: Small code refactor and tidy up. 131 | * Improvement: Correct various typo issues. 132 | 133 | ## 1.2.1 134 | * Bug fixes 135 | * Deprecated clear cache functionality as it caused errors to some users. From now on, plugin shows simple reminder to flush cache after enabling or disabling Maintenance Mode. 136 | 137 | 138 | ## 1.2 139 | * Improvement: Improved Multisite Support 140 | * Improvement: Show default maintenance message in the settings 141 | * Improvement: Uninstalling will now clean up database 142 | * Improvement: Added support link to the settings page 143 | * Improvement: Translatable strings 144 | * Improvement: Changed default site title while MM is active 145 | * Improvement: Added preview button 146 | * Improvement: Added support button 147 | * Improvement: Added support for WP Super Cache 148 | * Improvement: Added support for W3 Total Cache 149 | * Bug Fixes 150 | 151 | ## 1.1.1 152 | * Bug Fixes 153 | 154 | ## 1.1 155 | * Added Indicator to Admin menu bar 156 | * Added Settings button on plugins page 157 | * Added Default maintenance mode message. 158 | * Bug Fixes 159 | 160 | ## 1.0 161 | * First release 162 | -------------------------------------------------------------------------------- /languages/lj-maintenance-mode-nl_NL.po: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2017 Maintenance Mode 2 | # This file is distributed under the same license as the Maintenance Mode package. 3 | msgid "" 4 | msgstr "" 5 | "Project-Id-Version: Maintenance Mode 2.2.3\n" 6 | "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/lj-maintenance-" 7 | "mode\n" 8 | "POT-Creation-Date: 2018-04-01 11:25+0000\n" 9 | "MIME-Version: 1.0\n" 10 | "Content-Type: text/plain; charset=UTF-8\n" 11 | "Content-Transfer-Encoding: 8bit\n" 12 | "PO-Revision-Date: 2018-04-01 11:34+0000\n" 13 | "Last-Translator: Edward DekkerOur Website is currently undergoing " 22 | "scheduled maintenance. Please check back soon.
" 23 | msgstr "" 24 | "Onze Website ondergaat momenteel een \"\n" 25 | "\"geplande onderhoudsbeurt. Kom snel weer terug.
" 26 | 27 | #: lj-maintenance-mode.php:69 28 | msgid "" 29 | "Important: Don't forget to flush your cache using WP Super Cache when " 30 | "enabling or disabling Maintenance Mode." 31 | msgstr "" 32 | "Belangrijk: Vergeet niet de cache op te schonen als je onderhoudsmodus aan " 33 | "of uit zet in combinatie met WP Super Cache." 34 | 35 | #: lj-maintenance-mode.php:69 lj-maintenance-mode.php:72 36 | msgid "" 37 | "Important: Don't forget to flush your cache using W3 Total Cache when " 38 | "enabling or disabling Maintenance Mode." 39 | msgstr "" 40 | "Belangrijk: Vergeet niet de cache op te schonen als je onderhoudsmodus aan " 41 | "of uit zet in combinatie met W3 Total Cache." 42 | 43 | #: lj-maintenance-mode.php:69 lj-maintenance-mode.php:72 44 | msgid "" 45 | "Important: Don't forget to flush your cache using Comet Cache when enabling " 46 | "or disabling Maintenance Mode." 47 | msgstr "" 48 | "Belangrijk: Vergeet niet de cache op te schonen als je onderhoudsmodus aan " 49 | "of uit zet in combinatie met Comet Cache." 50 | 51 | #: lj-maintenance-mode.php:75 52 | msgid "" 53 | "Maintenance Mode is currently active. To make sure that it works, open your " 54 | "web page in either private / incognito mode, different browser or simply log " 55 | "out. Logged in users are not affected by the Maintenance Mode." 56 | msgstr "" 57 | "Onderhoudsmodus is momenteel actief, Om te controleren of het ook werkt moet " 58 | "je webpagina in privé- of incognitomodus zetten, gebruik een andere " 59 | "webbrowser of log simpelweg uit. Ingelogde gebruikers merken niets van de " 60 | "\"Onderhoudsmodus\"" 61 | 62 | #. Plugin Name of the plugin/theme 63 | #: lj-maintenance-mode.php:161 lj-maintenance-mode.php:199 64 | msgid "Maintenance Mode" 65 | msgstr "Onderhoudsmodus" 66 | 67 | #: lj-maintenance-mode.php:209 68 | msgid "Enabled" 69 | msgstr "Aan" 70 | 71 | #: lj-maintenance-mode.php:221 72 | msgid "Preview" 73 | msgstr "Voorbeeld" 74 | 75 | #: lj-maintenance-mode.php:222 76 | msgid "Support" 77 | msgstr "Ondersteuning" 78 | 79 | #: lj-maintenance-mode.php:236 80 | msgid "Advanced Settings" 81 | msgstr "Geavanceerde instellingen" 82 | 83 | #: lj-maintenance-mode.php:244 84 | msgid "Site Title" 85 | msgstr "Websitetitel" 86 | 87 | #: lj-maintenance-mode.php:248 88 | msgid "Overrides default site meta title." 89 | msgstr "Overschrijf de normale websitenaam" 90 | 91 | #: lj-maintenance-mode.php:252 92 | msgid "Mode" 93 | msgstr "Staat" 94 | 95 | #: lj-maintenance-mode.php:259 96 | msgid "Default" 97 | msgstr "Standaard" 98 | 99 | #: lj-maintenance-mode.php:263 100 | msgid "Coming Soon Page" 101 | msgstr "Kom snel terug pagina" 102 | 103 | #: lj-maintenance-mode.php:265 104 | msgid "Default sets HTTP to 503, coming soon will set HTTP to 200." 105 | msgstr "" 106 | "Standaard staat de instelling op HTTP code 503. En geeft HTTP code 200 door " 107 | "als je een \"kom snel terug pagina\" maakt." 108 | 109 | #: lj-maintenance-mode.php 110 | msgid "" 111 | "If you are putting your site into maintenance mode for a longer period of " 112 | "time, you should set this to \"Coming Soon Page\". Otherwise use " 113 | "\"Maintenance Mode\"." 114 | msgstr "" 115 | "Als je je site voor langere tijd in Onderhoudsmodus plaatst, gebruik de " 116 | "\"Kom snel terug pagina\". In overige gevallen, gebruik dan " 117 | "\"Onderhoudsmodus\"\"" 118 | 119 | #: lj-maintenance-mode.php:265 120 | msgid "Learn more." 121 | msgstr "Lees verder" 122 | 123 | #: lj-maintenance-mode.php:273 124 | msgid "User Roles" 125 | msgstr "Gebruikersrollen" 126 | 127 | #: lj-maintenance-mode.php:274 128 | msgid "" 129 | "Tick the ones that can access front-end of your website if maintenance mode " 130 | "is enabled" 131 | msgstr "" 132 | "Selecteer gebruikers die de site kunnen bezoeken als de onderhoudsmodus is " 133 | "geactiveerd" 134 | 135 | #: lj-maintenance-mode.php:275 136 | msgid "Please note that this does NOT apply to admin area" 137 | msgstr "Dit heeft geen toepassing op het admin-menu" 138 | 139 | #: lj-maintenance-mode.php:276 140 | msgid "Toggle all" 141 | msgstr "Alles aan/uit" 142 | 143 | #: lj-maintenance-mode.php:296 144 | msgid "User Role control is currently not avialable on your website. Sorry!" 145 | msgstr "Gebruikersrol is nu niet beschikbaar, excuses!" 146 | 147 | #: lj-maintenance-mode.php:346 148 | msgctxt "Admin bar indicator" 149 | msgid "Disabled" 150 | msgstr "Uit" 151 | 152 | #: lj-maintenance-mode.php:349 153 | msgctxt "Admin bar indicator" 154 | msgid "Enabled" 155 | msgstr "Aan" 156 | 157 | #: lj-maintenance-mode.php:360 158 | msgctxt "Admin bar indicator" 159 | msgid "Maintenance Mode" 160 | msgstr "Onderhoudsmodus" 161 | 162 | #: lj-maintenance-mode.php:374 163 | msgctxt "Plugin Settings link" 164 | msgid "Settings" 165 | msgstr "Instellingen" 166 | 167 | #: lj-maintenance-mode.php:375 168 | msgctxt "Plugin Support link" 169 | msgid "Support" 170 | msgstr "Help" 171 | 172 | #: lj-maintenance-mode.php:387 173 | msgid "Website Under Maintenance" 174 | msgstr "Website in onderhoud" 175 | 176 | #. Plugin URI of the plugin/theme 177 | msgid "https://plugins.itsluk.as/maintenance-mode/" 178 | msgstr "https://plugins.itsluk.as/maintenance-mode/" 179 | 180 | #. Description of the plugin/theme 181 | msgid "" 182 | "Very simple Maintenance Mode & Coming soon page using default Wordpress " 183 | "markup with no ads or paid upgrades." 184 | msgstr "" 185 | "Het is een heel eenvoudige onderhoudsmodus dat voor iedereen geschikt is en " 186 | "gemakkelijk in gebruik zonder reclame." 187 | 188 | #. Author of the plugin/theme 189 | msgid "Lukas Juhas" 190 | msgstr "Lukas Juhas" 191 | 192 | #. Author URI of the plugin/theme 193 | msgid "https://plugins.itsluk.as/" 194 | msgstr "https://plugins.itsluk.as/" 195 | 196 | msgid "Custom Stylesheet" 197 | msgstr "Aangepaste Stijlpagina" 198 | 199 | msgid "Add widget areas above and below content" 200 | msgstr "Voeg een widgetruimte toe boven en onder uw inhoud." 201 | 202 | msgid "" 203 | "For custom stylesheet, add 'maintenance.min.css' file to your theme folder. " 204 | "If your custom stylesheet file is picked up by the Maintenance Mode, it will " 205 | "be indicated here." 206 | msgstr "" 207 | "Voor een aangepaste stijlpagina kunt u een 'maintenance.min.css' bestand " 208 | "toevoegen in de root van uw themafolder. Onderhoudsmodus zal dit vinden en " 209 | "gebruiken." 210 | 211 | msgid "Inject code snippet" 212 | msgstr "Injecteer een aangepaste code" 213 | 214 | msgid "This is useful to add a Javascript snippet to the maintenance page." 215 | msgstr "" 216 | "Dit is handig als je een JavaScript code wilt gebruiken in de " 217 | "onderhoudspagina." 218 | 219 | msgid "Hide Advanced Settings" 220 | msgstr "Verberg geavanceerde instellingen" 221 | 222 | msgid "You can add widgets in Appearance -> Widgets." 223 | msgstr "Je kunt widgets toevoegen in Instellingen -> Widgets." 224 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | === Maintenance Mode === 2 | Contributors: LukasNeptun 3 | Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LL6TN86CDPYQN 4 | Tags: maintenance, maintenance mode, website maintenance, coming soon, under construction, offline, site maintenance, 5 | Requires at least: 3.5 6 | Tested up to: 5.8 7 | Stable tag: 2.4.4 8 | License: GPLv2 or later 9 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 | 11 | Very simple Maintenance Mode & Coming soon page using default Wordpress markup with no ads or paid upgrades. 12 | 13 | == Description == 14 | 15 | As a web developer working with Wordpress almost every day, very often I came across problem that If I wanted simple maintenance plugin to do some updates on my or client's website, I came across all these useless and overcomplicated plugins until I decided that I'll make one myself which will be the one I'll be confident and happy to use with ease. 16 | 17 | [Maintenance Mode](https://plugins.itsluk.as/maintenance-mode/) is very simple and it's using Wordpress's wp_die() function which is core function of Wordpress, which makes this plugin feel and work as a part of Wordpress core. There is settings page under "Settings" in the main wp-admin menu where you can enable maintenance mode or change content using WYSIWYG editor so you can also add pictures, links etc. When activated and logged in as admin, you can see website as usual, rest of the users / visitors can see maintenance mode. You can see the maintenance mode as admin in preview mode using preview link on the settings page or simply open website in private mode or different browser to double check if it's enabled and working. There is also indicator in admin bar that changes colour to red when maintenance mode is enabled. 18 | 19 | **Features:** 20 | 21 | * **Simplicity** - Built to be as simple as possible. Easy to use. 22 | * **Customisable** - WYSIWYG available in full glory. You can add images and other media including links and pretty much everything you can do with WYSIWYG. Text / Code tab is available too for custom markup. 23 | * **Works on mobile** - Because of it's simplicity, maintenance mode works very well on mobile devices. 24 | * **NO ADS** - No ads. Seriously. 25 | * **NO PAID UPGRADES** - No paid upgrades. Seriously. 26 | * **Updates** - Regular updates and maintenance. 27 | * **Support** - Support button available. 28 | * **Preview** - Preview button available. 29 | * **Compact** - It's developed to be as compact as possible. 30 | * **Role Control** - User Role control is available since 2.0 31 | * **Optional widgets** - Optionally add widgets above and/or below the content 32 | * **Optional style sheet** - Optionally add a custom style sheet 33 | * **Optional ability to add code snippet** - Optionally add a code snippet to the page. 34 | * **Support for Analytify plugin** - If you use the Analytify plugin, you can automatically insert the Google Analytics tracking code. 35 | 36 | > Important! Users that are using Cache plugins, please read below:Our Website is currently undergoing scheduled maintenance. Please check back soon.
', LJMM_PLUGIN_DOMAIN); 68 | break; 69 | case 'warning_wp_super_cache': 70 | $default = __("Important: Don't forget to flush your cache using WP Super Cache when enabling or disabling Maintenance Mode.", LJMM_PLUGIN_DOMAIN); 71 | break; 72 | case 'warning_w3_total_cache': 73 | $default = __("Important: Don't forget to flush your cache using W3 Total Cache when enabling or disabling Maintenance Mode.", LJMM_PLUGIN_DOMAIN); 74 | break; 75 | case 'warning_comet_cache': 76 | $default = __("Important: Don't forget to flush your cache using Comet Cache when enabling or disabling Maintenance Mode.", LJMM_PLUGIN_DOMAIN); 77 | break; 78 | case 'ljmm_enabled': 79 | $default = __('Maintenance Mode is currently active. To make sure that it works, open your web page in either private / incognito mode, different browser or simply log out. Logged in users are not affected by the Maintenance Mode.', LJMM_PLUGIN_DOMAIN); 80 | break; 81 | case 'ljmm_add_widget_areas': 82 | $default = __('You can add widgets in Appearance -> Widgets.', LJMM_PLUGIN_DOMAIN); 83 | break; 84 | default: 85 | $default = false; 86 | break; 87 | } 88 | 89 | return $default; 90 | } 91 | 92 | /** 93 | * Set the default content 94 | * Avoid duplicate function. 95 | * 96 | * @since 1.0 97 | */ 98 | function ljmm_set_content() 99 | { 100 | // If content is not set, set the default content. 101 | $content = get_option('ljmm-content'); 102 | 103 | if (empty($content)) { 104 | $content = ljmm_get_defaults('maintenance_message'); 105 | update_option('ljmm-content', stripslashes($content)); 106 | } 107 | 108 | // If content is not set, set the default content. 109 | $mode = get_option('ljmm-mode'); 110 | if (empty($mode)) { 111 | update_option('ljmm-mode', 'default'); 112 | } 113 | } 114 | 115 | /** 116 | * Load plugin textdomain. 117 | * 118 | * @since 1.3.1 119 | */ 120 | function ljmm_load_textdomain() 121 | { 122 | load_plugin_textdomain(LJMM_PLUGIN_DOMAIN, false, dirname(plugin_basename(__FILE__)) . '/languages/'); 123 | } 124 | add_action('plugins_loaded', 'ljmm_load_textdomain'); 125 | 126 | /** 127 | * Main class 128 | * 129 | * @since 1.0 130 | */ 131 | class ljMaintenanceMode 132 | { 133 | /** 134 | * Constructor 135 | * 136 | * @since 1.0 137 | */ 138 | public function __construct() 139 | { 140 | add_action('admin_menu', array($this, 'ui')); 141 | add_action('admin_head', array($this, 'style')); 142 | add_action('admin_init', array($this, 'settings')); 143 | add_action('admin_init', array($this, 'manage_capabilities')); 144 | 145 | // remove old settings. This has been deprecated in 1.2 146 | delete_option('ljmm-content-default'); 147 | 148 | // maintenance mode 149 | add_action('get_header', array($this, 'maintenance')); 150 | 151 | add_action('admin_bar_menu', array($this, 'indicator'), 100); 152 | add_filter('plugin_action_links_' . plugin_basename(__FILE__), array($this, 'action_links')); 153 | 154 | add_action('ljmm_before_mm', array($this, 'before_maintenance_mode')); 155 | 156 | // add shortcode support 157 | add_filter('ljmm_content', 'do_shortcode', 11); 158 | 159 | // add widget areas if enabled 160 | if (get_option('ljmm_add_widget_areas')) { 161 | $this->register_widget_sidebars(); 162 | } 163 | } 164 | 165 | /** 166 | * Settings page 167 | * 168 | * @since 1.0 169 | */ 170 | public function ui() 171 | { 172 | add_submenu_page('options-general.php', __('Maintenance Mode', LJMM_PLUGIN_DOMAIN), __('Maintenance Mode', LJMM_PLUGIN_DOMAIN), $this->get_relevant_cap(), 'lj-maintenance-mode', array($this, 'settingsPage')); 173 | } 174 | 175 | /** 176 | * Inject styling for admin bar indicator 177 | * 178 | * @since 1.1 179 | */ 180 | public function style() 181 | { 182 | echo ''; 183 | } 184 | 185 | /** 186 | * Settings 187 | * 188 | * @since 1.0 189 | */ 190 | public function settings() 191 | { 192 | register_setting('ljmm', 'ljmm-enabled'); 193 | register_setting('ljmm', 'ljmm-content'); 194 | register_setting('ljmm', 'ljmm_add_widget_areas'); 195 | register_setting('ljmm', 'ljmm_analytify'); 196 | register_setting('ljmm', 'ljmm_code_snippet'); 197 | register_setting('ljmm', 'ljmm-site-title'); 198 | register_setting('ljmm', 'ljmm-roles'); 199 | register_setting('ljmm', 'ljmm-mode'); 200 | 201 | // set the content 202 | ljmm_set_content(); 203 | } 204 | 205 | /** 206 | * Settings page 207 | * 208 | * @since 1.0 209 | */ 210 | public function settingsPage() 211 | { 212 | ?> 213 |' . $message . '