taylor 2005/01/12 22:15:14
Added: portal/src/webapp/WEB-INF/decorations/layout/html/simple
decorator.properties decorator-macros.vm
decorator-bottom.vm decorator-top.vm
portal/src/webapp/WEB-INF/decorations/layout/html/simple/images
jetspeed-powered.gif nw_maj_rond.gif
jetspeed-logo.gif
portal/src/webapp/WEB-INF/decorations/layout/html/simple/css
styles.css
Log:
added new 'simple' decorator giving psml content, no decorations
Revision Changes Path
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/simple/decorator.properties
Index: decorator.properties
===================================================================
# Copyright 2004 The Apache Software Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
id=simple
template.type=velocity
template.extension=.vm
template.macros=-macros
decorates=layout
base.css.class=layout-tigris
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/simple/decorator-macros.vm
Index: decorator-macros.vm
===================================================================
#* define navigation constants *#
#macro (defineNavigationConstants)
#* Constants for layout orientation *#
#set($LEFT_TO_RIGHT = "LeftToRight")
#set($RIGHT_TO_LEFT = "RightToLeft")
#set($TOP_TO_BOTTOM = "TopToBottom")
#set($BOTTOM_TO_TOP = "BottomToTop")
#end
#* include potentially nested links navigation component *#
#macro (includeNestedLinksWithIconNavigation $_nodeSet $_nodePrefix
$_orientation)
<div>
#foreach($node in $_nodeSet.iterator())
#if($_orientation == $TOP_TO_BOTTOM)
#if($node.type == ".ds")
<div class="pagetitle"
title="$node.getTitle($preferedLocale)">${node.getShortTitle($preferedLocale)}</div>
#else
<div>
#end
#end
#if($node.type == ".psml")
<a href="$jetspeed.getAbsoluteUrl($node.url)" class="LinkPage"
title="$node.getTitle($preferedLocale)">$node.getShortTitle($preferedLocale)</a>
#elseif($node.type == ".link")
<a href="$node.url" target="$node.target" class="Link"
title="$node.getTitle($preferedLocale)">$node.getShortTitle($preferedLocale)</a>
#elseif($node.type == "folder")
<a href="$jetspeed.getAbsoluteUrl($node.url)" class="LinkFolder"
title="$node.getTitle($preferedLocale)">$node.getShortTitle($preferedLocale)</a>
#elseif($node.type == ".ds")
#set($__nodePrefix = "${_nodePrefix}${node.url}")
#set($__nodeSet = $site.getDocumentSetNodes($__nodePrefix))
#includeNestedLinksWithIconNavigation($__nodeSet $__nodePrefix
$_orientation)
#else
<a href="$node.url" title="$node.getTitle()">$node.getShortTitle()</a>
#end
#if($_orientation == $TOP_TO_BOTTOM)
#if($node.type != ".ds")
</div>
#end
#end
#end
</div>
#end
#macro (includeLinksWithIconNavigation $_nodeSet $_orientation)
#includeNestedLinksWithIconNavigation($_nodeSet "" $_orientation)
#end
#* include folders navigation component *#
#macro (includeFoldersNavigation $_nodeSet $_orientation)
<div class="FolderList">
#foreach($childFolder in $_nodeSet.iterator())
#if($_orientation == $LEFT_TO_RIGHT)
<span>
#elseif($_orientation == $TOP_TO_BOTTOM)
<div>
#end
<a href="$jetspeed.getAbsoluteUrl($childFolder.url)" class="FolderLink"
title="$childFolder.getTitle($preferedLocale)">$childFolder.getShortTitle($preferedLocale)</a>
#if($_orientation == $LEFT_TO_RIGHT)
</span>
#elseif($_orientation == $TOP_TO_BOTTOM)
</div>
#end
#end
</div>
#end
#* include tabs navigation component *#
#macro (includeTabsNavigation $_nodeSet $_orientation)
<table border="0" cellpadding="0" cellspacing="0">
<tr>
#foreach($childPage in $_nodeSet.iterator())
#set($tabTitle = $childPage.getTitle($preferedLocale))
#set($tabName = $childPage.getShortTitle($preferedLocale))
#if($_orientation == $LEFT_TO_RIGHT)
#if($jetspeed.page.id == $childPage.id)
<td class="LTabLeft" nowrap="true"> </td>
<td class="LTab" align="center" valign="middle" nowrap="true"
title="$tabTitle">${tabName}</td>
<td class="LTabRight" nowrap="true"> </td>
#else
<td class="LTabLeftLow" nowrap="true"> </td>
<td class="LTabLow" align="center" valign="middle" nowrap="true"
title="$tabTitle"><a
href="$jetspeed.getAbsoluteUrl($childPage.url)">${tabName}</a></td>
<td class="LTabRightLow" nowrap="true"> </td>
#end
#end
#end
</tr>
</table>
#end
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/simple/decorator-bottom.vm
Index: decorator-bottom.vm
===================================================================
#*
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*#
</body>
</html>
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/simple/decorator-top.vm
Index: decorator-top.vm
===================================================================
#*
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*#
#* Add all template constants to the current context *#
#defineNavigationConstants()
#* Add the current layouts configuration values to the context *#
#defineLayoutObjects()
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
#includeStyleSheets()
<title>$jetspeed.page.getTitle($preferedLocale)</title>
<meta http-equiv="Content-type" content="text/html" />
<meta http-equiv="Content-style-type" content="text/css" />
<meta name="version" content="/* $Id: decorator-top.vm,v 1.5 2004/12/03
09:10:18 taylor Exp $" />
<meta name="keywords" content="" />
<meta name="description"
content="$jetspeed.page.getTitle($preferedLocale)" />
</head>
<body marginwidth="0" marginheight="0" class="layout-tigris">
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/simple/images/jetspeed-powered.gif
<<Binary file>>
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/simple/images/nw_maj_rond.gif
<<Binary file>>
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/simple/images/jetspeed-logo.gif
<<Binary file>>
1.1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/simple/css/styles.css
Index: styles.css
===================================================================
/*
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
body {
font-family: Verdana, Helvetica, Arial, sans-serif;
voice-family: "\"}\"";
voice-family: inherit;
padding: 1em;
background: #fff;
color: #000;
}
a:link, a:visited {
color: blue;
}
a:hover {
color: #f30 !important;
}
body.layout-tigris
{
margin: 0;
padding: 0;
}
.PTitle
{
}
.Link
{
}
.LinkFolder
{
}
.LinkPage
{
}
.layout-tigris .LTabLeftLow
{
width: 5px;
background-image: url(content/tigris/images/nw_maj_rond.gif);
background-repeat: no-repeat;
background-color: #999;
border-bottom: 1px solid #fff;
border-left: 1px solid #fff;
padding-left: 9px;
padding-right: 0px;
}
.layout-tigris .LTabLow
{
height:25px;;
background-color: #999;
border-bottom: 1px solid #fff;
padding-left: 0px;
padding-right: 0px;
}
.layout-tigris .LTabLow A:link,
.layout-tigris .LTabLow A:visited,
.layout-tigris .LTabLow A:hover,
.layout-tigris .LTabLow A:active
{
text-decoration: none;
color: #fff;
}
.layout-tigris .LTabRightLow
{
width: 0px;
background-color: #999;
border-bottom: 1px solid #fff;
border-right: 1px solid #fff;
padding-left: 0px;
padding-right: 9px;
}
.layout-tigris .LTabLeft
{
width: 5px;
background-image: url(content/tigris/images/nw_maj_rond.gif);
background-repeat: no-repeat;
background-color: #ddd;
color: #fff;
border-left: 1px solid #fff;
padding-left: 9px;
padding-right: 0px;
}
.layout-tigris .LTab
{
height:25px;
background-color: #ddd;
color: #555;
padding-left: 0px;
padding-right: 0px;
}
.layout-tigris .LTabRight
{
width:10px;
border-right: 1px solid #333;
background-color: #ddd;
color: #fff;
padding-left: 0px;
padding-right: 9px;
}
.layout-tigris .tabs {
margin-top: .67em;
margin-right: 0px;
margin-left: 0px;
padding-left: 8px;
border-bottom: 6px #ddd solid;
}
.layout-tigris .tabs td {
padding-top: 3px;
padding-bottom: 3px;
font-weight: bold;
voice-family: "\"}\"";
voice-family: inherit;
font-size: x-small;
}
.layout-tigris #banner h1 {
font-size: 1.25em;
margin: 0;
}
.layout-tigris #login {
voice-family: "\"}\"";
voice-family: inherit;
font-size: x-small;
font-weight: bold;
}
.layout-tigris #breadcrumbs {
border-top: 1px solid #fff;
background-color: #ccc;
voice-family: "\"}\"";
voice-family: inherit;
font-size: x-small;
padding: 2px 8px;
}
.layout-tigris #breadcrumbs a {
text-decoration: none;
}
.layout-tigris #navcolumn {
font-size: x-small;
}
.layout-tigris #navcolumn p {
background-image: none;
}
.layout-tigris #navcolumn a:visited {
color: blue;
}
.layout-tigris #main {
border-top: 1px solid #999;
}
.layout-tigris #leftcol {
voice-family: "\"}\"";
voice-family: inherit;
font-size: x-small;
}
.layout-tigris #leftcol a {
text-decoration: none;
}
.layout-tigris #leftcol a:active, .layout-tigris #leftcol a:hover {
color: #f30 !important;
}
.layout-tigris .toolgroup {
background: #efefef;
margin-bottom: 6px;
}
.layout-tigris .toolgroup .label {
border-bottom: 1px solid #666;
border-right: 1px solid #666;
background: #ddd;
color: #555;
padding: 4px;
font-weight: bold;
voice-family: "\"}\"";
voice-family: inherit;
font-size: x-small;
}
.layout-tigris .toolgroup .body {
border-right: 1px solid #aaa;
border-bottom: 1px solid #aaa;
padding: 4px 4px 4px 0;
}
.layout-tigris .toolgroup .body div {
padding-bottom: .3em;
padding-left: 0;
voice-family: "\"}\"";
voice-family: inherit;
font-size: x-small;
}
.layout-tigris .toolgroup .body div div {
padding-left: .5em;
}
.layout-tigris .toolgroup .pagetitle{
font-weight: bold;
padding-left: .5em;
voice-family: "\"}\"";
voice-family: inherit;
font-size: x-small;
}
.layout-tigris .toolgroup .body div p {
margin-top: .0;
padding-bottom: 0;
padding-left: 0;
margin-top: .0;
margin-bottom: .0;
}
/*
Database Browser
*/
.jetdbHead
{
text-decoration:underline;
background-color:#6868AB;
layer-background-color:#CCCCFF;
border-style:outset;
border-width:2px;
border-left-color:white;
border-top-color:white;
border-bottom-color:black;
border-right-color:black;
cursor:hand;
FONT-SIZE:8pt;
FONT-WEIGHT:bold;
COLOR: white;
; font-family: Verdana, Arial, Helvetica, sans-serif
}
.jetdbHeadNoLink
{
background-color:#6868AB;
layer-background-color:#6868AB;
border-style:solid;
border-width:2px;
border-left-color:#6868AB;
border-top-color:#6868AB;
border-bottom-color:#6868AB;
border-right-color:#6868AB;
FONT-SIZE:7pt;
FONT-WEIGHT:normal;
COLOR: white;
; font-family: Verdana, Arial, Helvetica, sans-serif
}
.jetdbOdd
{
background-color:#CCCCCC;
FONT-SIZE:7pt;
FONT-WEIGHT:normal;
}
.jetdbEven
{
background-color:#999999;
FONT-SIZE:7pt;
FONT-WEIGHT:normal;
}
.jetdbLight
{
background-color:#ccccff;
FONT-SIZE:7pt;
FONT-WEIGHT:normal;
}
.jetdbButton
{
background-color: #CCCCCC;
border-style: none;
color: Black;
display: block;
font-weight: normal;
padding: 0;
font-family : Arial, Helvetica, sans-serif;
font-size : 8pt;
border-top: 1px solid #FFFFFF;
border-left: 1px solid #FFFFFF;
border-right: 1px solid #0A0A0A;
border-bottom: 1px solid #0A0A0A;
width : 65px;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]