Community
Participate
Working Groups
# Define your project-wide Nav bars here.
# Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
# these are optional
$Nav->addNavSeparator("WTP Home", "/webtools/index1.php");
$Nav->addNavSeparator("WTP Home", "/webtools/main.php");
$Nav->addCustomNav("Subprojects", "", "_self", 1);
$Nav->addCustomNav("WST", "/webtools/wst/main.php", "_self", 2);
$Nav->addCustomNav("JST", "/webtools/jst/main.php", "_self", 2);
{
if ($count == 0) break;
$html .= "<li>";
$date = date("d‑m‑Y", $item->pubDate);
$date = $item->pubDate ? (" posted " . date("d‑m‑Y", $item->pubDate)) : "";
$html .= "<a href=\"$item->link\" target=\"_blank\">$item->title</a> posted $date<br/>";
$html .= "<a href=\"$item->link\" target=\"_blank\">$item->title</a>$date<br/>";
$html .= $item->description;
$html .= "</li>";
$count--;
$html .= "<br/>";
}
$html .= "</ul>";
return $html;
<?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'
$pageKeywords = "";
$pageAuthor = "Bob Fraser";
$root = $_SERVER['DOCUMENT_ROOT'];
require_once ($root . '/webtools/common.php');
# Generate the web page
// Load the XML source
$xml = DOMDocument::load('main.xml');
//Set the page title
$xpath = new DOMXPath($xml);
$titleNode = $xpath->query("/html/head/title")->item(0);
$pageTitle = ($titleNode != null) ? $titleNode->nodeValue : "eclipse.org webtools page";
// Load the XSL source
$xsl = DOMDocument::load($root . '/webtools/wtpphoenix.xsl');
// Configure the transformer
$proc = new XSLTProcessor;
$proc->importStyleSheet($xsl); // attach the xsl rules
$maincontent = $proc->transformToXML($xml);
$html = <<<EOHTML
<div id="maincontent">
<div id="midcolumn">
<p>
$maincontent
</p>
</div>
EOHTML;
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>
$xml = DOMDocument::load('index.xml');
$xml = DOMDocument::load('bugs.xml');