Elgg  Version 2.3
online.php
Go to the documentation of this file.
1 <?php
10 
11 $label_name = elgg_echo('usersettings:statistics:label:name');
12 $label_email = elgg_echo('usersettings:statistics:label:email');
13 $label_member_since = elgg_echo('usersettings:statistics:label:membersince');
14 $label_last_login = elgg_echo('usersettings:statistics:label:lastlogin');
15 
16 $time_created = date("r", $user->time_created);
17 $last_login = date("r", $user->last_login);
18 
19 $title = elgg_echo('usersettings:statistics:yourdetails');
20 
21 $content = <<<__HTML
22 <table class="elgg-table-alt">
23  <tr class="odd">
24  <td class="column-one">$label_name</td>
25  <td>$user->name</td>
26  </tr>
27  <tr class="even">
28  <td class="column-one">$label_email</td>
29  <td>$user->email</td>
30  </tr>
31  <tr class="odd">
32  <td class="column-one">$label_member_since</td>
34  </tr>
35  <tr class="even">
36  <td class="column-one">$label_last_login</td>
37  <td>$last_login</td>
38  </tr>
39 </table>
40 __HTML;
41 
$last_login
Definition: online.php:17
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$label_name
Definition: online.php:11
$title
Definition: online.php:19
$label_email
Definition: online.php:12
$label_member_since
Definition: online.php:13
$label_last_login
Definition: online.php:14
$time_created
Definition: online.php:16
table
Definition: admin.css.php:59
elgg echo
Translates a string.
Definition: languages.js:48
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:56
$content
Definition: online.php:21
elgg table alt tr
Definition: admin.css.php:424
$user
Definition: online.php:9
td
Definition: admin.css.php:63
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
Definition: views.php:1250