geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hcun...@apache.org
Subject svn commit: r549513 - in /geronimo/site/trunk/template: ./ autoexport_template.xml
Date Thu, 21 Jun 2007 15:27:07 GMT
Author: hcunico
Date: Thu Jun 21 08:27:06 2007
New Revision: 549513

URL: http://svn.apache.org/viewvc?view=rev&rev=549513
Log:
Added a copy of the template used for the auto export plugin to generate the website.

Added:
    geronimo/site/trunk/template/
    geronimo/site/trunk/template/autoexport_template.xml

Added: geronimo/site/trunk/template/autoexport_template.xml
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/template/autoexport_template.xml?view=auto&rev=549513
==============================================================================
--- geronimo/site/trunk/template/autoexport_template.xml (added)
+++ geronimo/site/trunk/template/autoexport_template.xml Thu Jun 21 08:27:06 2007
@@ -0,0 +1,307 @@
+<!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%">
+                &nbsp;
+            </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
+##
+##        &nbsp;
+##        <a href="$confluenceUri/pages/listpages.action?key=$page.spaceKey">
+##            <img src="$images/icons/browse_space.gif" border="0" align="absmiddle" title="Browse
Space"></a>
+##        &nbsp;
+##        <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>
+
+        &nbsp;
+        ###
+        ### 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>
+        ### &nbsp;
+        ### <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%">
+                &nbsp;$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>&nbsp;&nbsp;
+            </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>&nbsp; $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>&nbsp; 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-2007, The Apache Software Foundation&nbsp;&nbsp;
+    </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()
+
+    </body>
+</html>
\ No newline at end of file



Mime
View raw message