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 (-20 / +23 lines)
Lines 6-43 Link Here
6
	# Optional: defaults to system theme 
6
	# Optional: defaults to system theme 
7
	# miasma
7
	# miasma
8
	$theme = "Phoenix";
8
	$theme = "Phoenix";
9
9
	$App->AddExtraHtmlHeader("<link rel=\"stylesheet\" type=\"text/css\" href=\"/webtools/wtpphoenix.css\">\n");
10
	
10
	# Define your project-wide Nav bars here.
11
	# Define your project-wide Nav bars here.
11
	# 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)
12
	# these are optional
13
	# these are optional
13
	$Nav->addNavSeparator("WTP Home", 	"index.php");
14
	$Nav->addNavSeparator("WTP Home", 	"/webtools/index1.php");
14
	$Nav->addCustomNav("Subprojects", "", "_self", 1);
15
	$Nav->addCustomNav("Subprojects", "", "_self", 1);
15
	$Nav->addCustomNav("WST", 	"wst/main.html", 		"_self", 2);
16
	$Nav->addCustomNav("WST", 	"/webtools/wst/main.php", 		"_self", 2);
16
	$Nav->addCustomNav("JST", 	"jst/main.html", 		"_self", 2);
17
	$Nav->addCustomNav("JST", 	"/webtools/jst/main.php", 		"_self", 2);
17
	$Nav->addCustomNav("JSF", 	"jsf/index.html", 		"_self", 2);
18
	$Nav->addCustomNav("ATF", 	"/webtools/atf/main.php", 		"_self", 2);
19
	$Nav->addCustomNav("Dali", 	"/webtools/dali/main.php", 		"_self", 2);
20
	$Nav->addCustomNav("JSF", 	"/webtools/jsf/main.php", 		"_self", 2);
18
	$Nav->addCustomNav("Documentation", 		"http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.user/topics/overview.html", 	"_self", 1);
21
	$Nav->addCustomNav("Documentation", 		"http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.user/topics/overview.html", 	"_self", 1);
19
	$Nav->addCustomNav("User Documentation", 		"http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.user/topics/overview.html", 	"_self", 2);
22
	$Nav->addCustomNav("User Documentation", 		"http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.user/topics/overview.html", 	"_self", 2);
20
	$Nav->addCustomNav("WST ISV Documentation", 		"http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.isv/html/plugin_descriptions_WST/wst.html", 	"_self", 2);
23
	$Nav->addCustomNav("WST ISV Documentation", 		"http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.isv/html/plugin_descriptions_WST/wst.html", 	"_self", 2);
21
	$Nav->addCustomNav("JST ISV Documentation", 		"http://help.eclipse.org/help31/topic/org.eclipse.jst.doc.isv/html/plugin_descriptions_JST/jst.html", 	"_self", 2);
24
	$Nav->addCustomNav("JST ISV Documentation", 		"http://help.eclipse.org/help31/topic/org.eclipse.jst.doc.isv/html/plugin_descriptions_JST/jst.html", 	"_self", 2);
22
	$Nav->addCustomNav("Downloads", 		"http://download.eclipse.org/webtools/downloads/", 	"_self", 1);
25
	$Nav->addCustomNav("Downloads", 		"http://download.eclipse.org/webtools/downloads/", 	"_self", 1);
23
	$Nav->addCustomNav("Community", 	"community/community.html", 		"_self", 1);
26
	$Nav->addCustomNav("Community", 	"/webtools/community/community.html", 		"_self", 1);
24
	$Nav->addCustomNav("Articles", 	"community/communityresources.html#articles", 		"_self", 2);
27
	$Nav->addCustomNav("Articles", 	"/webtools/community/communityresources.html#articles", 		"_self", 2);
25
	$Nav->addCustomNav("Books", 	"community/communityresources.html#books", 		"_self", 2);
28
	$Nav->addCustomNav("Books", 	"/webtools/community/communityresources.html#books", 		"_self", 2);
26
	$Nav->addCustomNav("Presentation Archive", 	"community/presentations.html", 		"_self", 2);
29
	$Nav->addCustomNav("Presentation Archive", 	"/webtools/community/presentations.html", 		"_self", 2);
27
	$Nav->addCustomNav("Tutorials", 	"community/communityresources.html#tutorials", 		"_self", 2);
