(isset($_GET['id']) ? (count($renderData['newsPosts']) ? $renderData['newsPosts'][0]['title'] : 'Post does not exist!') : 'Flashii News'), ]; // News XML feed if(isset($_GET['xml'])) { print ''; print ''; print ''; print 'Flashii News'; print 'http://flashii.net/'; print 'News on Flashii.net.'; print 'en-gb'; print 'admin@flashii.net (Flashii Administrator)'; print ''. date('D, d M Y G:i:s O') .''; print ''. date('D, d M Y G:i:s O') .''; foreach($renderData['newsPosts'] as $newsPost) { print ''; print ''. $newsPost['title'] .''; print 'http://flashii.net/news/'. $newsPost['id'] .''; print 'http://flashii.net/news/'. $newsPost['id'] .''; print ''. date('D, d M Y G:i:s O', $newsPost['date']) .''; print ''. $newsPost['udata']['username'] .''; print ''; print ''; } print ''; print ''; exit; } // Print page contents print Templates::render('main/news.tpl', $renderData);