*/ /** * View to display message when site is down for maintenance. * * @package GalleryCore * @subpackage UserInterface */ class MaintenanceModeView extends GalleryView { /** * @see GalleryView::loadTemplate */ function loadTemplate(&$template, &$form) { list ($ret, $module) = GalleryCoreApi::loadPlugin('module', 'core'); if ($ret) { return array($ret->wrap(__FILE__, __LINE__), null); } $template->title($module->translate('Maintenance')); return array(null, array('body' => 'modules/core/templates/MaintenanceMode.tpl', 'useFullScreen' => true)); } /** * @see GalleryView::getViewDescription */ function getViewDescription() { list ($ret, $module) = GalleryCoreApi::loadPlugin('module', 'core'); if ($ret) { return array($ret->wrap(__FILE__, __LINE__), null); } return array(null, $module->translate('Maintenance')); } } ?>