diff options
Diffstat (limited to 'views/default/layout/shells/two_sidebar.php')
-rw-r--r-- | views/default/layout/shells/two_sidebar.php | 8 |
1 files changed, 7 insertions, 1 deletions
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']}"; +} ?> -<div class="elgg-layout-two-sidebar elgg-center elgg-width-classic clearfix"> +<div class="<?php echo $class; ?>"> <div class="elgg-sidebar elgg-aside"> <?php echo elgg_view('layout/elements/sidebar', $vars); |