aboutsummaryrefslogtreecommitdiff
path: root/views/default/welcome/logged_in.php
blob: d1e568669d9379185a5d8125f0542d623fd6fce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
 * Elgg sample welcome page (logged in)
 *
 * @package Elgg
 * @subpackage Core
 * @author Curverider Ltd
 * @link http://elgg.org/
 */

//add various views to area1
$area1 = "<h2>" . sprintf(elgg_echo("welcome:user"),$vars['user']->name) . "</h2>";
$area1 .= "<p>" . elgg_echo("welcome_message") . "</p><br />";
$area1 .= elgg_view('output/url', array(
	'href' => "{$vars['url']}action/logout", 
	'text' => elgg_echo('logout'),
	'is_action' => TRUE
));

//send area one to the appropriate canvas layout
$body = elgg_view_layout("one_column", $area1);

//draw to screen
echo $body;