Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 129098 | Differences between
and this patch

Collapse All | Expand All

(-)_projectCommon.php (-1 / +1 lines)
Lines 11-17 Link Here
11
	# Define your project-wide Nav bars here.
11
	# Define your project-wide Nav bars here.
12
	# Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
12
	# Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
13
	# these are optional
13
	# these are optional
14
	$Nav->addNavSeparator("WTP Home", 	"/webtools/index1.php");
14
	$Nav->addNavSeparator("WTP Home", 	"/webtools/main.php");
15
	$Nav->addCustomNav("Subprojects", "", "_self", 1);
15
	$Nav->addCustomNav("Subprojects", "", "_self", 1);
16
	$Nav->addCustomNav("WST", 	"/webtools/wst/main.php", 		"_self", 2);
16
	$Nav->addCustomNav("WST", 	"/webtools/wst/main.php", 		"_self", 2);
17
	$Nav->addCustomNav("JST", 	"/webtools/jst/main.php", 		"_self", 2);
17
	$Nav->addCustomNav("JST", 	"/webtools/jst/main.php", 		"_self", 2);
(-)main.php (-3 / +2 lines)
Lines 59-66 Link Here
59
			{
59
			{
60
				if ($count == 0) break;
60
				if ($count == 0) break;
61
				$html .= "<li>";
61
				$html .= "<li>";
62
				$date = date("d&#8209;m&#8209;Y", $item->pubDate);
62
				$date = $item->pubDate ? (" posted&nbsp;" . date("d&#8209;m&#8209;Y", $item->pubDate)) : "";
63
				$html .= "<a href=\"$item->link\" target=\"_blank\">$item->title</a> posted&nbsp;$date<br/>";
63
				$html .= "<a href=\"$item->link\" target=\"_blank\">$item->title</a>$date<br/>";
64
				$html .= $item->description;
64
				$html .= $item->description;
65
				$html .= "</li>";
65
				$html .= "</li>";
66
				$count--;
66
				$count--;
Lines 69-75 Link Here
69
					$html .= "<br/>";
69
					$html .= "<br/>";
70
				}
70
				}
71
			}
71
			}
72
73
			$html .= "</ul>";
72
			$html .= "</ul>";
74
		}
73
		}
75
		return $html;
74
		return $html;
(-)jst/main.php (+37 lines)
Added Link Here
1
<?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'
2
$pageKeywords	= "";
3
$pageAuthor		= "Bob Fraser";
4
5
$root = $_SERVER['DOCUMENT_ROOT'];
6
require_once ($root . '/webtools/common.php');
7
8
# Generate the web page
9
// Load the XML source
10
$xml = DOMDocument::load('main.xml');
11
12
//Set the page title
13
$xpath = new DOMXPath($xml);
14
$titleNode = $xpath->query("/html/head/title")->item(0);
15
$pageTitle = ($titleNode != null) ? $titleNode->nodeValue : "eclipse.org webtools page";
16
17
// Load the XSL source
18
$xsl = DOMDocument::load($root . '/webtools/wtpphoenix.xsl');
19
20
// Configure the transformer
21
$proc = new XSLTProcessor;
22
$proc->importStyleSheet($xsl); // attach the xsl rules
23
24
$maincontent = $proc->transformToXML($xml);
25
$html = <<<EOHTML
26
<div id="maincontent">
27
	<div id="midcolumn">
28
		<p>
29
		$maincontent
30
		</p>
31
	</div>
32
</div>
33
34
35
EOHTML;
36
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
37
?>
(-)adopters/main.php (+37 lines)
Added Link Here
1
<?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'
2
$pageKeywords	= "";
3
$pageAuthor		= "Bob Fraser";
4
5
$root = $_SERVER['DOCUMENT_ROOT'];
6
require_once ($root . '/webtools/common.php');
7
8
# Generate the web page
9
// Load the XML source
10
$xml = DOMDocument::load('index.xml');
11
12
//Set the page title
13
$xpath = new DOMXPath($xml);
14
$titleNode = $xpath->query("/html/head/title")->item(0);
15
$pageTitle = ($titleNode != null) ? $titleNode->nodeValue : "eclipse.org webtools page";
16
17
// Load the XSL source
18
$xsl = DOMDocument::load($root . '/webtools/wtpphoenix.xsl');
19
20
// Configure the transformer
21
$proc = new XSLTProcessor;
22
$proc->importStyleSheet($xsl); // attach the xsl rules
23
24
$maincontent = $proc->transformToXML($xml);
25
$html = <<<EOHTML
26
<div id="maincontent">
27
	<div id="midcolumn">
28
		<p>
29
		$maincontent
30
		</p>
31
	</div>
32
</div>
33
34
35
EOHTML;
36
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
37
?>
(-)jsf/main.php (+37 lines)
Added Link Here
1
<?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'
2
$pageKeywords	= "";
3
$pageAuthor		= "Bob Fraser";
4
5
$root = $_SERVER['DOCUMENT_ROOT'];
6
require_once ($root . '/webtools/common.php');
7
8
# Generate the web page
9
// Load the XML source
10
$xml = DOMDocument::load('index.xml');
11
12
//Set the page title
13
$xpath = new DOMXPath($xml);
14
$titleNode = $xpath->query("/html/head/title")->item(0);
15
$pageTitle = ($titleNode != null) ? $titleNode->nodeValue : "eclipse.org webtools page";
16
17
// Load the XSL source
18
$xsl = DOMDocument::load($root . '/webtools/wtpphoenix.xsl');
19
20
// Configure the transformer
21
$proc = new XSLTProcessor;
22
$proc->importStyleSheet($xsl); // attach the xsl rules
23
24
$maincontent = $proc->transformToXML($xml);
25
$html = <<<EOHTML
26
<div id="maincontent">
27
	<div id="midcolumn">
