From 758b3d02a727ae19b8f45c39a906ed7a8776ea1d Mon Sep 17 00:00:00 2001 From: pete Date: Fri, 19 Mar 2010 12:06:14 +0000 Subject: Updated latest comments to new UI and coding standards, and added to Blog and Files sidebar. git-svn-id: http://code.elgg.org/elgg/trunk@5442 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/annotation/latest_comments.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'views/default/annotation/latest_comments.php') diff --git a/views/default/annotation/latest_comments.php b/views/default/annotation/latest_comments.php index 6ab7163ed..e7feb6614 100644 --- a/views/default/annotation/latest_comments.php +++ b/views/default/annotation/latest_comments.php @@ -5,7 +5,7 @@ if($vars['comments']){ global $CONFIG; - echo "

" . elgg_echo('latestcomments') . "

"; + echo "

" . elgg_echo('generic_comments:latest') . "

"; foreach($vars['comments'] as $comment){ //grab the entity the comment is on $entity = get_entity($comment->entity_guid); @@ -14,22 +14,22 @@ if($vars['comments']){ $friendlytime = friendly_time($comment->time_created); // get timestamp for comment //set the title - if($entity->title) + if($entity->title){ $objecttitle = $entity->title; - else - $objecttitle = elgg_echo('file:untitled'); + }else{ + $objecttitle = elgg_echo('file:untitled'); + } //if the entity has been deleted, don't link to it if($entity){ $url = $entity->getURL(); // get url to file for comment link $url_display = "{$objecttitle}"; - //$owner = $entity->getOwnerEntity(); // get file owner }else{ $url_display = $objecttitle; } - echo "
" . elgg_view("profile/icon",array('entity' => $comment_owner, 'size' => 'tiny')) . ""; - echo "

username}\">{$comment_owner->name} " . elgg_echo('on') . " {$url_display} {$friendlytime}

"; + echo "
" . elgg_view("profile/icon",array('entity' => $comment_owner, 'size' => 'tiny')) . ""; + echo "
username}\">{$comment_owner->name} " . elgg_echo('on') . " {$url_display} ({$friendlytime})
"; echo "
"; } -- cgit v1.2.3