blob: f35f8c3ff423a1dc8487e260202edb64f8693583 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
<style>
#g-user-profile div {
margin-top: 1em;
}
#g-user-profile fieldset {
border: 1px solid #CCCCCC;
padding: 0 1em 0.8em;
}
#g-user-profile fieldset label {
font-weight: bold;
}
#g-user-profile fieldset div {
padding-left: 1em;
}
#g-user-profile td {
border: none;
padding: 0;
}
</style>
<script>
$(document).ready(function() {
$("#g-profile-return").click(function(event) {
history.go(-1);
return false;
})
});
</script>
<div id="g-user-profile">
<h1>
<a href="#">
<img src="<?= $user->avatar_url(40, $theme->url("images/avatar.jpg", true)) ?>"
alt="<?= html::clean_attribute($user->display_name()) ?>"
class="g-avatar" width="40" height="40" />
</a>
<?= t("%name Profile", array("name" => $user->display_name())) ?>
</h1>
<? foreach ($info_parts as $info): ?>
<div>
<fieldset>
<label><?= html::purify($info->title) ?></label>
<div>
<?= $info->view ?>
</div>
</fieldset>
</div>
<? endforeach ?>
<div id="g-profile-buttons" class="ui-helper-clearfix g-right">
<? if (!$user->guest && $not_current && !empty($user->email)): ?>
<a class="g-button ui-icon-right ui-state-default ui-corner-all g-dialog-link"
href="<?= url::site("user_profile/contact/{$user->id}") ?>">
<?= t("Contact") ?>
</a>
<? endif ?>
<? if ($editable): ?>
<a class="g-button ui-icon-right ui-state-default ui-corner-all g-dialog-link" href="<?= url::site("form/edit/users/{$user->id}") ?>">
<?= t("Edit") ?>
</a>
<? endif ?>
<a id="g-profile-return" class="g-button ui-icon-right ui-state-default ui-corner-all" href="#">
<?= t("Return") ?>
</a>
</div>
</div>
|