* @copyright Curverider Ltd 2008-2010 * @link http://elgg.com/ * * @uses $vars['entity'] An array of messages to view * @uses $vars['page_view'] This is the page the messages are being accessed from; inbox or sentbox * */ $limit = $vars['limit']; if (empty($limit)) $limit = 10; $offset = $vars['offset']; if (!isset($offset)) $offset = 0; // If there are any messages to view, view them if (isloggedin()) if (is_array($vars['entity']) && sizeof($vars['entity']) > 0) { ?>
owner_guid == $vars['user']->guid || $message->toId == $vars['user']->guid) { //make sure to only display the messages that have not been 'deleted' (1 = deleted) if($message->hiddenFrom != 1){ // check to see if the message has been read, if so, get the correct background color if($message->readYet == 1){ echo ""; }else{ echo ""; } //set the table echo "" . elgg_view("profile/icon",array('entity' => $from, 'size' => 'tiny')) . " " . $from->name . " " . friendly_time($message->time_created) . " | ";
//display the message title
echo "";
echo "guid}\" /> ";
echo "getURL()}\">" . $message->title . " | ";
//display the link to 'delete'
echo "";
echo " " . elgg_view("output/confirmlink", array(
'href' => $vars['url'] . "action/messages/delete?message_id=" . $message->getGUID() . "&type=inbox&submit=" . urlencode(elgg_echo('delete')),
'text' => elgg_echo('delete'),
'confirm' => elgg_echo('deleteconfirm'),
)) . " ";
echo " |
" . elgg_view("profile/icon",array('entity' => $user, 'size' => 'tiny')) . " " . $user->name . " " . friendly_time($message->time_created) . " | ";
//display the message title
echo "";
echo "guid}\" /> ";
echo "getURL()}?type=sent\">" . $message->title . " | ";
//display the link to 'delete'
echo "";
echo " " . elgg_view("output/confirmlink", array(
'href' => $vars['url'] . "action/messages/delete?message_id=" . $message->getGUID() . "&type=sent&submit=" . urlencode(elgg_echo('delete')),
'text' => elgg_echo('delete'),
'confirm' => elgg_echo('deleteconfirm'),
)) . " ";
echo " |
'.$nav.'