30
	$Nav->addCustomNav("Tutorials", 	"/webtools/community/communityresources.html#tutorials", 		"_self", 2);
28
	$Nav->addCustomNav("Upcoming Presentations", 	"community/community.html", 		"_self", 2);
31
	$Nav->addCustomNav("Upcoming Presentations", 	"/webtools/community/community.html", 		"_self", 2);
29
	$Nav->addCustomNav("White Papers", 	"community/communityresources.html#whitepapers", 		"_self", 2);
32
	$Nav->addCustomNav("White Papers", 	"/webtools/community/communityresources.html#whitepapers", 		"_self", 2);
30
	$Nav->addCustomNav("Milestone Specific Resources", 	"community/milestonespecificresources.html", 		"_self", 2);
33
	$Nav->addCustomNav("Milestone Specific Resources", 	"/webtools/community/milestonespecificresources.html", 		"_self", 2);
31
	#$Nav->addCustomNav("Installation", 		"install.php", 		"_self", 1);
34
	#$Nav->addCustomNav("Installation", 		"install.php", 		"_self", 1);
32
	$Nav->addCustomNav("Adopters", 		"adopters/", 		"_self", 1);
35
	$Nav->addCustomNav("Adopters", 		"/webtools/adopters/main.php", 		"_self", 1);
33
	$Nav->addCustomNav("Development", 		"development/main.html", 		"_self", 1);
36
	$Nav->addCustomNav("Development", 		"/webtools/development/main.html", 		"_self", 1);
34
	#$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);
35
	$Nav->addCustomNav("Bug Reports", 		"development/bugs/bugs.html", 		"_self", 2);
38
	$Nav->addCustomNav("Bug Reports", 		"/webtools/development/bugs/bugs.php", 		"_self", 2);
36
	$Nav->addCustomNav("CVS", 		"http://dev.eclipse.org/viewcvs/index.cgi/?cvsroot=WebTools_Project", 		"_self", 2);
39
	$Nav->addCustomNav("CVS", 		"http://dev.eclipse.org/viewcvs/index.cgi/?cvsroot=WebTools_Project", 		"_self", 2);
37
	$Nav->addCustomNav("Status Telecons", 		"development/status-telecons/index.html", 		"_self", 2);
40
	$Nav->addCustomNav("Status Telecons", 		"/webtools/development/status-telecons/main.php", 		"_self", 2);
38
	$Nav->addCustomNav("Documents", 		"development/main.html", 		"_self", 2);
41
	$Nav->addCustomNav("Documents", 		"/webtools/development/main.html", 		"_self", 2);
39
	$Nav->addCustomNav("Committers/Contributors", 		"people/contributors.html", 		"_self", 2);
42
	$Nav->addCustomNav("Committers/Contributors", 		"/webtools/people/contributors.html", 		"_self", 2);
40
	$Nav->addCustomNav("FAQ", 				"faq/main.html", 			"_self", 1);
43
	$Nav->addCustomNav("FAQ", 				"/webtools/faq/main.html", 			"_self", 1);
41
	$Nav->addCustomNav("Newsgroup", 	"/newsgroups/main.html#wtp", 		"_self", 1);
44
	$Nav->addCustomNav("Newsgroup", 	"/newsgroups/main.html#wtp", 		"_self", 1);
42
45
43
?>
46
?>
(-)main.php (-43 / +147 lines)
Lines 1-30 Link Here
1
<?php                                                                                                               
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
require_once ($_SERVER['DOCUMENT_ROOT']."/eclipse.org-common/system/app.class.php"); 
2
3
require_once ($_SERVER['DOCUMENT_ROOT']."/eclipse.org-common/system/nav.class.php"); 
4
require_once ($_SERVER['DOCUMENT_ROOT']."/eclipse.org-common/system/menu.class.php"); 
5
require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/common/project-info.class.php");
6
$App = new App(); $Nav = new Nav(); $Menu = new Menu(); 
7
$projectInfo = new ProjectInfo("webtools");
8
$projectInfo->generate_common_nav( $Nav );
9
include ($App->getProjectCommon()); 
10
	#*****************************************************************************
3
	#*****************************************************************************
11
	#
4
	#
12
	# index.php
5
	# template.php
13
	#
6
	#
14
	# Author: 		Tim A. Wagner
7
	# Author: 		Bob Fraser
15
	# Date:			2005-12-15
