aboutsummaryrefslogtreecommitdiff
path: root/views/default/welcome.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/welcome.php')
-rw-r--r--views/default/welcome.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/views/default/welcome.php b/views/default/welcome.php
index f6f7109f9..4739fc586 100644
--- a/views/default/welcome.php
+++ b/views/default/welcome.php
@@ -11,9 +11,12 @@
* @link http://elgg.org/
*/
- $user = $vars['name'];
+ $user = $vars['name'];
-?>
-
-<p>Welcome <?php echo $user; ?></p>
-<p><a href="<?php echo $vars['url']; ?>action/logout"><?php echo elgg_echo('logout'); ?></a></p> \ No newline at end of file
+ if (isloggedin()) {
+ echo elgg_view("welcome/logged_in");
+ } else {
+ echo elgg_view("welcome/logged_out");
+ }
+
+?> \ No newline at end of file