From 016280812eb59ece5d1e1c83534ae06b8fffbcae Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 19 Nov 2009 03:11:53 +0000 Subject: =?UTF-8?q?#547068=20by=20sun,=20seutje,=20yoroy,=20G=C3=A1bor=20H?= =?UTF-8?q?ojtsy,=20adrian,=20Bojhan,=20and=20markboulton:=20Use=20Seven?= =?UTF-8?q?=20theme=20for=20installation=20/=20updates.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/theme.maintenance.inc | 14 ++++----- modules/simpletest/tests/menu.test | 2 +- themes/seven/maintenance-page.tpl.php | 48 +++++++++++++++++++++++++++++++ themes/seven/seven.info | 2 ++ themes/seven/style.css | 53 +++++++++++++++++++++++++++++++++++ update.php | 2 +- 6 files changed, 112 insertions(+), 9 deletions(-) create mode 100644 themes/seven/maintenance-page.tpl.php diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc index 5ba1ee3ac..b2de72351 100644 --- a/includes/theme.maintenance.inc +++ b/includes/theme.maintenance.inc @@ -10,7 +10,7 @@ * Sets up the theming system for site installs, updates and when the site is * in maintenance mode. It also applies when the database is unavailable. * - * Minnelli is always used for the initial install and update operations. In + * Seven is always used for the initial install and update operations. In * other cases, "settings.php" must have a "maintenance_theme" key set for the * $conf variable in order to change the maintenance theme. */ @@ -33,7 +33,7 @@ function _drupal_maintenance_theme() { // Install and update pages are treated differently to prevent theming overrides. if (defined('MAINTENANCE_MODE') && (MAINTENANCE_MODE == 'install' || MAINTENANCE_MODE == 'update')) { - $custom_theme = 'minnelli'; + $custom_theme = 'seven'; } else { if (!db_is_active()) { @@ -46,7 +46,7 @@ function _drupal_maintenance_theme() { drupal_load('module', 'filter'); } - $custom_theme = variable_get('maintenance_theme', 'minnelli'); + $custom_theme = variable_get('maintenance_theme', 'seven'); } $themes = list_themes(); @@ -165,9 +165,9 @@ function theme_install_page($variables) { // fix path_to_theme() for the template, to point at the actual // theme rather than system module as owner of the hook. global $theme_path; - $theme_path = 'themes/garland'; + $theme_path = 'themes/seven'; - return theme_render_template('themes/garland/maintenance-page.tpl.php', $variables); + return theme_render_template('themes/seven/maintenance-page.tpl.php', $variables); } /** @@ -203,9 +203,9 @@ function theme_update_page($variables) { // fix path_to_theme() for the template, to point at the actual // theme rather than system module as owner of the hook. global $theme_path; - $theme_path = 'themes/garland'; + $theme_path = 'themes/seven'; - return theme_render_template('themes/garland/maintenance-page.tpl.php', $variables); + return theme_render_template('themes/seven/maintenance-page.tpl.php', $variables); } /** diff --git a/modules/simpletest/tests/menu.test b/modules/simpletest/tests/menu.test index c601b111f..ab3252315 100644 --- a/modules/simpletest/tests/menu.test +++ b/modules/simpletest/tests/menu.test @@ -60,7 +60,7 @@ class MenuIncTestCase extends DrupalWebTestCase { // For a regular user, the fact that the site is in maintenance mode means // we expect the theme callback system to be bypassed entirely. $this->drupalGet('menu-test/theme-callback/use-admin-theme'); - $this->assertRaw('minnelli/minnelli.css', t("The maintenance theme's CSS appears on the page.")); + $this->assertRaw('seven/style.css', t("The maintenance theme's CSS appears on the page.")); // An administrator, however, should continue to see the requested theme. $admin_user = $this->drupalCreateUser(array('access site in maintenance mode')); diff --git a/themes/seven/maintenance-page.tpl.php b/themes/seven/maintenance-page.tpl.php new file mode 100644 index 000000000..9d1662fab --- /dev/null +++ b/themes/seven/maintenance-page.tpl.php @@ -0,0 +1,48 @@ + + + + <?php print $head_title; ?> + + + + + + + + +
+

+
+ +
+ + + + + +
+ +
+ + +
+ +
+ + +
+ +
+ + + + + diff --git a/themes/seven/seven.info b/themes/seven/seven.info index cce1a5e78..2b9f687a3 100644 --- a/themes/seven/seven.info +++ b/themes/seven/seven.info @@ -12,3 +12,5 @@ regions[content] = Content regions[help] = Help regions[page_top] = Page top regions[page_bottom] = Page bottom +regions[sidebar_first] = First sidebar +regions_hidden[] = sidebar_first diff --git a/themes/seven/style.css b/themes/seven/style.css index 25c022550..c23314042 100644 --- a/themes/seven/style.css +++ b/themes/seven/style.css @@ -748,6 +748,59 @@ div.admin-options div.form-item { border: none; } +/* Maintenance theming */ +body.in-maintenance #sidebar-first { + float: right; + width: 200px; +} +body.in-maintenance #content { + width: 550px; + padding-right: 20px; +} +body.in-maintenance #page { + width: 770px; + margin: 0 auto; + padding-top: 2em; +} +body.in-maintenance #branding h1 { + width: 770px; + margin: 0 auto; + float: none; +} + +body.in-maintenance .form-type-radio { + display: inline-block; +} + +body.in-maintenance .form-submit { + display: block; +} + +body.in-maintenance #logo { + margin-bottom: 1.5em; +} + +ol.task-list { + margin-left: 0; /* LTR */ + list-style-type: none; + list-style-image: none; +} +ol.task-list li { + padding: 0.5em 1em 0.5em 0; /* LTR */ + color: #adadad; +} +ol.task-list li.active { + background: transparent url(images/task-item.png) no-repeat 3px 50%; /* LTR */ + padding: 0.5em 1em 0.5em 20px; /* LTR */ + color: #000; +} +ol.task-list li.done { + color: #393; + background: transparent url(images/task-check.png) no-repeat 0px 50%; /* LTR */ + padding: 0.5em 1em 0.5em 20px; /* LTR */ + color: green; +} + /* Overlay theming */ body.overlay { background: #fff; diff --git a/update.php b/update.php index e9e5c84f6..9ad5092f6 100644 --- a/update.php +++ b/update.php @@ -194,7 +194,7 @@ function update_info_page() { $output .= "
  • Install your new files in the appropriate location, as described in the handbook.
  • \n"; $output .= "\n"; $output .= "

    When you have performed the steps above, you may proceed.

    \n"; - $output .= '

    '; + $output .= '

    '; $output .= "\n"; return $output; } -- cgit v1.2.3