aboutsummaryrefslogtreecommitdiff
path: root/views/default/usersettings/statistics_opt
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-04 17:08:31 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-04 17:08:31 +0000
commitd3efed2f847ced2ecfaa536856f6a0acc4cddbfc (patch)
tree101e69848d61e532d0514573394eba30409da737 /views/default/usersettings/statistics_opt
parent55f2853ec8b29dd8ca557c0dd82cd0de50946ec0 (diff)
downloadelgg-d3efed2f847ced2ecfaa536856f6a0acc4cddbfc.tar.gz
elgg-d3efed2f847ced2ecfaa536856f6a0acc4cddbfc.tar.bz2
User settings
git-svn-id: https://code.elgg.org/elgg/trunk@1689 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/usersettings/statistics_opt')
-rw-r--r--views/default/usersettings/statistics_opt/numentities.php24
-rw-r--r--views/default/usersettings/statistics_opt/online.php12
2 files changed, 20 insertions, 16 deletions
diff --git a/views/default/usersettings/statistics_opt/numentities.php b/views/default/usersettings/statistics_opt/numentities.php
index 4fe218048..c6d634f62 100644
--- a/views/default/usersettings/statistics_opt/numentities.php
+++ b/views/default/usersettings/statistics_opt/numentities.php
@@ -17,27 +17,31 @@
if ($entity_stats)
{
?>
-<div>
- <h2><?php echo elgg_echo('usersettings:statistics:label:numentities'); ?></h2>
+<div class="usersettings_statistics">
+ <h3><?php echo elgg_echo('usersettings:statistics:label:numentities'); ?></h3>
<table>
<?php
foreach ($entity_stats as $k => $entry)
{
- echo "<table>";
foreach ($entry as $a => $b)
{
- if ($a == "__base__")
- $a=$k;
- else
- $a = "$k $a";
+ if ($a == "__base__") {
+ $a = elgg_echo("item:{$k}");
+ if (empty($a))
+ $a = $k;
+ } else {
+ $a = elgg_echo("item:{$k}:{$a}");
+ if (empty($a)) {
+ $a = "$k $a";
+ }
+ }
echo <<< END
<tr>
- <td><b>$a :</b></td>
- <td>$b</td>
+ <td style="width: 250px"><b>{$a}:</b></td>
+ <td>{$b}</td>
</tr>
END;
}
- echo "</table>";
}
?>
</table>
diff --git a/views/default/usersettings/statistics_opt/online.php b/views/default/usersettings/statistics_opt/online.php
index 6a4cb9c1b..4f4a07015 100644
--- a/views/default/usersettings/statistics_opt/online.php
+++ b/views/default/usersettings/statistics_opt/online.php
@@ -18,13 +18,13 @@
$logged_in=$log[0]->time_created;
?>
-<div>
- <h2><?php echo elgg_echo('usersettings:statistics:yourdetails'); ?></h2>
+<div class="usersettings_statistics">
+ <h3><?php echo elgg_echo('usersettings:statistics:yourdetails'); ?></h3>
<table>
- <tr><td><?php echo elgg_echo('usersettings:statistics:label:name'); ?></td><td><?php echo $user->name; ?></td></tr>
- <tr><td><?php echo elgg_echo('usersettings:statistics:label:email'); ?></td><td><?php echo $user->email; ?></td></tr>
- <tr><td><?php echo elgg_echo('usersettings:statistics:label:membersince'); ?></td><td><?php echo date("r",$user->time_created); ?></td></tr>
- <tr><td><?php echo elgg_echo('usersettings:statistics:label:lastlogin'); ?></td><td><?php echo date("r",$logged_in); ?></td></tr>
+ <tr><td style="width: 250px"><?php echo elgg_echo('usersettings:statistics:label:name'); ?></td><td><?php echo $user->name; ?></td></tr>
+ <tr><td style="width: 250px"><?php echo elgg_echo('usersettings:statistics:label:email'); ?></td><td><?php echo $user->email; ?></td></tr>
+ <tr><td style="width: 250px"><?php echo elgg_echo('usersettings:statistics:label:membersince'); ?></td><td><?php echo date("r",$user->time_created); ?></td></tr>
+ <tr><td style="width: 250px"><?php echo elgg_echo('usersettings:statistics:label:lastlogin'); ?></td><td><?php echo date("r",$logged_in); ?></td></tr>
</table>
</div> \ No newline at end of file