aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/relationship/friend
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 01:08:23 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 01:08:23 +0000
commit7c7dc0e249fb4afd1b0f4826bdbd27aa5d9f2a26 (patch)
treeaa3afd1a6c4493ef463bc8c0e4d77a11942e081f /views/default/river/relationship/friend
parente634e03a412afdb4f31923b91b2af8efc0bb2be0 (diff)
downloadelgg-7c7dc0e249fb4afd1b0f4826bdbd27aa5d9f2a26.tar.gz
elgg-7c7dc0e249fb4afd1b0f4826bdbd27aa5d9f2a26.tar.bz2
updated the river friend view for the new river code
git-svn-id: http://code.elgg.org/elgg/trunk@7649 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/river/relationship/friend')
-rw-r--r--views/default/river/relationship/friend/create.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/views/default/river/relationship/friend/create.php b/views/default/river/relationship/friend/create.php
new file mode 100644
index 000000000..80c567795
--- /dev/null
+++ b/views/default/river/relationship/friend/create.php
@@ -0,0 +1,18 @@
+<?php
+/**
+ * Create friend river view
+ */
+$subject = $vars['item']->getSubjectEntity();
+$object = $vars['item']->getObjectEntity();
+
+$object_link = "<a href=\"{$object->getURL()}\">$object->name</a>";
+$subject_icon = elgg_view("profile/icon", array('entity' => $subject, 'size' => 'tiny'));
+$object_icon = elgg_view("profile/icon", array('entity' => $object, 'size' => 'tiny'));
+
+echo elgg_echo("friends:river:add", array($object_link));
+
+echo '<div class="elgg-river-excerpt">';
+echo $subject_icon;
+echo '<span class="elgg-icon elgg-icon-following"></span>';
+echo $object_icon;
+echo '</div>';