28
		<p>
29
		$maincontent
30
		</p>
31
	</div>
32
</div>
33
34
35
EOHTML;
36
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
37
?>
(-)wst/main.php (+37 lines)
Added Link Here
1
<?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'
2
$pageKeywords	= "";
3
$pageAuthor		= "Bob Fraser";
4
5
$root = $_SERVER['DOCUMENT_ROOT'];
6
require_once ($root . '/webtools/common.php');
7
8
# Generate the web page
9
// Load the XML source
10
$xml = DOMDocument::load('main.xml');
11
12
//Set the page title
13
$xpath = new DOMXPath($xml);
14
$titleNode = $xpath->query("/html/head/title")->item(0);
15
$pageTitle = ($titleNode != null) ? $titleNode->nodeValue : "eclipse.org webtools page";
16
17
// Load the XSL source
18
$xsl = DOMDocument::load($root . '/webtools/wtpphoenix.xsl');
19
20
// Configure the transformer
21
$proc = new XSLTProcessor;
22
$proc->importStyleSheet($xsl); // attach the xsl rules
23
24
$maincontent = $proc->transformToXML($xml);
25
$html = <<<EOHTML
26
<div id="maincontent">
27
	<div id="midcolumn">
28
		<p>
29
		$maincontent
30
		</p>
31
	</div>
32
</div>
33
34
35
EOHTML;
36
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
37
?>
(-)development/bugs/bugs.php (+37 lines)
Added Link Here
1
<?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'
2
$pageKeywords	= "";
3
$pageAuthor		= "Bob Fraser";
4
5
$root = $_SERVER['DOCUMENT_ROOT'];
6
require_once ($root . '/webtools/common.php');
7
8
# Generate the web page
9
// Load the XML source
10
$xml = DOMDocument::load('bugs.xml');
11
12
//Set the page title
13
$xpath = new DOMXPath($xml);
14
$titleNode = $xpath->query("/html/head/title")->item(0);
15
$pageTitle = ($titleNode != null) ? $titleNode->nodeValue : "eclipse.org webtools page";
16
17
// Load the XSL source
18
$xsl = DOMDocument::load($root . '/webtools/wtpphoenix.xsl');
19
20
// Configure the transformer
21
$proc = new XSLTProcessor;
22
$proc->importStyleSheet($xsl); // attach the xsl rules
23
24
$maincontent = $proc->transformToXML($xml);
25
$html = <<<EOHTML
26
<div id="maincontent">
27
	<div id="midcolumn">
28
		<p>
29
		$maincontent
30
		</p>
31
	</div>
32
</div>
33
34
35
EOHTML;
36
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
37
?>
(-)development/status-telecons/main.php (+37 lines)
Added Link Here
1
<?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'
2
$pageKeywords	= "";
3
$pageAuthor		= "Bob Fraser";
4
5
$root = $_SERVER['DOCUMENT_ROOT'];
6
require_once ($root . '/webtools/common.php');
7
8
# Generate the web page
9
// Load the XML source
10
$xml = DOMDocument::load('index.xml');
11
12
//Set the page title
13
$xpath = new DOMXPath($xml);
14
$titleNode = $xpath->query("/html/head/title")->item(0);
15
$pageTitle = ($titleNode != null) ? $titleNode->nodeValue : "eclipse.org webtools page";
16
17
// Load the XSL source
18
$xsl = DOMDocument::load($root . '/webtools/wtpphoenix.xsl');
19
20
// Configure the transformer
21
$proc = new XSLTProcessor;
22
$proc->importStyleSheet($xsl); // attach the xsl rules
23
24
$maincontent = $proc->transformToXML($xml);
25
$html = <<<EOHTML
26
<div id="maincontent">
27
	<div id="midcolumn">
28
		<p>
29
		$maincontent
30
		</p>
31
	</div>
32
</div>
33
34
35
EOHTML;
36
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
37
?>
(-)atf/main.php (+37 lines)
Added Link Here
1
<?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'
2
$pageKeywords	= "";
3
$pageAuthor		= "Bob Fraser";
4
5
$root = $_SERVER['DOCUMENT_ROOT'];
6
require_once ($root . '/webtools/common.php');
7
8
# Generate the web page
9
// Load the XML source
10
$xml = DOMDocument::load('index.xml');
11
12
//Set the page title
13
$xpath = new DOMXPath($xml);
14
$titleNode = $xpath->query("/html/head/title")->item(0);
15
$pageTitle = ($titleNode != null) ? $titleNode->nodeValue : "eclipse.org webtools page";
16
17
// Load the XSL source
18
$xsl = DOMDocument::load($root . '/webtools/wtpphoenix.xsl');
19
20
// Configure the transformer
21
$proc = new XSLTProcessor;
22
$proc->importStyleSheet($xsl); // attach the xsl rules
23
24
$maincontent = $proc->transformToXML($xml);
25
$html = <<<EOHTML
26
<div id="maincontent">
27
	<div id="midcolumn">
28
		<p>
29
		$maincontent
30
		</p>
31
	</div>
32
</div>
33
34
35
EOHTML;
36
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
37
?>

Return to bug 129098