aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/pages/thewire/previous.php
blob: 45c1e10959b35aaf62137674f0eef556257f0b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
 * Serve up html for a post's parent
 */

$guid = (int) get_input('guid');
$title = elgg_echo('thewire:previous');

$parent = thewire_get_parent($guid);
if ($parent) {
	$body = elgg_view_entity($parent);
}

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

echo elgg_view_page($title, $body);