. * * @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('STATUSNET')) { exit(1); } class InlineAttachmentList extends AttachmentList { function showListStart() { 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); } } class InlineAttachmentListItem extends AttachmentListItem { function showLink() { $this->showRepresentation(); } /** * start a single notice. * * @return void */ function showStart() { // XXX: RDFa // TODO: add notice_type class e.g., notice_video, notice_image $this->out->elementStart('li', array('class' => 'inline-attachment')); } /** * finish the notice * * Close the last elements in the notice list item * * @return void */ function showEnd() { $this->out->elementEnd('li'); } }