<?php

// Set page title and set crumbs to index
set_page_title(logged_user()->getObjectName());


if($user->canUpdateProfile(logged_user())) {
	add_page_action(lang('update profile'), $user->getEditProfileUrl(), 'ico-edit',null,null,true);
	add_page_action(lang('update avatar'), $user->getUpdatePictureUrl(), 'ico-picture');
	add_page_action(lang('change password'),$user->getEditPasswordUrl(), 'ico-password',null,null,true);
} // if

if($user->canUpdatePermissions(logged_user())) {
	add_page_action(lang('permissions'), $user->getUpdatePermissionsUrl(), 'ico-permissions',null,null,true);
} // if

?>
<?php
$this->assign('user', logged_user());
$this->includeTemplate(get_template_path('user_card', 'user'));
?>