aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/shells/one_sidebar.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/layout/shells/one_sidebar.php')
-rw-r--r--views/default/layout/shells/one_sidebar.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/views/default/layout/shells/one_sidebar.php b/views/default/layout/shells/one_sidebar.php
index 2e78b0de6..4c98c31d1 100644
--- a/views/default/layout/shells/one_sidebar.php
+++ b/views/default/layout/shells/one_sidebar.php
@@ -7,10 +7,17 @@
*
* @uses $vars['body'] Content HTML for the main column
* @uses $vars['sidebar'] Optional content that is displayed in the sidebar
+ * @uses $vars['class'] Additional class to apply to layout
*/
+
+$class = 'elgg-layout-sidebar elgg-center elgg-width-classic clearfix';
+if (isset($vars['class'])) {
+ $class = "$class {$vars['class']}";
+}
+
?>
-<div class="elgg-layout-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);