From 4766f36a4d74924f21ff329c4318ce4e069ffa04 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 3 Mar 2010 17:53:05 +0000 Subject: Pulled in the interface changes. git-svn-id: http://code.elgg.org/elgg/trunk@5257 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/widgets/river_widget/edit.php | 36 +++++++++++++++++++ .../views/default/widgets/river_widget/view.php | 40 ++++++++++++++++++++++ 2 files changed, 76 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..3f3c9d625 --- /dev/null +++ b/mod/riverdashboard/views/default/widgets/river_widget/edit.php @@ -0,0 +1,36 @@ +content_type) + $content_type = 'mine'; + else + $content_type = $vars['entity']->content_type; + + +?> +

+ + + +

+

+ + + +

\ 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..039962c27 --- /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,0,0,false); + + //display + echo "
"; + if($type != 'mine') + echo "

" . elgg_echo("friends") . "

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