From 062bc6a5d2b2f9e43a2dab7a3e55905f35f77c3e Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 19 Feb 2009 10:30:09 +0000 Subject: new river widget git-svn-id: https://code.elgg.org/elgg/trunk@2802 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/widgets/river_widget/edit.php | 28 +++++++++++++++ .../views/default/widgets/river_widget/view.php | 40 ++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 mod/riverdashboard/views/default/widgets/river_widget/edit.php create mode 100644 mod/riverdashboard/views/default/widgets/river_widget/view.php (limited to 'mod/riverdashboard/views/default/widgets') diff --git a/mod/riverdashboard/views/default/widgets/river_widget/edit.php b/mod/riverdashboard/views/default/widgets/river_widget/edit.php new file mode 100644 index 000000000..8a18a1036 --- /dev/null +++ b/mod/riverdashboard/views/default/widgets/river_widget/edit.php @@ -0,0 +1,28 @@ + +

+ + + + + + + +

\ No newline at end of file diff --git a/mod/riverdashboard/views/default/widgets/river_widget/view.php b/mod/riverdashboard/views/default/widgets/river_widget/view.php new file mode 100644 index 000000000..375ba16d2 --- /dev/null +++ b/mod/riverdashboard/views/default/widgets/river_widget/view.php @@ -0,0 +1,40 @@ +content_type; + if(!$type) + $type = "mine"; + + //based on type grab the correct content type + if($type == "mine") + $content_type = ''; + else + $content_type = 'friend'; + + //get the number of items to display + $limit = $vars['entity']->num_display; + if(!$limit) + $limit = 4; + + //grab the river + $river = elgg_view_river_items($owner->getGuid(), 0, $content_type, $content[0], $content[1], '', $limit); + + //display + echo "
"; + if($type != 'mine') + echo "

" . elgg_echo("Friends") . "

"; + echo $river; + echo "
"; + +?> \ No newline at end of file -- cgit v1.2.3