;
}
- public Template index(boolean banner, List<Template> content) {
+ public Template index(boolean banner, boolean fullscreen,
+ List<Template> content) {
String favicon = "favicon.ico";
String icon = Instance.getInstance().getUiConfig()
.getString(UiConfig.PROGRAM_ICON);
Template index = new Template(getClass(), "index.html") //
.set("title", "Fanfix") //
.set("favicon", favicon) //
+ .set("mainClass", fullscreen ? "fullscreen" : "") //
.set("content", content) //
;
;
}
+ // href NULL means no forward link
public Template viewerImage(String src, String href, String zoomStyle) {
- return new Template(getClass(), "viewer.image.html") //
- .set("src", src) //
- .set("href", href) //
- .set("zoomStyle", zoomStyle) //
+ return new Template(getClass(),
+ href == null ? "viewer.image.nolink.html" : "viewer.image.html") //
+ .set("src", src) //
+ .set("href", href) //
+ .set("zoomStyle", zoomStyle) //
;
}
;
}
- // supported numberOfButtons = 4 or 1 or the moment
+ // supported numberOfButtons = 5 or 4 or 1 or the moment
public Template viewerOptionbar(int numberOfButtons,
List<Template> buttons) {
return new Template(getClass(), "viewer.optionbar.html") //