use of org.compiere.model.MTheme in project adempiere by adempiere.
the class ThemeUtils method getLargeLogo.
/**
* @return theme resolved url for the large logo of the current theme
*/
public static String getLargeLogo() {
String url = "";
String currentTheme = Themes.getCurrentTheme();
MTheme theme = MTheme.get(Env.getCtx(), currentTheme);
url = theme.getLogo_Large_Image();
if (url == null || url.length() == 0) {
url = MSysConfig.getValue("ZK_LOGO_LARGE_IMAGE", DefaultTheme.ZK_LOGO_LARGE_IMAGE);
// For backwards compatibility
if (url == null || url.length() == 0) {
url = MSysConfig.getValue("ZK_LOGO_LARGE", DefaultTheme.ZK_LOGO_LARGE_IMAGE);
}
}
return ServletFns.resolveThemeURL(url);
}
use of org.compiere.model.MTheme in project adempiere by adempiere.
the class ThemeUtils method getBrowserTitle.
/**
* @return theme specific url for the small logo of the current theme
*/
public static String getBrowserTitle() {
String title = "";
String currentTheme = Themes.getCurrentTheme();
MTheme theme = MTheme.get(Env.getCtx(), currentTheme);
title = theme.getBrowser_Title();
if (title == null || title.length() == 0) {
title = MSysConfig.getValue("ZK_BROWSER_TITLE", DefaultTheme.ZK_BROWSER_TITLE);
}
return title;
}
use of org.compiere.model.MTheme in project adempiere by adempiere.
the class ThemeUtils method getLoginLeftPanel.
/**
* @return url for left panel
*/
public static String getLoginLeftPanel() {
String url = "";
String currentTheme = Themes.getCurrentTheme();
MTheme theme = MTheme.get(Env.getCtx(), currentTheme);
url = theme.getLogin_Left_Panel_Zul();
if (url == null || url.length() == 0) {
url = MSysConfig.getValue("ZK_LOGIN_LEFT_PANEL_ZUL", DefaultTheme.ZK_LOGIN_LEFT_PANEL_ZUL);
}
return ServletFns.resolveThemeURL(url);
}
use of org.compiere.model.MTheme in project adempiere by adempiere.
the class ThemeUtils method getSmallLogo.
/**
* @return theme resolved url for the small logo of the current theme
*/
public static String getSmallLogo() {
String url = "";
String currentTheme = Themes.getCurrentTheme();
MTheme theme = MTheme.get(Env.getCtx(), currentTheme);
url = theme.getLogo_Small_Image();
if (url == null || url.length() == 0) {
url = MSysConfig.getValue("ZK_LOGO_SMALL_IMAGE", DefaultTheme.ZK_LOGO_SMALL_IMAGE);
// For backwards compatibility
if (url == null || url.length() == 0) {
url = MSysConfig.getValue("ZK_LOGO_SMALL", DefaultTheme.ZK_LOGO_SMALL_IMAGE);
if (url == null || url.length() == 0) {
url = MSysConfig.getValue("WEBUI_LOGOURL", DefaultTheme.ZK_LOGO_SMALL_IMAGE);
}
}
}
return ServletFns.resolveThemeURL(url);
}
use of org.compiere.model.MTheme in project adempiere by adempiere.
the class ThemeUtils method getLoginRightPanel.
/**
* @return url for right panel
*/
public static String getLoginRightPanel() {
String url = "";
String currentTheme = Themes.getCurrentTheme();
MTheme theme = MTheme.get(Env.getCtx(), currentTheme);
url = theme.getLogin_Right_Panel_Zul();
if (url == null || url.length() == 0) {
url = MSysConfig.getValue("ZK_LOGIN_RIGHT_PANEL_ZUL", DefaultTheme.ZK_LOGIN_RIGHT_PANEL_ZUL);
}
return ServletFns.resolveThemeURL(url);
}
Aggregations