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/one_column.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/one_column.php')
-rw-r--r-- | views/default/layout/shells/one_column.php | 13 |
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 |