You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by sh...@apache.org on 2006/04/26 23:20:51 UTC

svn commit: r397304 - in /portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower: ./ css/ css/styles.css decorator-macros.vm decorator.properties footer.vm header.vm images/ images/back.jpg images/nw_maj_rond.gif

Author: shinsuke
Date: Wed Apr 26 14:20:50 2006
New Revision: 397304

URL: http://svn.apache.org/viewcvs?rev=397304&view=rev
Log:
added sunflower layout decorator

Added:
    portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/
    portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/css/
    portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/css/styles.css   (with props)
    portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/decorator-macros.vm
    portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/decorator.properties   (with props)
    portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/footer.vm
    portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/header.vm
    portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/images/
    portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/images/back.jpg   (with props)
    portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/images/nw_maj_rond.gif   (with props)

Added: portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/css/styles.css
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/css/styles.css?rev=397304&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/css/styles.css (added)
+++ portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/css/styles.css Wed Apr 26 14:20:50 2006
@@ -0,0 +1,201 @@
+/*
+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.
+*/
+
+@import url("../../css/portal-standard.css");
+
+body {
+background-color:#444;
+font-family:Lucida Sans Unicode, Arial;
+font-size:12px;
+margin:0px 0px 0px 0px;
+color:#555;
+}
+
+/** 
+  This white-space setting is VERY important as it keeps content from "spilling"
+  outside of portlets.
+  */
+
+a:link, a:visited {
+color:#999;
+text-decoration:none;
+}
+
+a:hover {
+text-decoration:underline;
+}
+
+body.layout-sunflower
+{
+    margin: 0;
+    padding: 0;
+}
+
+
+.layout-sunflower #breadcrumbs {
+    border-top: 1px dotted #666;
+    border-bottom: 1px dotted #666;
+    voice-family: "\"}\"";
+    voice-family: inherit;
+    font-size: x-small;
+    padding: 3px 8px;
+    margin: 3px;
+}
+
+.layout-sunflower #breadcrumbs a {
+    text-decoration: none;
+}
+
+
+#portal-page-actions A img
+{
+   display: inline;   
+}
+
+#portal-page-actions
+{
+   display: inline;
+   position: absolute;
+   right: 5px;
+}
+
+.layout-sunflower .layout-edit-bar
+{
+  width: 100%;
+  padding-top: 5px;
+  font-size: 8pt;
+  color: blue;
+  overflow:hidden;
+  clip:auto;
+}
+
+.layout-sunflower .layout-edit-bar label, 
+.layout-sunflower .layout-edit-bar input, 
+.layout-sunflower .layout-edit-bar select 
+{
+  font-size: 8pt;
+  color: blue;
+}
+
+.layout-sunflower .layout-edit-bar input
+{
+  font-size: 8pt;
+}
+
+.layout-sunflower .layout-edit-bar-left
+{
+  display:inline;
+  float:left;
+}
+
+.layout-sunflower .layout-edit-bar-right
+{
+  display:inline;
+  float:right;
+  padding-right: 5px;
+}
+
+.layout-sunflower .portlet-edit-bar select
+{
+  font-size: 8pt;
+  color: blue;
+}
+
+.layout-sunflower .content{
+margin-left:150px;
+background-color:#fff;
+border-left:1px solid #eee;
+padding:20px;
+font-size:1.2em;margin-right:5px;
+}
+
+.layout-sunflower p {
+padding:2px 2px 2px 2px;
+}
+
+.layout-sunflower .thebox{
+width:100%;
+position:relative;
+background-color:#fff;
+}
+.layout-sunflower .logo{
+color:#111;
+position:relative;
+margin:0px 0px 0px 0px;
+padding:0px 0px 0px 0px;
+height:230px;
+font-size:2.5em;
+text-align:right;
+background:url(../images/back.jpg) no-repeat #87ADD2;
+}
+
+.layout-sunflower .logo a{
+color:#000;
+}
+
+.layout-sunflower .header{
+position:relative;
+margin:0px 0px 0px 0px;
+padding:0px 0px 0px 0px;
+text-align:right;
+list-style-type:none;
+font-size:1.4em;
+background-color:#444;
+}
+
+.layout-sunflower .header li{
+color:#888;
+display:inline;
+padding:0px 10px 0px 10px;
+}
+.layout-sunflower .header li a{
+color:#aaa;
+text-decoration:none;
+}
+.layout-sunflower .header li a:hover{
+color:#ccc;
+text-decoration:none;
+}
+
+.layout-sunflower .footer{
+position:relative;
+text-align:right;
+font-size:1em;
+color:#ccc;
+background-color:#444;width:100%;
+}
+.layout-sunflower .footer a{
+color:#eee;
+}
+.layout-sunflower .side{
+float:left;
+margin:0px 20px 50px 10px;
+font-size:1.05em;
+width:140px;
+}
+.layout-sunflower .side div a{
+color:#555;
+font-size:1.05em;
+}
+
+.layout-sunflower h2{
+font-size:1.4em;
+color:#888;
+}
+
+.layout-sunflower h4{
+font-size:1.1em;
+}

