aboutsummaryrefslogtreecommitdiff
path: root/mod/river/views
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 12:49:29 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 12:49:29 +0000
commit9026d48d405ba43dc6218ecfe34f6dfeb7b16104 (patch)
treefa6c03fea00993fc4e9635b2a6acef3e27b8a665 /mod/river/views
parent5893eaf6588ce7b6823fa78f54c0042983389162 (diff)
downloadelgg-9026d48d405ba43dc6218ecfe34f6dfeb7b16104.tar.gz
elgg-9026d48d405ba43dc6218ecfe34f6dfeb7b16104.tar.bz2
Fixed #50: River widgets
http://trac.elgg.org/elgg/ticket/50 git-svn-id: https://code.elgg.org/elgg/trunk@992 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/river/views')
-rw-r--r--mod/river/views/default/widgets/river_widget/edit.php11
-rw-r--r--mod/river/views/default/widgets/river_widget/view.php17
-rw-r--r--mod/river/views/default/widgets/river_widget_friends/edit.php11
-rw-r--r--mod/river/views/default/widgets/river_widget_friends/view.php17
4 files changed, 56 insertions, 0 deletions
diff --git a/mod/river/views/default/widgets/river_widget/edit.php b/mod/river/views/default/widgets/river_widget/edit.php
new file mode 100644
index 000000000..77d0594b6
--- /dev/null
+++ b/mod/river/views/default/widgets/river_widget/edit.php
@@ -0,0 +1,11 @@
+<?php
+ /**
+ * Edit the widget
+ *
+ * @package ElggRiver
+ * @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/
+ */
+?> \ No newline at end of file
diff --git a/mod/river/views/default/widgets/river_widget/view.php b/mod/river/views/default/widgets/river_widget/view.php
new file mode 100644
index 000000000..38507c625
--- /dev/null
+++ b/mod/river/views/default/widgets/river_widget/view.php
@@ -0,0 +1,17 @@
+<?php
+ /**
+ * View the widget
+ *
+ * @package ElggRiver
+ * @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/
+ */
+
+ $owner = page_owner_entity();
+?>
+<h1><?php echo sprintf(elgg_echo('river:widget:title'), $owner->name . "'s") ?></h1>
+<?php
+ echo elgg_view_river($owner->guid);
+?> \ No newline at end of file
diff --git a/mod/river/views/default/widgets/river_widget_friends/edit.php b/mod/river/views/default/widgets/river_widget_friends/edit.php
new file mode 100644
index 000000000..77d0594b6
--- /dev/null
+++ b/mod/river/views/default/widgets/river_widget_friends/edit.php
@@ -0,0 +1,11 @@
+<?php
+ /**
+ * Edit the widget
+ *
+ * @package ElggRiver
+ * @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/
+ */
+?> \ No newline at end of file
diff --git a/mod/river/views/default/widgets/river_widget_friends/view.php b/mod/river/views/default/widgets/river_widget_friends/view.php
new file mode 100644
index 000000000..5b0b3c137
--- /dev/null
+++ b/mod/river/views/default/widgets/river_widget_friends/view.php
@@ -0,0 +1,17 @@
+<?php
+ /**
+ * View the widget
+ *
+ * @package ElggRiver
+ * @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/
+ */
+
+ $owner = page_owner_entity();
+?>
+<h1><?php echo sprintf(elgg_echo('river:widget:title:friends'), $owner->name . "'s") ?></h1>
+<?php
+ echo elgg_view_friend_river($owner->guid);
+?> \ No newline at end of file