2010-01-29 22:13:57 +00:00
|
|
|
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
|
|
|
|
|
|
|
<%@ page language="java"%>
|
|
|
|
|
|
|
|
<%@ page import="java.util.Calendar" %>
|
|
|
|
<%@ page import="org.apache.commons.logging.Log" %>
|
|
|
|
<%@ page import="org.apache.commons.logging.LogFactory" %>
|
|
|
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.VitroRequest"%>
|
|
|
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.web.*"%>
|
|
|
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Portal" %>
|
|
|
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.Controllers" %>
|
|
|
|
|
|
|
|
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %><%/* this odd thing points to something in web.xml */ %>
|
|
|
|
|
|
|
|
<%
|
2010-02-02 00:42:03 +00:00
|
|
|
final Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.web.themes.enhanced.footer.jsp");
|
2010-01-29 22:13:57 +00:00
|
|
|
|
|
|
|
VitroRequest vreq = new VitroRequest(request);
|
|
|
|
|
|
|
|
Portal portal = vreq.getPortal();
|
|
|
|
if (portal==null) {
|
|
|
|
log.error("portal from vreq.getPortal() null in themes/enhanced/footer.jsp");
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
<c:set var="currentYear" value="<%= Calendar.getInstance().get(Calendar.YEAR) %>" />
|
|
|
|
<c:set var='context' value="<%=vreq.getContextPath()%>" />
|
|
|
|
<c:set var='themePath'>
|
|
|
|
<c:if test="${!empty context && context != ''}">/${context}</c:if>/<%=portal.getThemeDir() %>
|
|
|
|
</c:set>
|
|
|
|
<c:set var='themeDir'><c:out value='${themePath}' /></c:set>
|
|
|
|
<c:set var="currentPortal" value="<%=portal.getPortalId()%>"/>
|
|
|
|
|
|
|
|
<div id='footer'>
|
|
|
|
|
|
|
|
<% if (!(portal.getBannerImage() == null || portal.getBannerImage().equals("")))
|
|
|
|
{ %>
|
|
|
|
<img class="footerLogo" src="${themeDir}site_icons/<%=portal.getBannerImage()%>" alt="<%=portal.getShortHand()%>"/>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<div class='footerLinks'>
|
|
|
|
<ul class="otherNav">
|
|
|
|
<c:url var="aboutHref" value="<%= Controllers.ABOUT %>">
|
|
|
|
<c:param name="home" value="${currentPortal}"/>
|
|
|
|
</c:url>
|
|
|
|
<c:set var="aboutHref">
|
|
|
|
<c:out value="${aboutHref}" escapeXml="true"/>
|
|
|
|
</c:set>
|
|
|
|
|
|
|
|
<li><a href="${aboutHref}" title="more about this web site">About</a></li>
|
|
|
|
|
|
|
|
<c:url var="contactHref" value="/comments">
|
|
|
|
<c:param name="home" value="${currentPortal}"/>
|
|
|
|
</c:url>
|
|
|
|
<c:set var="contactHref">
|
|
|
|
<c:out value="${contactHref}" escapeXml="true"/>
|
|
|
|
</c:set>
|
|
|
|
<li class="last"><a href="${contactHref}" title="feedback form">Contact Us</a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<% if (portal.getCopyrightAnchor() != null && portal.getCopyrightAnchor().length()>0) { %>
|
|
|
|
<div class='copyright'>
|
|
|
|
©${currentYear}
|
|
|
|
<% if (portal.getCopyrightURL() != null && portal.getCopyrightURL().length()>0) { %>
|
|
|
|
<a href="<%=portal.getCopyrightURL()%>">
|
|
|
|
<% } %>
|
|
|
|
<%=portal.getCopyrightAnchor()%>
|
|
|
|
<% if (portal.getCopyrightURL() != null && portal.getCopyrightURL().length()>0) { %>
|
|
|
|
</a>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
<div class='copyright'>
|
|
|
|
All Rights Reserved. <a href="termsOfUse?home=<%=portal.getPortalId()%>">Terms of Use</a>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
|
|
|
</div>
|