From 52255de580654f351205b19565be601bd4caaacb Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Fri, 26 Mar 2010 22:44:48 +0000 Subject: First pass at cleaning up videolist. --- views/default/river/object/videolist/annotate.php | 18 ++++++------- views/default/river/object/videolist/create.php | 33 ++++++++++++----------- 2 files changed, 26 insertions(+), 25 deletions(-) (limited to 'views/default/river') diff --git a/views/default/river/object/videolist/annotate.php b/views/default/river/object/videolist/annotate.php index 6c03d4445..50a4a8397 100644 --- a/views/default/river/object/videolist/annotate.php +++ b/views/default/river/object/videolist/annotate.php @@ -1,13 +1,11 @@ getSubject(); - $object = $statement->getObject(); - - $url = "getURL()}\">{$performed_by->name}"; - $string = sprintf(elgg_echo("videolist:river:annotate"),$url) . " "; - $string .= "getURL() . "\">" . elgg_echo("videolist:river:item") . ""; +$statement = $vars['statement']; +$performed_by = $statement->getSubject(); +$object = $statement->getObject(); - echo $string; - -?> +$url = "getURL()}\">{$performed_by->name}"; +$string = sprintf(elgg_echo("videolist:river:annotate"),$url) . " "; +$string .= "getURL() . "\">" . elgg_echo("videolist:river:item") . ""; + +echo $string; diff --git a/views/default/river/object/videolist/create.php b/views/default/river/object/videolist/create.php index 0ed570378..896f706c9 100644 --- a/views/default/river/object/videolist/create.php +++ b/views/default/river/object/videolist/create.php @@ -1,18 +1,21 @@ subject_guid); // $statement->getSubject(); - $object = get_entity($vars['item']->object_guid); - $thumbnail = $object->thumbnail; - //$url = $object->getURL(); - - $url = "getURL()}\">{$performed_by->name}"; - $title = $object->title; - if(!$title) - $title = "untitled"; - $string = sprintf(elgg_echo("videolist:river:created"),$url) . " "; - $string .= elgg_echo("videolist:river:item") . " titled getURL() . "\">" . $title . ""; - $string .= "
"; - $string .= "getURL() . "\">"; - $string .= "
"; +$performed_by = get_entity($vars['item']->subject_guid); // $statement->getSubject(); +$object = get_entity($vars['item']->object_guid); +$thumbnail = $object->thumbnail; +//$url = $object->getURL(); - echo $string; \ No newline at end of file +$url = "getURL()}\">{$performed_by->name}"; +$title = $object->title; + +if(!$title) { + $title = "untitled"; +} + +$string = sprintf(elgg_echo("videolist:river:created"),$url) . " "; +$string .= elgg_echo("videolist:river:item") . " titled getURL() . "\">" . $title . ""; +$string .= "
"; +$string .= "getURL() . "\">"; +$string .= "
"; + +echo $string; \ No newline at end of file -- cgit v1.2.3