| <?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"); |
| |
| $pageTitle = "Eclipse Community News"; |
| $pageKeywords = "eclipse community news"; |
| $pageAuthor = "Christopher Guindon"; |
| |
| $App->PageRSS = "/home/eclipseinthenews.rss"; |
| $App->PageRSSTitle = "Eclipse In The News"; |
| |
| ob_start(); |
| ?> |
| |
| <div class="col-md-17"> |
| <h1><?php print $pageTitle; ?></h1> |
| <?php |
| $news = new FeedParser(); |
| $news->setUrl($_SERVER['DOCUMENT_ROOT'] . "/community/news/2005inthenewsarchive.rss"); |
| $news->setRssLink('/home/eclipseinthenews.rss'); |
| $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="eclipsenews.php">Eclipse Foundation News</a></li> |
| <li><a href="whatsnewhistory.html">Eclipse News Archive</a> (What's New)</li> |
| <li><a href="InTheNews.html">In the News Archive 2004-2005</a></li> |
| <li><a href="InTheNews2002-2003.html">In the News Archive 2002-2003</a></li> |
| </ul> |
| </div> |
| </div> |
| |
| <?php |
| $html = ob_get_clean(); |
| $html = mb_convert_encoding($html, "HTML-ENTITIES", "auto"); |
| # Generate the web page |
| $App->generatePage($theme, $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html); |
| ?> |