aboutsummaryrefslogtreecommitdiff
path: root/mod/opendd/views
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-15 10:54:02 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-15 10:54:02 +0000
commit7bfe15a21379a4acef4b989e8bc07d4f556d9b27 (patch)
treef106525feac0b1b32bae088aeab4e6dbcc0f96c9 /mod/opendd/views
parentd9a7f8ee70bdd5a5a596a5bb745c8d11391105e9 (diff)
downloadelgg-7bfe15a21379a4acef4b989e8bc07d4f556d9b27.tar.gz
elgg-7bfe15a21379a4acef4b989e8bc07d4f556d9b27.tar.bz2
Closes #135: First version of the OpenDD friends elsewhere feed.
git-svn-id: https://code.elgg.org/elgg/trunk@1423 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/opendd/views')
-rw-r--r--mod/opendd/views/default/widgets/opendd_friends_elsewhere/edit.php20
-rw-r--r--mod/opendd/views/default/widgets/opendd_friends_elsewhere/view.php28
2 files changed, 48 insertions, 0 deletions
diff --git a/mod/opendd/views/default/widgets/opendd_friends_elsewhere/edit.php b/mod/opendd/views/default/widgets/opendd_friends_elsewhere/edit.php
new file mode 100644
index 000000000..2b912f567
--- /dev/null
+++ b/mod/opendd/views/default/widgets/opendd_friends_elsewhere/edit.php
@@ -0,0 +1,20 @@
+<?php
+ /**
+ * Elgg OpenDD aggregator
+ *
+ * @package ElggOpenDD
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+ $feeds = opendd_get_feed_urls(page_owner());
+
+
+ echo elgg_view('input/checkboxes', array(
+ 'internalname' => 'params[feeds]',
+ 'options' => $feeds,
+ 'value' => $vars['entity']->feeds
+ ));
+?> \ No newline at end of file
diff --git a/mod/opendd/views/default/widgets/opendd_friends_elsewhere/view.php b/mod/opendd/views/default/widgets/opendd_friends_elsewhere/view.php
new file mode 100644
index 000000000..9edeabc09
--- /dev/null
+++ b/mod/opendd/views/default/widgets/opendd_friends_elsewhere/view.php
@@ -0,0 +1,28 @@
+<?php
+ /**
+ * Elgg OpenDD aggregator
+ *
+ * @package ElggOpenDD
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+include ("../../../../../../engine/start.php");
+
+$vars['entity'] = get_entity(80);
+
+ $owner = page_owner_entity();
+ $limit = 8;
+
+ if ($vars['entity']->limit)
+ $limit = $vars['entity']->limit;
+
+ $river = opendd_aggregate_remote_river($vars['entity']->feeds, $limit, $offset);
+
+
+ if ($river)
+ echo elgg_view('river/dashboard', array('river' => $river));
+ else
+ echo elgg_echo("opendd:noriver");
+?> \ No newline at end of file