Author: dwoods
Date: Mon Sep 15 11:06:06 2008
New Revision: 695566
URL: http://svn.apache.org/viewvc?rev=695566&view=rev
Log:
capture latest Confluence Autoexport plugin templates
Added:
geronimo/site/trunk/template/GMOxDOC21_autoexport_template.xml (with props)
geronimo/site/trunk/template/GMOxSITE_autoexport_template.xml (with props)
Added: geronimo/site/trunk/template/GMOxDOC21_autoexport_template.xml
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/template/GMOxDOC21_autoexport_template.xml?rev=695566&view=auto
==============================================================================
--- geronimo/site/trunk/template/GMOxDOC21_autoexport_template.xml (added)
+++ geronimo/site/trunk/template/GMOxDOC21_autoexport_template.xml Mon Sep 15 11:06:06 2008
@@ -0,0 +1,153 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <link type="text/css" rel="stylesheet" href="http://geronimo.apache.org/style/default.css">
+ <LINK rel="SHORTCUT ICON" href="http://geronimo.apache.org/images/favicon.ico">
+ <style type="text/css">
+ .footer {
+ background-image: url('http://geronimo.apache.org/images/border/border_bottom.gif');
+ background-repeat: repeat-x;
+ background-position: left top;
+ padding-top: 4px;
+ color: #666;
+ }
+ </style>
+ <script type="text/javascript" language="javascript">
+ var hide = null;
+ var show = null;
+ var children = null;
+
+ function init() {
+ /* Search form initialization */
+ var form = document.forms['search'];
+ if (form != null) {
+ form.elements['domains'].value = location.hostname;
+ form.elements['sitesearch'].value = location.hostname;
+ }
+
+ /* Children initialization */
+ hide = document.getElementById('hide');
+ show = document.getElementById('show');
+ children = document.all != null ?
+ document.all['children'] :
+ document.getElementById('children');
+ if (children != null) {
+ children.style.display = 'none';
+ show.style.display = 'inline';
+ hide.style.display = 'none';
+ }
+ }
+
+ function showChildren() {
+ children.style.display = 'block';
+ show.style.display = 'none';
+ hide.style.display = 'inline';
+ }
+
+ function hideChildren() {
+ children.style.display = 'none';
+ show.style.display = 'inline';
+ hide.style.display = 'none';
+ }
+ </script>
+ <title>$page.title</title>
+ </head>
+ <body onload="init()">
+
+ <table valign="top" border="0" cellspacing="0" cellpadding="0" width="100%" background="http://geronimo.apache.org/images/top_bgstretch_1x64.gif">
+ <tr>
+ <td valing="top" align="left">
+ <img src="http://geronimo.apache.org/images/topleft_logo_437x64.gif" border="0">
+ </td>
+ </tr>
+ </table>
+
+ <table border="0" cellpadding="2" cellspacing="0" width="100%">
+ <tr class="topBar">
+ <td align="left" valign="middle" class="topBarDiv" align="left" nowrap>
+ <a href="/geronimo"> Home</a> > $autoexport.breadcrumbs($page)
+ </td>
+ <td align="right" valign="middle" nowrap>
+ <form name="search" action="http://www.google.com/search" method="get">
+ <input type="hidden" name="ie" value="UTF-8" />
+ <input type="hidden" name="oe" value="UTF-8" />
+ <input type="hidden" name="domains" value="" />
+ <input type="hidden" name="sitesearch" value="" />
+ <input type="text" name="q" maxlength="255" value="" />
+ <input type="submit" name="btnG" value="Google Search" />
+ </form>
+ </td>
+ </tr>
+ </table>
+
+ <div id="PageContent">
+ <div class="pageheader" style="padding: 6px 0px 0px 0px;">
+ <!-- We'll enable this once we figure out how to access (and save) the logo resource
-->
+ <!--img src="http://geronimo.apache.org/images/confluence_logo.gif" style="float:
left; margin: 4px 4px 4px 10px;" border="0"-->
+ <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 class="greynavbar" align="right" style="padding: 2px 10px; margin: 0px;">
+<!-- -->
+ <a href="$confluenceUri/pages/editpage.action?pageId=$page.id">
+ <img src="http://geronimo.apache.org/images/icons/notep_16.gif"
+ height="16" width="16" border="0" align="absmiddle" title="Edit Page"></a>
+ <a href="$confluenceUri/pages/editpage.action?pageId=$page.id">Edit Page</a>
+
+ <a href="$confluenceUri/pages/listpages.action?key=$page.spaceKey">
+ <img src="http://geronimo.apache.org/images/icons/browse_space.gif"
+ height="16" width="16" border="0" align="absmiddle" title="Browse Space"></a>
+ <a href="$confluenceUri/pages/listpages.action?key=$page.spaceKey">Browse
Space</a>
+
+ <a href="$confluenceUri/pages/createpage.action?spaceKey=$page.spaceKey&fromPageId=$page.id">
+ <img src="http://geronimo.apache.org/images/icons/add_page_16.gif"
+ height="16" width="16" border="0" align="absmiddle" title="Add Page"></a>
+ <a href="$confluenceUri/pages/createpage.action?spaceKey=$page.spaceKey&fromPageId=$page.id">Add
Page</a>
+
+ <a href="$confluenceUri/pages/createblogpost.action?spaceKey=$page.spaceKey&fromPageId=$page.id">
+ <img src="http://geronimo.apache.org/images/icons/add_blogentry_16.gif"
+ height="16" width="16" border="0" align="absmiddle" title="Add News"></a>
+ <a href="$confluenceUri/pages/createblogpost.action?spaceKey=$page.spaceKey&fromPageId=$page.id">Add
News</a>
+<!-- -->
+ </div>
+ </div>
+
+ <div class="pagecontent">
+ <div class="wiki-content">
+ $body
+ </div>
+
+ #if ($page.hasChildren())
+ <div class="tabletitle">
+ Children
+ <span class="smalltext" id="show" style="display: inline;">
+ <a href="javascript:showChildren()">Show Children</a></span>
+ <span class="smalltext" id="hide" style="display: none;">
+ <a href="javascript:hideChildren()">Hide Children</a></span>
+ </div>
+ <div class="greybox" id="children" style="display: none;">
+ #set ($children = $page.children)
+ #foreach ($child in $children)
+ $autoexport.link($child)
+ <span class="smalltext">($child.space.name)</span>
+ <br>
+ #end
+ </div>
+ #end
+
+ </div>
+ </div>
+ <div class="footer">
+ Copyright © 2003-2008, The Apache Software Foundation
+ </div>
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+var pageTracker = _gat._getTracker("UA-4380560-1");
+pageTracker._initData();
+pageTracker._trackPageview();
+</script>
+ </body>
+</html>
Propchange: geronimo/site/trunk/template/GMOxDOC21_autoexport_template.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: geronimo/site/trunk/template/GMOxSITE_autoexport_template.xml
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/template/GMOxSITE_autoexport_template.xml?rev=695566&view=auto
==============================================================================
--- geronimo/site/trunk/template/GMOxSITE_autoexport_template.xml (added)
+++ geronimo/site/trunk/template/GMOxSITE_autoexport_template.xml Mon Sep 15 11:06:06 2008
@@ -0,0 +1,317 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+##
+#set ($images = "http://geronimo.apache.org/images")
+#set ($siteroot = "http://geronimo.apache.org")
+#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 (topNav)
+ <table valign="top" border="0" cellspacing="0" cellpadding="0" width="100%" background="$images/header_bg_1x86.gif">
+ <tr>
+ <td valing="top" align="left">
+ <a href="$siteroot"><img src="$images/topleft_logo_437x64.gif" 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://geronimo.apache.org/images/notep_16_blue.gif" height="16"
width="16" border="0" align="absmiddle" title="Edit Page"></a>
+ </div>
+ </td>
+##
+## NOTE: Turn off the top-nav links
+##
+## <td valign="top" align="right">
+## <img src="$images/subnav_angle_15x18.gif" width="15" height="18" alt=""
border="0">
+## </td>
+##
+## <td valign="top" align="right" nowrap="true">
+## <div class="quicklinks" style="background-color: #5D9ACD">
+## #spacer(1 14)
+## <font color="#003366" face="Verdana, Helvetica, Arial">
+## #renderPage("Overview")
+## </font>
+## #spacer(4 1)
+## </div>
+## </td>
+ </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://geronimo.apache.org/images/notep_16_blue.gif" height="16"
width="16" border="0" align="absmiddle" title="Edit Page"></a>
+##
+## NOTE: Turn off the browse/add page links
+##
+##
+## <a href="$confluenceUri/pages/listpages.action?key=$page.spaceKey">
+## <img src="$images/icons/browse_space.gif" border="0" align="absmiddle" title="Browse
Space"></a>
+##
+## <a href="$confluenceUri/pages/createpage.action?spaceKey=$page.spaceKey&fromPageId=$page.id">
+## <img src="$images/icons/add_page_16.gif" height="16" width="16" border="0"
align="absmiddle" title="Add Page"></a>
+
+
+ ###
+ ### HACK: AutoExport does something crazy to this URL... so split it up into bits
and write with Javascript
+ ### to force the correct values to be rendererd
+ ###
+ ###
+ ### Turned off printing and PDF export
+ ###
+ ### <script type="text/javascript" language="javascript">
+ ### document.write('<a href="$confluenceUri/pages/viewpage');
+ ### document.write('.action?pageId=$page.id&decorator=printable">');
+ ### </script>
+ ### <img src="http://cwiki.apache.org/confluence/images/icons/print_16.gif"
height="16" width="16" border="0" align="absmiddle" title="Print"></a>
+ ###
+ ### <a href="$confluenceUri/pages/doexportpage.action?pageId=$page.id&type=TYPE_PDF">
+ ### <img src="http://cwiki.apache.org/confluence/images/icons/attachments/pdf.gif"
height="16" width="16" border="0" align="absmiddle" title="Export PDF"></a>
+
+ </div>
+#end
+##
+## #macro (tabs)
+##
+## Turn off tabs, no longer in use.
+## <table valign="top" border="0" cellspacing="0" cellpadding="0" width="100%" background="$images/menu_bgstretch_1x22.gif">
+## <tr align="left">
+## <td valign="top" align="left">
+## <a href="$siteroot/index.html">
+## <img src="$images/menu_home_off_63x19.gif" width="63" height="19"
border="0"></a>
+## </td>
+## <td valign="top" align="left">
+## <a href="$siteroot/documentation.html">
+## <img src="$images/menu_doc_off_116x19.gif" width="116" height="19"
border="0"></a>
+## </td>
+## <td valign="top" align="left">
+## <a href="$siteroot/downloads.html">
+## <img src="$images/menu_download_off_85x19.gif" width="85" height="19"
border="0"></a>
+## </td>
+## <td valign="top" align="left">
+## <a href="$siteroot/get-involved.html">
+## <img src="$images/menu_comm_off_96x19.gif" width="96" height="19"
border="0"></a>
+## </td>
+## <td valign="top" align="left">
+## <a href="$siteroot/development.html">
+## <img src="$images/menu_dev_off_104x19.gif" width="104" height="19"
border="0"></a>
+## </td>
+## <td width="100%" align="right">
+## #pageControls()
+## </td>
+## </tr>
+## </table>
+## #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://www.nabble.com/Apache-Geronimo---Users-f135.html">User
List</a> | <a href="http://www.nabble.com/Apache-Geronimo---Dev-f136.html">Dev
List</a> | <a href="http://cwiki.apache.org/geronimo">Wiki</a> | <a href="http://issues.apache.org/jira/browse/GERONIMO">Issue
Tracker</a>
+ </td>
+ </tr>
+ </table>
+#end
+##
+#macro (sideNavSection $title)
+ #set ($pagename = "SideNav $title")
+
+ <table bgcolor="#5FA3D6" border="0" cellspacing="1" cellpadding="0">
+ <tr>
+ <td>
+ <table border="0" cellspacing="0" cellpadding="4">
+ <tr>
+ <td class="sideNavSectionTitle" bgcolor="#5FA3D6" width="175">
+ <font color="#FFFFFF" style="font-size:12px" face="Verdana,
Helvetica, Arial">
+ <strong> $title</strong>
+ </font>
+ </td>
+ </tr>
+
+ <tr>
+ <td bgcolor="#F3F4F5">
+ <table>
+ <tr>
+ <td width="8"></td>
+ <td align="left" width="100%">#renderPage($pagename)</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+ #spacer(175 2)
+#end
+##
+#macro (sideNav)
+ #sideNavSection("Overview")
+ <table bgcolor="#5fa3d6" border="0" cellpadding="0" cellspacing="1">
+ <tbody>
+ <tr>
+ <td>
+ <table border="0" cellpadding="4" cellspacing="0">
+ <tbody><tr>
+ <td class="sideNavSectionTitle" bgcolor="#5fa3d6" width="175">
+ <font style="font-size: 12px;" color="#ffffff" face="Verdana,
Helvetica, Arial">
+ <strong> Search</strong>
+ </font>
+ </td>
+ </tr>
+ <tr>
+ <td bgcolor="#f3f4f5">
+ <table>
+ <tbody>
+ <tr>
+ <td width="8"></td>
+ <td align="center" width="100%">
+ <FORM action="http://www.google.com/search" method="get" style="font-size:
10px;">
+ <INPUT name="ie" type="hidden" value="UTF-8"></INPUT>
+ <INPUT name="oe" type="hidden" value="UTF-8"></INPUT>
+ <INPUT name="domains" type="hidden" value="geronimo.apache.org"></INPUT>
+ <INPUT name="sitesearch" type="hidden" value="geronimo.apache.org"></INPUT>
+ <INPUT maxlength="255" name="q" style="width: 110px;" type="text"></INPUT>
+ <INPUT type="image" src="$images/icons/srch_16.gif" alt="[search]" name="btnG"></INPUT>
+
+ </FORM>
+ <div class="grayed">
+ Powered by Google Search
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ #spacer(175 2)
+ #sideNavSection("Community")
+ #sideNavSection("Development")
+ #sideNavSection("Subprojects")
+#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-2008, The Apache Software Foundation
+ </div>
+#end
+##
+<html>
+ <head>
+ <link type="text/css" rel="stylesheet" href="http://geronimo.apache.org/style/default.css">
+ <link rel="SHORTCUT ICON" href="$images/favicon.ico">
+ <script src="http://geronimo.apache.org/functions.js" type="text/javascript"></script>
+ <title>$page.title : Apache Geronimo</title>
+ </head>
+
+ <body onload="init()">
+
+ #topNav()
+
+##
+## NOTE: Disable tabs
+##
+## #tabs()
+##
+
+ #breadCrumbs()
+
+ <table border="0" cellpadding="4" width="100%" bgcolor="#FFFFFF">
+ <tr>
+ <td valign="top" nowrap="true" width="175">
+ #sideNav()
+
+ <div class="gfxbyepiq">
+ <a href="http://www.epiqtech.com">Graphics by Epiq</a>
+ </div>
+
+ </td>
+ <td align="left" valign="top">
+ #pageContent()
+ </td>
+ </tr>
+ </table>
+
+ #footer()
+
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+var pageTracker = _gat._getTracker("UA-4380560-1");
+pageTracker._initData();
+pageTracker._trackPageview();
+</script>
+ </body>
+</html>
+
Propchange: geronimo/site/trunk/template/GMOxSITE_autoexport_template.xml
------------------------------------------------------------------------------
svn:eol-style = native
|