[sword-svn] r426 - trunk/webapp
scribe at crosswire.org
scribe at crosswire.org
Tue Jun 14 13:25:16 MST 2016
Author: scribe
Date: 2016-06-14 13:25:16 -0700 (Tue, 14 Jun 2016)
New Revision: 426
Modified:
trunk/webapp/simplelookup.jsp
Log:
added custom font and balancing diff
Modified: trunk/webapp/simplelookup.jsp
===================================================================
--- trunk/webapp/simplelookup.jsp 2016-06-14 20:23:23 UTC (rev 425)
+++ trunk/webapp/simplelookup.jsp 2016-06-14 20:25:16 UTC (rev 426)
@@ -44,6 +44,12 @@
String book = activeModule.getKeyChildren()[6];
int chapter = Integer.parseInt(activeModule.getKeyChildren()[2]);
int verse = Integer.parseInt(activeModule.getKeyChildren()[3]);
+ String specialFont = activeModule.getConfigEntry("Font");
+ if (specialFont.equalsIgnoreCase("<swnull>")) {
+ specialFont = null;
+ }
+ String lang = activeModule.getConfigEntry("Lang");
+ boolean rtol = ("RtoL".equalsIgnoreCase(activeModule.getConfigEntry("Direction")));
%>
<%= activeKey %>%%%
<div>
@@ -53,8 +59,7 @@
int activeVerse = Integer.parseInt(activeKey.substring(activeKey.indexOf(":")+1));
int anchorVerse = (activeVerse > 2)?activeVerse - 2: -1;
boolean first = true;
- String lang = activeModule.getConfigEntry("Lang");
- boolean rtol = ("RtoL".equalsIgnoreCase(activeModule.getConfigEntry("Direction")));
+
String lastEusNum = "";
String myEusNum = "";
@@ -138,7 +143,7 @@
}
%>
- <td><div <%= rtol ? "dir=\"rtl\"" : "" %> class="<%= (keyText.equals(activeKey)) ? "currentverse" : (intro) ? "intro" : "verse" %>">
+ <td><div <%= rtol ? "dir=\"rtl\"" : "" %> style="<%= specialFont != null ? "font-family:"+specialFont : "" %>" class="<%= (keyText.equals(activeKey)) ? "currentverse" : (intro) ? "intro" : "verse" %>">
<%
@@ -192,9 +197,11 @@
else {
%>
<div class="verse">
+ <div <%= rtol ? "dir=\"rtl\"" : "" %> style="<%= specialFont != null ? "font-family:"+specialFont : "" %>" class="verse">
<span class="versenum"><%= activeKey %></span>
<%= activeModule.getRenderText() %>
</div>
+ </div>
<%
}
String copyLine = activeModule.getConfigEntry("ShortCopyright");
More information about the sword-cvs
mailing list