8
	# Date:			2007-01-10
16
	#
9
	#
17
	# Description: 
10
	# Description: Type your page comments here - these are not sent to the browser
18
	#
11
	#
19
	#
12
	#
20
	#****************************************************************************
13
	#****************************************************************************
21
	
14
22
	#
15
	#
23
	# Begin: page-specific settings.  Change these. 
16
	# Begin: page-specific settings.  Change these. 
24
	$pageTitle 		= "WTP Homepage";
17
	$pageTitle 		= "Web Tools Platform (WTP) Project";
25
	$pageKeywords	= "web,J2EE,applications";
18
	$pageKeywords	= "web,J2EE";
26
	$pageAuthor		= "Tim A. Wagner";
19
	$pageAuthor		= "Bob Fraser";
20
21
	$root = $_SERVER['DOCUMENT_ROOT'];
22
	// Import the functions that render news.
23
	// require_once ($root . '/webtools/news.php');
24
	// Import common WTP functions.
25
	require_once ($root . '/webtools/common.php');
26
	require_once ($root . '/community/news/scripts/news.php');
27
28
	function getWTPNews($rssfile, $rssurl, $count) 
29
	{
30
		$rss = get_news($rssfile);
31
		$html = "";
32
//		if($rss->channel == "")
33
//		{
34
//		  return "empty";
35
//		}
36
//		return $rss;
37
		foreach ($rss->channel as $channel) 
38
		{
39
			$html .= "<h6>";
40
		
41
			// Add the RSS image on the right
42
			$html .= "<a href=\"$rssurl\"><img src=\"/images/rss.gif\" align=\"right\" alt=\"More...\" /></a>";
43
		
44
			// Add the title of the channel 
45
			$html .= "WTP News";	
46
			// If we're displaying short format, provide a link to
47
			// show news in long format.
48
			$html .= "&nbsp;<a href=\"/webtools/news.html\"><img src=\"/images/more.gif\" title=\"More...\" alt=\"More...\" /></a>";
49
50
			$html .= "</h6>";
51
		
52
//		$description = $channel->description;
53
//		if (strlen($description) > 0) {
54
//			$html .= $description;
55
//			}
56
			$html .= "<ul class=\"midlist\">";
57
58
			foreach ($channel->item as $item) 
59
			{
60
				if ($count == 0) break;
61
				$html .= "<li>";
62
				$date = date("d&#8209;m&#8209;Y", $item->pubDate);
63
				$html .= "<a href=\"$item->link\" target=\"_blank\">$item->title</a> posted&nbsp;$date<br/>";
64
				$html .= $item->description;
65
				$html .= "</li>";
66
				$count--;
67
				if($count != 0)
68
				{
69
					$html .= "<br/>";
70
				}
71
			}
72
73
			$html .= "</ul>";
74
		}
75
		return $html;
76
	}
77
	// Generate the HTML content for the news based on the rss files
78
	// that appear in the root directory.
79
	$rssurl = "/webtools/wtpnews.rss";
80
	$wtpnews = getWTPNews($root . $rssurl, $rssurl, 5);//xml_to_html("news", "news-rss20", "long", "5");
27
	
81
	
82
	// Get the project descriptions
83
	$wtpoverview = read_file('project-info/description.html');
84
	$wstoverview = read_file('project-info/wst-description.html');
85
	$jstoverview = read_file('project-info/jst-description.html');
86
	$atfoverview = read_file('project-info/atf-description.html');
87
	$dalioverview = read_file('project-info/dali-description.html');
88
	$jsfoverview = read_file('project-info/jsf-description.html');
28
	# Add page-specific Nav bars here
89
	# Add page-specific Nav bars here
29
	# Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
90
	# Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
30
	# $Nav->addNavSeparator("My Page Links", 	"downloads.php");
91
	# $Nav->addNavSeparator("My Page Links", 	"downloads.php");
Lines 33-70 Link Here
33
94
34
	# End: page-specific settings
95
	# End: page-specific settings
35
	#
96
	#
36
		
97
37
	# Paste your HTML content between the EOHTML markers!	
98
	# Paste your HTML content between the EOHTML markers!	
38
	$html = <<<EOHTML
99
	$html = <<<EOHTML
39
100
40
<div id="maincontent">
101
<div id="maincontent">
41
	<div id="midcolumn"><br/>
102
	<div id="midcolumn">
