2008-03-16 Ingo Renner <ingo@typo3.org>
* Fixed bug #7396: hardcoded fieldset and legend around radio buttons
+ * Fixed bug #7817: Transparent PNGs do not work in IE6
2008-03-15 Ingo Renner <ingo@typo3.org>
'js/sizemanager.js',
'js/toolbarmanager.js',
'js/modulemenu.js',
+ 'js/iecompatibility.js',
'../t3lib/jsfunc.evalfield.js'
);
***************************************************************/
+Element.addMethods({
+ pngHack: function(element) {
+ element = $(element);
+ var transparentGifPath = 'clear.gif';
+
+ // If there is valid element, it is an image and the image file ends with png:
+ if (Object.isElement(element) && element.tagName == 'IMG' && element.src.endsWith('.png')) {
+ var alphaImgSrc = element.src;
+ var sizingMethod = 'scale';
+ element.src = transparentGifPath;
+ }
+
+ if (alphaImgSrc) {
+ element.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="#{alphaImgSrc}",sizingMethod="#{sizingMethod}")'.interpolate(
+ {
+ alphaImgSrc: alphaImgSrc,
+ sizingMethod: sizingMethod
+ });
+ }
+
+ return element;
+ }
+});
+
var IECompatibility = Class.create({
/**
- * initialize the compatibility class
+ * initializes the compatibility class
*/
initialize: function() {
Event.observe(document, 'dom:loaded', function() {
$$('input[type="checkbox"]').invoke('addClassName', 'checkbox');
}.bind(this));
+
+ Event.observe(window, 'load', function() {
+ if (Prototype.Browser.IE) {
+ var version = parseFloat(navigator.appVersion.split(';')[1].strip().split(' ')[1]);
+ if (version == 6) {
+ $$('img').each(function(img){
+ img.pngHack();
+ });
+ }
+ }
+ });
}
});
-if (Prototype.Browser.IE) {
+if(Prototype.Browser.IE) {
var TYPO3IECompatibilty = new IECompatibility();
}
$TBE_STYLES['skinImg']['MOD:tools_em/uninstall.gif'] = array($temp_eP.'icons/ext/templavoila/mod1/moduleicon.gif','width="22" height="22"');
//print_a($TBE_STYLES,2);
+
+ $GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'][] = t3lib_extMgm::extPath('t3skin').'registerIe6Stylesheet.php';
+
}
-?>
+
+?>
\ No newline at end of file
--- /dev/null
+<?php
+
+if(TYPO3_MODE == 'BE') {
+
+ // handle stupid IE6
+ $userAgent = t3lib_div::getIndpEnv('HTTP_USER_AGENT');
+
+ if(!(strpos($userAgent, 'MSIE 6') === false)
+ && strpos($userAgent, 'Opera') === false
+ && strpos($userAgent, 'MSIE 7') === false) {
+ //make sure we match IE6 but not Opera or IE7
+ $GLOBALS['TYPO3backend']->addCssFile('ie6fix', 'sysext/t3skin/stylesheets/ie6.css');
+ }
+
+}
+
+?>
\ No newline at end of file
--- /dev/null
+/* - - - - - - - - - - - - - - - - - - - - -
+
+Title : TYPO3 IE6 fixes
+Author : Ingo Renner <ingo@typo3.org>
+URL : http://typo3.org
+
+Description : fixes the stupid Internet Explorer
+
+ $Id$
+
+- - - - - - - - - - - - - - - - - - - - - */
+
+
+#typo3-menu li div.expanded {
+ background-image: url('../../../gfx/ie6/arrowdown.gif');
+}
+
+#typo3-menu li div.collapsed {
+ background-image: url('../../../gfx/ie6/arrowright.gif');
+}
\ No newline at end of file
font-size: 11px;
color: #505d6d;
border: none;
- background-color: transparent;
+ background-color: #edeeee;
padding: 2px 0px 4px 16px;
margin: 8px 0px 2px 4px;
height: auto;
}
#typo3-menu li div.collapsed {
- background-image: url(../../../gfx/arrowright.png);
+ background-image: url('../../../gfx/arrowright.png');
background-repeat: no-repeat;
}
#typo3-menu li div.expanded {
- background-image: url(../../../gfx/arrowdown.png);
+ background-image: url('../../../gfx/arrowdown.png');
background-repeat: no-repeat;
}