Add special IDs for each line ocontent
This commit is contained in:
parent
f8cbe8b95a
commit
3477c2f7f3
@ -23,7 +23,7 @@ public class sigPlace {
|
|||||||
new AbstractMap.SimpleEntry<>("$SITENAME", "SigPlace"),
|
new AbstractMap.SimpleEntry<>("$SITENAME", "SigPlace"),
|
||||||
new AbstractMap.SimpleEntry<>("$SITE_BACKCOL", "#111"),
|
new AbstractMap.SimpleEntry<>("$SITE_BACKCOL", "#111"),
|
||||||
new AbstractMap.SimpleEntry<>("$TITLE_CONTENT_START", "<div class=\"contentWrapper\"><h1>"),
|
new AbstractMap.SimpleEntry<>("$TITLE_CONTENT_START", "<div class=\"contentWrapper\"><h1>"),
|
||||||
new AbstractMap.SimpleEntry<>("$TITLE_CONTENT_END", "</h1><div class=\"content\">"),
|
new AbstractMap.SimpleEntry<>("$TITLE_CONTENT_END", "</h1><div class=\"content\" %ID%>"),
|
||||||
new AbstractMap.SimpleEntry<>("$CONTENT_END", "</div>"),
|
new AbstractMap.SimpleEntry<>("$CONTENT_END", "</div>"),
|
||||||
new AbstractMap.SimpleEntry<>("$DATE_CONTENT_START", "<div class=\"datebar\"></div><div class=\"date\">")
|
new AbstractMap.SimpleEntry<>("$DATE_CONTENT_START", "<div class=\"datebar\"></div><div class=\"date\">")
|
||||||
));
|
));
|
||||||
@ -74,7 +74,8 @@ public class sigPlace {
|
|||||||
if (s.charAt(0)=='-') {
|
if (s.charAt(0)=='-') {
|
||||||
//Start of a title piece.
|
//Start of a title piece.
|
||||||
s=s.replace("-",map.get("$TITLE_CONTENT_START"));
|
s=s.replace("-",map.get("$TITLE_CONTENT_START"));
|
||||||
s=s+map.get("$TITLE_CONTENT_END");
|
s=s+map.get("$TITLE_CONTENT_END").replace("%ID%","id=\"content_"+i+"\"");
|
||||||
|
//Use ⤈ if there's more text to be shown than can fit.
|
||||||
} else
|
} else
|
||||||
if (s.contains("===")) {
|
if (s.contains("===")) {
|
||||||
s=map.get("$CONTENT_END")+map.get("$DATE_CONTENT_START")+s.replace("===","")+map.get("$CONTENT_END")+map.get("$CONTENT_END");
|
s=map.get("$CONTENT_END")+map.get("$DATE_CONTENT_START")+s.replace("===","")+map.get("$CONTENT_END")+map.get("$CONTENT_END");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user