num_display)) {
$num_display = $vars['entity']->num_display;
}
//Just the loggedin user can post messages
if (isloggedin()) {
?>
getAnnotations('messageboard', $num_display, 0, 'desc');
//as long as there is some content to display, display it
if (!empty($contents)) {
echo elgg_view('messageboard/messageboard',array('annotation' => $contents));
} else {
//put the required div on the page for the first message
echo "";
}