. * * @category UI * @package StatusNet * @author Brion Vibber * @copyright 2010 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ if (!defined('GNUSOCIAL')) { exit(1); } class InlineAttachmentList extends AttachmentList { function showListStart() { $this->out->element('h4', 'attachments-title', _('Attachments')); parent::showListStart(); } /** * returns a new list item for the current attachment * * @param File $notice the current attachment * * @return ListItem a list item for displaying the attachment */ function newListItem(File $attachment) { return new InlineAttachmentListItem($attachment, $this->out); } }