42
		<table border="0" cellpadding="2" cellspacing="0" width="100%">
103
		<h1>$pageTitle</h1>
43
		<tbody>
104
			<table>
44
			<tr>
105
				<tr>
45
				<td align="left"><h1>$pageTitle</h1>
106
					<td>
46
				<h2>Coming soon...</h2><br></td>
107
					<p>
47
				<td align="right"><img align="right" src="http://www.eclipse.org/gmf/images/logo_banner.png" /></td>
108
					$wtpoverview
48
			</tr>
109
					<br /> <a href="about.html">more about wtp &raquo;</a>
49
		</tbody>
110
 					</p>
50
	</table>
111
					</td>
51
	<hr/>
112
					<td>
52
	<h4>UML2 Class Diagram</h4>
113
					<img src="/webtools/images/wtplogosmall.jpg" align="middle" height="129" hspace="50" width="207" />
53
		<a href="uml2.png" target="_blank"><img height="384" width="512" src="uml2.png"/></a>
114
					</td>
54
		<br/>
115
				</tr>
55
		<h4>ECore Diagram</h4>
116
			</table>
56
		<a href="ecore.png" target="_blank">
117
		<div class="homeitem3col">
57
		<img height="384" width="512" src="ecore.png"/></a>
118
			<h3>Subprojects</h3>
58
		<br/>
119
			<ul>
59
		<h4>Eclipse Feature/Plugin Diagram</h4>
120
				<li>
60
		<a href="pde.png" target="_blank">
121
					<b>Web Standard Tools (WST)</b>&nbsp;<a href="wst/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a>
61
		<img height="384" width="512" src="pde.png"/></a>
122
					<br/>
62
		<br/>
123
					$wstoverview
124
					<br /> <a href="wst/main.php">more about wst &raquo;</a>
125
    			</li>
126
    			<li>
127
    				<b>J2EE Standard Tools (JST)</b>&nbsp;<a href="jst/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a>
128
					<br/>
129
					$jstoverview
130
					<br /> <a href="jst/main.php">more about jst &raquo;</a>
131
    			</li>
132
   				<li>
133
					<b>AJAX Toolkit Framework (ATF) - incubating</b>&nbsp;<a href="atf/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a>
134
					<br/>
135
					$atfoverview
136
					<br /> <a href="atf/main.php">more about atf &raquo;</a>
137
    			</li>
138
   				<li>
139
					<b>Dali JPA Tools - incubating</b>&nbsp;<a href="dali/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a>
140
					<br/>
141
					$dalioverview
142
					<br /> <a href="dali/main.php">more about dali &raquo;</a>
143
    			</li>
144
    			<li>
145
					<b>JavaServer Faces Tools (JSF) - incubating</b>&nbsp;<a href="jsf/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a>
146
					<br/>
147
					$jsfoverview
148
					<br /> <a href="jsf/main.php">more about jsf &raquo;</a>
149
    			</li>
150
    		</ul>
151
		</div>
152
		<p></p>
153
		<p></p>
154
	</div>
155
	<div id="rightcolumn">
156
		<div class="sideitem">
157
			<h6>Discover WTP</h6>
158
			<ul>
159
				<li><a href="http://download.eclipse.org/webtools/downloads/">Download</a></li>
160
				<li><a href="community/communityresources.html#tutorials">Tutorials</a></li>
161
				<li><a href="community/communityresources.html#articles">Articles</a></li>
162
				<li><a href="community/community.html">Upcoming Presentations</a></li>
163
				<li><a href="faq/main.html">FAQ</a></li>
164
				<li><a href="/newsgroups/main.html#wtp">Newsgroup</a></li>
165
			</ul>
166
		</div>
167
		<div class="sideitem">
168
			$wtpnews
169
		</div>
63
	</div>
170
	</div>
