/** * Output a given item. * @param FeedItem $item */ function outItem($item) { global $wgMimeType; // @codingStandardsIgnoreStart Ignore long lines and formatting issues. ?> <entry> <id><?php print $item->getUniqueId(); ?> </id> <title><?php print $item->getTitle(); ?> </title> <link rel="alternate" type="<?php print $wgMimeType; ?> " href="<?php print wfExpandUrl($item->getUrl(), PROTO_CURRENT); ?> "/> <?php if ($item->getDate()) { ?> <updated><?php print $this->formatTime($item->getDate()); ?> Z</updated> <?php } ?> <summary type="html"><?php print $item->getDescription(); ?> </summary> <?php if ($item->getAuthor()) { ?> <author><name><?php print $item->getAuthor(); ?> </name></author><?php } ?> </entry> <?php /* @todo FIXME: Need to add comments <?php if( $item->getComments() ) { ?><dc:comment><?php print $item->getComments() ?></dc:comment><?php }?> */ }