aboutsummaryrefslogtreecommitdiff
path: root/pages/avatar/edit.php
blob: 5e44eb4b026a13446cb8e37cf7c9a10be984b484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * Upload and crop an avatar page
 */

// Only logged in users
gatekeeper();

elgg_set_context('profile_edit');

$title = elgg_echo('avatar:edit');

$content = elgg_view('core/avatar/upload', array('entity' => elgg_get_page_owner()));
$content .= elgg_view('core/avatar/crop', array('entity' => elgg_get_page_owner()));

$params = array(
	'content' => $content,
	'title' => $title,
);
$body = elgg_view_layout('one_sidebar', $params);

echo elgg_view_page($title, $body);