64
65
</div>
171
</div>
66
67
68
EOHTML;
172
EOHTML;
69
173
70
174
(-)phoenix/main.php (-65 / +25 lines)
Lines 1-73 Link Here
1
<?php                                                                                                               
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
require_once ($_SERVER['DOCUMENT_ROOT']."/eclipse.org-common/system/app.class.php"); 
2
$pageTitle 		= "Template page for Phoenix style WTP page";
3
require_once ($_SERVER['DOCUMENT_ROOT']."/eclipse.org-common/system/nav.class.php"); 
3
$pageKeywords	= "";
4
require_once ($_SERVER['DOCUMENT_ROOT']."/eclipse.org-common/system/menu.class.php"); 
4
$pageAuthor		= "Bob Fraser";
5
require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/common/project-info.class.php");
5
6
$App = new App(); $Nav = new Nav(); $Menu = new Menu(); 
6
$root = $_SERVER['DOCUMENT_ROOT'];
7
$projectInfo = new ProjectInfo("webtools");
7
require_once ($root . '/webtools/common.php');
8
$projectInfo->generate_common_nav( $Nav );
8
9
include ($App->getProjectCommon()); 
9
# Generate the web page
10
	#*****************************************************************************
10
// Load the XML source
11
	#
11
$xml = DOMDocument::load('main.xml');
12
	# index.php
12
13
	#
13
// Load the XSL source
14
	# Author: 		Tim A. Wagner
14
$xsl = DOMDocument::load($root . '/webtools/wtpphoenix.xsl');
15
	# Date:			2005-12-15
15
16
	#
16
// Configure the transformer
17
	# Description: 
17
$proc = new XSLTProcessor;
18
	#
18
$proc->importStyleSheet($xsl); // attach the xsl rules
19
	#
20
	#****************************************************************************
21
	
22
	#
23
	# Begin: page-specific settings.  Change these. 
24
	$pageTitle 		= "WTP Homepage";
25
	$pageKeywords	= "web,J2EE,applications";
26
	$pageAuthor		= "Tim A. Wagner";
27
	
28
	# Add page-specific Nav bars here
29
	# Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
30
	# $Nav->addNavSeparator("My Page Links", 	"downloads.php");
31
	# $Nav->addCustomNav("My Link", "mypage.php", "_self", 3);
32
	# $Nav->addCustomNav("Google", "http://www.google.com/", "_blank", 3);
33
34
	# End: page-specific settings
35
	#
36
		
37
	# Paste your HTML content between the EOHTML markers!	
38
	$html = <<<EOHTML
39
19
20
$maincontent = $proc->transformToXML($xml);
21
$html = <<<EOHTML
40
<div id="maincontent">
22
<div id="maincontent">
41
	<div id="midcolumn"><br/>
23
	<div id="midcolumn">
42
		<table border="0" cellpadding="2" cellspacing="0" width="100%">
24
		<p>
43
		<tbody>
25
		$maincontent
44
			<tr>
26
		</p>
45
				<td align="left"><h1>$pageTitle</h1>
46
				<h2>Coming soon...</h2><br></td>
47
				<td align="right"><img align="right" src="http://www.eclipse.org/gmf/images/logo_banner.png" /></td>
48
			</tr>
49
		</tbody>
50
	</table>
51
	<hr/>
52
	<h4>UML2 Class Diagram</h4>
53
		<a href="uml2.png" target="_blank"><img height="384" width="512" src="uml2.png"/></a>
54
		<br/>
55
		<h4>ECore Diagram</h4>
56
		<a href="ecore.png" target="_blank">
57
		<img height="384" width="512" src="ecore.png"/></a>
58
		<br/>
59
		<h4>Eclipse Feature/Plugin Diagram</h4>
60
		<a href="pde.png" target="_blank">
61
		<img height="384" width="512" src="pde.png"/></a>
62
		<br/>
63
	</div>
27
	</div>
64
65
</div>
28
</div>
66
29
67
30
68
EOHTML;
31
EOHTML;
69
32
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
70
71
	# Generate the web page
72
	$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
73
?>
33
?>
(-)phoenix/_projectCommon.php (-43 lines)
Removed Link Here
1
<?php
2
3
	# Set the theme for your project's web pages.
4
	# See the Committer Tools "How Do I" for list of themes
5
	# https://dev.eclipse.org/committers/
6
	# Optional: defaults to system theme 
7
	# miasma
8
	$theme = "Phoenix";
9
10
	# Define your project-wide Nav bars here.
11
	# Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
12
	# these are optional
13
	$Nav->addNavSeparator("WTP Home", 	"index.php");
14
	$Nav->addCustomNav("Subprojects", "", "_self", 1);
15
	$Nav->addCustomNav("WST", 	"wst/main.html", 		"_self", 2);
16
	$Nav->addCustomNav("JST", 	"jst/main.html", 		"_self", 2);
