'generic_comment', 'owner_guid' => $owner_guid, 'reverse_order_by' => true, 'limit' => elgg_extract('limit', $vars, 4), 'type' => 'object', 'subtypes' => elgg_extract('subtypes', $vars, ELGG_ENTITIES_ANY_VALUE), ); $title = elgg_echo('generic_comments:latest'); $comments = elgg_get_annotations($options); if ($comments) { $body = elgg_view('page/components/list', array( 'items' => $comments, 'pagination' => false, 'list_class' => 'elgg-latest-comments', )); } else { $body = '
' . elgg_echo('generic_comment:none') . '
'; } echo elgg_view_module('aside', $title, $body);