aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/pages/thewire/previous.php
blob: a3f1cb01cddcb038fb1f069967bb820f71ce1d84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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,
));

echo elgg_view_page($title, $body);