Propchange: portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/css/styles.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/decorator-macros.vm
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/decorator-macros.vm?rev=397304&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/decorator-macros.vm (added)
+++ portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/decorator-macros.vm Wed Apr 26 14:20:50 2006
@@ -0,0 +1,242 @@
+#* 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")
+  #set($TITLE_FIRST = "TitleFirst")
+  #set($TITLE_LAST = "TitleLast")
+  #set($BREADCRUMBS_STYLE = "BreadcrumbsStyle")
+#end
+
+#* include tabs navigation component *#
+#macro (includeTabsNavigation $_menu $_orientation)
+    <ul class="header">
+    #foreach($element in $_menu.elements.iterator())
+      #if($element.elementType == "option")
+        #set($tabTitle = $element.getTitle($preferedLocale))
+        #set($tabName = $element.getShortTitle($preferedLocale))
+        #if($_orientation == $LEFT_TO_RIGHT)
+          #if($element.isSelected($site))
+        <li>${tabName}</li>
+          #else
+            #set($tabUrl = $jetspeed.getAbsoluteUrl($element.url))
+        <li><a href="$tabUrl">${tabName}</a></li>
+          #end
+        #end
+      #end
+    #end
+    </ul>
+#end
+
+#* include links navigation component *#
+#macro (includeLinksNavigation $_menu $_orientation $_title $_style $_delimiter)
+  #if(!$_delimiter || $_delimiter == "")
+    #if($_style != $BREADCRUMBS_STYLE)
+      #set($_delimiter = "&nbsp;")
+    #else
+      #set($_delimiter = "&nbsp;&gt;&gt;&nbsp;")
+    #end
+  #end
+  #set($menuTitle = $_menu.getTitle($preferedLocale))
+  #set($menuName = $_menu.getShortTitle($preferedLocale))
+  
+      <div class="FolderList">
+  #if($_title == $TITLE_FIRST)
+    #if($_orientation == $LEFT_TO_RIGHT)
+		
+        <span title="$!menuTitle">${menuName}&nbsp;</span>
+    #elseif($_orientation == $TOP_TO_BOTTOM)
+		
+        <div class="pagetitle" title="$!menuTitle">${menuName}</div>
+    #end
+  #end
+  #foreach($element in $_menu.elements.iterator())
+    #if($element.elementType == "option")
+      #set($linkTitle = $element.getTitle($preferedLocale))
+      #set($linkName = $element.getShortTitle($preferedLocale))
+      #set($linkUrl = $jetspeed.getAbsoluteUrl($element.url))
+      #if($_style != $BREADCRUMBS_STYLE || $element.type != "page" || $velocityCount < $_menu.elements.size())
+        #if($_orientation == $LEFT_TO_RIGHT)
+			
+        <span>
+        #elseif($_orientation == $TOP_TO_BOTTOM)
+			
+        <div>
+        #end
+        #if($element.type == "page")
+			
+          <a href="$linkUrl" class="LinkPage" title="$!linkTitle">${linkName}</a>
+        #elseif($element.type == "link")
+			
+          <a href="$linkUrl" class="Link" title="$!linkTitle">${linkName}</a>
+        #elseif($element.type == "folder")
+			
+          <a href="$linkUrl" class="LinkFolder" title="$!linkTitle">${linkName}</a>
+        #else
+			
+          <a href="$linkUrl" title="$!linkTitle">${linkName}</a>
+        #end
+        #if($_orientation == $LEFT_TO_RIGHT)
+        ${_delimiter}</span>
+        #elseif($_orientation == $TOP_TO_BOTTOM)
+			
+        </div>
+        #end
+      #else
+        #if($_orientation == $LEFT_TO_RIGHT)
+			
+        <span title="$!linkTitle">${linkName}&nbsp;</span>		
+        #elseif($_orientation == $TOP_TO_BOTTOM)
+			
+        <div title="$!linkTitle">${linkName}</div>
+        #end
+      #end
+    #elseif($element.elementType == "separator")
+      #set($separatorTitle = $element.getTitle($preferedLocale))
+      #set($separatorText = $element.getText($preferedLocale))
+      #if($_orientation == $LEFT_TO_RIGHT)
+		
+        <span title="$!separatorTitle">${separatorText}${_delimiter}</span>              
+      #elseif($_orientation == $TOP_TO_BOTTOM)
+		
+        <div class="pagetitle" title="$!separatorTitle">${separatorText}</div>              
+      #end
+    #end
+  #end
+  #if($_title == $TITLE_LAST)
+    #if($_orientation == $LEFT_TO_RIGHT)
+		
+        <span title="$!menuTitle">${menuName}&nbsp;</span>
+    #elseif($_orientation == $TOP_TO_BOTTOM)
+		
+        <div class="pagetitle" title="$!menuTitle">${menuName}</div>
+    #end
+  #end
+  
+      </div>
+#end
+
+#* include nested menu links navigation component *#
+#macro (includeNestedLinksWithIconNavigation $_menu $_orientation)
+  #set($menuTitle = $_menu.getTitle($preferedLocale))
+  #set($menuName = $_menu.getShortTitle($preferedLocale))
+  #if($menuName)
+              <div class="pagetitle" title="$!menuTitle">${menuName}</div>
+  #end
+              <div>
+  #foreach($element in $_menu.elements.iterator())
+    #if($element.elementType == "option")
+      #set($linkTitle = $element.getTitle($preferedLocale))
+      #set($linkName = $element.getShortTitle($preferedLocale))
+      #set($linkUrl = $jetspeed.getAbsoluteUrl($element.url))
+      #if($element.type == "page")
+                <div><a href="$linkUrl" class="LinkPage" title="$!linkTitle">${linkName}</a></div>
+      #elseif($element.type == "link")
+        #set($linkTarget = $element.target)
+                <div><a href="$linkUrl" target="$linkTarget" class="Link" title="$!linkTitle">${linkName}</a></div>	
+      #elseif($element.type == "folder")
+                <div><a href="$linkUrl" class="LinkFolder" title="$!linkTitle">$linkName</a></div>
+      #end
+    #elseif($element.elementType == "menu")
+      #includeNestedLinksWithIconNavigation($element $_orientation)
+    #elseif($element.elementType == "separator")
+      #set($separatorTitle = $element.getTitle($preferedLocale))
+      #set($separatorText = $element.getText($preferedLocale))
+                  <div class="pagetitle" title="$!separatorTitle">${separatorText}</div>              
+    #end
+  #end
+              </div>
+#end
+
+#* include top level menu links navigation component *#
+#macro (includeLinksWithIconNavigation $_menu $_orientation)
+  #set($rowStarted = false)
+  #set($elementsStarted = false)
+  #foreach($element in $_menu.elements.iterator())
+    #if($element.elementType == "option")
+      #if(!$rowStarted)
+#*
+        <tr>
+          <td>
+            <div class="toolgroup">
+              <div class="body">
+                <div class="FolderList">
+*#
+      #elseif(!$elementsStarted)
+#*
+              <div class="body">
+                <div class="FolderList">
+*#
+      #end
+      #set($linkTitle = $element.getTitle($preferedLocale))
+      #set($linkName = $element.getShortTitle($preferedLocale))
+      #set($linkUrl = $jetspeed.getAbsoluteUrl($element.url))
+      #if($element.type == "page")
+                  <div><a href="$linkUrl" class="LinkPage" title="$!linkTitle">${linkName}</a></div>
+      #elseif($element.type == "link")
+        #set($linkTarget = $element.target)
+                  <div><a href="$linkUrl" target="$!linkTarget" class="Link" title="$!linkTitle">${linkName}</a></div>	
+      #elseif($element.type == "folder")
+                  <div><a href="$linkUrl" class="LinkFolder" title="$!linkTitle">$linkName</a></div>
+      #end
+      #set($rowStarted = true)
+      #set($elementsStarted = true)
+    #elseif($element.elementType == "menu")
+      #if(!$rowStarted)
+#*
+        <tr>
+          <td>
+            <div class="toolgroup">
+              <div class="body">
+                <div class="FolderList">
+*#
+      #elseif(!$elementsStarted)
+#*
+              <div class="body">
+                <div class="FolderList">
+*#
+      #end
+      #includeNestedLinksWithIconNavigation($element $_orientation)
+      #set($rowStarted = true)
+      #set($elementsStarted = true)
+    #elseif($element.elementType == "separator")
+      #if(!$rowStarted)
+#*
+        <tr>
+          <td>
+            <div class="toolgroup">
+*#
+      #elseif($elementsStarted)
+#*
+                </div>
+              </div>
+*#
+      #end
+      #set($separatorTitle = $element.getTitle($preferedLocale))
+      #set($separatorText = $element.getText($preferedLocale))
+        <h2>${separatorText}</h2>
+#*
+              <div class="label">
+                ${separatorText}
+              </div>
+*#
+      #set($rowStarted = true)
+      #set($elementsStarted = false)
+    #end
+  #end
+  #if($elementsStarted)
+#*
+                </div>
+              </div>
+*#
+  #end
+  #if($rowStarted)
+#*
+            </div>
+          </td>
+        </tr>
+*#
+  #end
+#end

