商品をカートに入れるには、本サービスにログインしてください。
From svnnotify @ sourceforge.jp Wed Oct 3 06:42:35 2007
From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp)
Date: Wed, 03 Oct 2007 06:42:35 +0900
Subject: [pal-cvs 2857] [602] added pompei decorator.
Message-ID: <1191361355.105452.6338.nullmailer@users.sourceforge.jp>
Revision: 602
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=602
Author: shinsuke
Date: 2007-10-03 06:42:34 +0900 (Wed, 03 Oct 2007)
Log Message:
-----------
added pompei decorator.
Added Paths:
-----------
pompei/portal/trunk/src/custom/portal/files/src/
pompei/portal/trunk/src/custom/portal/files/src/webapp/
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/css/
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/css/styles.css
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/decorator-macros.vm
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/decorator.properties
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/footer.vm
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/header.vm
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/images/
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/images/coreback.gif
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/images/footer_bg.gif
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/images/footer_bg.xcf
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/images/header.jpg
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/images/header_bg.gif
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/images/header_bg.xcf
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/images/logo.png
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/images/logo.xcf
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/images/readmore_arrow.gif
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/images/readmore_over.gif
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/images/tab_bg.gif
pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/images/tab_bg.xcf
-------------- next part --------------
Added: pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/css/styles.css
===================================================================
--- pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/css/styles.css 2007-10-02 07:48:42 UTC (rev 601)
+++ pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/css/styles.css 2007-10-02 21:42:34 UTC (rev 602)
@@ -0,0 +1,289 @@
+/*
+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 {
+ height: auto;
+ background: #FFF;
+ color: #000000;
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 10px;
+}
+
+/**
+ This white-space setting is VERY important as it keeps content from "spilling"
+ outside of portlets.
+ */
+
+a:link, a:visited {
+ color: #335599;
+ text-decoration: underline;
+}
+
+a:hover {
+ color: #4466aa;
+}
+
+body.layout-pompei
+{
+ margin: 0;
+ padding: 0;
+}
+
+
+#portal-page-actions A img
+{
+ display: inline;
+}
+
+#portal-page-actions
+{
+ text-align:right;
+}
+
+.layout-pompei .layout-edit-bar
+{
+ width: 100%;
+ padding-top: 5px;
+ font-size: 8pt;
+ color: blue;
+ overflow:hidden;
+ clip:auto;
+}
+
+.layout-pompei .layout-edit-bar label,
+.layout-pompei .layout-edit-bar input,
+.layout-pompei .layout-edit-bar select
+{
+ font-size: 8pt;
+ color: blue;
+}
+
+.layout-pompei .layout-edit-bar input
+{
+ font-size: 8pt;
+}
+
+.layout-pompei .layout-edit-bar-left
+{
+ display:inline;
+ float:left;
+}
+
+.layout-pompei .layout-edit-bar-right
+{
+ display:inline;
+ float:right;
+ padding-right: 5px;
+}
+
+.layout-pompei .portlet-edit-bar select
+{
+ font-size: 8pt;
+ color: blue;
+}
+
+
+
+/* site specific styling */
+
+
+/* the container centers the page */
+.layout-pompei #container {
+ height: auto;
+ margin: 0 10px 0 10px;
+ text-align:left;
+}
+
+
+/* the header that contains the big image */
+.layout-pompei #header {
+ height:60px;
+}
+
+.layout-pompei #header img {
+ margin: 10px 0px 0px 30px;
+ float:left;
+}
+
+.layout-pompei #header .info {
+ margin: 10px 30px 0px 0px;
+ display:inline;
+ text-align:right;
+ float:right;
+}
+
+.layout-pompei #header .info .action {
+ padding: 2px 0px;
+}
+
+.layout-pompei #header .info .action a {
+ padding: 0px 3px;
+ text-decoration: none;
+}
+
+.layout-pompei #header .info .action a:hover {
+ color:#0000ff;
+}
+
+/* the navigationbar in the header */
+.layout-pompei #navbar {
+ margin:0px;
+ padding:0px;
+ height:25px;
+ background-image: url(../images/tab_bg.gif);
+}
+
+/* the links in the navigationbar are an unordered list */
+.layout-pompei #navbar ul {
+ margin:0px;
+ padding:0px;
+}
+
+.layout-pompei #navbar li {
+ list-style: none;
+ margin:0px;
+ padding:0px;
+ height:30px;
+ float: left;
+}
+.layout-pompei #navbar a {
+ float: left;
+ text-decoration: none;
+ margin:0px;
+ padding: 8px 5px;
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 11px;
+ font-weight: bold;
+ color: #ffffff;
+}
+.layout-pompei #navbar a:hover {
+ background: #71758a;
+ color: #ffffff;
+}
+.layout-pompei #navbar span {
+ float: left;
+ text-decoration: none;
+ margin:0px;
+ padding: 8px 5px;
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 11px;
+ font-weight: bold;
+ color: #ffffff;
+}
+
+.layout-pompei #navbar img {
+ background-color:#ffffff;
+ float:right;
+ margin:0px;
+ padding: 0px;
+}
+
+/* the core contains all the site contents */
+.layout-pompei #core {
+ clear:both;
+ height: auto;
+ margin-top: 5px;
+ padding:0px 1px;
+ width:100%;
+}
+
+.layout-pompei #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-pompei #breadcrumbs a {
+ text-decoration: none;
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 10px;
+ color:#12248d;
+}
+
+/* the navigationbar in the header */
+.layout-pompei #subnavbar {
+ margin:0px;
+ padding:0px;
+ height:30px;
+}
+
+/* the links in the navigationbar are an unordered list */
+.layout-pompei #subnavbar ul {
+ margin:0px;
+ padding:0px;
+}
+
+.layout-pompei #subnavbar li {
+ list-style: none;
+ margin:0px;
+ padding:0px;
+ height:30px;
+ float: left;
+}
+.layout-pompei #subnavbar span {
+ float: left;
+ text-decoration: none;
+ margin:0px;
+ padding: 5px 2px;
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 11px;
+ font-weight: bold;
+ color: #666666;
+}
+.layout-pompei #subnavbar a {
+ text-decoration: none;
+}
+.layout-pompei #subnavbar a:hover {
+ color: #0000ff;
+}
+
+/* the corecenter contains the center part of the core */
+.layout-pompei #corecenter {
+ margin:2px;
+ height: auto;
+ width:100%;
+}
+.layout-pompei #corecenter .portlet {
+ margin:1px;
+ width:99%;
+}
+
+/* the footer contains all copyright info etcetera */
+.layout-pompei #footer {
+ clear: both;
+ vertical-align: middle;
+ text-align: center;
+ font-family: Arial Black, Verdana, Arial, Helvetica, sans-serif;
+ font-size: 10px;
+ margin-bottom:10px;
+ margin-top:10px;
+ /*position:relative;*/
+ /*top:30px;*/
+}
+.layout-pompei #footer div {
+ color: #666666;
+ padding: 5px 20px;
+}
+.layout-pompei #footer a {
+ color: #666666;
+}
+
Property changes on: pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/css/styles.css
___________________________________________________________________
Name: svn:eol-style
+ native
Added: pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/decorator-macros.vm
===================================================================
--- pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/decorator-macros.vm 2007-10-02 07:48:42 UTC (rev 601)
+++ pompei/portal/trunk/src/custom/portal/files/src/webapp/decorations/layout/pompei/decorator-macros.vm 2007-10-02 21:42:34 UTC (rev 602)
@@ -0,0 +1,300 @@
+#* define navigation constants *#
+#macro (defineNavigationConstants)
+ #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)
+
+ #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))
+ ${tabName}
+ #else
+ #set($tabUrl = $jetspeed.getAbsoluteUrl($element.url))
+ ${tabName}
+ #end
+ #end
+ #end
+ #end
+
+
+#end
+
+#macro (includeMenuNavigation $_menu $_orientation)
+ #set($sepa="")
+
+ #foreach($element in $_menu.elements.iterator())
+ #if($element.elementType == "option")
+ #set($tabTitle = $element.getTitle($preferedLocale))
+ #set($tabName = $element.getShortTitle($preferedLocale))
+ #if($_orientation == $TOP_TO_BOTTOM)
+ #if($element.isSelected($site))
+ ? ${tabName}
+ #else
+ #set($tabUrl = $jetspeed.getAbsoluteUrl($element.url))
+
+ #end
+ #end
+ #if($_orientation == $LEFT_TO_RIGHT)
+ ${sepa}
+ #if($element.isSelected($site))
+ ${tabName}
+ #else
+ #set($tabUrl = $jetspeed.getAbsoluteUrl($element.url))
+ ${tabName}
+ #end
+ #end
+ #end
+ #set($sepa="| ")
+ #end
+
+#end
+
+#* include links navigation component *#
+#macro (includeLinksNavigation $_menu $_orientation $_title $_style $_delimiter)
+ #if(!$_delimiter || $_delimiter == "")
+ #if($_style != $BREADCRUMBS_STYLE)
+ #set($_delimiter = " ")
+ #else
+ #set($_delimiter = " >> ")
+ #end
+ #end
+ #set($menuTitle = $_menu.getTitle($preferedLocale))
+ #set($menuName = $_menu.getShortTitle($preferedLocale))
+
+
+ #if($_title == $TITLE_FIRST)
+ #if($_orientation == $LEFT_TO_RIGHT)
+
+
${menuName}
+ #elseif($_orientation == $TOP_TO_BOTTOM)
+
+
${menuName}
+ #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)
+
+
+ #elseif($_orientation == $TOP_TO_BOTTOM)
+
+
+ #end
+ #if($element.type == "page")
+
+
${linkName}
+ #elseif($element.type == "link")
+
+
${linkName}
+ #elseif($element.type == "folder")
+
+
${linkName}
+ #else
+
+
${linkName}
+ #end
+ #if($_orientation == $LEFT_TO_RIGHT)
+ ${_delimiter}
+ #elseif($_orientation == $TOP_TO_BOTTOM)
+
+
+ #end
+ #else
+ #if($_orientation == $LEFT_TO_RIGHT)
+
+ ${linkName}
+ #elseif($_orientation == $TOP_TO_BOTTOM)
+
+ ${linkName}
+ #end
+ #end
+ #elseif($element.elementType == "separator")
+ #set($separatorTitle = $element.getTitle($preferedLocale))
+ #set($separatorText = $element.getText($preferedLocale))
+ #if($_orientation == $LEFT_TO_RIGHT)
+
+ ${separatorText}${_delimiter}
+ #elseif($_orientation == $TOP_TO_BOTTOM)
+
+ ${separatorText}
+ #end
+ #end
+ #end
+ #if($_title == $TITLE_LAST)
+ #if($_orientation == $LEFT_TO_RIGHT)
+
+ ${menuName}
+ #elseif($_orientation == $TOP_TO_BOTTOM)
+
+ ${menuName}
+ #end
+ #end
+
+
+#end
+
+#* include nested menu links navigation component *#
+#macro (includeNestedLinksWithIconNavigation $_menu $_orientation)
+ #set($menuTitle = $_menu.getTitle($preferedLocale))
+ #set($menuName = $_menu.getShortTitle($preferedLocale))
+ #if($menuName)
+
${menuName}
+ #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($element.type == "page")
+
+ #elseif($element.type == "link")
+ #set($linkTarget = $element.target)
+
+ #elseif($element.type == "folder")
+
+ #end
+ #elseif($element.elementType == "menu")
+ #includeNestedLinksWithIconNavigation($element $_orientation)
+ #elseif($element.elementType == "separator")
+ #set($separatorTitle = $element.getTitle($preferedLocale))
+ #set($separatorText = $element.getText($preferedLocale))
+
${separatorText}
+ #end
+ #end
+
+#end
+
+#* include top level menu links navigation component *#
+#macro (includeLinksWithIconNavigation $_menu $_orientation)
+ #set($itemIndex = 1)
+ #set($rowStarted = false)
+ #set($elementsStarted = false)
+
+
+ #foreach($element in $_menu.elements.iterator())
+ #if($element.elementType == "option")
+ #if(!$rowStarted)
+
+#*
+
+
+