<?php // // Start the news display class $newsDisplay = new newsDisplay(); // News header $newsDisplay->newsHeader(HEADING_TITLE, $newsDate, $newsHeaderLinks); // Set article heading $newsDisplay->articleHeading($articleName); // Set by line $newsDisplay->articleByLine(sprintf(TEXT_ARTICLE_BY_LINE, $articleAuthor), $commentsURL, $comments > 0 ? sprintf(TEXT_POST_COMMENT_1, $comments) : TEXT_POST_COMMENT_2); // Set article main text $newsDisplay->articleText(str_replace('<', '<', str_replace('>', '>', str_replace(' ', ' ', str_replace('"', '"', $articleText)))), $articleImage); // Set article links $newsDisplay->articleLinksBlock($articleLinks); $newsDisplay->articleSplit(); // News Footer $newsDisplay->articleFooter(sprintf(TEXT_NEWS_FOOTER, $newsFooterDate), $newsFooter, $newsFooterDateURL); // Recent News Footer $newsDisplay->articleFooter(TEXT_RECENT_NEWS, $newsRecentFooter); // Archive link $newsDisplay->archiveLink(zen_href_link(FILENAME_NEWS_ARCHIVE), TEXT_NEWS_ARCHIVE_LINK); // Display this news page // New page content is output in valid XHTML // You can change how it displays in the stylesheet_news.css file $newsDisplay->displayNewsPage();
// // Start the news display class $newsDisplay = new newsDisplay(); // News header $newsDisplay->newsHeader(HEADING_TITLE, $newsDate, $newsHeaderLinks); // Did we find some articles to display? if ($articlesNotFound == true) { // Oh no, no articles were found $newsDisplay->articlesNotFound(sprintf(TEXT_NO_NEWS_ARTICLES, $newsCurrentDate)); $newsDisplay->articleSplit(); } else { foreach ($newsArticlesBlock as $newsArticle) { // Set article heading $newsDisplay->articleHeading($newsArticle['articleName']); // Set by line $newsDisplay->articleByLine(sprintf(TEXT_ARTICLE_BY_LINE, $newsArticle['articleAuthor']), $newsArticle['commentsURL'], $newsArticle['comments'] > 0 ? sprintf(TEXT_POST_COMMENT_1, $newsArticle['comments']) : TEXT_POST_COMMENT_2); // Set article main text $newsDisplay->articleText(str_replace('<', '<', str_replace('>', '>', str_replace('&', '&', str_replace(' ', '', str_replace('"', '"', $newsArticle['articleText']))))), $newsArticle['articleImage']); // Set article links $newsDisplay->articleLinksBlock($newsArticle['links']); $newsDisplay->articleSplit(); } } // News Footer $newsDisplay->articleFooter(sprintf(TEXT_NEWS_FOOTER, $newsFooterDate), $newsFooter, $newsFooterDateURL); // Recent News Footer $newsDisplay->articleFooter(TEXT_RECENT_NEWS, $newsRecentFooter); // Archive link $newsDisplay->archiveLink(zen_href_link(FILENAME_NEWS_ARCHIVE), TEXT_NEWS_ARCHIVE_LINK); // Display this news page // New page content is output in valid XHTML
} ?> </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']); } } // Comments input if ($mustLogin == true) { $newsDisplay->articleCommentsLogin(COMMENTS_FIELDSET_LEGEND, sprintf(TEXT_COMMENTS_MUST_LOGIN, zen_href_link(FILENAME_LOGIN, '', 'SSL'))); } else {