Added: portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/decorator.properties
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/decorator.properties?rev=397304&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/decorator.properties (added)
+++ portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/decorator.properties Wed Apr 26 14:20:50 2006
@@ -0,0 +1,28 @@
+# 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=sunflower
+template.type=velocity
+template.extension=.vm
+template.macros=-macros
+decorates=layout
+base.css.class=layout-sunflower
+
+##following are defaults
+#allow.change.page.theme=true
+#allow.change.layout=true
+#max.layout.nesting=2
+#allow.add.page=true
+#allow.add.portlet=true
+#allow.change.portlet.decorator=true

Propchange: portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/decorator.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/footer.vm
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/footer.vm?rev=397304&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/footer.vm (added)
+++ portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/footer.vm Wed Apr 26 14:20:50 2006
@@ -0,0 +1,24 @@
+#*
+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.
+*#
+
+</div>
+    <div class="footer">
+      Powered by Apache Portals Jetspeed
+    </div>
+</div>
+</body>
+</html>
+

Added: portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/header.vm
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/header.vm?rev=397304&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/header.vm (added)
+++ portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/header.vm Wed Apr 26 14:20:50 2006
@@ -0,0 +1,90 @@
+#*
+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.
+*#
+
+#*
+This original design comes from Open Source Web Design.
+  http://www.oswd.org/design/preview/id/2904
+ Modified by Shinsuke Sugaya <sh...@yahoo.co.jp>
+*#
+
+#* Add the current layouts configuration values to the context *#
+#defineLayoutObjects()
+
+#* Loads our custom macros *#
+#parse($layoutDecoration.getResource("decorator-macros.vm"))
+
+#* Add all template constants to the current context *#
+#defineNavigationConstants()
+
+<html>
+  <head>
+    ## include header resources immdiately after head and before base is reset to the portal
+    ## web application context path root; this implies that header resources can not reliably
+    ## employ relative urls to locate content
+    #includeHeaderResource()
+
+	<base href="#BaseHref()">
+    <meta http-equiv="Content-type" content="#ContentType()" />
+    <meta http-equiv="Content-style-type" content="text/css" />   
+
+    #includeJavaScriptForHead()
+    #IncludeStylesheets()
+	
+    <title>#PageTitle()</title>
+
+    <meta name="version" content="#SiteVersionTag()">
+    <meta name="keywords" content="" />
+    <meta name="description" content="#PageDescription()" />
+  </head>
+
+<body class="#PageBaseCSSClass()">
+<div class="#PageBaseCSSClass()">
+<div class="thebox">
+    <div class="logo"><a href="#BaseHref()">Jetspeed</a></div>
+
+<!-- Top Tabs Menu -->
+#set($pagesStandardMenu = $site.getMenu("pages"))
+#if(!$pagesStandardMenu.empty)
+#includeTabsNavigation($pagesStandardMenu $LEFT_TO_RIGHT)
+#end
+
+    <div class="side">
+
+<!-- Left Navigations Menu Table Data -->
+#set($navigationsStandardMenu = $site.getMenu("navigations"))
+
+#if(!$navigationsStandardMenu.empty)
+#includeLinksWithIconNavigation($navigationsStandardMenu $TOP_TO_BOTTOM)
+#end
+
+    </div>
+
+    <div class="content">
+    
+<div id="breadcrumbs">
+#set($breadcrumbsStandardMenu = $site.getMenu("breadcrumbs"))
+#if(!$breadcrumbsStandardMenu.empty)
+#includeLinksNavigation($breadcrumbsStandardMenu $LEFT_TO_RIGHT "" $BREADCRUMBS_STYLE "")
+#else
+        &nbsp;
+#end
+     <!-- Page Action Bar -->
+     #PageActionBar()
+
+</div>
+
+
+<!--  END: layout/html/sunflower/decorator.vm -->

Added: portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/images/back.jpg
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/images/back.jpg?rev=397304&view=auto
==============================================================================
Binary file - no diff available.

Propchange: portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/images/back.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg

Added: portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/images/nw_maj_rond.gif
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/images/nw_maj_rond.gif?rev=397304&view=auto
==============================================================================
Binary file - no diff available.

Propchange: portals/jetspeed-2/trunk/src/webapp/decorations/layout/sunflower/images/nw_maj_rond.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org