diff options
Diffstat (limited to 'mod/opendd/views')
-rw-r--r-- | mod/opendd/views/default/widgets/opendd_friends_elsewhere/edit.php | 20 | ||||
-rw-r--r-- | mod/opendd/views/default/widgets/opendd_friends_elsewhere/view.php | 28 |
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 |