You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by lr...@apache.org on 2009/11/23 04:15:13 UTC
svn commit: r883234 - in /comdev/admin: ./ confluence/
confluence/COMxDEV_confluence_html_export.xml
Author: lresende
Date: Mon Nov 23 03:15:12 2009
New Revision: 883234
URL: http://svn.apache.org/viewvc?rev=883234&view=rev
Log:
Confluence export template for the COMxDEV website
Added:
comdev/admin/
comdev/admin/confluence/
comdev/admin/confluence/COMxDEV_confluence_html_export.xml (with props)
Added: comdev/admin/confluence/COMxDEV_confluence_html_export.xml
URL: http://svn.apache.org/viewvc/comdev/admin/confluence/COMxDEV_confluence_html_export.xml?rev=883234&view=auto
==============================================================================
--- comdev/admin/confluence/COMxDEV_confluence_html_export.xml (added)
+++ comdev/admin/confluence/COMxDEV_confluence_html_export.xml Mon Nov 23 03:15:12 2009
@@ -0,0 +1,137 @@
+<!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 Community Development"/>
+ <META name="keywords" content="apache, apache community, community development, opensource"/>
+#end
+##
+#macro (generateIncludeStyles)
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <link rel="stylesheet" href="http://www.apache.org/style/compressed.css" type="text/css" media="screen, projection">
+ <link rel="stylesheet" href="http://www.apache.org/style/style.css" type="text/css" media="screen, projection">
+#end
+##
+#macro (topNav)
+ <div class="container">
+ <hr class="space col">
+ <div class="block">
+ <div class="column span-24">
+ <div id="header">
+ <h1>The Apache Software Foundation<br />
+ <span class="alt"><small>Meritocracy in Action.</small></span></h1>
+ </div>
+ </div>
+ </div>
+ <hr/>
+#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://community.apache.org">Apache Community Development</A> | <A href="http://mail-archives.apache.org/mod_mbox/community-dev/">Mailling List</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)
+ <DIV class="footer">
+ Copyright © 2003-2009, The Apache Software Foundation
+ </DIV>
+#end
+##
+<html>
+ <head>
+ #generateKeywords()
+
+ #generateIncludeStyles()
+
+ <LINK rel="SHORTCUT ICON" href="$images/favicon.ico">
+ <TITLE>$page.title : Apache Community Development</TITLE>
+ </head>
+
+ <body onload="init()">
+ #topNav()
+
+ #breadCrumbs()
+
+ <TABLE border="0" cellpadding="0" width="100%" bgcolor="#FFFFFF">
+ <TR>
+ <td align="left" valign="top">
+ #pageContent()
+ </td>
+ </TR>
+ </TABLE>
+
+ #footer()
+
+ </BODY>
+</HTML>
\ No newline at end of file
Propchange: comdev/admin/confluence/COMxDEV_confluence_html_export.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: comdev/admin/confluence/COMxDEV_confluence_html_export.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: comdev/admin/confluence/COMxDEV_confluence_html_export.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml