* @copyright Curverider Ltd 2008-2010 * @link http://elgg.com/ */ // a couple of required variables //get the full page owner entity $entity = get_entity(page_owner()); //the number of message to display $num_display = $vars['entity']->num_display; //if no num set, set to one if(!$num_display) $num_display = 5; //Just the loggedin user can send 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 "
"; } ?>