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 (-2 / +3 lines)
Lines 33-44 Link Here
33
	$Nav->addCustomNav("Milestone Specific Resources", 	"/webtools/community/milestonespecificresources.html", 		"_self", 2);
33
	$Nav->addCustomNav("Milestone Specific Resources", 	"/webtools/community/milestonespecificresources.html", 		"_self", 2);
34
	#$Nav->addCustomNav("Installation", 		"install.php", 		"_self", 1);
34
	#$Nav->addCustomNav("Installation", 		"install.php", 		"_self", 1);
35
	$Nav->addCustomNav("Adopters", 		"/webtools/adopters/main.php", 		"_self", 1);
35
	$Nav->addCustomNav("Adopters", 		"/webtools/adopters/main.php", 		"_self", 1);
36
	$Nav->addCustomNav("Development", 		"/webtools/development/main.html", 		"_self", 1);
36
	$Nav->addCustomNav("Development", 		"/webtools/development/main.php", 		"_self", 1);
37
	#$Nav->addCustomNav("Help Wanted", 		"plans/1.5/reports/help-wanted.html", 		"_self", 2);
37
	#$Nav->addCustomNav("Help Wanted", 		"plans/1.5/reports/help-wanted.html", 		"_self", 2);
38
	$Nav->addCustomNav("Project Wiki", 		"http://wiki.eclipse.org/index.php/Web_Tools_Project", 		"_self", 2);
38
	$Nav->addCustomNav("Bug Reports", 		"/webtools/development/bugs/bugs.php", 		"_self", 2);
39
	$Nav->addCustomNav("Bug Reports", 		"/webtools/development/bugs/bugs.php", 		"_self", 2);
39
	$Nav->addCustomNav("CVS", 		"http://dev.eclipse.org/viewcvs/index.cgi/?cvsroot=WebTools_Project", 		"_self", 2);
40
	$Nav->addCustomNav("CVS", 		"http://dev.eclipse.org/viewcvs/index.cgi/?cvsroot=WebTools_Project", 		"_self", 2);
40
	$Nav->addCustomNav("Status Telecons", 		"/webtools/development/status-telecons/main.php", 		"_self", 2);
41
	$Nav->addCustomNav("Status Telecons", 		"/webtools/development/status-telecons/main.php", 		"_self", 2);
41
	$Nav->addCustomNav("Documents", 		"/webtools/development/main.html", 		"_self", 2);
42
	$Nav->addCustomNav("Documents", 		"/webtools/development/main.php", 		"_self", 2);
42
	$Nav->addCustomNav("Committers/Contributors", 		"/webtools/people/contributors.html", 		"_self", 2);
43
	$Nav->addCustomNav("Committers/Contributors", 		"/webtools/people/contributors.html", 		"_self", 2);
43
	$Nav->addCustomNav("FAQ", 				"/webtools/faq/main.html", 			"_self", 1);
44
	$Nav->addCustomNav("FAQ", 				"/webtools/faq/main.html", 			"_self", 1);
44
	$Nav->addCustomNav("Newsgroup", 	"/newsgroups/main.html#wtp", 		"_self", 1);
45
	$Nav->addCustomNav("Newsgroup", 	"/newsgroups/main.html#wtp", 		"_self", 1);
(-)main.php (-1 / +1 lines)
Lines 105-111 Link Here
105
					<td>
105
					<td>
106
					<p>
106
					<p>
107
					$wtpoverview
107
					$wtpoverview
108
					<br /> <a href="about.html">more about wtp &raquo;</a>
108
					<br /> <a href="about.php">more about wtp &raquo;</a>
109
 					</p>
109
 					</p>
110
					</td>
110
					</td>
111
					<td>
111
					<td>
(-)wtpphoenix.xsl (-2 / +3 lines)
Lines 14-21 Link Here
14
					<h1>
14
					<h1>
15
						<xsl:value-of select="." />
15
						<xsl:value-of select="." />
16
					</h1>
16
					</h1>
17
					<br />
17
					<div class="wtpsubtitle">
18
					<xsl:value-of select="/html/head/title" />
18
						<xsl:value-of select="/html/head/title" />
19
					</div>
19
				</td>
20
				</td>
20
				<td>
21
				<td>
21
					<img src="/webtools/images/wtplogosmall.jpg"
22
					<img src="/webtools/images/wtplogosmall.jpg"
