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 ta...@apache.org on 2007/08/14 21:51:38 UTC
svn commit: r565887 - in
/portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap:
./ decorator.properties footer.vm header.vm
Author: taylor
Date: Tue Aug 14 12:51:37 2007
New Revision: 565887
URL: http://svn.apache.org/viewvc?view=rev&rev=565887
Log:
https://issues.apache.org/jira/browse/JS2-769
Added:
portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/
portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/decorator.properties
portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/footer.vm
portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/header.vm
Added: portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/decorator.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/decorator.properties?view=auto&rev=565887
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/decorator.properties (added)
+++ portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/decorator.properties Tue Aug 14 12:51:37 2007
@@ -0,0 +1,41 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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=wap
+template.macros=-macros
+decorates=layout
+base.css.class=layout-wap
+
+#: BEGIN comment for JSP
+template.type=velocity
+template.extension=.vm
+#: END comment for JSP
+
+#: BEGIN uncomment for JSP
+#template.type=JSP
+#template.extension=.jsp
+#header=header.jsp
+#footer=footer.jsp
+#: END uncomment for JSP
+
+##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
+#allow.customize.all=true
+
Added: portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/footer.vm
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/footer.vm?view=auto&rev=565887
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/footer.vm (added)
+++ portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/footer.vm Tue Aug 14 12:51:37 2007
@@ -0,0 +1,2 @@
+</wml>
+
Added: portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/header.vm
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/header.vm?view=auto&rev=565887
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/header.vm (added)
+++ portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/decorations/layout/wap/header.vm Tue Aug 14 12:51:37 2007
@@ -0,0 +1,30 @@
+<?xml version="1.0" ?>
+<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
+<wml>
+#set($pagesStandardMenu = $site.getMenu("pages"))
+#if(!$pagesStandardMenu.empty)
+ #foreach($element in $pagesStandardMenu.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))
+ <card id='${tabName}' title='$!tabTitle'>
+ <a href="">${tabName}</a>
+ #else
+ #set($tabUrl = $jetspeed.getAbsoluteUrl($element.url))
+ <card id='${tabName}' title='$!tabTitle">
+ <a href="$tabUrl">${tabName}</a>
+ </card>
+ #end
+ #end
+ #end
+ #end
+#end
+
+#if ($request.getUserPrincipal())
+<span style="position:absolute;right:5em"><a href="#BaseHref()login/logout">Logout</a></span>
+<card id='logout' title='Logout">
+ <a href="#BaseHref()login/logout">Logout</a>
+</card>
+#end
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org