| <?php |
| /******************************************************************************* |
| * Copyright (c) 2014 Eclipse Foundation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christopher Guindon (Eclipse Foundation) - Initial implementation |
| *******************************************************************************/ |
| |
| 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' |
| |
| require_once ($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/classes/parser/feedparser.class.php"); |
| |
| # Begin: page-specific settings. Change these. |
| $pageTitle = "Eclipse Foundation News"; |
| $pageKeywords = "Eclipse Announcements, eclipse foundation news"; |
| $pageAuthor = "Christopher Guindon"; |
| $App->PageRSS = "/home/eclipsenews.rss"; |
| $App->PageRSSTitle = "Eclipse Foundation News"; |
| |
| ob_start(); |
| ?> |
| |
| <div class="col-md-17"> |
| <h1><?php print $pageTitle; ?></h1> |
| <?php |
| $news = new FeedParser(); |
| $news->setUrl($_SERVER['DOCUMENT_ROOT'] . "/community/news/2005newsarchive.rss"); |
| $news->setRssLink('http://feeds.feedburner.com/eclipse/fnews'); |
| $news->setLimit(500); |
| $news->setCount(5000); |
| $news->output(); |
| ?> |
| </div> |
| |
| <div class="col-md-6 col-md-offset-1"> |
| <div class="sideitem"> |
| <h6>Related Links</h6> |
| <ul> |
| <li><a href="eclipseinthenews.php">Eclipse Community News</a></li> |
| <li><a href="whatsnewhistory.html">Eclipse News Archive</a> (What's New)</li> |
| <li><a href="../../org/press-release/">Press Release Archive</a></li> |
| <li><a href="../../org/press-release/pressrelease_guidelines.php">Press Release Guidelines</a></li> |
| </ul> |
| </div> |
| </div> |
| |
| <?php |
| $html = ob_get_clean(); |
| $App->PageRSS = "http://feeds.feedburner.com/eclipse/fnews"; |
| $App->PageRSSTitle = "Eclipse Foundation News"; |
| $html = mb_convert_encoding($html, "HTML-ENTITIES", "auto"); |
| # Generate the web page |
| $App->generatePage($theme, $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html); |
| ?> |