diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-30 13:59:14 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-30 13:59:14 +0000 |
commit | 6ceef67adfdebed0cad870fdb232350cc3591e8a (patch) | |
tree | 6b2434c4d3c7768b36f06f5d4af2bce3605a60e1 /site | |
parent | dce7df4ffe8b3fd8687a3f467f43ce27cc4b021a (diff) |
Updating site template to avoid using macros as the latest version of confluence/confluence html export have issues dealing with these macros
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@980794 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'site')
-rw-r--r-- | site/trunk/templates/TUSCANY_confluence_html_export.xml | 231 |
1 files changed, 97 insertions, 134 deletions
diff --git a/site/trunk/templates/TUSCANY_confluence_html_export.xml b/site/trunk/templates/TUSCANY_confluence_html_export.xml index fee5c3bda1..9d3b1aa241 100644 --- a/site/trunk/templates/TUSCANY_confluence_html_export.xml +++ b/site/trunk/templates/TUSCANY_confluence_html_export.xml @@ -1,158 +1,121 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
##
#set ($pageContentHeaderEnabled = false)
##
-#macro (spacer $width $height)
- ##
- ## Note: Replaced the spacer.gif with a table because IE wont honor the image height
- ##
- ## <img src="$images/spacer.gif" width="$width" height="$height" border="0">
- ##
- <table> <!-- spacer -->
- <tr>
- <td width="$width" height="$height"></td>
- </tr>
- </table>
-#end
##
-#macro (renderPage $title)
- #set($globalHelper = $action.getGlobalHelper())
- #set($renderer = $globalHelper.getWikiStyleRenderer())
-
- ##
- ## FIXME: Must be a more efficient way to find a page...
- ##
-
- #foreach ($child in $page.space.pages)
- #if ($child.title.equals($title))
- #set ($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim())
-
- ##
- ## HACK: Remove the leading <P> and trailing </P>
- ##
-
- #set ($content = $content.substring(3, $content.length()))
- #set ($end = $content.length() - 4)
- #set ($content = $content.substring(0, $end))
-
- $content
- #end
- #end
-#end -## -#macro (generateKeywords) - <META name="description" content="Apache Tuscany"/> - <META name="keywords" content="apache, apache tuscany, tuscany, service, services, fabric, soa, service oriented architecture, sca, service component architecture, das, sdo, csa, ruby, opensource"/>
-#end -##
-#macro (topNav)
- <table valign="top" border="0" cellspacing="0" cellpadding="0" width="100%" background="http://tuscany.apache.org/images/TuscanyLogoNEW_Text_120px_bg.jpg">
- <tr>
- <td valing="top" align="left">
- <a href="$siteroot"><img src="http://tuscany.apache.org/images/TuscanyLogoNEW_Text_120px_bg.jpg" height="91" width="25" border="0"></a>
- </td>
- <td>
- <a href="http://tuscany.apache.org/"><img src="http://tuscany.apache.org/images/TuscanyLogo.jpg" border="0"></a>
- </td>
-
- <td width="100%">
-
- </td>
- <!--td align="right">
- <img src="http://incubator.apache.org/tuscany/images/apache-incubator-logo.png" border="0">
- </td-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--
- <!-- Adds the edit page link to the top banner-->
- <td valign="bottom">
- <div style="padding: 2px 10px; margin: 0px;">
- <a href="$confluenceUri/pages/editpage.action?pageId=$page.id">
- <img src="http://tuscany.apache.org/images/notep_16.gif" height="16" width="16" border="0" align="absmiddle" title="Edit Page"></a>
- </div>
- </td>
+ 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
- </tr>
- </table>
-#end
-##
-#macro (pageControls)
- <div align="right" style="padding: 2px 10px; margin: 0px;">
- <a href="$confluenceUri/pages/editpage.action?pageId=$page.id">
- <img src="http://tuscany.apache.org/images/notep_16.gif" height="16" width="16" border="0" align="absmiddle" title="Edit Page"></a>
- </div>
-#end
-##
-#macro (breadCrumbs)
- <table border="0" cellpadding="2" cellspacing="0" width="100%">
- <tr class="topBar">
- <td align="left" valign="middle" class="topBarDiv" nowrap="true" width="100%">
- $autoexport.breadcrumbs($page)
- </td>
-
- <td align="right" valign="middle" class="topBarDiv" align="left" nowrap="true">
- <a href="http://mail-archives.apache.org/mod_mbox/tuscany-user">User List</a> | <a href="http://mail-archives.apache.org/mod_mbox/tuscany-dev">Dev List</a> | <a href="http://issues.apache.org/jira/browse/Tuscany">Issue Tracker</a>
- </td>
- </tr>
- </table>
-#end
-##
-#macro (pageContent)
- <div id="PageContent">
- #if ($pageContentHeaderEnabled)
- <div class="pageheader" style="padding: 6px 0px 0px 0px;">
- <div style="margin: 0px 10px 0px 10px" class="smalltext">$page.space.name</div>
- <div style="margin: 0px 10px 8px 10px" class="pagetitle">$page.title</div>
- </div>
- #end
-
- <div class="pagecontent">
- <div class="wiki-content">
- $body
- </div>
- </div>
- </div>
-#end
-##
-#macro (footer)
- ## Google Analytics script
- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
- </script>
- <script type="text/javascript">
- _uacct = "UA-1174707-5";
- urchinTracker();
- </script>
-
- ## StatCounter script
- <a href="http://www.statcounter.com/" target="_blank"><img src="http://c26.statcounter.com/counter.php?sc_project=2619156&java=0&security=94bd7e7d&invisible=0" alt="website stats" border="0"></a>
+ http://www.apache.org/licenses/LICENSE-2.0
- <div class="footer">
- Copyright © 2003-2008, The Apache Software Foundation
- </div>
-#end
-##
-<html>
- <head> - #generateKeywords() + 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.
+-->
+<html>
+ <head>
+ <!-- generateKeywords macro -->
+ <META name="description" content="Apache Tuscany"/>
+ <META name="keywords" content="apache, apache tuscany, tuscany, service, services, fabric, soa, service oriented architecture, sca, service component architecture, das, sdo, csa, ruby, opensource"/>
+ <!-- generateKeywords macro end -->
+
<link type="text/css" rel="stylesheet" href="http://tuscany.apache.org/stylesheets/default.css">
<link rel="SHORTCUT ICON" href="$images/favicon.ico">
- <title>$page.title : Apache Tuscany</title>
+ <title>Apache Tuscany : $page.title</title>
</head>
<body onload="init()">
-
- #topNav()
+ <!-- topNav macro -->
+ <table valign="top" border="0" cellspacing="0" cellpadding="0" width="100%" background="http://tuscany.apache.org/images/TuscanyLogoNEW_Text_120px_bg.jpg">
+ <tr>
+ <td valing="top" align="left">
+ <a href="$siteroot"><img src="http://tuscany.apache.org/images/TuscanyLogoNEW_Text_120px_bg.jpg" height="91" width="25" border="0"></a>
+ </td>
+ <td>
+ <a href="http://tuscany.apache.org/"><img src="http://tuscany.apache.org/images/TuscanyLogo.jpg" border="0"></a>
+ </td>
+
+ <td width="100%">
+
+ </td>
+
+ <!-- Adds the edit page link to the top banner-->
+ <td valign="bottom">
+ <div style="padding: 2px 10px; margin: 0px;">
+ <a href="$confluenceUri/pages/editpage.action?pageId=$page.id">
+ <img src="http://tuscany.apache.org/images/notep_16.gif" height="16" width="16" border="0" align="absmiddle" title="Edit Page"></a>
+ </div>
+ </td>
+
+ </tr>
+ </table>
+ <!-- topNav macro end -->
+
+ <!-- breadCrumbs macro -->
+ <table border="0" cellpadding="2" cellspacing="0" width="100%">
+ <tr class="topBar">
+ <td align="left" valign="middle" class="topBarDiv" nowrap="true" width="100%">
+ $autoexport.breadcrumbs($page)
+ </td>
+
+ <td align="right" valign="middle" class="topBarDiv" align="left" nowrap="true">
+ <a href="http://mail-archives.apache.org/mod_mbox/tuscany-user">User List</a> | <a href="http://mail-archives.apache.org/mod_mbox/tuscany-dev">Dev List</a> | <a href="http://issues.apache.org/jira/browse/Tuscany">Issue Tracker</a>
+ </td>
+ </tr>
+ </table>
+ <!-- breadCrumbs macro end -->
- #breadCrumbs()
<table border="0" cellpadding="0" width="100%" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="top">
- #pageContent()
+
+ <!-- pageContent macro -->
+ <div id="PageContent">
+ #if ($pageContentHeaderEnabled)
+ <div class="pageheader" style="padding: 6px 0px 0px 0px;">
+ <div style="margin: 0px 10px 0px 10px" class="smalltext">$page.space.name</div>
+ <div style="margin: 0px 10px 8px 10px" class="pagetitle">$page.title</div>
+ </div>
+ #end
+
+ <div class="pagecontent">
+ <div class="wiki-content">
+ $body
+ </div>
+ </div>
+ </div>
+ <!-- pageContent macro end -->
+
</td>
</tr>
</table>
- #footer()
+ <!-- footer macro -->
+ ## Google Analytics script
+ <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+ </script>
+ <script type="text/javascript">
+ _uacct = "UA-1174707-5";
+ urchinTracker();
+ </script>
+
+ ## StatCounter script
+ <a href="http://www.statcounter.com/" target="_blank"><img src="http://c26.statcounter.com/counter.php?sc_project=2619156&java=0&security=94bd7e7d&invisible=0" alt="website stats" border="0"></a>
+
+ <div class="footer">
+ Copyright � 2003-2010, The Apache Software Foundation
+ </div>
+ <!-- footer macro end -->
</body>
-</html> +</html>
|