cziegeler 2003/05/27 02:40:35
Modified: src/blocks/portal/samples sitemap.xmap
Added: src/blocks/portal/samples/skins/common/images
window-border-bottom.gif tabSel-left.gif
window-border-left.gif window-bottom-left.gif
minimize.gif show.gif tab-right.gif
tabSel-right.gif window-top-left.gif maximize.gif
window-bottom-right.gif window-border-right.gif
customize.gif portal-logo.gif delete.gif
window-top-right.gif space.gif tab-left.gif
src/blocks/portal/samples/skins/common/styles tab.xsl
window.xsl column.xsl login-html.xsl header.xsl
portal_layout.xsl row.xsl
Removed: src/blocks/portal/samples/images show.gif space.gif
maximize.gif customize.gif delete.gif minimize.gif
logo.jpg
src/blocks/portal/samples/styles row.xsl login-html.xsl
column.xsl portal_layout.xsl tab.xsl
sunrise-user.xsl window.xsl header.xsl
Log:
New portal layout from Joel Greenyer [EMAIL PROTECTED]
Revision Changes Path
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/window-border-bottom.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/tabSel-left.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/window-border-left.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/window-bottom-left.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/minimize.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/show.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/tab-right.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/tabSel-right.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/window-top-left.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/maximize.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/window-bottom-right.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/window-border-right.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/customize.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/portal-logo.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/delete.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/window-top-right.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/space.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/images/tab-left.gif
<<Binary file>>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/styles/tab.xsl
Index: tab.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Process a tab -->
<xsl:template match="tab-layout">
<!-- ~~~~~ Begin body table ~~~~~ -->
<table summary="tab bar" border="0" cellpadding="0" cellspacing="0"
width="100%">
<!-- ~~~~~ Begin tab row ~~~~~ -->
<tr vAlign="top">
<xsl:for-each select="named-item">
<xsl:choose>
<xsl:when test="@selected">
<!-- ~~~~~ begin selected tab ~~~~~ -->
<!-- ~~~~~ begin spacer between tabs ~~~~~ -->
<td width="5" Valign="bottom" bgcolor="#294563">
<table summary="non selected tab"
style="height: 1.8em" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="99%"><img
height="5" src="sunspotdemoimg-space.gif" width="5"/></td>
</tr>
<tr>
<td height="10"
bgcolor="#4C6C8F"><img height="10" src="sunspotdemoimg-space.gif"
width="5"/></td>
</tr>
</table>
</td>
<!-- ~~~~~ end spacer between tabs ~~~~~ -->
<td width="1">
<table summary="selected tab" style="height:
2.0em" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="5"
bgcolor="#FFFFFF">
<img height="5"
width="5" alt="" src="sunspotdemoimg-tabSel-left.gif"/>
</td>
<td valign="middle"
bgcolor="#FFFFFF">
<font color="#ffffff"
size="2" face="Arial, Helvetica, Sans-serif"><b>
<a href="[EMAIL
PROTECTED]"><font color="#000000"><xsl:value-of select="@name"/></font></a></b>
</font>
</td>
<td valign="top" width="5"
bgcolor="#FFFFFF">
<img height="5"
width="5" alt="" src="sunspotdemoimg-tabSel-right.gif"/>
</td>
</tr>
<tr>
<td colspan="3" height="5"
bgcolor="#FFFFFF"></td>
</tr>
</table>
</td>
<!-- ~~~~~ end selected tab ~~~~~ -->
</xsl:when>
<xsl:otherwise>
<!-- ~~~~~ begin non selected tab ~~~~~ -->
<!-- ~~~~~ begin spacer between tabs ~~~~~ -->
<td width="5" Valign="bottom" bgcolor="#294563">
<table summary="non selected tab"
style="height: 1.8em" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="99%"><img
height="5" src="sunspotdemoimg-space.gif" width="5"/></td>
</tr>
<tr>
<td height="10"
bgcolor="#4C6C8F"><img height="10" src="sunspotdemoimg-space.gif"
width="5"/></td>
</tr>
</table>
</td>
<!-- ~~~~~ end spacer between tabs ~~~~~ -->
<td width="1" Valign="bottom" bgcolor="#294563">
<table summary="non selected tab"
style="height: 1.8em" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="5"
bgcolor="#B2C4E0">
<img height="5"
width="5" alt="" src="sunspotdemoimg-tab-left.gif"/>
</td>
<td valign="middle"
bgcolor="#B2C4E0" >
<div class="tab">
<a href="[EMAIL
PROTECTED]" style=" font-size : 85%; border: 0; color: #000066;">
<xsl:value-of select="@name"/>
</a>
</div>
</td>
<td valign="top" width="5"
bgcolor="#B2C4E0">
<img height="5"
width="5" alt="" src="sunspotdemoimg-tab-right.gif"/>
</td>
</tr>
<tr>
<td colspan="3" height="10"
bgcolor="#4C6C8F"></td>
</tr>
</table>
</td>
<!-- ~~~~~ end non selected tab ~~~~~ -->
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<td width="99%" bgcolor="#294563">
<!-- ~~~~~ last "blank" tab, filling the rest of the tab row
~~~~~ -->
<table style="height: 2.0em" border="0" cellpadding="0"
cellspacing="0" width="100%">
<tr>
<td height="99%" bgcolor="#294563" width="100%">
<img height="5"
src="sunspotdemoimg-space.gif" width="1"/>
</td>
</tr>
<tr>
<td height="1" bgcolor="#4C6C8F" width="100%">
<img height="10"
src="sunspotdemoimg-space.gif" width="1"/>
</td>
</tr>
</table>
</td>
</tr>
<!-- ~~~~~ End tab row ~~~~~ -->
<tr>
<td colSpan="{count(named-item)*2+1}" bgcolor="#FFFFFF">
<xsl:apply-templates select="named-item"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="named-item">
<xsl:apply-templates />
</xsl:template>
<!-- Copy all and apply templates -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/styles/window.xsl
Index: window.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="window">
<xsl:variable name="bgColor">
<xsl:choose>
<xsl:when test="@bgColor">
<xsl:value-of select="@bgColor" />
</xsl:when>
<xsl:otherwise>
<xsl:text>#294563</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<table cellSpacing="0" cellpadding="0" width="100%">
<tr vAlign="top">
<td width="5" style="background-color:#294563;"
valign="top"><img src="sunspotdemoimg-window-top-left.gif" border="0" width="5"
height="5" alt="top-left"/></td>
<td bgColor="{$bgColor}" valign="middle">
<font>
<xsl:attribute
name="color">#ffffff</xsl:attribute>
<xsl:attribute name="face">Arial</xsl:attribute>
<xsl:attribute name="size">2</xsl:attribute>
<xsl:choose>
<xsl:when test="@title">
<b><xsl:value-of
select="@title"/></b>
</xsl:when>
<xsl:otherwise>
<b><xsl:value-of
select="title"/></b>
</xsl:otherwise>
</xsl:choose>
</font>
</td>
<td align="right" bgColor="{$bgColor}">
<xsl:if test="fullscreen-uri">
<a href="{fullscreen-uri}">
<img src="sunspotdemoimg-customize.gif"
border="0" alt="Full Screen"/>
</a>
</xsl:if>
<xsl:if test="maxpage-uri">
<a href="{maxpage-uri}">
<img src="sunspotdemoimg-show.gif"
border="0" alt="Max Page"/>
</a>
</xsl:if>
<xsl:if test="maximize-uri">
<a href="{maximize-uri}">
<img src="sunspotdemoimg-maximize.gif"
border="0" alt="Maximize"/>
</a>
</xsl:if>
<xsl:if test="minimize-uri">
<a href="{minimize-uri}">
<img src="sunspotdemoimg-minimize.gif"
border="0" alt="Minimize"/>
</a>
</xsl:if>
<xsl:if test="remove-uri">
<a href="{remove-uri}">
<img src="sunspotdemoimg-delete.gif"
border="0" alt="Delete"/>
</a>
</xsl:if>
</td>
<td width="5" style="background-color:#294563;"
valign="top"><img src="sunspotdemoimg-window-top-right.gif" border="0"
width="5" height="5" alt="top-right"/></td>
</tr>
<xsl:if test="status!=0">
<tr>
<td width="5"
style="background-image:url(sunspotdemoimg-window-border-left.gif);"><img
src="sunspotdemoimg-space.gif" border="0" width="5" height="5"
alt="space"/></td>
<td colSpan="2">
<xsl:apply-templates select="content"/>
</td>
<td width="5"
style="background-image:url(sunspotdemoimg-window-border-right.gif);"><img
src="sunspotdemoimg-space.gif" border="0" width="5" height="5"
alt="space"/></td>
</tr>
</xsl:if>
<tr>
<td width="5"><img src="sunspotdemoimg-window-bottom-left.gif"
border="0" width="5" height="5" alt="top-left"/></td>
<td colspan="2"
style="background-image:url(sunspotdemoimg-window-border-bottom.gif);"></td>
<td width="5"><img src="sunspotdemoimg-window-bottom-right.gif"
border="0" width="5" height="5" alt="top-left"/></td>
</tr>
</table>
</xsl:template>
<xsl:template match="content">
<xsl:apply-templates/>
</xsl:template>
<!-- Copy all and apply templates -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/styles/column.xsl
Index: column.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Process a Column -->
<xsl:template match="column-layout">
<xsl:variable name="border">
<xsl:choose>
<xsl:when test="@border">
<xsl:value-of select="@border" />
</xsl:when>
<xsl:otherwise>
<xsl:text>0</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<table border="{$border}" cellSpacing="0" cellpadding="0" width="100%">
<xsl:if test="@bgcolor">
<xsl:attribute name="bgcolor">
<xsl:value-of select="@bgcolor" />
</xsl:attribute>
</xsl:if>
<tr vAlign="top">
<xsl:for-each select="item">
<td>
<xsl:if test="@bgcolor">
<xsl:attribute name="bgcolor">
<xsl:value-of select="@bgcolor" />
</xsl:attribute>
</xsl:if>
<xsl:if test="@width">
<xsl:attribute name="width">
<xsl:value-of select="@width" />
</xsl:attribute>
</xsl:if>
<xsl:apply-templates />
</td>
</xsl:for-each>
</tr>
</table>
</xsl:template>
<!-- Copy all and apply templates -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/styles/login-html.xsl
Index: login-html.xsl
===================================================================
<?xml version="1.0"?>
<!--+ $Id: login-html.xsl,v 1.1 2003/05/27 09:40:34 cziegeler Exp $
|
| Description: Login page to HTML
|
+-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="content">
<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="0"
width="100%"><tbody>
<tr>
<td bgColor="#ffffff" align="center">
<br/>
<xsl:apply-templates/>
<br/>
</td>
</tr>
<tr>
<td bgColor="#ffffff" width="15">
<img height="1" src="sunspotdemoimg-space.gif" width="15"/>
</td>
</tr>
<tr>
<td bgColor="#ffffff" align="center">
<br/>
If you are not already registered, use this guest login:
<br/><br/>
User: <b>guest</b>
Password:
<b>guest</b>
<br/><br/>Or use this administrator login:<br/>
User:
<b>cocoon</b>
Password:
<b>cocoon</b>
<br/><br/>
</td>
</tr>
</tbody></table>
</xsl:template>
<xsl:template match="form">
<form method="post" target="_top">
<xsl:attribute name="action"><xsl:value-of
select="normalize-space(url)"/></xsl:attribute>
<table>
<xsl:apply-templates select="field"/><br/>
</table>
<input type="submit" value="Login"></input>
</form>
</xsl:template>
<xsl:template match="field">
<tr>
<td>
<xsl:value-of select="@description"/>:
</td>
<td>
<input>
<xsl:attribute name="name"><xsl:value-of
select="@name"/></xsl:attribute>
<xsl:attribute name="type"><xsl:value-of
select="@type"/></xsl:attribute>
<xsl:attribute name="size"><xsl:value-of
select="@length"/></xsl:attribute>
</input>
</td>
</tr>
</xsl:template>
<!-- Copy all and apply templates -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/styles/header.xsl
Index: header.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="0"
width="100%"><tbody>
<tr>
<td colspan="2">
<table border="0" cellPadding="0" cellSpacing="0" width="100%">
<tbody>
<tr>
<td colspan="2" noWrap="" height="1%" bgcolor="#294563">
<img height="5" src="sunspotdemoimg-space.gif"
width="1"/>
</td>
</tr>
<tr>
<td bgcolor="#294563" height="98%" align="center"
valign="middle" width="100%">
<img src="sunspotdemoimg-portal-logo.gif" width="250"
height="90" />
</td>
</tr>
<tr>
<td align="center" height="1%" noWrap="" bgcolor="#294563"
width="1%">
<img src="sunspotdemoimg-space.gif" width="300"
height="10"/>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<xsl:apply-templates/>
</td>
</tr>
<tr>
<td colspan="2">
<table border="0" cellPadding="0" cellSpacing="0" width="100%">
<tbody>
<tr>
<td colspan="2" noWrap="" height="10" bgcolor="#CFDCED"> <img
height="1" src="sunspotdemoimg-space.gif" width="1"/></td>
</tr>
<tr>
<td colspan="2" noWrap="" height="30" bgcolor="#294563"> <img
height="1" src="sunspotdemoimg-space.gif" width="1"/></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</xsl:template>
<!-- Copy all and apply templates -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/styles/portal_layout.xsl
Index: portal_layout.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body style="background-color: #FFFFFF; margin: 0px 0px 0px 0px; font-family:
Verdana, Helvetica, sans-serif; font-size : 100%;">
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<!-- Copy all and apply templates -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.1
cocoon-2.1/src/blocks/portal/samples/skins/common/styles/row.xsl
Index: row.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Process a row -->
<xsl:template match="row-layout">
<xsl:variable name="border">
<xsl:choose>
<xsl:when test="@border">
<xsl:value-of select="@border" />
</xsl:when>
<xsl:otherwise>
<xsl:text>0</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<table border="{$border}" cellSpacing="10" width="100%">
<xsl:if test="@bgcolor">
<xsl:attribute name="bgcolor">
<xsl:value-of select="@bgcolor" />
</xsl:attribute>
</xsl:if>
<xsl:for-each select="item">
<tr vAlign="top">
<xsl:if test="@bgcolor">
<xsl:attribute name="bgcolor">
<xsl:value-of select="@bgcolor" />
</xsl:attribute>
</xsl:if>
<td>
<xsl:apply-templates />
</td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
<!-- Copy all and apply templates -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.5 +25 -8 cocoon-2.1/src/blocks/portal/samples/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/portal/samples/sitemap.xmap,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sitemap.xmap 22 May 2003 15:19:47 -0000 1.4
+++ sitemap.xmap 27 May 2003 09:40:35 -0000 1.5
@@ -58,6 +58,12 @@
</handler>
</handlers>
</authentication-manager>
+
+ <!-- select skin to use -->
+ <map:global-variables>
+ <skin>skins/common/</skin>
+ </map:global-variables>
+
</map:component-configurations>
<map:pipeline>
@@ -79,9 +85,15 @@
<map:generate type="portal" label="content">
<map:parameter name="portal-name" value="portal" />
</map:generate>
+<!--
<map:transform type="cinclude"/>
- <map:transform src="styles/header.xsl"/>
+
+ <map:transform src="{global:skin}styles/header.xsl"/>
+ <map:transform src="{global:skin}styles/portal_layout.xsl"/>
+-->
+<!--
<map:transform type="htmlroot" />
+-->
<map:serialize type="html"/>
</map:act>
<map:redirect-to uri="login"/>
@@ -89,10 +101,15 @@
<!-- images -->
<map:match pattern="sunspotdemoimg-*.gif">
- <map:read mime-type="image/gif" src="images/{1}.gif"/>
+ <map:read mime-type="image/gif"
src="{global:skin}images/{1}.gif"/>
</map:match>
<map:match pattern="sunspotdemoimg-*.jpg">
- <map:read mime-type="image/jpg" src="images/{1}.jpg"/>
+ <map:read mime-type="image/jpg" src="{global:skin}images/{1}.jpg"/>
+ </map:match>
+
+ <!-- Cascading Stylesheets -->
+ <map:match pattern="sunspotdemocss-*.css">
+ <map:read mime-type="text/css" src="{global:skin}css/{1}.css"/>
</map:match>
<!-- authentication stuff -->
@@ -103,9 +120,9 @@
<map:redirect-to uri="portal"/>
</map:act>
<map:generate src="resources/login.xml"/>
- <map:transform src="styles/login-html.xsl"/>
- <map:transform src="styles/header.xsl"/>
- <map:transform type="htmlroot" />
+ <map:transform src="{global:skin}styles/login-html.xsl"/>
+ <map:transform src="{global:skin}styles/header.xsl"/>
+ <map:transform src="{global:skin}styles/portal_layout.xsl"/>
<map:transform type="encodeURL"/>
<map:serialize/>
</map:match>
@@ -122,7 +139,7 @@
<map:redirect-to uri="portal"/>
</map:act>
<map:generate src="resources/login-error.xml"/>
- <map:transform src="styles/header.xsl"/>
+ <map:transform src="{global:skin}styles/header.xsl"/>
<map:transform type="encodeURL"/>
<map:serialize/>
</map:match>
@@ -133,7 +150,7 @@
<map:parameter name="application" value="portal"/>
<map:generate src="resources/logged-in.xml"/>
- <map:transform src="styles/header.xsl"/>
+ <map:transform src="{global:skin}styles/header.xsl"/>
<map:transform type="encodeURL"/>
<map:serialize/>
</map:act>