(-)wtpphoenix.css (+5 lines)
Lines 20-22 Link Here
20
	margin-left: 20px;
20
	margin-left: 20px;
21
	padding: 0px;
21
	padding: 0px;
22
}
22
}
23
24
div.wtpsubtitle {
25
	color: #336;
26
	font-weight: bold;
27
}
(-)wtpphoenixpage.xsl (+120 lines)
Added Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
3
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
	version="1.0">
5
6
	<xsl:template match="/sections">
7
		<div id="maincontent">
8
			<div id="midcolumn">
9
				<table>
10
					<tr>
11
						<td width="60%">
12
							<h1>
13
								<xsl:value-of select="@title" />
14
							</h1>
15
							<div class="wtpsubtitle">
16
								<xsl:value-of select="@subtitle" />
17
							</div>
18
						</td>
19
						<td>
20
							<img src="/webtools/images/wtplogosmall.jpg"
21
								align="middle" height="129" hspace="50" width="207" />
22
						</td>
23
					</tr>
24
				</table>
25
				<xsl:apply-templates select="section[@class='main']"
26
					mode="main" />
27
			</div>
28
			<div id="rightcolumn">
29
				<xsl:apply-templates select="section[@class='infobox']"
30
					mode="infobox" />
31
			</div>
32
		</div>
33
	</xsl:template>
34
35
	<xsl:template match="section" mode="main">
36
		<div class="homeitem3col">
37
			<h3>
38
				<xsl:value-of select="@name" />
39
			</h3>
40
			<xsl:apply-templates select="description" mode="body" />
41
			<ul>
42
				<xsl:apply-templates />
43
			</ul>
44
		</div>
45
	</xsl:template>
46
47
	<xsl:template match="section" mode="infobox">
48
		<div class="sideitem">
49
			<h6>
50
				<xsl:value-of select="@name" />
51
			</h6>
52
			<xsl:apply-templates select="description" mode="body" />
53
			<ul>
54
				<xsl:apply-templates />
55
			</ul>
56
		</div>
57
	</xsl:template>
58
59
	<xsl:template match="section">
60
		<li>
61
			<xsl:if test="@name and @link">
62
				<a>
63
					<xsl:attribute name="href">
64
						<xsl:value-of select="@link" />
65
					</xsl:attribute>
66
					<xsl:value-of select="@name" />
67
				</a>
68
				<br />
69
			</xsl:if>
70
			<xsl:apply-templates mode="body" />
71
		</li>
72
	</xsl:template>
73
74
	<xsl:template match="item">
75
		<xsl:choose>
76
			<xsl:when test="@link and @title">
77
				<li>
78
					<a>
79
						<xsl:attribute name="href">
80
							<xsl:value-of select="@link" />
81
						</xsl:attribute>
82
						<xsl:value-of select="@title" />
83
					</a>
84
					<xsl:if test="*|text()">
85
						<br />
86
						<xsl:apply-templates mode="body" />
87
					</xsl:if>
88
				</li>
89
			</xsl:when>
90
			<xsl:otherwise>
91
				<xsl:if test="@title">
92
					<br />
93
					<b>
94
						<xsl:value-of select="@title" />
95
					</b>
96
				</xsl:if>
97
				<xsl:if test="*|text()">
98
					<li>
99
						<xsl:apply-templates mode="body" />
100
					</li>
101
				</xsl:if>
102
			</xsl:otherwise>
103
		</xsl:choose>
104
	</xsl:template>
105
106
	<xsl:template match="description" mode="body">
107
		<p>
108
			<xsl:apply-templates mode="body" />
109
		</p>
110
	</xsl:template>
111
112
	<xsl:template match="*|@*|text()" mode="body">
113
		<xsl:copy>
114
			<xsl:apply-templates select="*|@*|text()" mode="body" />
115
		</xsl:copy>
116
	</xsl:template>
117
118
	<xsl:template match="*|@*|text()" />
