diff options
author | Brett Profitt <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-26 22:44:48 +0000 |
---|---|---|
committer | Brett Profitt <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-26 22:44:48 +0000 |
commit | 52255de580654f351205b19565be601bd4caaacb (patch) | |
tree | 1e9d5f496a8b7111c619eafe910a2f93927231a1 /views/default/river | |
parent | a8aa4bceed8e7ad0c5af2646a83d6a2da2e0b23a (diff) | |
download | elgg-52255de580654f351205b19565be601bd4caaacb.tar.gz elgg-52255de580654f351205b19565be601bd4caaacb.tar.bz2 |
First pass at cleaning up videolist.
Diffstat (limited to 'views/default/river')
-rw-r--r-- | views/default/river/object/videolist/annotate.php | 18 | ||||
-rw-r--r-- | views/default/river/object/videolist/create.php | 33 |
2 files changed, 26 insertions, 25 deletions
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 @@ <?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>"; +$statement = $vars['statement']; +$performed_by = $statement->getSubject(); +$object = $statement->getObject(); - echo $string; - -?> +$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 index 0ed570378..896f706c9 100644 --- a/views/default/river/object/videolist/create.php +++ b/views/default/river/object/videolist/create.php @@ -1,18 +1,21 @@ <?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>"; +$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 = "<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 |