Changeset 851

Show
Ignore:
Timestamp:
08/29/08 22:43:16 (3 months ago)
Author:
dmondark
Message:

plugin:maintenance make the maintenance text available to the maintenance template should the user want to use it there.

Location:
plugins/maintenance_mode/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • plugins/maintenance_mode/trunk/maintenance_mode.plugin.php

    r766 r851  
    113113    { 
    114114        if ($theme->template_exists('maintenance')) { 
     115            $theme->maintenance_text = Options::get( self::OPTION_NAME . '__text' ); 
    115116            $theme->display( 'maintenance' ); 
    116117        } 
  • plugins/maintenance_mode/trunk/readme.txt

    r766 r851  
    2525To configure Maintenance Mode, click on it's configure button on the admin plugins page. You will see two options. 
    2626 
    27 1. The text readers will see if they come to your site while it is maintenance mode. You can change this to anything you like. If you would prefer, you can also create a page named maintenance.php in your theme directory containing anything you like. If such a page is found, Maintenance Mode will display that page rather than using the text entered in the configuration options. 
     271. The text readers will see if they come to your site while it is maintenance mode. You can change this to anything you like. If you would prefer, you can also create a page named maintenance.php in your theme directory containing anything you like. If such a page is found, Maintenance Mode will display that page rather than using the text entered in the configuration options. That text is also accessible from the template should you want to use it, just use echo $theme->maintenance_text within maintenance.php. 
    2828 
    29292. A checkbox to put the site into maintenance mode and to take it out of maintenance mode.