summaryrefslogtreecommitdiffstats
path: root/site/trunk/site-publish/autoexport-plugin-template.data/TUSCANY_template_2007_5_25_v1.xml
blob: 071ce76a19fc081e1b79eefbd508e14e72fb8ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!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 (topNav)
    <table valign="top" border="0" cellspacing="0" cellpadding="0" width="100%" background="http://people.apache.org/~svkrish/tuscanySite/images/TuscanyLogoNEW_Text_120px_bg.jpg">
        <tr>
            <td valing="top" align="left">
                <a href="$siteroot"><img src="http://people.apache.org/~svkrish/tuscanySite/images/TuscanyLogo.jpg" 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://people.apache.org/~svkrish/tuscanySite/images/notep_16_blue.gif" height="16" width="16" border="0" align="absmiddle" title="Edit Page"></a>
                </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://people.apache.org/~svkrish/tuscanySite/images/notep_16_blue.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%">
                &nbsp;$autoexport.breadcrumbs($page)
            </td>
            
            <td align="right" valign="middle" class="topBarDiv" align="left" nowrap="true">
            <a href="http://mail-archives.apache.org/mod_mbox/ws-tuscany-user">User List</a> | <a href="http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev">Dev List</a> | <a href="http://issues.apache.org/jira/browse/Tuscany">Issue Tracker</a>&nbsp;&nbsp;
            </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-2007, The Apache Software Foundation&nbsp;&nbsp;
    </div>
#end
##
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="http://people.apache.org/~svkrish/tuscanySite/style/default.css">
        <link rel="SHORTCUT ICON" href="$images/favicon.ico">   
        <title>$page.title : Apache Tuscany</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>