Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 58813 Details for
Bug 129098
Convert Web Site to Phoenix Style
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Patch to implement folding navigation menus
FoldingNavmenus.txt (text/plain), 20.10 KB, created by
Bob Fraser
on 2007-02-12 19:35:13 EST
(
hide
)
Description:
Patch to implement folding navigation menus
Filename:
MIME Type:
Creator:
Bob Fraser
Created:
2007-02-12 19:35:13 EST
Size:
20.10 KB
patch
obsolete
>Index: _projectCommon.php >=================================================================== >RCS file: /cvsroot/org.eclipse/www/webtools/_projectCommon.php,v >retrieving revision 1.8 >diff -u -r1.8 _projectCommon.php >--- _projectCommon.php 25 Jan 2007 17:37:17 -0000 1.8 >+++ _projectCommon.php 13 Feb 2007 00:19:11 -0000 >@@ -1,47 +1,34 @@ > <?php > >- # Set the theme for your project's web pages. >- # See the Committer Tools "How Do I" for list of themes >- # https://dev.eclipse.org/committers/ >- # Optional: defaults to system theme >- # miasma >- $theme = "Phoenix"; >- $App->AddExtraHtmlHeader("<link rel=\"stylesheet\" type=\"text/css\" href=\"/webtools/wtpphoenix.css\">\n"); >- >- # 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/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); >- $Nav->addCustomNav("ATF", "/webtools/atf/main.php", "_self", 2); >- $Nav->addCustomNav("Dali", "/webtools/dali/main.php", "_self", 2); >- $Nav->addCustomNav("JSF", "/webtools/jsf/main.php", "_self", 2); >- $Nav->addCustomNav("Documentation", "http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.user/topics/overview.html", "_self", 1); >- $Nav->addCustomNav("User Documentation", "http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.user/topics/overview.html", "_self", 2); >- $Nav->addCustomNav("WST ISV Documentation", "http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.isv/html/plugin_descriptions_WST/wst.html", "_self", 2); >- $Nav->addCustomNav("JST ISV Documentation", "http://help.eclipse.org/help31/topic/org.eclipse.jst.doc.isv/html/plugin_descriptions_JST/jst.html", "_self", 2); >- $Nav->addCustomNav("Downloads", "http://download.eclipse.org/webtools/downloads/", "_self", 1); >- $Nav->addCustomNav("Community", "/webtools/community/community.html", "_self", 1); >- $Nav->addCustomNav("Articles", "/webtools/community/communityresources.html#articles", "_self", 2); >- $Nav->addCustomNav("Books", "/webtools/community/communityresources.html#books", "_self", 2); >- $Nav->addCustomNav("Presentation Archive", "/webtools/community/presentations.html", "_self", 2); >- $Nav->addCustomNav("Tutorials", "/webtools/community/communityresources.html#tutorials", "_self", 2); >- $Nav->addCustomNav("Upcoming Presentations", "/webtools/community/community.html", "_self", 2); >- $Nav->addCustomNav("White Papers", "/webtools/community/communityresources.html#whitepapers", "_self", 2); >- $Nav->addCustomNav("Milestone Specific Resources", "/webtools/community/milestonespecificresources.html", "_self", 2); >- #$Nav->addCustomNav("Installation", "install.php", "_self", 1); >- $Nav->addCustomNav("Adopters", "/webtools/adopters/main.php", "_self", 1); >- $Nav->addCustomNav("Development", "/webtools/development/main.php", "_self", 1); >- #$Nav->addCustomNav("Help Wanted", "plans/1.5/reports/help-wanted.html", "_self", 2); >- $Nav->addCustomNav("Project Wiki", "http://wiki.eclipse.org/index.php/Web_Tools_Project", "_self", 2); >- $Nav->addCustomNav("Bug Reports", "/webtools/development/bugs/bugs.php", "_self", 2); >- $Nav->addCustomNav("CVS", "http://dev.eclipse.org/viewcvs/index.cgi/?cvsroot=WebTools_Project", "_self", 2); >- $Nav->addCustomNav("Status Telecons", "/webtools/development/status-telecons/main.php", "_self", 2); >- $Nav->addCustomNav("Documents", "/webtools/development/main.php", "_self", 2); >- $Nav->addCustomNav("Committers/Contributors", "/webtools/people/contributors.html", "_self", 2); >- $Nav->addCustomNav("FAQ", "/webtools/faq/main.html", "_self", 1); >- $Nav->addCustomNav("Newsgroup", "/newsgroups/main.html#wtp", "_self", 1); >+# Set the theme for your project's web pages. >+# See the Committer Tools "How Do I" for list of themes >+# https://dev.eclipse.org/committers/ >+# Optional: defaults to system theme >+# miasma >+$theme = "Phoenix"; >+$App->AddExtraHtmlHeader("<link rel=\"stylesheet\" type=\"text/css\" href=\"/webtools/wtpphoenix.css\">\n"); >+ >+# 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 >+# >+# We have folding menus. Second level (anything with a ... below) has a _projectCommon.php that overrides this one. >+# It is up to you to keep all these files in sync. >+$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); >+$Nav->addCustomNav("ATF", "/webtools/atf/main.php", "_self", 2); >+$Nav->addCustomNav("Dali", "/webtools/dali/main.php", "_self", 2); >+$Nav->addCustomNav("JSF", "/webtools/jsf/main.php", "_self", 2); >+$Nav->addCustomNav("Documentation ...", "/webtools/documentation/main.php", "_self", 1); >+$Nav->addCustomNav("Downloads", "http://download.eclipse.org/webtools/downloads/", "_self", 1); >+$Nav->addCustomNav("Community ...", "/webtools/community/about.php", "_self", 1); >+#$Nav->addCustomNav("Installation", "install.php", "_self", 1); >+$Nav->addCustomNav("Adopters", "/webtools/adopters/main.php", "_self", 1); >+$Nav->addCustomNav("Project Wiki", "http://wiki.eclipse.org/index.php/Web_Tools_Project", "_self", 1); >+$Nav->addCustomNav("Development ...", "/webtools/development/main.php", "_self", 1); >+$Nav->addCustomNav("FAQ", "/webtools/faq/main.html", "_self", 1); >+$Nav->addCustomNav("Newsgroup", "/newsgroups/main.html#wtp", "_self", 1); > > ?> >Index: community/_projectCommon.php >=================================================================== >RCS file: community/_projectCommon.php >diff -N community/_projectCommon.php >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ community/_projectCommon.php 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,38 @@ >+<?php >+ >+ # Set the theme for your project's web pages. >+ # See the Committer Tools "How Do I" for list of themes >+ # https://dev.eclipse.org/committers/ >+ # Optional: defaults to system theme >+ # miasma >+ $theme = "Phoenix"; >+ $App->AddExtraHtmlHeader("<link rel=\"stylesheet\" type=\"text/css\" href=\"/webtools/wtpphoenix.css\">\n"); >+ >+ # 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/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); >+ $Nav->addCustomNav("ATF", "/webtools/atf/main.php", "_self", 2); >+ $Nav->addCustomNav("Dali", "/webtools/dali/main.php", "_self", 2); >+ $Nav->addCustomNav("JSF", "/webtools/jsf/main.php", "_self", 2); >+ $Nav->addCustomNav("Documentation ...", "/webtools/documentation/main.php", "_self", 1); >+ $Nav->addCustomNav("Downloads", "http://download.eclipse.org/webtools/downloads/", "_self", 1); >+ $Nav->addCustomNav("Community", "/webtools/community/about.php", "_self", 1); >+ $Nav->addCustomNav("Articles", "/webtools/community/communityresources.html#articles", "_self", 2); >+ $Nav->addCustomNav("Books", "/webtools/community/communityresources.html#books", "_self", 2); >+ $Nav->addCustomNav("Presentation Archive", "/webtools/community/presentations.html", "_self", 2); >+ $Nav->addCustomNav("Tutorials", "/webtools/community/communityresources.html#tutorials", "_self", 2); >+ $Nav->addCustomNav("Upcoming Presentations", "/webtools/community/community.html", "_self", 2); >+ $Nav->addCustomNav("White Papers", "/webtools/community/communityresources.html#whitepapers", "_self", 2); >+ $Nav->addCustomNav("Milestone Specific Resources", "/webtools/community/milestonespecificresources.html", "_self", 2); >+ #$Nav->addCustomNav("Installation", "install.php", "_self", 1); >+ $Nav->addCustomNav("Adopters", "/webtools/adopters/main.php", "_self", 1); >+ $Nav->addCustomNav("Project Wiki", "http://wiki.eclipse.org/index.php/Web_Tools_Project", "_self", 1); >+ $Nav->addCustomNav("Development ...", "/webtools/development/main.php", "_self", 1); >+ $Nav->addCustomNav("FAQ", "/webtools/faq/main.html", "_self", 1); >+ $Nav->addCustomNav("Newsgroup", "/newsgroups/main.html#wtp", "_self", 1); >+ >+?> >Index: documentation/main.xml >=================================================================== >RCS file: documentation/main.xml >diff -N documentation/main.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ documentation/main.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,28 @@ >+<html> >+ <body> >+ <h1>Web Tools Documentation</h1> >+ <h2>Documentation</h2> >+ <ul> >+ <li> >+ <a href="http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.user/topics/overview.html"> >+ User documentation >+ </a> >+ - Application developers start here. >+ </li> >+ <li> >+ <a >+ href="http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.isv/html/plugin_descriptions_WST/wst.html"> >+ WST ISV documentation >+ </a> >+ - Web Standard Tools Developer Guide >+ </li> >+ <li> >+ <a >+ href="http://help.eclipse.org/help31/topic/org.eclipse.jst.doc.isv/html/plugin_descriptions_JST/jst.html"> >+ JST ISV documentation >+ </a> >+ - J2EE Standard Tools Developer Guide >+ </li> >+ </ul> >+ </body> >+</html> >Index: community/about.php >=================================================================== >RCS file: community/about.php >diff -N community/about.php >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ community/about.php 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,37 @@ >+<?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('about.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> >+</div> >+ >+ >+EOHTML; >+$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); >+?> >Index: documentation/_projectCommon.php >=================================================================== >RCS file: documentation/_projectCommon.php >diff -N documentation/_projectCommon.php >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ documentation/_projectCommon.php 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,34 @@ >+<?php >+ >+ # Set the theme for your project's web pages. >+ # See the Committer Tools "How Do I" for list of themes >+ # https://dev.eclipse.org/committers/ >+ # Optional: defaults to system theme >+ # miasma >+ $theme = "Phoenix"; >+ $App->AddExtraHtmlHeader("<link rel=\"stylesheet\" type=\"text/css\" href=\"/webtools/wtpphoenix.css\">\n"); >+ >+ # 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/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); >+ $Nav->addCustomNav("ATF", "/webtools/atf/main.php", "_self", 2); >+ $Nav->addCustomNav("Dali", "/webtools/dali/main.php", "_self", 2); >+ $Nav->addCustomNav("JSF", "/webtools/jsf/main.php", "_self", 2); >+ $Nav->addCustomNav("Documentation", "/webtools/documentation/main.php", "_self", 1); >+ $Nav->addCustomNav("User Documentation", "http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.user/topics/overview.html", "_self", 2); >+ $Nav->addCustomNav("WST ISV Documentation", "http://help.eclipse.org/help31/topic/org.eclipse.wst.doc.isv/html/plugin_descriptions_WST/wst.html", "_self", 2); >+ $Nav->addCustomNav("JST ISV Documentation", "http://help.eclipse.org/help31/topic/org.eclipse.jst.doc.isv/html/plugin_descriptions_JST/jst.html", "_self", 2); >+ $Nav->addCustomNav("Downloads", "http://download.eclipse.org/webtools/downloads/", "_self", 1); >+ $Nav->addCustomNav("Community ...", "/webtools/community/about.php", "_self", 1); >+ #$Nav->addCustomNav("Installation", "install.php", "_self", 1); >+ $Nav->addCustomNav("Adopters", "/webtools/adopters/main.php", "_self", 1); >+ $Nav->addCustomNav("Project Wiki", "http://wiki.eclipse.org/index.php/Web_Tools_Project", "_self", 1); >+ $Nav->addCustomNav("Development ...", "/webtools/development/main.php", "_self", 1); >+ $Nav->addCustomNav("FAQ", "/webtools/faq/main.html", "_self", 1); >+ $Nav->addCustomNav("Newsgroup", "/newsgroups/main.html#wtp", "_self", 1); >+ >+?> >Index: community/about.xml >=================================================================== >RCS file: community/about.xml >diff -N community/about.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ community/about.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,39 @@ >+<html> >+ <head> >+ <title>Web Tools community resources</title> >+ </head> >+ <body> >+ <h1>community resources</h1> >+ <h2>Resources from around the WTP community...</h2> >+ <p> >+ The page is about finding more information about WTP from around the WTP community. The community has >+ provided many >+ <a href="communityresources.html#articles">articles</a> >+ , >+ <a href="communityresources.html#books">books</a> >+ , >+ <a href="communityresources.html#tutorials">tutorials</a> >+ , and >+ <a href="communityresources.html#white papers">white papers</a> >+ that are dedicated to WTP and can help you to make the most of the WTP platform and tools. >+ </p> >+ >+ <p> >+ WTP event information can be found on the >+ <a href="community.html">community page</a> >+ . >+ </p> >+ <p> >+ WTP presentation material can be found on the >+ <a href="presentations.html">WTP presentations archive</a> >+ . >+ </p> >+ <p> >+ We'd like these pages to be useful to you - so please open a >+ <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20Tools&component=website"> >+ bug report >+ </a> >+ for any corrections, additions, pointers, or comments! >+ </p> >+ </body> >+</html> >Index: development/_projectCommon.php >=================================================================== >RCS file: development/_projectCommon.php >diff -N development/_projectCommon.php >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ development/_projectCommon.php 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,37 @@ >+<?php >+ >+# Set the theme for your project's web pages. >+# See the Committer Tools "How Do I" for list of themes >+# https://dev.eclipse.org/committers/ >+# Optional: defaults to system theme >+# miasma >+$theme = "Phoenix"; >+$App->AddExtraHtmlHeader("<link rel=\"stylesheet\" type=\"text/css\" href=\"/webtools/wtpphoenix.css\">\n"); >+ >+# 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/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); >+$Nav->addCustomNav("ATF", "/webtools/atf/main.php", "_self", 2); >+$Nav->addCustomNav("Dali", "/webtools/dali/main.php", "_self", 2); >+$Nav->addCustomNav("JSF", "/webtools/jsf/main.php", "_self", 2); >+$Nav->addCustomNav("Documentation ...", "/webtools/documentation/main.php", "_self", 1); >+$Nav->addCustomNav("Downloads", "http://download.eclipse.org/webtools/downloads/", "_self", 1); >+$Nav->addCustomNav("Community ...", "/webtools/community/about.php", "_self", 1); >+#$Nav->addCustomNav("Installation", "install.php", "_self", 1); >+$Nav->addCustomNav("Adopters", "/webtools/adopters/main.php", "_self", 1); >+$Nav->addCustomNav("Project Wiki", "http://wiki.eclipse.org/index.php/Web_Tools_Project", "_self", 1); >+$Nav->addCustomNav("Development", "/webtools/development/main.php", "_self", 1); >+#$Nav->addCustomNav("Help Wanted", "plans/1.5/reports/help-wanted.html", "_self", 2); >+$Nav->addCustomNav("Bug Reports", "/webtools/development/bugs/bugs.php", "_self", 2); >+$Nav->addCustomNav("CVS", "http://dev.eclipse.org/viewcvs/index.cgi/?cvsroot=WebTools_Project", "_self", 2); >+$Nav->addCustomNav("Status Telecons", "/webtools/development/status-telecons/main.php", "_self", 2); >+$Nav->addCustomNav("Documents", "/webtools/development/main.php", "_self", 2); >+$Nav->addCustomNav("Committers / Contributors", "/webtools/people/contributors.html", "_self", 2); >+$Nav->addCustomNav("FAQ", "/webtools/faq/main.html", "_self", 1); >+$Nav->addCustomNav("Newsgroup", "/newsgroups/main.html#wtp", "_self", 1); >+ >+?> >Index: documentation/main.php >=================================================================== >RCS file: documentation/main.php >diff -N documentation/main.php >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ documentation/main.php 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,37 @@ >+<?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> >+</div> >+ >+ >+EOHTML; >+$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); >+?>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 129098
:
56731
|
56739
|
56792
|
56810
|
56844
|
57526
|
57527
|
58615
| 58813 |
58880
|
58906