From 01afda7ed87e7def6a411d871daf49522e977b26 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 24 Feb 2011 00:12:17 +0000 Subject: organized the river views according to the subview pattern git-svn-id: http://code.elgg.org/elgg/trunk@8452 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/river/item/body.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 views/default/river/item/body.php (limited to 'views/default/river/item/body.php') diff --git a/views/default/river/item/body.php b/views/default/river/item/body.php new file mode 100644 index 000000000..7d36222ac --- /dev/null +++ b/views/default/river/item/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