Added: portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/columns/layout-help.vm URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/columns/layout-help.vm?rev=239262&view=auto ============================================================================== --- portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/columns/layout-help.vm (added) +++ portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/columns/layout-help.vm Mon Aug 22 15:23:39 2005 @@ -0,0 +1,51 @@ +## 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. +#set($myPage = $jetspeed.page) +#set($myFragment = $jetspeed.currentFragment) +#set($decorator = $myPage.getDefaultDecorator($myFragment.getType())) +#set($actions = $jetspeed.PageDecoratorActions) +#if($myFragment.getDecorator()) +#set($decorator = $myFragment.getDecorator()) +#end +#if ($decorator) +#set($decoTop = "${decorator}/decorator-top.vm") +#set($decoBottom = "${decorator}/decorator-bottom.vm") +#end +## Decorator $decorator ${decoTop} - ${decoBottom} +#if (($decoTop) && ($myFragment == $myPage.getRootFragment())) +#parse($jetspeed.getDecoration($decoTop, "layout").appRelativePath) +#end +#set($layoutType =$portletConfig.getInitParameter("layoutType")) +#if($jetspeed.portletMode.toString() == "edit") +#set($editing = true) +#set($lastColumn = $renderRequest.getAttribute("numberOfColumns") - 1) +#end +## Begin portlet/html/jetspeed/decorator.vm +<div id="portlet-help" class="portlet-Jetspeed" > +<div class="PContent"> +## +## Portlet Title Bar +## +#foreach ($action in $actions) +<a href="${action.Action}" title="${action.Name}"><img src="${action.Link}" alt="${action.Alt}" class="noborder"/></a> +#end +</div> +<div class="PContent"> +<h2>Help for Jetspeed Multicolumn Page Portlet</h2> +<p>TODO: Make all strings here resources</p> +</div> +</div> +#if (($decoBottom ) && ($myFragment == $myPage.getRootFragment())) +#parse($jetspeed.getDecoration($decoBottom, "layout").appRelativePath) +#end
Added: portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/columns/layout.properties URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/columns/layout.properties?rev=239262&view=auto ============================================================================== --- portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/columns/layout.properties (added) +++ portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/columns/layout.properties Mon Aug 22 15:23:39 2005 @@ -0,0 +1,17 @@ +# 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=columns +template.type=velocity +template.extension=.vm \ No newline at end of file Propchange: portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/columns/layout.properties ------------------------------------------------------------------------------ svn:eol-style = native Added: portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/columns/layout.vm URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/columns/layout.vm?rev=239262&view=auto ============================================================================== --- portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/columns/layout.vm (added) +++ portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/columns/layout.vm Mon Aug 22 15:23:39 2005 @@ -0,0 +1,76 @@ +## 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. +#set($sizes = $jetspeed.columnSizes) +#set($myPage = $jetspeed.page) +#set($myFragment = $jetspeed.currentFragment) +#set($decorator = $myPage.getDefaultDecorator($myFragment.getType())) +#set($actions = $jetspeed.PageDecoratorActions) +#set($editing = false) +#if($jetspeed.portletMode.toString() == "edit") +#set($editing = true) +#set($lastColumn = $renderRequest.getAttribute("numberOfColumns") - 1) +#end +#if($myFragment.getDecorator()) +#set($decorator = $myFragment.getDecorator()) +#end +#if($decorator) +#set($decoTop = "${decorator}/decorator-top.vm") +#set($decoBottom = "${decorator}/decorator-bottom.vm") +#end +#if(($decoTop) && ($myFragment == $myPage.getRootFragment())) +#parse($jetspeed.getDecoration($decoTop, "layout").appRelativePath) +#end +#set($layoutType =$portletConfig.getInitParameter("layoutType")) +#set($columnLayout = $renderRequest.getAttribute("columnLayout")) +#if($actions.size()>0) +<div class="PContent"> +#foreach ($action in $actions) +<a href="${action.Action}" title="${action.Name}"><img src="${action.Link}" alt="${action.Alt}" class="noborder"/></a> +#end +#if($editing == true) +#set ($chooser = "${jetspeed.basePath}/Administrative/choosers/portlet-selector.psml") +#set ($imgsrc="${jetspeed.pageBasePath}/content/images/select.gif") +##TODO <a href="javascript:openWindow('$response.encodeURL($chooser)')"><img src="$jetspeed.getAbsoluteUrl($imgsrc)" title="Select" class="noborder"/></a> +#end +</div> +#end +## +##TODO <form id='portletform' action="$renderResponse.createActionURL()" method="post"> +##TODO <div> +##TODO <input type='hidden' name='portlets'/> +##TODO <input type='hidden' name='page' value='$myPage'/> +##TODO </div> +##TODO </form> +## +<div id="portal-layout-$htmlUtil.getSafeElementId($myPage.id)" class="portal-layout"> +#set ($sizeIndex = 0) +#set ($layoutImageBase = "${jetspeed.pageBasePath}/content/images") +#foreach($column in $columnLayout.columns) +#set ($sizeIndex = $sizeIndex + 1) +#foreach($f in $column) +## TODO: Edit layout +## get the decorated Portlet content +#if($f.type == "portlet") +#parse($jetspeed.decorateAndInclude($f)) +#else +$jetspeed.setCurrentFragment($f) +$f.renderedContent +#end## if($f.type == "portlet") +#end## foreach($f in $column) +#end ## foreach($column in $columnLayout.columns) +</div> +## +#if(($decoBottom ) && ($myFragment == $myPage.getRootFragment())) +#parse($jetspeed.getDecoration($decoBottom, "layout").appRelativePath) +#end Added: portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/maximized/layout.properties URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/maximized/layout.properties?rev=239262&view=auto ============================================================================== --- portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/maximized/layout.properties (added) +++ portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/maximized/layout.properties Mon Aug 22 15:23:39 2005 @@ -0,0 +1,18 @@ +# 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=maximized +template.type=velocity +template.extension=.vm + Propchange: portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/maximized/layout.properties ------------------------------------------------------------------------------ svn:eol-style = native Added: portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/maximized/layout.vm URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/maximized/layout.vm?rev=239262&view=auto ============================================================================== --- portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/maximized/layout.vm (added) +++ portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/xhtml-basic/maximized/layout.vm Mon Aug 22 15:23:39 2005 @@ -0,0 +1,40 @@ +## 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. +#set($table = $jetspeed.columns) +#set($myPage = $jetspeed.page) +#set($myFragment = $request.getAttribute("org.apache.jetspeed.maximized.Fragment")) +#set($myLayout = $jetspeed.currentLayout) +#set($decorator = $myPage.getDefaultDecorator($myFragment.getType())) +#set($ldecorator = $myPage.getDefaultDecorator("layout")) +#if($myFragment.getDecorator()) +#set($decorator = $myFragment.getDecorator()) +#end +#if($myLayout.getDecorator()) +#set($ldecorator = $myLayout.getDecorator()) +#end +#if($ldecorator) +#set($decoTop = "${ldecorator}/decorator-top.vm") +#set($decoBottom = "${ldecorator}/decorator-bottom.vm") +#end +## Decorator $decorator ${decoTop} - ${decoBottom} +#if($decoTop) +#parse($jetspeed.getDecoration($decoTop, "layout").appRelativePath) +#end +## +## get the decorated Portlet content +#parse($jetspeed.decorateAndInclude($myFragment)) +## +#if($decoBottom) +#parse($jetspeed.getDecoration($decoBottom, "layout").appRelativePath) +#end --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
