summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnAlbin2009-02-13 18:37:22 (GMT)
committer JohnAlbin2009-02-13 18:37:22 (GMT)
commit1ea1559864e2d04eb38727ab85c7e47db112b413 (patch)
treec138b463afe10682dc9faaac4ac7fbb960210650
parent8e4838b6c7d24661c2dd6ddbf737adb31891114d (diff)
#362104: layout breaks on Zen-themed maintenance page
-rw-r--r--CHANGELOG.txt1
-rw-r--r--zen/maintenance-page.tpl.php142
-rw-r--r--zen_classic/maintenance-page.tpl.php121
3 files changed, 264 insertions, 0 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index d49e568..8ab5caa 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -4,6 +4,7 @@ Zen 6.x-2.x-dev
#328221 by kmonty and JohnAlbin: Split up ie.css to remove CSS hacks
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
index 0000000..8621d25
--- /dev/null
+++ b/zen/maintenance-page.tpl.php
@@ -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
index 0000000..7e1cd06
--- /dev/null
+++ b/zen_classic/maintenance-page.tpl.php
@@ -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>