aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/pages/user.php
blob: 5645b23ba16ccff5f5221ef75ff1949b4258d34b (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
<?php
/**
 * User's wire posts
 * 
 */

$owner = elgg_get_page_owner_entity();

$title = elgg_echo('thewire:user', array($owner->name));

elgg_push_breadcrumb(elgg_echo('thewire'), "thewire/all");
elgg_push_breadcrumb($owner->name);

if (get_loggedin_userid() == $owner->guid) {
	$content = elgg_view_form('thewire/add');
	$content .= elgg_view('input/urlshortener');
}

$content .= elgg_list_entities(array(
	'type' => 'object',
	'subtype' => 'thewire',
	'owner_guid' => $owner->guid,
	'limit' => 15,
));

$body = elgg_view_layout('content', array(
	'filter_context' => 'mine',
	'content' => $content,
	'title' => $title,
	'buttons' => false,
));

echo elgg_view_page($title, $body);