aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/pages/thread.php
blob: 49ca3afd19b350273cd5f3bcf283192394f7f246 (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
<?php
/**
 * View conversation thread
 */

$thread_id = get_input('thread_id');

$title = elgg_echo('thewire:thread');

elgg_push_breadcrumb(elgg_echo('thewire'), 'pg/thewire/all');
elgg_push_breadcrumb($title);

$content = elgg_list_entities_from_metadata(array(
	"metadata_name" => "wire_thread",
	"metadata_value" => $thread_id,
	"type" => "object",
	"subtype" => "thewire",
	"limit" => 20,
));

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

echo elgg_view_page($title, $body);