2010-01-23 21:38:01 -08:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2010-02-13 12:35:39 -08:00
|
|
|
<script type="text/javascript">
|
2010-01-25 08:10:28 -08:00
|
|
|
$(document).ready(function() {
|
|
|
|
|
$("#g-profile-return").click(function(event) {
|
|
|
|
|
history.go(-1);
|
2010-01-28 11:46:28 -08:00
|
|
|
return false;
|
2010-01-25 08:10:28 -08:00
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2010-01-24 15:27:33 -08:00
|
|
|
<div id="g-user-profile">
|
2010-02-18 23:00:58 -07:00
|
|
|
<div class="ui-helper-clearfix">
|
|
|
|
|
<a id="g-profile-return" class="g-button g-right ui-state-default ui-corner-all" href="#">
|
|
|
|
|
<?= t("Return") ?>
|
2010-01-23 21:38:01 -08:00
|
|
|
</a>
|
2010-02-19 11:40:49 -08:00
|
|
|
<? if ($editable): ?>
|
2010-02-18 23:00:58 -07:00
|
|
|
<a class="g-button g-right ui-state-default ui-corner-all g-dialog-link" href="<?= url::site("users/form_change_email/{$user->id}") ?>">
|
|
|
|
|
<?= t("Change email") ?>
|
2010-01-23 21:38:01 -08:00
|
|
|
</a>
|
2010-02-18 23:00:58 -07:00
|
|
|
<a class="g-button g-right ui-state-default ui-corner-all g-dialog-link" href="<?= url::site("users/form_change_password/{$user->id}") ?>">
|
2010-02-02 21:36:01 -08:00
|
|
|
<?= t("Change password") ?>
|
|
|
|
|
</a>
|
2010-02-18 23:00:58 -07:00
|
|
|
<a class="g-button g-right ui-state-default ui-corner-all g-dialog-link" href="<?= url::site("form/edit/users/{$user->id}") ?>">
|
|
|
|
|
<?= t("Edit") ?>
|
2010-02-06 17:43:33 -08:00
|
|
|
</a>
|
2010-01-23 21:38:01 -08:00
|
|
|
<? endif ?>
|
2010-02-19 11:40:49 -08:00
|
|
|
<? if ($contactable): ?>
|
2010-02-18 23:00:58 -07:00
|
|
|
<a class="g-button g-right ui-state-default ui-corner-all g-dialog-link"
|
|
|
|
|
href="<?= url::site("user_profile/contact/{$user->id}") ?>">
|
|
|
|
|
<?= t("Contact") ?>
|
2010-01-23 21:38:01 -08:00
|
|
|
</a>
|
2010-02-18 23:00:58 -07:00
|
|
|
<? endif ?>
|
2010-01-23 21:38:01 -08:00
|
|
|
</div>
|
2010-02-18 23:00:58 -07:00
|
|
|
<h1>
|
|
|
|
|
<img src="<?= $user->avatar_url(40, $theme->url("images/avatar.jpg", true)) ?>"
|
|
|
|
|
alt="<?= html::clean_attribute($user->display_name()) ?>"
|
|
|
|
|
class="g-avatar g-left" width="40" height="40" />
|
|
|
|
|
<?= t("User profile: %name", array("name" => $user->display_name())) ?>
|
|
|
|
|
</h1>
|
|
|
|
|
<? foreach ($info_parts as $info): ?>
|
|
|
|
|
<div class="g-block">
|
|
|
|
|
<h2><?= html::purify($info->title) ?></h2>
|
|
|
|
|
<div class="g-block-content">
|
|
|
|
|
<?= $info->view ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<? endforeach ?>
|
2010-02-02 21:36:01 -08:00
|
|
|
</div>
|