if hasattr(config, "HELP_URL") and config.HELP_URL:
options["helpURL"] = config.HELP_URL
- if hasattr(config, "LOGO_URL") and config.LOGO_URL:
+ if hasattr(config, "LOGO_URL"):
options["logoURL"] = config.LOGO_URL
if hasattr(config, "ACCOUNT_WHOIS_COMMAND") and config.ACCOUNT_WHOIS_COMMAND:
nocss = ui.get("nocss")
if not debug:
return ["css/%s-%s.css" % (name, getgitid())]
- css = pages.flatten([ui.get("extracss", []), "colours", "dialogs"])
+ css = list(pages.flatten([ui.get("extracss", []), "colours", "dialogs"]))
if not nocss:
- css = list(css) + [name]
- return list("css/%s%s.css" % ("debug/" if gen else "", x) for x in css)
+ css+=[name]
+ css = ["%s.css" % x for x in css]
+ if hasattr(config, "CUSTOM_CSS"):
+ css+=[config.CUSTOM_CSS]
+ return list("css/%s%s" % ("debug/" if gen else "", x) for x in css)
def _getgitid():
try:
NETWORK_NAME = "FooNet"
# OPTION: LOGO_URL
-# URL to your logo (max height 68 pixels).
+# URL (relative or absolute) to your logo (max height 68 pixels).
# If not set the default network name will shown in text.
+# Can be set to "" to display the logo box without setting the
+# logo (for use with CUSTOM_CSS)
#LOGO_URL="images/logo.png"
+# OPTION: CUSTOM_CSS
+# Filename of custom css to include.
+# Must be in the css directory.
+#CUSTOM_CSS="mynetwork.css"
+
# OPTION: ANALYTICS_HTML
# If you have an analytics service, you can paste the HTML
# between the triple quotes.
exec("[name=" + box + "box]", util.setVisible(true));
if(!autoConnect) {
- if(uiOptions.logoURL) {
+ if($defined(uiOptions.logoURL)) {
var logoBar = parent.getElement("[class=bar-logo]");
- logoBar.setAttribute("style", "background: url(" + uiOptions.logoURL + ") no-repeat center top; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + uiOptions.logoURL + "',sizingMethod='crop');");
+ if(uiOptions.logoURL)
+ logoBar.setAttribute("style", "background: url(" + uiOptions.logoURL + ") no-repeat center top; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + uiOptions.logoURL + "',sizingMethod='crop');");
+
util.makeVisible(parent.getElement("[name=loginheader]"));
} else {
util.makeVisible(parent.getElement("[name=nologologinheader]"));