17
	$Nav->addCustomNav("JSF", 	"jsf/index.html", 		"_self", 2);
18
	$Nav->addCustomNav("Documentation", 		"http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.user/topics/overview.html", 	"_self", 1);
19
	$Nav->addCustomNav("User Documentation", 		"http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.user/topics/overview.html", 	"_self", 2);
20
	$Nav->addCustomNav("WST ISV Documentation", 		"http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.isv/html/plugin_descriptions_WST/wst.html", 	"_self", 2);
21
	$Nav->addCustomNav("JST ISV Documentation", 		"http://help.eclipse.org/help31/topic/org.eclipse.jst.doc.isv/html/plugin_descriptions_JST/jst.html", 	"_self", 2);
22
	$Nav->addCustomNav("Downloads", 		"http://download.eclipse.org/webtools/downloads/", 	"_self", 1);
23
	$Nav->addCustomNav("Community", 	"community/community.html", 		"_self", 1);
24
	$Nav->addCustomNav("Articles", 	"community/communityresources.html#articles", 		"_self", 2);
25
	$Nav->addCustomNav("Books", 	"community/communityresources.html#books", 		"_self", 2);
26
	$Nav->addCustomNav("Presentation Archive", 	"community/presentations.html", 		"_self", 2);
27
	$Nav->addCustomNav("Tutorials", 	"community/communityresources.html#tutorials", 		"_self", 2);
28
	$Nav->addCustomNav("Upcoming Presentations", 	"community/community.html", 		"_self", 2);
29
	$Nav->addCustomNav("White Papers", 	"community/communityresources.html#whitepapers", 		"_self", 2);
30
	$Nav->addCustomNav("Milestone Specific Resources", 	"community/milestonespecificresources.html", 		"_self", 2);
31
	#$Nav->addCustomNav("Installation", 		"install.php", 		"_self", 1);
32
	$Nav->addCustomNav("Adopters", 		"adopters/", 		"_self", 1);
33
	$Nav->addCustomNav("Development", 		"development/main.html", 		"_self", 1);
34
	#$Nav->addCustomNav("Help Wanted", 		"plans/1.5/reports/help-wanted.html", 		"_self", 2);
35
	$Nav->addCustomNav("Bug Reports", 		"development/bugs/bugs.html", 		"_self", 2);
36
	$Nav->addCustomNav("CVS", 		"http://dev.eclipse.org/viewcvs/index.cgi/?cvsroot=WebTools_Project", 		"_self", 2);
37
	$Nav->addCustomNav("Status Telecons", 		"development/status-telecons/index.html", 		"_self", 2);
38
	$Nav->addCustomNav("Documents", 		"development/main.html", 		"_self", 2);
39
	$Nav->addCustomNav("Committers/Contributors", 		"people/contributors.html", 		"_self", 2);
40
	$Nav->addCustomNav("FAQ", 				"faq/main.html", 			"_self", 1);
41
	$Nav->addCustomNav("Newsgroup", 	"/newsgroups/main.html#wtp", 		"_self", 1);
