From 3e49786bc6e271867fc57d7725905452ba280842 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 12 Mar 2011 23:52:23 +0000 Subject: somehow we forgot to use 'elements' in river views git-svn-id: http://code.elgg.org/elgg/trunk@8679 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/river/elements/body.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 views/default/river/elements/body.php (limited to 'views/default/river/elements/body.php') diff --git a/views/default/river/elements/body.php b/views/default/river/elements/body.php new file mode 100644 index 000000000..7d36222ac --- /dev/null +++ b/views/default/river/elements/body.php @@ -0,0 +1,31 @@ +getSubjectEntity(); + +// river item header +$params = array( + 'href' => $subject->getURL(), + 'text' => $subject->name, +); +$subject_link = elgg_view('output/url', $params); +$timestamp = elgg_get_friendly_time($item->getPostedTime()); +$header = "$subject_link $timestamp"; + +// body +$body = elgg_view($item->getView(), array('item' => $item)); + +// footer +$footer = elgg_view('river/item/footer', $vars); + +echo elgg_view('page/components/module', array( + 'header' => $header, + 'body' => $body, + 'footer' => $footer, + 'show_inner' => false, +)); \ No newline at end of file -- cgit v1.2.3