blob: e28b61da1d619acbe8d118094f304ef42ede7e78 [file] [log] [blame]
<?php
/*******************************************************************************
* Copyright (c) 2009 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:
* Grégoire Dupé (Mia-Software)
*******************************************************************************/
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, facet";
$pageAuthor = "Grégoire Dupé";
$pageTitle = "EMF Facet";
function getEMFFacetNews(){
$xsl = new Xsltprocessor();
$xsldoc = new DomDocument();
$xsldoc->load("news/news.xsl");
$xsl->importStyleSheet($xsldoc);
$xmldoc = new DomDocument();
$xmldoc->load("news/news.rss");
return $xsl->transformToXML($xmldoc);
}
// # Paste your HTML content between the EOHTML markers!
$html = file_get_contents('pages/_index.html');
$description = file_get_contents('pages/description.html');
$news = getEMFFacetNews();
$html = str_replace("%%HEADLINES%%", $news, $html);
$html = str_replace("%%DESCRIPTION%%", $description, $html);
# Generate the web page
$App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="/default/style.css"/>' . "\n\t");
$App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="style.css"/>' . "\n\t");
$App->generatePage($theme, $Menu, null, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>