diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-11 23:11:59 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-11 23:11:59 +0000 |
commit | 0f2fb0a3e338d926502c73772b15ba7d4f034034 (patch) | |
tree | b405b977ce366f7ff17bd2343da309303b3c5180 /views/default/layout/shells/content.php | |
parent | ea57b422a843d6c6d07e29bc944d953c72d1f86f (diff) | |
download | elgg-0f2fb0a3e338d926502c73772b15ba7d4f034034.tar.gz elgg-0f2fb0a3e338d926502c73772b15ba7d4f034034.tar.bz2 |
supporting an additional class on primary layouts
git-svn-id: http://code.elgg.org/elgg/trunk@7601 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/shells/content.php')
-rw-r--r-- | views/default/layout/shells/content.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/layout/shells/content.php b/views/default/layout/shells/content.php index b46f09ac1..787445fd1 100644 --- a/views/default/layout/shells/content.php +++ b/views/default/layout/shells/content.php @@ -12,6 +12,7 @@ * @uses $vars['context'] Page context (override) * @uses $vars['buttons'] Content header buttons (override) * @uses $vars['filter_context'] Filter context: everyone, friends, mine + * @uses $vars['class'] Additional class to apply to layout */ // give plugins an opportunity to add to content sidebars @@ -50,4 +51,7 @@ $params = array( 'body' => $body, 'sidebar' => $sidebar, ); +if (isset($vars['class'])) { + $params['class'] = $vars['class']; +} echo elgg_view_layout('one_sidebar', $params); |