* Copyright (C) 2011, StatusNet, Inc.
*
* The message list widget
- *
+ *
* PHP version 5
*
* This program is free software: you can redistribute it and/or modify
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
-
abstract class MessageList extends Widget
{
var $message;
parent::__construct($out);
$this->message = $message;
}
-
+
/**
* Show the widget
- *
+ *
* Uses newItem() to create each new item.
*
* @return integer count of messages seen.
$this->out->elementStart('div', array('id' =>'notices_primary'));
+ // TRANS: Header in message list.
$this->out->element('h2', null, _('Messages'));
$this->out->elementStart('ul', 'notices messages');
if ($cnt > MESSAGES_PER_PAGE) {
break;
}
-
+
$mli = $this->newItem($this->message);
$mli->show();