blob: 654146ea1a511d5cd96afeaafc0ae4dc2338ccb9 [file] [log] [blame]
<?php
/*******************************************************************************
* Copyright (c) 2010 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://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Benoit Langlois (Thales)
*******************************************************************************/
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/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());
$localVersion = false;
# Define these here, or in _projectCommon.php for site-wide values
$pageKeywords = "eclipse,emf,emft,egf";
$pageAuthor = "benoit langlois";
$pageTitle = "EGF";
function getEgfNews(){
$xsl = new Xsltprocessor();
$xsldoc = new DomDocument();
$xsldoc->load("news/news.xsl");
$xsl->importStyleSheet($xsldoc);
$xmldoc = new DomDocument();
$xmldoc->load("news/egfNewsArchive.rss");
return $xsl->transformToXML($xmldoc);
}
function getTwitter(){
$xsl = new Xsltprocessor();
$xsldoc = new DomDocument();
$xsldoc->load("news/twitter.xsl");
$xsl->importStyleSheet($xsldoc);
$xmldoc = new DomDocument();
$xmldoc->load("http://search.twitter.com/search.atom?q=egf");
return $xsl->transformToXML($xmldoc);
}
$html = file_get_contents('_index.html');
$news = getEgfNews();
# TODO $twitter = getTwitter();
$html = str_replace("%%HEADLINES%%", $news, $html);
$App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="/default/style.css"/>' . "\n\t");
$App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="egf.css"/>' . "\n\t");
$App->AddExtraHtmlHeader("<link rel='alternate' type='application/rss+xml' title='EGF News' href='news/egfNewsArchive.rss'>");
$pageKeywords="MDA,MDE,egf,software factories,EMF,EMFT,modeling,Eclipse";
$App->generatePage($theme, $Menu, null, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>