| <?php require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); $App = new App(); $Nav = new Nav(); $Menu = new Menu(); include($App->getProjectCommon()); # All on the same line to unclutter the user's desktop' |
| |
| #***************************************************************************** |
| # |
| # template.php |
| # |
| # Author: Denis Roy |
| # Date: 2005-06-16 |
| # |
| # Description: Type your page comments here - these are not sent to the browser |
| # |
| # |
| #**************************************************************************** |
| $category = ucfirst($_GET['category']); |
| # |
| # Begin: page-specific settings. Change these. |
| $pageTitle = $category . " Community Buzz"; |
| $pageKeywords = "Community News Buzz"; |
| $pageAuthor = "Nathan Gervais"; |
| $App->PageRSS = "/home/eclipseinthenews.rss"; |
| $App->PageRSSTitle = "Eclipse In The News"; |
| # Add page-specific Nav bars here |
| # Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3) |
| # $Nav->addNavSeparator("My Page Links", "downloads.php"); |
| # $Nav->addCustomNav("My Link", "mypage.php", "_self", 1); |
| # $Nav->addCustomNav("Google", "http://www.google.com/", "_blank", 1); |
| |
| # End: page-specific settings |
| # |
| |
| # The next two lines load the $news variable with the HTML equivalent to the contents of the eclipsenews.rss file. |
| # Reference the $news variable to drop the HTML into your content... |
| $category = $_GET['category']; |
| |
| $documentRoot = $_SERVER['DOCUMENT_ROOT']; |
| require_once('scripts/functions.php'); |
| $filepath = $documentRoot . '/community/news/2005inthenewsarchive.rss'; |
| $eclipsenews = rss_to_news_html($filepath, $category ,100); |
| |
| # Paste your HTML content between the EOHTML markers! |
| $html = <<<EOHTML |
| <link rel="stylesheet" type="text/css" href="layout.css" media="screen" /> |
| <style> |
| li.more { |
| display:none!important; |
| } |
| </style> |
| <div id="midcolumn"> |
| |
| <h1>$pageTitle</h1> |
| |
| <div class="homeitem3col"> |
| <h3>Community Buzz</h3> |
| $eclipsenews |
| </div> |
| </div> |
| |
| <div id="rightcolumn"> |
| |
| </div> |
| |
| EOHTML; |
| |
| $html = mb_convert_encoding($html, "HTML-ENTITIES", "auto"); |
| # Generate the web page |
| $App->generatePage('Nova', $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); |
| ?> |