Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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 
22 echo elgg_view_page(null, $body);
elgg_list_river(array $options=array())
List river items.
Definition: river.php:512
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:679
$body
Definition: index.php:30
$content
Definition: index.php:24
if(!$content) $login_box
Definition: index.php:13
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
forward($location="", $reason= 'system')
Forward to $location.
Definition: elgglib.php:93
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
Definition: views.php:437