aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/shells/one_column.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/layout/shells/one_column.php')
-rw-r--r--views/default/layout/shells/one_column.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/views/default/layout/shells/one_column.php b/views/default/layout/shells/one_column.php
index 84a304e14..ff0070e18 100644
--- a/views/default/layout/shells/one_column.php
+++ b/views/default/layout/shells/one_column.php
@@ -6,11 +6,20 @@
* @subpackage Core
*
* @uses $vars['content'] Content string
+ * @uses $vars['class'] Additional class to apply to layout
*/
+
+$class = 'elgg-layout-one-column elgg-center elgg-width-classic clearfix';
+if (isset($vars['class'])) {
+ $class = "$class {$vars['class']}";
+}
?>
-<div class="elgg-layout-one_column elgg-center elgg-width-classic clearfix">
+<div class="<?php echo $class; ?>">
<div class="elgg-body">
<?php echo $vars['content']; ?>
- <?php echo $vars['area1']; ?>
+ <?php
+ // @deprecated 1.8
+ echo $vars['area1'];
+ ?>
</div>
</div> \ No newline at end of file