blob: 97428a1a76753410f666bb10cbcf0c26f2d20486 (
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
25
26
27
28
29
|
<?php
/**
* Elgg sample welcome page (logged in)
*
* @package Elgg
* @subpackage Core
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Curverider Ltd
* @copyright Curverider Ltd 2008
* @link http://elgg.org/
*/
?>
<?php
//add various views to area1
$area1 = "<h2>" . sprintf(elgg_echo("welcome"),$vars['user']->name) . "</h2>";
$area1 .= "<p>" . elgg_echo("welcome_message") . "</p><br />";
$url = $vars['url'] . "action/logout";
$area1 .= "<a href=" . $url . ">" . elgg_echo('logout') . "</a>";
//send area one to the appropriate canvas layout
$body = elgg_view_layout("one_column", $area1);
//draw to screen
echo $body;
?>
|