Added urls.theme to template data model and changed paths containing themeDir to use urls.theme
This commit is contained in:
parent
2b2d522f45
commit
02864178f5
1 changed files with 1 additions and 3 deletions
|
@ -278,9 +278,6 @@ public class FreemarkerHttpServlet extends VitroHttpServlet {
|
||||||
map.put("urls", getUrls(themeDir, urlBuilder));
|
map.put("urls", getUrls(themeDir, urlBuilder));
|
||||||
|
|
||||||
map.put("themeDir", themeDir);
|
map.put("themeDir", themeDir);
|
||||||
|
|
||||||
map.put("themeDir", themeDir);
|
|
||||||
|
|
||||||
map.put("stylesheets", getStylesheetList(themeDir));
|
map.put("stylesheets", getStylesheetList(themeDir));
|
||||||
map.put("scripts", getScriptList(themeDir));
|
map.put("scripts", getScriptList(themeDir));
|
||||||
map.put("headScripts", getScriptList(themeDir));
|
map.put("headScripts", getScriptList(themeDir));
|
||||||
|
@ -317,6 +314,7 @@ public class FreemarkerHttpServlet extends VitroHttpServlet {
|
||||||
urls.put("siteIcons", urlBuilder.getPortalUrl(themeDir + "/site_icons"));
|
urls.put("siteIcons", urlBuilder.getPortalUrl(themeDir + "/site_icons"));
|
||||||
urls.put("themeImages", urlBuilder.getPortalUrl(themeDir + "/images"));
|
urls.put("themeImages", urlBuilder.getPortalUrl(themeDir + "/images"));
|
||||||
urls.put("images", urlBuilder.getUrl("/images"));
|
urls.put("images", urlBuilder.getUrl("/images"));
|
||||||
|
urls.put("theme", urlBuilder.getUrl(themeDir));
|
||||||
|
|
||||||
return urls;
|
return urls;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue