#362104: layout breaks on Zen-themed maintenance page
authorJohnAlbin
Fri, 13 Feb 2009 18:17:08 +0000 (18:17 +0000)
committerJohnAlbin
Fri, 13 Feb 2009 18:17:08 +0000 (18:17 +0000)
CHANGELOG.txt
zen/maintenance-page.tpl.php [new file with mode: 0644]
zen_classic/maintenance-page.tpl.php [new file with mode: 0644]

index eb6a468..8731407 100644 (file)
@@ -1,4 +1,5 @@
 Zen 6.x-1.x-dev
+  #362104: layout breaks on Zen-themed maintenance page
   * Changed "or" back to "||" in template files since themers do need to learn a little PHP
   #346867 by debonator: navbar-inner is missing the "clear-block" class
   #325610 by Garrett Albright: Site name and logo don't link to frontpage on multilingual site
diff --git a/zen/maintenance-page.tpl.php b/zen/maintenance-page.tpl.php
new file mode 100644 (file)
index 0000000..8621d25
--- /dev/null
@@ -0,0 +1,142 @@
+<?php
+// $Id$
+
+/**
+ * @file maintenance-page.tpl.php
+ *
+ * Theme implementation to display a single Drupal page while off-line.
+ *
+ * All the available variables are mirrored in page.tpl.php. Some may be left
+ * blank but they are provided for consistency.
+ *
+ *
+ * @see template_preprocess()
+ * @see template_preprocess_maintenance_page()
+ */
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>">
+
+<head>
+  <title><?php print $head_title; ?></title>
+  <?php print $head; ?>
+  <?php print $styles; ?>
+  <?php print $scripts; ?>
+</head>
+<body class="<?php print $body_classes; ?>">
+
+  <div id="page"><div id="page-inner">
+
+    <a name="top" id="navigation-top"></a>
+    <?php if ($navbar): ?>
+      <div id="skip-to-nav"><a href="#navigation"><?php print t('Skip to Navigation'); ?></a></div>
+    <?php endif; ?>
+
+    <div id="header"><div id="header-inner" class="clear-block">
+
+      <?php if ($logo || $site_name || $site_slogan): ?>
+        <div id="logo-title">
+
+          <?php if ($logo): ?>
+            <div id="logo"><a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo-image" /></a></div>
+          <?php endif; ?>
+
+          <?php if ($site_name): ?>
+            <div id="site-name"><strong>
+              <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home">
+              <?php print $site_name; ?>
+              </a>
+            </strong></div>
+          <?php endif; ?>
+
+          <?php if ($site_slogan): ?>
+            <div id="site-slogan"><?php print $site_slogan; ?></div>
+          <?php endif; ?>
+
+        </div> <!-- /#logo-title -->
+      <?php endif; ?>
+
+      <?php if ($header): ?>
+        <div id="header-blocks" class="region region-header">
+          <?php print $header; ?>
+        </div> <!-- /#header-blocks -->
+      <?php endif; ?>
+
+    </div></div> <!-- /#header-inner, /#header -->
+
+    <div id="main"><div id="main-inner" class="clear-block<?php if ($navbar) { print ' with-navbar'; } ?>">
+
+      <div id="content"><div id="content-inner">
+
+        <?php if ($content_top): ?>
+          <div id="content-top" class="region region-content_top">
+            <?php print $content_top; ?>
+          </div> <!-- /#content-top -->
+        <?php endif; ?>
+
+        <?php if ($title || $messages): ?>
+          <div id="content-header">
+            <?php if ($title): ?>
+              <h1 class="title"><?php print $title; ?></h1>
+            <?php endif; ?>
+            <?php if ($messages): print $messages; endif; ?>
+          </div> <!-- /#content-header -->
+        <?php endif; ?>
+
+        <div id="content-area">
+          <?php print $content; ?>
+        </div>
+
+        <?php if ($content_bottom): ?>
+          <div id="content-bottom" class="region region-content_bottom">
+            <?php print $content_bottom; ?>
+          </div> <!-- /#content-bottom -->
+        <?php endif; ?>
+
+      </div></div> <!-- /#content-inner, /#content -->
+
+      <?php if ($navbar): ?>
+        <div id="navbar"><div id="navbar-inner" class="clear-block region region-navbar">
+
+          <a name="navigation" id="navigation"></a>
+          <?php print $navbar; ?>
+
+        </div></div> <!-- /#navbar-inner, /#navbar -->
+      <?php endif; ?>
+
+      <?php if ($left): ?>
+        <div id="sidebar-left"><div id="sidebar-left-inner" class="region region-left">
+          <?php print $left; ?>
+        </div></div> <!-- /#sidebar-left-inner, /#sidebar-left -->
+      <?php endif; ?>
+
+      <?php if ($right): ?>
+        <div id="sidebar-right"><div id="sidebar-right-inner" class="region region-right">
+          <?php print $right; ?>
+        </div></div> <!-- /#sidebar-right-inner, /#sidebar-right -->
+      <?php endif; ?>
+
+    </div></div> <!-- /#main-inner, /#main -->
+
+    <?php if ($footer || $footer_message): ?>
+      <div id="footer"><div id="footer-inner" class="region region-footer">
+
+        <?php if ($footer_message): ?>
+          <div id="footer-message"><?php print $footer_message; ?></div>
+        <?php endif; ?>
+
+        <?php print $footer; ?>
+
+      </div></div> <!-- /#footer-inner, /#footer -->
+    <?php endif; ?>
+
+  </div></div> <!-- /#page-inner, /#page -->
+
+  <?php if ($closure_region): ?>
+    <div id="closure-blocks" class="region region-closure"><?php print $closure_region; ?></div>
+  <?php endif; ?>
+
+  <?php print $closure; ?>
+
+</body>
+</html>
diff --git a/zen_classic/maintenance-page.tpl.php b/zen_classic/maintenance-page.tpl.php
new file mode 100644 (file)
index 0000000..7e1cd06
--- /dev/null
@@ -0,0 +1,121 @@
+<?php
+// $Id$
+
+/**
+ * @file maintenance-page.tpl.php
+ *
+ * Theme implementation to display a single Drupal page while off-line.
+ *
+ * All the available variables are mirrored in page.tpl.php. Some may be left
+ * blank but they are provided for consistency.
+ *
+ *
+ * @see template_preprocess()
+ * @see template_preprocess_maintenance_page()
+ */
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>">
+
+<head>
+  <title><?php print $head_title; ?></title>
+  <?php print $head; ?>
+  <?php print $styles; ?>
+  <?php print $scripts; ?>
+</head>
+<body class="<?php print $body_classes; ?>">
+  <div id="page">
+    <div id="header">
+
+      <div id="skip-nav"><a href="#content"><?php print t('Skip to Main Content'); ?></a></div>
+
+      <div id="logo-title">
+
+        <?php if (!empty($logo)): ?>
+          <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home">
+            <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo" />
+          </a>
+        <?php endif; ?>
+
+        <div id="name-and-slogan">
+
+        <?php if (!empty($site_name)): ?>
+          <div id="site-name"><strong>
+            <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home">
+              <?php print $site_name; ?>
+            </a>
+          </strong></div>
+        <?php endif; ?>
+
+        <?php if (!empty($site_slogan)): ?>
+          <div id="site-slogan">
+            <?php print $site_slogan; ?>
+          </div>
+        <?php endif; ?>
+
+        </div> <!-- /name-and-slogan -->
+
+      </div> <!-- /logo-title -->
+
+      <?php if (!empty($header)): ?>
+        <div id="header-region">
+          <?php print $header; ?>
+        </div> <!-- /header-region -->
+      <?php endif; ?>
+
+    </div> <!-- /header -->
+
+    <div id="container" class="clear-block">
+
+      <?php if (!empty($left)): ?>
+        <div id="sidebar-left" class="column sidebar">
+          <?php print $left; ?>
+        </div> <!-- /sidebar-left -->
+      <?php endif; ?>
+
+      <div id="main" class="column"><div id="squeeze" class="clear-block">
+        <?php if (!empty($content_top)): ?>
+          <div id="content-top"><?php print $content_top; ?></div>
+        <?php endif; ?>
+        <div id="content">
+          <?php if (!empty($title)): ?>
+            <h1 class="title"><?php print $title; ?></h1>
+          <?php endif; ?>
+          <?php print $messages; ?>
+          <?php print $content; ?>
+        </div> <!-- /content -->
+        <?php if (!empty($content_bottom)): ?>
+          <div id="content-bottom"><?php print $content_bottom; ?></div>
+        <?php endif; ?>
+      </div></div> <!-- /squeeze /main -->
+
+      <?php if (!empty($right)): ?>
+        <div id="sidebar-right" class="column sidebar">
+          <?php print $right; ?>
+        </div> <!-- /sidebar-right -->
+      <?php endif; ?>
+
+    </div> <!-- /container -->
+
+    <?php if ($footer || $footer_message): ?>
+      <div id="footer-wrapper"><div id="footer">
+
+        <?php if ($footer_message): ?>
+          <div id="footer-message"><?php print $footer_message; ?></div>
+        <?php endif; ?>
+
+        <?php print $footer; ?>
+
+      </div></div> <!-- /#footer, /#footer-wrapper -->
+    <?php endif; ?>
+
+  </div> <!-- /page -->
+
+  <?php if ($closure_region): ?>
+    <div id="closure-blocks"><?php print $closure_region; ?></div>
+  <?php endif; ?>
+
+  <?php print $closure; ?>
+
+</body>
+</html>