diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-04 05:21:15 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-04 05:21:15 +0000 |
commit | b9f4e59c5a4655595e3254560febbdb01d599fd1 (patch) | |
tree | dae5b4111ef4f88e46fbe0aee226dca89e7f1ea0 | |
parent | 1706f7354e2f03c7c8b061b37dca2c19fcda0b3e (diff) | |
download | brdo-b9f4e59c5a4655595e3254560febbdb01d599fd1.tar.gz brdo-b9f4e59c5a4655595e3254560febbdb01d599fd1.tar.bz2 |
- Patch #468534 by paul.lovvik: add a region at the top of the page above the header region.
-rw-r--r-- | modules/system/page.tpl.php | 5 | ||||
-rw-r--r-- | modules/system/system.module | 1 | ||||
-rw-r--r-- | themes/garland/page.tpl.php | 6 |
3 files changed, 12 insertions, 0 deletions
diff --git a/modules/system/page.tpl.php b/modules/system/page.tpl.php index 18b15ee73..a85807837 100644 --- a/modules/system/page.tpl.php +++ b/modules/system/page.tpl.php @@ -104,6 +104,11 @@ </head> <body class="<?php print $classes; ?>"> + <?php if ($page_top): ?> + <div id="page-top-region" class="clearfix"> + <?php print $page_top; ?> + </div> + <?php endif; ?> <div id="page-wrapper"><div id="page"> <div id="header"><div class="section clearfix"> diff --git a/modules/system/system.module b/modules/system/system.module index e8472de88..9339c187a 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -1464,6 +1464,7 @@ function _system_get_theme_data() { 'footer' => 'Footer', 'highlight' => 'Highlighted content', 'help' => 'Help', + 'page_top' => 'Page top', ), 'description' => '', 'features' => array( diff --git a/themes/garland/page.tpl.php b/themes/garland/page.tpl.php index 782532ad3..94f4a8ded 100644 --- a/themes/garland/page.tpl.php +++ b/themes/garland/page.tpl.php @@ -15,6 +15,12 @@ </head> <body class="<?php print $classes ?>"> + <?php if ($page_top): ?> + <div id="page-top-region" class="clearfix"> + <?php print $page_top; ?> + </div> + <?php endif; ?> + <div id="header-region" class="clearfix"><?php print $header ?></div> <div id="wrapper"> |