<td class="main"> <?php if ($messageStack->size('news_comments') > 0) { echo $messageStack->output('news_comments'); } ?> </td> </tr> </table> <?php // Start the news display class $newsDisplay = new newsDisplay(); // News header $newsDisplay->newsHeader(HEADING_TITLE, $newsDate, $newsHeaderLinks); // Back link to article $newsDisplay->articleBackLink($backButtonURL, $backButton); // Set article heading $newsDisplay->articleHeading($articleName); // Set by line $newsDisplay->articleByLine(sprintf(TEXT_ARTICLE_BY_LINE, $articleAuthor)); // Did we find some comments to display? if ($commentsNotFound == true) { // Oh no, no comments were found $newsDisplay->commentsNotFound(TEXT_NO_NEWS_COMMENTS); } else { $newsDisplay->clearSplit(); foreach ($commentsBlock as $comments) { $newsDisplay->splitSolid(); $newsDisplay->articleComments($comments['customersName'], $comments['commentsText'], $comments['dateAdded'], $comments['commentsSubject']); } }