[sword-svn] r425 - trunk/webapp
scribe at crosswire.org
scribe at crosswire.org
Tue Jun 14 13:23:23 MST 2016
Author: scribe
Date: 2016-06-14 13:23:23 -0700 (Tue, 14 Jun 2016)
New Revision: 425
Modified:
trunk/webapp/simplesearch.jsp
Log:
added ability to pass a custom font
Modified: trunk/webapp/simplesearch.jsp
===================================================================
--- trunk/webapp/simplesearch.jsp 2015-05-29 00:07:58 UTC (rev 424)
+++ trunk/webapp/simplesearch.jsp 2016-06-14 20:23:23 UTC (rev 425)
@@ -24,6 +24,11 @@
if (activeModuleName == null) activeModuleName = "WHNU";
SWModule activeModule = mgr.getModuleByName(activeModuleName);
+ String specialFont = activeModule.getConfigEntry("Font");
+ if (specialFont.equalsIgnoreCase("<swnull>")) {
+ specialFont = null;
+ }
+
String activeSearchTerm = request.getParameter("searchTerm");
// assert we have a search term
if (activeSearchTerm == null) return;
@@ -126,7 +131,8 @@
</dt>
- <dd dir="<%= rtol ? "rtl" : "" %>">
+ <dd dir="<%= rtol ? "rtl" : "" %>" style="<%= specialFont != null ? "font-family:"+specialFont : "" %>">
+
<%= activeModule.getRenderText() %>
</dd>
More information about the sword-cvs
mailing list