aboutsummaryrefslogtreecommitdiff
path: root/views/default/layouts
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-03 02:55:03 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-03 02:55:03 +0000
commitab10e3ac5a0b5bbc6cd08c7647a0123364db72f3 (patch)
treed115661a0501d359d9e91d9fa110c81723ee4f9b /views/default/layouts
parent6b7325c3138ea5a3f20f2d95dce05242b0cdb653 (diff)
downloadelgg-ab10e3ac5a0b5bbc6cd08c7647a0123364db72f3.tar.gz
elgg-ab10e3ac5a0b5bbc6cd08c7647a0123364db72f3.tar.bz2
preview of what the main content area looks like with a module approach
git-svn-id: http://code.elgg.org/elgg/trunk@7509 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layouts')
-rw-r--r--views/default/layouts/module.php21
1 files changed, 13 insertions, 8 deletions
diff --git a/views/default/layouts/module.php b/views/default/layouts/module.php
index 8c74aae57..db940aedc 100644
--- a/views/default/layouts/module.php
+++ b/views/default/layouts/module.php
@@ -2,10 +2,11 @@
/**
* Elgg module layout
*
- * @uses $vars['header'] HTML content of the header
- * @uses $vars['body'] HTML content of the body
- * @uses $vars['footer'] HTML content of the footer
- * @uses $vars['class'] Optional additional class for module
+ * @uses $vars['header'] HTML content of the header
+ * @uses $vars['body'] HTML content of the body
+ * @uses $vars['footer'] HTML content of the footer
+ * @uses $vars['class'] Optional additional class for module
+ * @uses $vars['header_class'] Optional additional class for header
*/
$header = elgg_get_array_value('header', $vars, '');
@@ -18,8 +19,14 @@ if ($additional_class) {
$class = "$class $additional_class";
}
+$header_class = 'elgg-header';
+$additional_class = elgg_get_array_value('header_class', $vars, '');
+if ($additional_class) {
+ $header_class = "$header_class $additional_class";
+}
+
if ($header) {
- $header = "<div class=\"elgg-header\">$header</div>";
+ $header = "<div class=\"$header_class\">$header</div>";
}
if ($footer) {
@@ -30,9 +37,7 @@ echo <<<HTML
<div class="$class">
<div class="elgg-inner">
$header
- <div class="elgg-body">
- $body
- </div>
+ <div class="elgg-body">$body</div>
$footer
</div>
</div>