Moved vivo-basic theme jsps out of themes into productMods, to make them less easily accessible to theme customizers.
This commit is contained in:
parent
a6722233aa
commit
015ee4c448
6 changed files with 43 additions and 61 deletions
16
productMods/themes/vivo-basic/jsp/footer.jsp
Normal file
16
productMods/themes/vivo-basic/jsp/footer.jsp
Normal file
|
@ -0,0 +1,16 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
|
||||
<%-- DO NOT MODIFY THIS FILE. IT IS NOT USED IN THEME CUSTOMIZATION. --%>
|
||||
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.FreeMarkerHttpServlet" %>
|
||||
<%
|
||||
// If the request was for a jsp rather than a servlet, we didn't get these yet.
|
||||
// This is here as a safety net. We should have gotten the values in identity.jsp,
|
||||
// since it's the first one we hit.
|
||||
String footer = (String) request.getAttribute("ftl_footer");
|
||||
if (footer == null) {
|
||||
FreeMarkerHttpServlet.getFreeMarkerComponentsForJsp(request, response);
|
||||
}
|
||||
%>
|
||||
|
||||
${ftl_footer}
|
15
productMods/themes/vivo-basic/jsp/identity.jsp
Normal file
15
productMods/themes/vivo-basic/jsp/identity.jsp
Normal file
|
@ -0,0 +1,15 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
|
||||
<%-- DO NOT MODIFY THIS FILE. IT IS NOT USED IN THEME CUSTOMIZATION. --%>
|
||||
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.FreeMarkerHttpServlet" %>
|
||||
<%
|
||||
// If the request was for a jsp rather than a servlet, we didn't get these yet.
|
||||
String identity = (String) request.getAttribute("ftl_identity");
|
||||
if (identity == null) {
|
||||
FreeMarkerHttpServlet.getFreeMarkerComponentsForJsp(request, response);
|
||||
}
|
||||
%>
|
||||
|
||||
${ftl_identity}
|
||||
|
23
productMods/themes/vivo-basic/jsp/menu.jsp
Normal file
23
productMods/themes/vivo-basic/jsp/menu.jsp
Normal file
|
@ -0,0 +1,23 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
|
||||
<%-- DO NOT MODIFY THIS FILE. IT IS NOT USED IN THEME CUSTOMIZATION. --%>
|
||||
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.web.BreadCrumbsUtil" %>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.FreeMarkerHttpServlet" %>
|
||||
<%
|
||||
// If the request was for a jsp rather than a servlet, we didn't get these yet.
|
||||
// This is here as a safety net. We should have gotten the values in identity.jsp,
|
||||
// since it's the first one we hit.
|
||||
String menu = (String) request.getAttribute("ftl_menu");
|
||||
if (menu == null) {
|
||||
FreeMarkerHttpServlet.getFreeMarkerComponentsForJsp(request, response);
|
||||
}
|
||||
%>
|
||||
|
||||
<div id="navAndSearch" class="block">
|
||||
${ftl_menu}
|
||||
${ftl_search}
|
||||
</div> <!-- end navAndSearch -->
|
||||
|
||||
<div id="breadcrumbs" class="small"><%=BreadCrumbsUtil.getBreadCrumbsDiv(request)%></div>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue