aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-16 02:21:28 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-16 02:21:28 +0000
commit4416d0a3bf5e0fd101d64ecdfebd100a53c10687 (patch)
treebcd6cb8ab54f01db99db7ad328ffbbcf19b7b47e /views/default
parent2c443c0f84c10b19324f6be584e46efe71d0bf84 (diff)
downloadelgg-4416d0a3bf5e0fd101d64ecdfebd100a53c10687.tar.gz
elgg-4416d0a3bf5e0fd101d64ecdfebd100a53c10687.tar.bz2
added title parameter to one_sidebar layout
git-svn-id: http://code.elgg.org/elgg/trunk@7642 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/layout/shells/one_sidebar.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/views/default/layout/shells/one_sidebar.php b/views/default/layout/shells/one_sidebar.php
index c61088641..ed7700f5a 100644
--- a/views/default/layout/shells/one_sidebar.php
+++ b/views/default/layout/shells/one_sidebar.php
@@ -1,12 +1,13 @@
<?php
/**
- * Elgg main column with one sidebar layout
+ * Layout for main column with one sidebar
*
* @package Elgg
* @subpackage Core
*
- * @uses $vars['content'] Content HTML for the main column
+ * @uses $vars['content'] Content HTML for the main column
* @uses $vars['sidebar'] Optional content that is displayed in the sidebar
+ * @uses $vars['title'] Optional title for main content area
* @uses $vars['class'] Additional class to apply to layout
*/
@@ -26,6 +27,9 @@ if (isset($vars['class'])) {
<div class="elgg-main elgg-body">
<?php
+ if (isset($vars['title'])) {
+ echo elgg_view_title($vars['title']);
+ }
// @todo deprecated so remove in Elgg 2.0
if (isset($vars['area1'])) {
echo $vars['area1'];