Elgg  Version 2.3
index.php
Go to the documentation of this file.
1 <?php
2 
3 if (elgg_is_logged_in()) {
4  forward('activity');
5 }
6 
7 $title = elgg_echo('content:latest');
9 if (!$content) {
10  $content = elgg_echo('river:none');
11 }
12 
13 $login_box = elgg_view('core/account/login_box');
14 
15 $params = array(
16  'title' => $title,
17  'content' => $content,
18  'sidebar' => $login_box
19 );
20 $body = elgg_view_layout('one_sidebar', $params);
21 
elgg_list_river(array $options=array())
List river items.
Definition: river.php:441
elgg_is_logged_in()
Returns whether or not the user is currently logged in.
Definition: sessions.php:51
$params
Definition: index.php:26
$title
Definition: index.php:11
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
Definition: views.php:689
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
Definition: elgglib.js:425
$body
Definition: index.php:30
$content
Definition: index.php:24
if(!$content) $login_box
Definition: index.php:13
elgg echo
Translates a string.
Definition: languages.js:48
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
Definition: views.php:447