119
120
</xsl:stylesheet>
(-)development/main.php (+29 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("/sections/attribute::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/wtpphoenixpage.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
$maincontent
27
EOHTML;
28
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
29
?>
(-)phoenix/page.xml (+86 lines)
Added Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<sections title="Template for Phoenix style main page"
3
	subtitle="subtitle goes here">
4
	<section class="infobox" name="Right side infobox">
5
		<item title="title and link" link="http://www.eclipse.org/ ">
6
			Descriptive content under the link.
7
		</item>
8
		<item title="item 2" link="http://www.eclipse.org/" />
9
		<item>
10
			<a href="http://download.eclipse.org/">Item content only</a>
11
		</item>
12
	</section>
13
	<section class="infobox" name="Box two">
14
		<description>Optional description for this box</description>
15
		<item title="title and link no content"
16
			link="http://www.eclipse.org/" />
17
		<item title="Item two" link="http://www.eclipse.org/" />
18
		<item title="Title only is a subheader" />
19
		<item>
20
			<a href="http://www.eclipse.org/">href</a>
21
			and some descriptive text in the same item.
22
		</item>
23
		<item>
24
			<a href="http://www.eclipse.org/">Another</a>
25
			Item
26
		</item>
27
		<item title="Subheader 2" />
28
		<item>
29
			<a href="http://ws.apache.org/axis/">Axis</a>
30
		</item>
31
		<item>
32
			<a href="http://www.eclipse.org/">Eclipse</a>
33
		</item>
34
	</section>
35
36
	<section class="main" name="Main section one">
37
		<description>
38
			Optional description - Lorem ipsum dolor sit amet,
39
			consectetuer adipiscing elit. Etiam at ante. Phasellus non
40
			augue. Sed aliquet sagittis massa. Morbi varius nulla vel
41
			quam interdum hendrerit. Etiam vel felis. Integer ultrices
42
			tincidunt mi.
43
		</description>
44
		<section name="Name and link attributes"
45
			link="http://www.eclipse.org">
46
			Nullam convallis nunc eu purus congue lobortis. Donec eget
47
			elit et enim interdum sodales. Praesent venenatis enim ac
48
			ante. Nulla a risus. Nulla sit amet enim vel ipsum sodales
49
			iaculis. Fusce pharetra sapien vitae pede. Suspendisse
50
			potenti.
51
		</section>
52
		<section name="Duis id justo" link="http://www.eclipse.org">
53
			Vivamus
54
			<a href="http://www.eclipse.org">luctus</a>
55
			tellus in velit. Pellentesque ut
56
			<a href="http://www.eclipse.org">dui</a>
57
			. Aliquam malesuada augue vel lorem.
58
		</section>
59
		<section name="Integer in velit"
60
			link="http://www.eclipse.org">
61
			Nam dignissim. Etiam aliquet, orci sed imperdiet fermentum ,
62
			massa neque venenatis tellus, at fringilla elit massa a
63
			nisl. Integer et arcu vitae diam tincidunt interdum. Sed
64
			tristique erat sed odio. Integer vel pede vitae orci porta
65
			iaculis. Nulla diam magna, iaculis in, vestibulum vel,
66
			mollis a, mauris.
67
		</section>
68
	</section>
69
	<section class="main" name="Section two">
70
		<section>
71
			<a href="www.eclipse.org/">Eclipse</a>
72
			- section with no title or link attribute just html content
73
			including an html link.
74
		</section>
75
		<section>
76
			Just content, no link. Pellentesque cursus est a magna.
77
			Aenean bibendum magna sit amet enim. Donec accumsan. Duis a
78
			urna. Aliquam vel diam eget nulla tempor viverra. Aliquam
79
			lobortis, pede ut dapibus scelerisque, sem leo auctor erat,
80
			eu malesuada magna magna et dolor. Donec lorem. Morbi
81
			vulputate tellus eget ligula. Aliquam quis felis quis massa
82
			faucibus dapibus. Quisque a arcu. Nullam est sem, adipiscing
83
			vitae, interdum sed, accumsan ut, elit. In sed neque.
84
		</section>
85
	</section>
86
</sections>
(-)phoenix/page.php (+29 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('page.xml');
11
12
//Set the page title
13
$xpath = new DOMXPath($xml);
14
$titleNode = $xpath->query("/sections/attribute::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/wtpphoenixpage.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
$maincontent
27
EOHTML;
28
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
29
?>
(-)about.php (+29 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('about.xml');
11
12
//Set the page title
13
$xpath = new DOMXPath($xml);
14
$titleNode = $xpath->query("/sections/attribute::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/wtpphoenixpage.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
$maincontent
27
EOHTML;
28
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
29
?>

Return to bug 129098