mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
PNG behaviour for IE6. Activates on IMG tags only (i.e. not backgrounds)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7602 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -48,6 +48,8 @@ public class PageTag extends TagSupport
|
||||
private final static String SCRIPTS_END = "\"></script>\n";
|
||||
private final static String STYLES_START = "<link rel=\"stylesheet\" href=\"";
|
||||
private final static String STYLES_MAIN = "\" type=\"text/css\">\n";
|
||||
private final static String IE6COND_START = "<!--[if IE 6]>\n";
|
||||
private final static String IE6COND_END = "<![endif]-->\n";
|
||||
|
||||
private final static String[] SCRIPTS =
|
||||
{
|
||||
@@ -77,6 +79,11 @@ public class PageTag extends TagSupport
|
||||
"/css/picker.css"
|
||||
};
|
||||
|
||||
private final static String[] IE6COND_CSS =
|
||||
{
|
||||
"/css/ie6.css"
|
||||
};
|
||||
|
||||
/**
|
||||
* Please ensure you understand the terms of the license before changing the contents of this file.
|
||||
*/
|
||||
@@ -235,6 +242,17 @@ public class PageTag extends TagSupport
|
||||
out.write(STYLES_MAIN);
|
||||
}
|
||||
|
||||
// IE6COND_CSS style includes
|
||||
out.write(IE6COND_START);
|
||||
for (final String ie6cond_css : PageTag.IE6COND_CSS)
|
||||
{
|
||||
out.write(STYLES_START);
|
||||
out.write(reqPath);
|
||||
out.write(ie6cond_css);
|
||||
out.write(STYLES_MAIN);
|
||||
}
|
||||
out.write(IE6COND_END);
|
||||
|
||||
// JavaScript includes
|
||||
for (final String s : PageTag.SCRIPTS)
|
||||
{
|
||||
|
Reference in New Issue
Block a user