summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-11-30 17:55:13 +0000
committerDries Buytaert <dries@buytaert.net>2010-11-30 17:55:13 +0000
commitab0c19f2bc7a8e765a42b6acac65a30433ff04fb (patch)
treec78d8d89386442b9bf1aa79ceb28705045f0d33a /themes
parentb8dd9fe5662762162324b517dcf6f46a287b3cb8 (diff)
downloadbrdo-ab0c19f2bc7a8e765a42b6acac65a30433ff04fb.tar.gz
brdo-ab0c19f2bc7a8e765a42b6acac65a30433ff04fb.tar.bz2
- Patch #903046 by tim.plunkett, Jeff Burnz: cleanup bartiks maintenance-page.tpl.php.
Diffstat (limited to 'themes')
-rw-r--r--themes/bartik/templates/maintenance-page.tpl.php83
1 files changed, 29 insertions, 54 deletions
diff --git a/themes/bartik/templates/maintenance-page.tpl.php b/themes/bartik/templates/maintenance-page.tpl.php
index 7dacde462..795cc02f1 100644
--- a/themes/bartik/templates/maintenance-page.tpl.php
+++ b/themes/bartik/templates/maintenance-page.tpl.php
@@ -3,10 +3,9 @@
/**
* @file
- * Bartik's theme implementation to display a single Drupal page while offline.
+ * Implementation to display a single Drupal page while offline.
*
- * All the available variables are mirrored in page.tpl.php. Some may be left
- * blank but they are provided for consistency.
+ * All the available variables are mirrored in page.tpl.php.
*
* @see template_preprocess()
* @see template_preprocess_maintenance_page()
@@ -16,7 +15,6 @@
<!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>
<?php print $head; ?>
<title><?php print $head_title; ?></title>
@@ -24,69 +22,46 @@
<?php print $scripts; ?>
</head>
<body class="<?php print $classes; ?>" <?php print $attributes;?>>
+
<div id="skip-link">
<a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a>
</div>
- <?php print $page_top; ?>
-
-<div id="page-wrapper"><div id="page">
- <div id="header"><div class="section clearfix">
+ <div id="page-wrapper"><div id="page">
- <?php if ($site_name || $site_slogan): ?>
- <div id="name-and-slogan"<?php if ($hide_site_name && $hide_site_slogan) { print ' class="element-invisible"'; } ?>>
-
- <?php if ($site_name): ?>
- <?php if ($title): ?>
+ <div id="header"><div class="section clearfix">
+ <?php if ($site_name || $site_slogan): ?>
+ <div id="name-and-slogan"<?php if ($hide_site_name && $hide_site_slogan) { print ' class="element-invisible"'; } ?>>
+ <?php if ($site_name): ?>
<div id="site-name"<?php if ($hide_site_name) { print ' class="element-invisible"'; } ?>>
<strong>
<a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
</strong>
</div>
- <?php else: /* Use h1 when the content title is empty */ ?>
- <h1 id="site-name"<?php if ($hide_site_name) { print ' class="element-invisible"'; } ?>>
- <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
- </h1>
<?php endif; ?>
- <?php endif; ?>
-
- <?php if ($site_slogan): ?>
- <div id="site-slogan"<?php if ($hide_site_slogan) { print ' class="element-invisible"'; } ?>>
- <?php print $site_slogan; ?>
- </div>
- <?php endif; ?>
-
- </div> <!-- /#name-and-slogan -->
- <?php endif; ?>
-
- <?php print $header; ?>
-
- </div></div> <!-- /.section, /#header -->
-
- <div id="main-wrapper"><div id="main" class="clearfix">
-
- <div id="content" class="column"><div class="section">
- <a id="main-content"></a>
- <?php if ($title): ?>
- <h1 class="title" id="page-title">
- <?php print $title; ?>
- </h1>
- <?php endif; ?>
- <?php print $content; ?>
-
- <?php if ($messages): ?>
- <div id="messages"><div class="section clearfix">
- <?php print $messages; ?>
- </div></div> <!-- /.section, /#messages -->
+ <?php if ($site_slogan): ?>
+ <div id="site-slogan"<?php if ($hide_site_slogan) { print ' class="element-invisible"'; } ?>>
+ <?php print $site_slogan; ?>
+ </div>
+ <?php endif; ?>
+ </div> <!-- /#name-and-slogan -->
<?php endif; ?>
+ </div></div> <!-- /.section, /#header -->
+
+ <div id="main-wrapper"><div id="main" class="clearfix">
+ <div id="content" class="column"><div class="section">
+ <a id="main-content"></a>
+ <?php if ($title): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?>
+ <?php print $content; ?>
+ <?php if ($messages): ?>
+ <div id="messages"><div class="section clearfix">
+ <?php print $messages; ?>
+ </div></div> <!-- /.section, /#messages -->
+ <?php endif; ?>
+ </div></div> <!-- /.section, /#content -->
+ </div></div> <!-- /#main, /#main-wrapper -->
- </div></div> <!-- /.section, /#content -->
-
-
- </div></div> <!-- /#main, /#main-wrapper -->
-
-</div></div> <!-- /#page, /#page-wrapper -->
+ </div></div> <!-- /#page, /#page-wrapper -->
- <?php print $page_bottom; ?>
</body>
</html>