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 56739 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]
Patch for Phoenix Style Webtools pages round 2
WTPPhoenixPatch2.txt (text/plain), 25.42 KB, created by
Bob Fraser
on 2007-01-10 19:37:27 EST
(
hide
)
Description:
Patch for Phoenix Style Webtools pages round 2
Filename:
MIME Type:
Creator:
Bob Fraser
Created:
2007-01-10 19:37:27 EST
Size:
25.42 KB
patch
obsolete
>Index: _projectCommon.php >=================================================================== >RCS file: /cvsroot/org.eclipse/www/webtools/_projectCommon.php,v >retrieving revision 1.5 >diff -u -r1.5 _projectCommon.php >--- _projectCommon.php 31 Jan 2006 19:01:19 -0000 1.5 >+++ _projectCommon.php 11 Jan 2007 00:24:16 -0000 >@@ -6,38 +6,41 @@ > # 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", "index.php"); >+ $Nav->addNavSeparator("WTP Home", "/webtools/index1.php"); > $Nav->addCustomNav("Subprojects", "", "_self", 1); >- $Nav->addCustomNav("WST", "wst/main.html", "_self", 2); >- $Nav->addCustomNav("JST", "jst/main.html", "_self", 2); >- $Nav->addCustomNav("JSF", "jsf/index.html", "_self", 2); >+ $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", "community/community.html", "_self", 1); >- $Nav->addCustomNav("Articles", "community/communityresources.html#articles", "_self", 2); >- $Nav->addCustomNav("Books", "community/communityresources.html#books", "_self", 2); >- $Nav->addCustomNav("Presentation Archive", "community/presentations.html", "_self", 2); >- $Nav->addCustomNav("Tutorials", "community/communityresources.html#tutorials", "_self", 2); >- $Nav->addCustomNav("Upcoming Presentations", "community/community.html", "_self", 2); >- $Nav->addCustomNav("White Papers", "community/communityresources.html#whitepapers", "_self", 2); >- $Nav->addCustomNav("Milestone Specific Resources", "community/milestonespecificresources.html", "_self", 2); >+ $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", "adopters/", "_self", 1); >- $Nav->addCustomNav("Development", "development/main.html", "_self", 1); >+ $Nav->addCustomNav("Adopters", "/webtools/adopters/main.php", "_self", 1); >+ $Nav->addCustomNav("Development", "/webtools/development/main.html", "_self", 1); > #$Nav->addCustomNav("Help Wanted", "plans/1.5/reports/help-wanted.html", "_self", 2); >- $Nav->addCustomNav("Bug Reports", "development/bugs/bugs.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", "development/status-telecons/index.html", "_self", 2); >- $Nav->addCustomNav("Documents", "development/main.html", "_self", 2); >- $Nav->addCustomNav("Committers/Contributors", "people/contributors.html", "_self", 2); >- $Nav->addCustomNav("FAQ", "faq/main.html", "_self", 1); >+ $Nav->addCustomNav("Status Telecons", "/webtools/development/status-telecons/main.php", "_self", 2); >+ $Nav->addCustomNav("Documents", "/webtools/development/main.html", "_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: main.php >=================================================================== >RCS file: /cvsroot/org.eclipse/www/webtools/main.php,v >retrieving revision 1.1 >diff -u -r1.1 main.php >--- main.php 15 Dec 2005 22:40:06 -0000 1.1 >+++ main.php 11 Jan 2007 00:24:16 -0000 >@@ -1,30 +1,91 @@ >-<?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"); >-require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/common/project-info.class.php"); >-$App = new App(); $Nav = new Nav(); $Menu = new Menu(); >-$projectInfo = new ProjectInfo("webtools"); >-$projectInfo->generate_common_nav( $Nav ); >-include ($App->getProjectCommon()); >+<?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' >+ > #***************************************************************************** > # >- # index.php >+ # template.php > # >- # Author: Tim A. Wagner >- # Date: 2005-12-15 >+ # Author: Bob Fraser >+ # Date: 2007-01-10 > # >- # Description: >+ # Description: Type your page comments here - these are not sent to the browser > # > # > #**************************************************************************** >- >+ > # > # Begin: page-specific settings. Change these. >- $pageTitle = "WTP Homepage"; >- $pageKeywords = "web,J2EE,applications"; >- $pageAuthor = "Tim A. Wagner"; >+ $pageTitle = "Web Tools Platform (WTP) Project"; >+ $pageKeywords = "web,J2EE"; >+ $pageAuthor = "Bob Fraser"; >+ >+ $root = $_SERVER['DOCUMENT_ROOT']; >+ // Import the functions that render news. >+ // require_once ($root . '/webtools/news.php'); >+ // Import common WTP functions. >+ require_once ($root . '/webtools/common.php'); >+ require_once ($root . '/community/news/scripts/news.php'); >+ >+ function getWTPNews($rssfile, $rssurl, $count) >+ { >+ $rss = get_news($rssfile); >+ $html = ""; >+// if($rss->channel == "") >+// { >+// return "empty"; >+// } >+// return $rss; >+ foreach ($rss->channel as $channel) >+ { >+ $html .= "<h6>"; >+ >+ // Add the RSS image on the right >+ $html .= "<a href=\"$rssurl\"><img src=\"/images/rss.gif\" align=\"right\" alt=\"More...\" /></a>"; >+ >+ // Add the title of the channel >+ $html .= "WTP News"; >+ // If we're displaying short format, provide a link to >+ // show news in long format. >+ $html .= " <a href=\"/webtools/news.html\"><img src=\"/images/more.gif\" title=\"More...\" alt=\"More...\" /></a>"; >+ >+ $html .= "</h6>"; >+ >+// $description = $channel->description; >+// if (strlen($description) > 0) { >+// $html .= $description; >+// } >+ $html .= "<ul class=\"midlist\">"; >+ >+ foreach ($channel->item as $item) >+ { >+ 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/>"; >+ $html .= $item->description; >+ $html .= "</li>"; >+ $count--; >+ if($count != 0) >+ { >+ $html .= "<br/>"; >+ } >+ } >+ >+ $html .= "</ul>"; >+ } >+ return $html; >+ } >+ // Generate the HTML content for the news based on the rss files >+ // that appear in the root directory. >+ $rssurl = "/webtools/wtpnews.rss"; >+ $wtpnews = getWTPNews($root . $rssurl, $rssurl, 5);//xml_to_html("news", "news-rss20", "long", "5"); > >+ // Get the project descriptions >+ $wtpoverview = read_file('project-info/description.html'); >+ $wstoverview = read_file('project-info/wst-description.html'); >+ $jstoverview = read_file('project-info/jst-description.html'); >+ $atfoverview = read_file('project-info/atf-description.html'); >+ $dalioverview = read_file('project-info/dali-description.html'); >+ $jsfoverview = read_file('project-info/jsf-description.html'); > # Add page-specific Nav bars here > # Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3) > # $Nav->addNavSeparator("My Page Links", "downloads.php"); >@@ -33,38 +94,81 @@ > > # End: page-specific settings > # >- >+ > # Paste your HTML content between the EOHTML markers! > $html = <<<EOHTML > > <div id="maincontent"> >- <div id="midcolumn"><br/> >- <table border="0" cellpadding="2" cellspacing="0" width="100%"> >- <tbody> >- <tr> >- <td align="left"><h1>$pageTitle</h1> >- <h2>Coming soon...</h2><br></td> >- <td align="right"><img align="right" src="http://www.eclipse.org/gmf/images/logo_banner.png" /></td> >- </tr> >- </tbody> >- </table> >- <hr/> >- <h4>UML2 Class Diagram</h4> >- <a href="uml2.png" target="_blank"><img height="384" width="512" src="uml2.png"/></a> >- <br/> >- <h4>ECore Diagram</h4> >- <a href="ecore.png" target="_blank"> >- <img height="384" width="512" src="ecore.png"/></a> >- <br/> >- <h4>Eclipse Feature/Plugin Diagram</h4> >- <a href="pde.png" target="_blank"> >- <img height="384" width="512" src="pde.png"/></a> >- <br/> >+ <div id="midcolumn"> >+ <h1>$pageTitle</h1> >+ <table> >+ <tr> >+ <td> >+ <p> >+ $wtpoverview >+ <br /> <a href="about.html">more about wtp »</a> >+ </p> >+ </td> >+ <td> >+ <img src="/webtools/images/wtplogosmall.jpg" align="middle" height="129" hspace="50" width="207" /> >+ </td> >+ </tr> >+ </table> >+ <div class="homeitem3col"> >+ <h3>Subprojects</h3> >+ <ul> >+ <li> >+ <b>Web Standard Tools (WST)</b> <a href="wst/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a> >+ <br/> >+ $wstoverview >+ <br /> <a href="wst/main.php">more about wst »</a> >+ </li> >+ <li> >+ <b>J2EE Standard Tools (JST)</b> <a href="jst/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a> >+ <br/> >+ $jstoverview >+ <br /> <a href="jst/main.php">more about jst »</a> >+ </li> >+ <li> >+ <b>AJAX Toolkit Framework (ATF) - incubating</b> <a href="atf/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a> >+ <br/> >+ $atfoverview >+ <br /> <a href="atf/main.php">more about atf »</a> >+ </li> >+ <li> >+ <b>Dali JPA Tools - incubating</b> <a href="dali/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a> >+ <br/> >+ $dalioverview >+ <br /> <a href="dali/main.php">more about dali »</a> >+ </li> >+ <li> >+ <b>JavaServer Faces Tools (JSF) - incubating</b> <a href="jsf/main.php"><img src="/images/more.gif" title="More..." alt="More..." /></a> >+ <br/> >+ $jsfoverview >+ <br /> <a href="jsf/main.php">more about jsf »</a> >+ </li> >+ </ul> >+ </div> >+ <p></p> >+ <p></p> >+ </div> >+ <div id="rightcolumn"> >+ <div class="sideitem"> >+ <h6>Discover WTP</h6> >+ <ul> >+ <li><a href="http://download.eclipse.org/webtools/downloads/">Download</a></li> >+ <li><a href="community/communityresources.html#tutorials">Tutorials</a></li> >+ <li><a href="community/communityresources.html#articles">Articles</a></li> >+ <li><a href="community/community.html">Upcoming Presentations</a></li> >+ <li><a href="faq/main.html">FAQ</a></li> >+ <li><a href="/newsgroups/main.html#wtp">Newsgroup</a></li> >+ </ul> >+ </div> >+ <div class="sideitem"> >+ $wtpnews >+ </div> > </div> >- > </div> >- >- > EOHTML; > > >Index: phoenix/main.php >=================================================================== >RCS file: /cvsroot/org.eclipse/www/webtools/phoenix/main.php,v >retrieving revision 1.1 >diff -u -r1.1 main.php >--- phoenix/main.php 7 Nov 2006 15:42:54 -0000 1.1 >+++ phoenix/main.php 11 Jan 2007 00:24:16 -0000 >@@ -1,73 +1,33 @@ >-<?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"); >-require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/common/project-info.class.php"); >-$App = new App(); $Nav = new Nav(); $Menu = new Menu(); >-$projectInfo = new ProjectInfo("webtools"); >-$projectInfo->generate_common_nav( $Nav ); >-include ($App->getProjectCommon()); >- #***************************************************************************** >- # >- # index.php >- # >- # Author: Tim A. Wagner >- # Date: 2005-12-15 >- # >- # Description: >- # >- # >- #**************************************************************************** >- >- # >- # Begin: page-specific settings. Change these. >- $pageTitle = "WTP Homepage"; >- $pageKeywords = "web,J2EE,applications"; >- $pageAuthor = "Tim A. Wagner"; >- >- # Add page-specific Nav bars here >- # Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3) >- # $Nav->addNavSeparator("My Page Links", "downloads.php"); >- # $Nav->addCustomNav("My Link", "mypage.php", "_self", 3); >- # $Nav->addCustomNav("Google", "http://www.google.com/", "_blank", 3); >- >- # End: page-specific settings >- # >- >- # Paste your HTML content between the EOHTML markers! >- $html = <<<EOHTML >+<?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' >+$pageTitle = "Template page for Phoenix style WTP page"; >+$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'); >+ >+// 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"><br/> >- <table border="0" cellpadding="2" cellspacing="0" width="100%"> >- <tbody> >- <tr> >- <td align="left"><h1>$pageTitle</h1> >- <h2>Coming soon...</h2><br></td> >- <td align="right"><img align="right" src="http://www.eclipse.org/gmf/images/logo_banner.png" /></td> >- </tr> >- </tbody> >- </table> >- <hr/> >- <h4>UML2 Class Diagram</h4> >- <a href="uml2.png" target="_blank"><img height="384" width="512" src="uml2.png"/></a> >- <br/> >- <h4>ECore Diagram</h4> >- <a href="ecore.png" target="_blank"> >- <img height="384" width="512" src="ecore.png"/></a> >- <br/> >- <h4>Eclipse Feature/Plugin Diagram</h4> >- <a href="pde.png" target="_blank"> >- <img height="384" width="512" src="pde.png"/></a> >- <br/> >+ <div id="midcolumn"> >+ <p> >+ $maincontent >+ </p> > </div> >- > </div> > > > EOHTML; >- >- >- # Generate the web page >- $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); >+$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); > ?> >Index: phoenix/_projectCommon.php >=================================================================== >RCS file: phoenix/_projectCommon.php >diff -N phoenix/_projectCommon.php >--- phoenix/_projectCommon.php 7 Nov 2006 15:42:54 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,43 +0,0 @@ >-<?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"; >- >- # 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", "index.php"); >- $Nav->addCustomNav("Subprojects", "", "_self", 1); >- $Nav->addCustomNav("WST", "wst/main.html", "_self", 2); >- $Nav->addCustomNav("JST", "jst/main.html", "_self", 2); >- $Nav->addCustomNav("JSF", "jsf/index.html", "_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", "community/community.html", "_self", 1); >- $Nav->addCustomNav("Articles", "community/communityresources.html#articles", "_self", 2); >- $Nav->addCustomNav("Books", "community/communityresources.html#books", "_self", 2); >- $Nav->addCustomNav("Presentation Archive", "community/presentations.html", "_self", 2); >- $Nav->addCustomNav("Tutorials", "community/communityresources.html#tutorials", "_self", 2); >- $Nav->addCustomNav("Upcoming Presentations", "community/community.html", "_self", 2); >- $Nav->addCustomNav("White Papers", "community/communityresources.html#whitepapers", "_self", 2); >- $Nav->addCustomNav("Milestone Specific Resources", "community/milestonespecificresources.html", "_self", 2); >- #$Nav->addCustomNav("Installation", "install.php", "_self", 1); >- $Nav->addCustomNav("Adopters", "adopters/", "_self", 1); >- $Nav->addCustomNav("Development", "development/main.html", "_self", 1); >- #$Nav->addCustomNav("Help Wanted", "plans/1.5/reports/help-wanted.html", "_self", 2); >- $Nav->addCustomNav("Bug Reports", "development/bugs/bugs.html", "_self", 2); >- $Nav->addCustomNav("CVS", "http://dev.eclipse.org/viewcvs/index.cgi/?cvsroot=WebTools_Project", "_self", 2); >- $Nav->addCustomNav("Status Telecons", "development/status-telecons/index.html", "_self", 2); >- $Nav->addCustomNav("Documents", "development/main.html", "_self", 2); >- $Nav->addCustomNav("Committers/Contributors", "people/contributors.html", "_self", 2); >- $Nav->addCustomNav("FAQ", "faq/main.html", "_self", 1); >- $Nav->addCustomNav("Newsgroup", "/newsgroups/main.html#wtp", "_self", 1); >- >-?> >Index: wtpphoenix.xsl >=================================================================== >RCS file: wtpphoenix.xsl >diff -N wtpphoenix.xsl >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ wtpphoenix.xsl 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,47 @@ >+<?xml version="1.0" encoding="utf-8"?> >+ >+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >+ version="1.0"> >+ >+ <xsl:template match="html"> >+ <xsl:apply-templates select="body/h1" mode="banner" /> >+ <xsl:apply-templates select="body/*" /> >+ </xsl:template> >+ <xsl:template match="h1" mode="banner"> >+ <table> >+ <tr> >+ <td width="60%"> >+ <h1> >+ <xsl:value-of select="." /> >+ </h1> >+ <br /> >+ <xsl:value-of select="/html/head/title" /> >+ </td> >+ <td> >+ <img src="/webtools/images/wtplogosmall.jpg" >+ align="middle" height="129" hspace="50" width="207" /> >+ </td> >+ </tr> >+ </table> >+ </xsl:template> >+ >+ <xsl:template match="h1" /> >+ >+ <xsl:template match="h2"> >+ <h2 class="bar"> >+ <xsl:value-of select="." /> >+ </h2> >+ </xsl:template> >+ >+ <xsl:template match="ul"> >+ <ul class="indent"> >+ <xsl:apply-templates /> >+ </ul> >+ </xsl:template> >+ >+ <xsl:template match="*|@*|text()"> >+ <xsl:copy> >+ <xsl:apply-templates select="*|@*|text()" /> >+ </xsl:copy> >+ </xsl:template> >+</xsl:stylesheet> >Index: phoenix/main.xml >=================================================================== >RCS file: phoenix/main.xml >diff -N phoenix/main.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ phoenix/main.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,69 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?xml-stylesheet type="text/xsl" href="../wtp.xsl"?> >+<html> >+ <head> >+ <meta name="root" content="../.." /> >+ <title>Template page for Phoenix style WTP page</title> >+ </head> >+ <body> >+ <h1>First h1 gives banner and logo</h1> >+ >+ <h2>h2 gives purple bar</h2> >+ <p> >+ Nunc iaculis arcu vel mi. Aliquam mi libero, mattis >+ sagittis, accumsan eget, placerat a, ante. Nulla ac justo >+ quis nibh molestie suscipit. Etiam odio nulla, venenatis >+ sed, venenatis ornare, suscipit ut, sem. Aenean mauris. >+ Etiam at mauris. Phasellus nec est dictum neque vestibulum >+ elementum. Aliquam sed enim. Etiam sed lacus ac diam auctor >+ bibendum. Nulla quis eros. Phasellus vel erat ut eros >+ commodo nonummy. Nunc blandit mauris sed dolor. Donec dui. >+ Nullam sollicitudin tortor sit amet neque. Duis magna sem, >+ euismod et, volutpat id, cursus id, purus. Nulla facilisi. >+ Mauris velit libero, adipiscing sed, ultrices ut, ultrices >+ eget, metus. Donec ultrices. >+ </p> >+ <h2>Another h2</h2> >+ <ul> >+ <li>List element</li> >+ <li>Another List element</li> >+ <li> >+ Here is another element >+ <br /> >+ with a break and maybe we can get this to wrap qwerty >+ qwerty qwerty qwerty qwerty qwerty qwerty qwerty qwerty >+ qwerty qwerty qwerty qwerty qwerty qwerty qwerty qwerty >+ qwerty qwerty qwerty qwerty qwerty >+ </li> >+ <ul> >+ <li>up a level and bullet</li> >+ <li>another bullet</li> >+ </ul> >+ <li>and back down a level</li> >+ </ul> >+ <h3>header level 3</h3> >+ <p> >+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. >+ Etiam at ante. Phasellus non augue. Sed aliquet sagittis >+ massa. Morbi varius nulla vel quam interdum hendrerit. Etiam >+ vel felis. Integer ultrices tincidunt mi. Class aptent >+ taciti sociosqu ad litora torquent per conubia nostra, per >+ inceptos hymenaeos. Praesent ultrices fermentum magna. >+ Suspendisse tincidunt arcu a metus. Donec pharetra tempus >+ lacus. Fusce eros tortor, tempor vitae, dictum eget, >+ scelerisque vel, metus. Nam tellus tellus, porta quis, >+ adipiscing quis, tempor vel, dolor. >+ </p> >+ <p> >+ Integer mauris mauris, varius nec, mollis eget, rutrum sed, >+ tortor. Nam mattis lacinia nulla. Etiam tempor mattis >+ tortor. Mauris gravida, arcu in rhoncus iaculis, enim turpis >+ semper lacus, tincidunt convallis ipsum lacus non pede. >+ Class aptent taciti sociosqu ad litora torquent per conubia >+ nostra, per inceptos hymenaeos. Pellentesque habitant morbi >+ tristique senectus et netus et malesuada fames ac turpis >+ egestas. Sed vestibulum dapibus mauris. Nulla pellentesque >+ quam non ligula. >+ </p> >+ </body> >+</html> >Index: wtpphoenix.css >=================================================================== >RCS file: wtpphoenix.css >diff -N wtpphoenix.css >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ wtpphoenix.css 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,22 @@ >+h2.bar { >+ background-image: >+ url(/eclipse.org-common/themes/Phoenix/images/header_bg.gif); >+ background-position: top left; >+ background-repeat: repeat-x; >+ background-color: #669; >+ color: #fff; >+ /* font-size: 1.1em; */ >+ font-size: 110%; >+ font-weight: bold; >+ margin-left: 0; >+ margin-right: 4px; >+ padding-top: 2px; >+ padding-bottom: 2px; >+ padding-left: 5px; >+ padding-right: 1px; >+} >+ >+ul.indent { >+ margin-left: 20px; >+ padding: 0px; >+}
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