aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/object
diff options
context:
space:
mode:
authorDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-23 17:30:14 +0000
committerDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-23 17:30:14 +0000
commita161b38e65fa698133402f4fb23548242f494018 (patch)
treee75300111195f40f14c2389abddac65db9068da8 /views/default/river/object
downloadelgg-a161b38e65fa698133402f4fb23548242f494018.tar.gz
elgg-a161b38e65fa698133402f4fb23548242f494018.tar.bz2
This videolist plugin shows real promise so we shall work on it for v1.8 then release it back to the community.
Diffstat (limited to 'views/default/river/object')
-rw-r--r--views/default/river/object/videolist/annotate.php13
-rw-r--r--views/default/river/object/videolist/create.php18
2 files changed, 31 insertions, 0 deletions
diff --git a/views/default/river/object/videolist/annotate.php b/views/default/river/object/videolist/annotate.php
new file mode 100644
index 000000000..d243c7ef3
--- /dev/null
+++ b/views/default/river/object/videolist/annotate.php
@@ -0,0 +1,13 @@
+<?php
+
+ $statement = $vars['statement'];
+ $performed_by = $statement->getSubject();
+ $object = $statement->getObject();
+
+ $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
+ $string = sprintf(elgg_echo("videolist:river:annotate"),$url) . " ";
+ $string .= "<a href=\"" . $object->getURL() . "\">" . elgg_echo("videolist:river:item") . "</a>";
+
+ echo $string;
+
+?>
diff --git a/views/default/river/object/videolist/create.php b/views/default/river/object/videolist/create.php
new file mode 100644
index 000000000..061d01dd5
--- /dev/null
+++ b/views/default/river/object/videolist/create.php
@@ -0,0 +1,18 @@
+<?php
+
+ $performed_by = get_entity($vars['item']->subject_guid); // $statement->getSubject();
+ $object = get_entity($vars['item']->object_guid);
+ $thumbnail = $object->thumbnail;
+ //$url = $object->getURL();
+
+ $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
+ $title = $object->title;
+ if(!$title)
+ $title = "untitled";
+ $string = sprintf(elgg_echo("videolist:river:created"),$url) . " ";
+ $string .= elgg_echo("videolist:river:item") . " titled <a href=\"" . $object->getURL() . "\">" . $title . "</a>";
+ $string .= "<div class=\"river_content_display\">";
+ $string .= "<a href=\"" . $object->getURL() . "\"><img src='".$thumbnail."' width='120' class='tubesearch'/></a>";
+ $string .= "</div>";
+
+ echo $string; \ No newline at end of file