From 0f2fb0a3e338d926502c73772b15ba7d4f034034 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 11 Dec 2010 23:11:59 +0000 Subject: supporting an additional class on primary layouts git-svn-id: http://code.elgg.org/elgg/trunk@7601 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/layout/shells/two_sidebar.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'views/default/layout/shells/two_sidebar.php') diff --git a/views/default/layout/shells/two_sidebar.php b/views/default/layout/shells/two_sidebar.php index cc4eee78b..23a5a9dd4 100644 --- a/views/default/layout/shells/two_sidebar.php +++ b/views/default/layout/shells/two_sidebar.php @@ -8,10 +8,16 @@ * @uses $vars['content'] The content string for the main column * @uses $vars['sidebar'] Optional content that is displayed in the sidebar * @uses $vars['sidebar-alt'] Optional content that is displayed in the alternate sidebar + * @uses $vars['class'] Additional class to apply to layout */ + +$class = 'elgg-layout-two-sidebar elgg-center elgg-width-classic clearfix'; +if (isset($vars['class'])) { + $class = "$class {$vars['class']}"; +} ?> -
+