PERMALINK.php: Revision

Last updated by mariano

<?php

/**

 * permalink_page

 * 

 */

 

gatekeeper();

 

set_page_owner(get_loggedin_userid());

 

// what are we replying to

$original_post_guid = (int) get_input('annotation_id');

 

// choose the required canvas layout and items to display

$sidebar = elgg_view("river:post", array('add' => 'yes'));

$sidebar_ext = elgg_view("thewire/twitter");

 

$content = elgg_view_title(elgg_echo('thewire:reply'));

$content .= elgg_view("river/item/list", array('guid' => $original_post_guid));

 

$body = elgg_view_layout("sidebar_boxes", $sidebar, $content, $sidebar_ext);

 

page_draw(elgg_echo('river:permalink'), $body);

?>

 

I need help to display a single item of the river according to its id