Coder Social home page Coder Social logo

digitalideastudio / wp-maintenance-mode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeinwp/wp-maintenance-mode

0.0 3.0 0.0 9.04 MB

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.

Home Page: http://wordpress.org/plugins/wp-maintenance-mode/

CSS 11.38% PHP 48.05% JavaScript 40.58%

wp-maintenance-mode's Introduction

Version 2.0.9

WP Maintenance Mode

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.

Features

  • Fully customizable (change colors, texts and backgrounds);
  • Subscription form (export emails to .csv file);
  • Countdown timer (remaining time);
  • Contact form (receive emails from visitors);
  • Coming soon page;
  • Landing page templates;
  • WordPress multisite;
  • Responsive design;
  • Social media icons;
  • Works with any WordPress theme;
  • SEO options;
  • Exclude URLs from maintenance.

Credits

Developed by Designmodo & StrictThemes โ€“ WordPress Themes

F.A.Q.

How to use plugin filters

wpmm_backtime - can be used to change the backtime from page Retry-After header

function new_backtime() {
    return 1800;
}

add_filter('wpmm_backtime', 'new_backtime');

Now... the search bots will retry to visit the page after 1800 seconds.

wpmm_search_bots - if you have Bypass for Search Bots option (from General) activated, it can be used to add / delete bots (useragents)

function new_search_bots($bots) {
    // we delete a bot from array
    if(!empty($bots['AcoiRobot'])){ 
        unset($bots['AcoiRobot']);
    }

    // we add a new bot into array
    if(empty($bots['new_robot'])){ 
        $bots['new_robot'] = 'NewRobot'; // NewRobot is the user agent
    }

    return $bots;
}

add_filter('wpmm_search_bots', 'new_search_bots');

We deleted a bot from list and added a new one.

wpmm_text - can be used to change Text option

function new_text($text) {
    $text = str_replace('http://www.designmodo.com', 'http://designmodo.com', $text);
    

    return $text;
}

add_filter('wpmm_text', 'new_text');

We replaced a string with another string. We can also add another text, add some extra html, etc.

wpmm_styles - can be used to embed new css files

function new_css_styles($styles) {
    $styles['new-style'] = 'path_to_css_file/style.css'; // replace with the real path :)

    return $styles;
}

add_filter('wpmm_styles', 'new_css_styles');

We embedded a new css style on maintenance page. Same mechanism can be used for javascript files (see wpmm_scripts filter).

Cache Plugin Support

WP Maintenance Mode can be unstable due the cache plugins, we recommend to deactivate any cache plugin when maintenance mode is active.

Other Notes

License

Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog.

Translations

The plugin comes with various translations, please refer to the WordPress Codex for more information about activating the translation. If you want to help to translate the plugin to your language, please have a look at the .pot file which contains all defintions and may be used with a gettext editor like Poedit (Linux, Mac OS X, Windows).

Contact & Feedback

Please let me know if you like the plugin or you hate it or whatever... Please fork it, add an issue for ideas and bugs.

wp-maintenance-mode's People

Contributors

adevade avatar andrianvaleanu avatar benedettogit avatar bueltge avatar candiba avatar cfoellmann avatar controlcde avatar dhunink avatar eruizdechavez avatar fhugas avatar georgejipa avatar jonatasaraujo avatar k0ssi avatar kcmckell avatar mrplumbum avatar nekofar avatar odie2 avatar pedro-mendonca avatar profago avatar sitedesignusa avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.