From ab10e3ac5a0b5bbc6cd08c7647a0123364db72f3 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 3 Dec 2010 02:55:03 +0000 Subject: 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 --- views/default/layouts/module.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'views/default/layouts') 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 = "
$header
"; + $header = "
$header
"; } if ($footer) { @@ -30,9 +37,7 @@ echo <<
$header -
- $body -
+
$body
$footer
-- cgit v1.2.3