42
43
?>
(-)wtpphoenix.xsl (+47 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="html">
7
		<xsl:apply-templates select="body/h1" mode="banner" />
8
		<xsl:apply-templates select="body/*" />
9
	</xsl:template>
10
	<xsl:template match="h1" mode="banner">
11
		<table>
12
			<tr>
13
				<td width="60%">
14
					<h1>
15
						<xsl:value-of select="." />
16
					</h1>
17
					<br />
18
					<xsl:value-of select="/html/head/title" />
19
				</td>
20
				<td>
21
					<img src="/webtools/images/wtplogosmall.jpg"
22
						align="middle" height="129" hspace="50" width="207" />
23
				</td>
24
			</tr>
25
		</table>
26
	</xsl:template>
27
28
	<xsl:template match="h1" />
29
30
	<xsl:template match="h2">
31
		<h2 class="bar">
32
			<xsl:value-of select="." />
33
		</h2>
34
	</xsl:template>
35
36
	<xsl:template match="ul">
37
		<ul class="indent">
38
			<xsl:apply-templates />
39
		</ul>
40
	</xsl:template>
41
42
	<xsl:template match="*|@*|text()">
43
		<xsl:copy>
44
			<xsl:apply-templates select="*|@*|text()" />
45
		</xsl:copy>
46
	</xsl:template>
47
</xsl:stylesheet>
(-)phoenix/main.xml (+69 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<?xml-stylesheet type="text/xsl" href="../wtp.xsl"?>
3
<html>
4
	<head>
5
		<meta name="root" content="../.." />
6
		<title>Template page for Phoenix style WTP page</title>
7
	</head>
8
	<body>
9
		<h1>First h1 gives banner and logo</h1>
10
11
		<h2>h2 gives purple bar</h2>
12
		<p>
13
			Nunc iaculis arcu vel mi. Aliquam mi libero, mattis
14
			sagittis, accumsan eget, placerat a, ante. Nulla ac justo
15
			quis nibh molestie suscipit. Etiam odio nulla, venenatis
16
			sed, venenatis ornare, suscipit ut, sem. Aenean mauris.
17
			Etiam at mauris. Phasellus nec est dictum neque vestibulum
18
			elementum. Aliquam sed enim. Etiam sed lacus ac diam auctor
19
			bibendum. Nulla quis eros. Phasellus vel erat ut eros
20
			commodo nonummy. Nunc blandit mauris sed dolor. Donec dui.
21
			Nullam sollicitudin tortor sit amet neque. Duis magna sem,
22
			euismod et, volutpat id, cursus id, purus. Nulla facilisi.
23
			Mauris velit libero, adipiscing sed, ultrices ut, ultrices
24
			eget, metus. Donec ultrices.
25
		</p>
26
		<h2>Another h2</h2>
27
		<ul>
28
			<li>List element</li>
29
			<li>Another List element</li>
30
			<li>
31
				Here is another element
32
				<br />
33
				with a break and maybe we can get this to wrap qwerty
34
				qwerty qwerty qwerty qwerty qwerty qwerty qwerty qwerty
35
				qwerty qwerty qwerty qwerty qwerty qwerty qwerty qwerty
36
				qwerty qwerty qwerty qwerty qwerty
37
			</li>
38
			<ul>
39
				<li>up a level and bullet</li>
40
				<li>another bullet</li>
41
			</ul>
42
			<li>and back down a level</li>
43
		</ul>
44
		<h3>header level 3</h3>
45
		<p>
46
			Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
47
			Etiam at ante. Phasellus non augue. Sed aliquet sagittis
48
			massa. Morbi varius nulla vel quam interdum hendrerit. Etiam
49
			vel felis. Integer ultrices tincidunt mi. Class aptent
50
			taciti sociosqu ad litora torquent per conubia nostra, per
51
			inceptos hymenaeos. Praesent ultrices fermentum magna.
52
			Suspendisse tincidunt arcu a metus. Donec pharetra tempus
53
			lacus. Fusce eros tortor, tempor vitae, dictum eget,
54
			scelerisque vel, metus. Nam tellus tellus, porta quis,
55
			adipiscing quis, tempor vel, dolor.
56
		</p>
57
		<p>
58
			Integer mauris mauris, varius nec, mollis eget, rutrum sed,
59
			tortor. Nam mattis lacinia nulla. Etiam tempor mattis
60
			tortor. Mauris gravida, arcu in rhoncus iaculis, enim turpis
61
			semper lacus, tincidunt convallis ipsum lacus non pede.
62
			Class aptent taciti sociosqu ad litora torquent per conubia
63
			nostra, per inceptos hymenaeos. Pellentesque habitant morbi
64
			tristique senectus et netus et malesuada fames ac turpis
65
			egestas. Sed vestibulum dapibus mauris. Nulla pellentesque
66
			quam non ligula.
67
		</p>
68
	</body>
69
</html>
(-)wtpphoenix.css (+22 lines)
Added Link Here
1
h2.bar {
2
	background-image:
3
		url(/eclipse.org-common/themes/Phoenix/images/header_bg.gif);
4
	background-position: top left;
5
	background-repeat: repeat-x;
6
	background-color: #669;
7
	color: #fff;
8
	/*  font-size: 1.1em;  */
9
	font-size: 110%;
10
	font-weight: bold;
11
	margin-left: 0;
12
	margin-right: 4px;
13
	padding-top: 2px;
14
	padding-bottom: 2px;
15
	padding-left: 5px;
16
	padding-right: 1px;
17
}
18
19
ul.indent {
20
	margin-left: 20px;
21
	padding: 0px;
22
}

Return to bug 129098