revamped menu HTML generation by making it template-driven; excised the old

menu rendering code
This commit is contained in:
Eric J. Bowersox
2004-07-19 03:44:29 +00:00
parent ad3af636d7
commit 156511e747
17 changed files with 758 additions and 448 deletions

View File

@@ -455,6 +455,57 @@ Text of this agreement is TBD.
</menu-definitions>
<!-- Definitions for menu templates -->
<menu-template-definitions>
<!-- "Normal" menu rendering -->
<menu-template id="normal">
<title type="single"><![CDATA[
<font class="chead1" face="${font}" color="${color.content.header}" size="${size.header}"><b>${title}</b></font>
]]></title>
<title type="double"><![CDATA[
<font class="chead1" face="${font}" color="${color.content.header}" size="${size.header}"><b>${title}</b></font>
&nbsp;&nbsp;
<font class="chead2" face="${font}" color="${color.content.header}" size="${size.subhead}"><b>${subtitle}</b></font>
]]></title>
<block id="title-post"><![CDATA[<hr align="left" size="2" width="90%" noshade="noshade" />]]></block>
<block id="items-pre"><![CDATA[
<font class="content" face="${font}" color="${color.content.fg}" size="${size.content}">
]]></block>
<block id="link-indent"><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;]]></block>
<item type="*">${text}</item>
<item type="header"><![CDATA[<font size="+1"><b>${text}</b></font><br />]]></item>
<item type="separator"><![CDATA[${text}<br />]]></item>
<block id="items-post"><![CDATA[</font>]]></block>
<link type="*"><![CDATA[${stdbullet}&nbsp;<a href="${link}"${xattr}>${item}</a><br />]]></link>
<link type="disabled"><![CDATA[${stdbullet}&nbsp;<font color="${color.disabled}">${item}</font><br />]]></link>
<block id="pre-comm"><![CDATA[
<table border="0" cellpadding="2" cellspacing="0"><tr valign="bottom"><td align="left" width="110">
]]></block>
<block id="title-pre-comm"><![CDATA[</td>\n<td align="left">]]></block>
<block id="title-post-comm"><![CDATA[</td></tr></table><br />]]></block>
<block id="unjoin-break"><![CDATA[<p />]]></block>
</menu-template>
<!-- Left menu bar menu rendering -->
<menu-template id="left">
<title type="single"><![CDATA[<b>${title}</b><br />]]></title>
<title type="double"><![CDATA[<b>${title}</b><br />${subtitle}<br />]]></title>
<block id="link-indent"><![CDATA[&nbsp;]]></block>
<item type="*">${text}</item>
<item type="header"><![CDATA[<b>${text}</b><br />]]></item>
<item type="separator"><![CDATA[${text}<br />]]></item>
<link type="*"><![CDATA[
<a href="${link}" class="lbar"${xattr}><font color="${color.left.link}">${item}</font></a><br />
]]></link>
<link type="disabled"><![CDATA[<font color="${color.disabled}">${item}</font><br />]]></link>
<block id="pre-comm"><![CDATA[<div align="left">]]></block>
<block id="title-pre-comm"><![CDATA[</div>]]></block>
<block id="unjoin-break"><![CDATA[<br />]]></block>
</menu-template>
</menu-template-definitions>
<!-- Definitions for dialog boxes -->
<dialog-definitions>