first round of NRPA changes:
- added color customization in render-config.xml - added ability to scale size of Venice logo in footer - added ability to customize size of site logo, as well as add a hyperlink - moved to use of LOG4J 1.1.3, LOG4J now installed in Venice lib directory instead of in JRE extensions directory (only Java extensions should go in JRE extensions directory) - close to requiring JAXP 1.1 (will still work with 1.0 though)
This commit is contained in:
@@ -25,9 +25,11 @@
|
||||
Variables.failIfNull(basedat);
|
||||
UserContext user = Variables.getUserContext(application,request,session);
|
||||
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
||||
String header_font = rdat.getStdFontTag("white",3);
|
||||
String stdfont = rdat.getStdFontTag(null,2);
|
||||
String smallfont = rdat.getStdFontTag(null,1);
|
||||
String header_font = rdat.getStdFontTag(ColorSelectors.TITLE_FOREGROUND,3);
|
||||
String header_link_hilite = "<FONT COLOR=\"" + rdat.getStdColor(ColorSelectors.TITLE_LINK) + "\">";
|
||||
String stdfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2);
|
||||
String leftfont = rdat.getStdFontTag(ColorSelectors.LEFT_FOREGROUND,2);
|
||||
String smallfont = rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,1);
|
||||
String partial_tgt, foo;
|
||||
%>
|
||||
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
|
||||
@@ -40,23 +42,24 @@
|
||||
<% } // end if %>
|
||||
</HEAD>
|
||||
|
||||
<BODY BGCOLOR="#9999FF">
|
||||
<BODY BGCOLOR="<%= rdat.getStdColor(ColorSelectors.FRAME_BACKGROUND) %>">
|
||||
<% if (rdat.useHTMLComments()) { %><!-- BEGIN PAGE HEADER --><% } %>
|
||||
<TABLE BORDER=0 BGCOLOR="#6666CC" WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
|
||||
<TABLE BORDER=0 BGCOLOR="<%= rdat.getStdColor(ColorSelectors.TITLE_BACKGROUND) %>" WIDTH="100%"
|
||||
CELLPADDING=2 CELLSPACING=0>
|
||||
<TR VALIGN=MIDDLE>
|
||||
<TD ALIGN=LEFT WIDTH=150>
|
||||
<TD ALIGN=LEFT WIDTH=20% CELLPADDING=2>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Site logo --><% } %>
|
||||
<%= rdat.getSiteImageTag(2,2) %>
|
||||
</TD>
|
||||
|
||||
<TD ALIGN=LEFT WIDTH=150><%= header_font %><B>
|
||||
<TD ALIGN=CENTER WIDTH=30% CELLPADDING=2><%= header_font %><B>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Links to Front Page, Help, Find --><% } %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("top") %>"><FONT COLOR="yellow">Front Page</FONT></A><P>
|
||||
<A HREF="/TODO"><FONT COLOR="yellow">Help</FONT></A> |
|
||||
<A HREF="<%= rdat.getEncodedServletPath("find") %>"><FONT COLOR="yellow">Find</FONT></A>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("top") %>"><%= header_link_hilite %>Front Page</FONT></A><P>
|
||||
<A HREF="/TODO"><%= header_link_hilite %>Help</FONT></A> |
|
||||
<A HREF="<%= rdat.getEncodedServletPath("find") %>"><%= header_link_hilite %>Find</FONT></A>
|
||||
</B></FONT></TD>
|
||||
|
||||
<TD ALIGN=RIGHT WIDTH=150>
|
||||
<TD ALIGN=RIGHT WIDTH=50% CELLPADDING=2>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Banner Ad --><% } %>
|
||||
<% basedat.renderBannerAd(out,rdat); %>
|
||||
</TD>
|
||||
@@ -71,9 +74,9 @@
|
||||
partial_tgt = "account?tgt=" + URLEncoder.encode(basedat.getLocation()) + "&cmd=";
|
||||
foo = rdat.getEncodedServletPath(partial_tgt + "L");
|
||||
%>
|
||||
- <A HREF="<%= foo %>"><FONT COLOR="yellow">Log Out</FONT></A>
|
||||
- <A HREF="<%= foo %>"><%= header_link_hilite %>Log Out</FONT></A>
|
||||
<% foo = rdat.getEncodedServletPath(partial_tgt + "P"); %>
|
||||
| <A HREF="<%= foo %>"><FONT COLOR="yellow">Profile</FONT></A>
|
||||
| <A HREF="<%= foo %>"><%= header_link_hilite %>Profile</FONT></A>
|
||||
<% } // end if %>
|
||||
<% } else { %>
|
||||
You are not logged in
|
||||
@@ -82,9 +85,9 @@
|
||||
partial_tgt = "account?tgt=" + URLEncoder.encode(basedat.getLocation()) + "&cmd=";
|
||||
foo = rdat.getEncodedServletPath(partial_tgt + "L");
|
||||
%>
|
||||
- <A HREF="<%= foo %>"><FONT COLOR="yellow">Log In</FONT></A>
|
||||
- <A HREF="<%= foo %>"><%= header_link_hilite %>Log In</FONT></A>
|
||||
<% foo = rdat.getEncodedServletPath(partial_tgt + "C"); %>
|
||||
| <A HREF="<%= foo %>"><FONT COLOR="yellow">Create Account</FONT></A>
|
||||
| <A HREF="<%= foo %>"><%= header_link_hilite %>Create Account</FONT></A>
|
||||
<% } // end if %>
|
||||
<% } // end if %>
|
||||
</FONT></TD></TR>
|
||||
@@ -94,16 +97,16 @@
|
||||
|
||||
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=2 CELLSPACING=0>
|
||||
<TR VALIGN=TOP>
|
||||
<TD ALIGN=LEFT WIDTH=120 BGCOLOR="#9999FF">
|
||||
<TABLE ALIGN=LEFT WIDTH=120 CELPADDING=0 CELLSPACING=0>
|
||||
<TD ALIGN=LEFT WIDTH=120 BGCOLOR="<%= rdat.getStdColor(ColorSelectors.LEFT_BACKGROUND) %>">
|
||||
<TABLE ALIGN=LEFT WIDTH=120 CELLPADDING=0 CELLSPACING=0>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- BEGIN LEFT SIDEBAR --><% } %>
|
||||
<TR VALIGN=TOP><TD VALIGN=LEFT><%= stdfont %>
|
||||
<TR VALIGN=TOP><TD VALIGN=LEFT><%= leftfont %>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- variable menu --><% } %>
|
||||
<% basedat.renderMenu(session,out,rdat); %>
|
||||
</FONT></TD></TR>
|
||||
|
||||
<TR VALIGN=TOP><TD VALIGN=LEFT> </TD></TR>
|
||||
<TR VALIGN=TOP><TD VALIGN=LEFT><%= stdfont %>
|
||||
<TR VALIGN=TOP><TD VALIGN=LEFT><%= leftfont %>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- fixed menu --><% } %>
|
||||
<% basedat.renderFixedMenu(out,rdat); %>
|
||||
</FONT></TD></TR>
|
||||
@@ -113,7 +116,7 @@
|
||||
</TABLE>
|
||||
</TD>
|
||||
|
||||
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="white">
|
||||
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_BACKGROUND) %>">
|
||||
<% if (rdat.useHTMLComments()) { %><!-- BEGIN PAGE CONTENT --><% } %>
|
||||
<% basedat.renderContent(application,out,rdat); %>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- END PAGE CONTENT --><% } %>
|
||||
@@ -121,8 +124,8 @@
|
||||
</TR>
|
||||
|
||||
<TR VALIGN=TOP>
|
||||
<TD ALIGN=LEFT WIDTH=120 BGCOLOR="#9999FF"> </TD>
|
||||
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="white">
|
||||
<TD ALIGN=LEFT WIDTH=120 BGCOLOR="<%= rdat.getStdColor(ColorSelectors.LEFT_BACKGROUND) %>"> </TD>
|
||||
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_BACKGROUND) %>">
|
||||
<% if (rdat.useHTMLComments()) { %><!-- PAGE FOOTER --><% } %>
|
||||
<HR WIDTH="80%">
|
||||
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=6><TR VALIGN=TOP>
|
||||
@@ -130,7 +133,8 @@
|
||||
<TD ALIGN=LEFT>
|
||||
<A HREF="http://venice.sourceforge.net" TARGET="_blank"><IMG
|
||||
SRC="<%= rdat.getFullImagePath("powered-by-venice.gif") %>" ALT="Powered by Venice"
|
||||
WIDTH=129 HEIGHT=103 BORDER=0 HSPACE=0 VSPACE=0></A>
|
||||
WIDTH=<%= rdat.scaleFooterLogo(129) %> HEIGHT=<%= rdat.scaleFooterLogo(103) %> BORDER=0
|
||||
HSPACE=0 VSPACE=0></A>
|
||||
</TD>
|
||||
</TR></TABLE>
|
||||
</TD>
|
||||
|
||||
Reference in New Issue
Block a user