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 56844 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]
Add a number of Phoenix style web pages
WTPPhoenixPatch3.txt (text/plain), 13.00 KB, created by
Bob Fraser
on 2007-01-12 14:18:19 EST
(
hide
)
Description:
Add a number of Phoenix style web pages
Filename:
MIME Type:
Creator:
Bob Fraser
Created:
2007-01-12 14:18:19 EST
Size:
13.00 KB
patch
obsolete
>Index: _projectCommon.php >=================================================================== >RCS file: /cvsroot/org.eclipse/www/webtools/_projectCommon.php,v >retrieving revision 1.6 >diff -u -r1.6 _projectCommon.php >--- _projectCommon.php 11 Jan 2007 13:13:18 -0000 1.6 >+++ _projectCommon.php 12 Jan 2007 18:37:09 -0000 >@@ -11,7 +11,7 @@ > # 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); >Index: main.php >=================================================================== >RCS file: /cvsroot/org.eclipse/www/webtools/main.php,v >retrieving revision 1.2 >diff -u -r1.2 main.php >--- main.php 11 Jan 2007 13:13:18 -0000 1.2 >+++ main.php 12 Jan 2007 18:37:09 -0000 >@@ -59,8 +59,8 @@ > { > if ($count == 0) break; > $html .= "<li>"; >- $date = date("d‑m‑Y", $item->pubDate); >- $html .= "<a href=\"$item->link\" target=\"_blank\">$item->title</a> posted $date<br/>"; >+ $date = $item->pubDate ? (" posted " . date("d‑m‑Y", $item->pubDate)) : ""; >+ $html .= "<a href=\"$item->link\" target=\"_blank\">$item->title</a>$date<br/>"; > $html .= $item->description; > $html .= "</li>"; > $count--; >@@ -69,7 +69,6 @@ > $html .= "<br/>"; > } > } >- > $html .= "</ul>"; > } > return $html; >Index: jst/main.php >=================================================================== >RCS file: jst/main.php >diff -N jst/main.php >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ jst/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); >+?> >Index: adopters/main.php >=================================================================== >RCS file: adopters/main.php >diff -N adopters/main.php >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ adopters/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('index.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: jsf/main.php >=================================================================== >RCS file: jsf/main.php >diff -N jsf/main.php >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ jsf/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('index.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: wst/main.php >=================================================================== >RCS file: wst/main.php >diff -N wst/main.php >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ wst/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); >+?> >Index: development/bugs/bugs.php >=================================================================== >RCS file: development/bugs/bugs.php >diff -N development/bugs/bugs.php >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ development/bugs/bugs.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('bugs.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: development/status-telecons/main.php >=================================================================== >RCS file: development/status-telecons/main.php >diff -N development/status-telecons/main.php >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ development/status-telecons/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('index.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: atf/main.php >=================================================================== >RCS file: atf/main.php >diff -N atf/main.php >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ atf/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('index.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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 129098
:
56731
|
56739
|
56792
|
56810
| 56844 |
57526
|
57527
|
58615
|
58813
|
58880
|
58906