[FEATURE] Add warning for IE6 users
authorSteffen Gebert <steffen.gebert@typo3.org>
Fri, 8 Jul 2011 19:41:16 +0000 (21:41 +0200)
committerXavier Perseguers <typo3@perseguers.ch>
Tue, 19 Jul 2011 10:00:40 +0000 (12:00 +0200)
As IE6 is not supported anymore, add a warning that the user should
upgrade his browser.

Change-Id: Id7d8411ae38e55dd6fa2747dce2fb85522c7bbc7
Resolves: #20953
Reviewed-on: http://review.typo3.org/3381
Reviewed-by: Stefan Neufeind
Tested-by: Eric Chavaillaz
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/index.php
typo3/sysext/lang/locallang_login.xml
typo3/sysext/t3skin/templates/login.html

index 3419c69..2e501dd 100644 (file)
@@ -284,6 +284,15 @@ class SC_index {
                        $logo = '<img'.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/typo3logo.gif','width="123" height="34"').' alt="" />';
                }
 
+               $browserWarning = t3lib_div::makeInstance(
+                       't3lib_FlashMessage',
+                               // TODO: refactor if other old browsers are not supported anymore
+                       $GLOBALS['LANG']->getLL('warning.incompatibleBrowser') . ' ' . $GLOBALS['LANG']->getLL('warning.incompatibleBrowserInternetExplorer'),
+                       $GLOBALS['LANG']->getLL('warning.incompatibleBrowserHeadline'),
+                       t3lib_FlashMessage::ERROR
+               );
+               $browserWarning = $browserWarning->render();
+
                $markers = array(
                        'LOGO'             => $logo,
                        'LOGINBOX_IMAGE'   => $this->makeLoginBoxImage(),
@@ -299,6 +308,7 @@ class SC_index {
                        'INFO_ABOUT'       => $GLOBALS['LANG']->getLL('info.about', TRUE),
                        'INFO_RELOAD'      => $GLOBALS['LANG']->getLL('info.reset', TRUE),
                        'INFO'             => $GLOBALS['LANG']->getLL('info.cookies_and_js', TRUE),
+                       'WARNING_BROWSER_INCOMPATIBLE'  => $browserWarning,
                        'ERROR_JAVASCRIPT' => $GLOBALS['LANG']->getLL('error.javascript', TRUE),
                        'ERROR_COOKIES'    => $GLOBALS['LANG']->getLL('error.cookies', TRUE),
                        'ERROR_COOKIES_IGNORE' => $GLOBALS['LANG']->getLL('error.cookies_ignore', TRUE),
index 07dd903..ef9969c 100644 (file)
@@ -26,6 +26,9 @@
                        <label index="info.cookies_and_js">(Note: Cookies and JavaScript must be enabled!)</label>
                        <label index="clear">Clear this field!</label>
                        <label index="login_process">Verifying Login Data ...</label>
+                       <label index="warning.incompatibleBrowserHeadline">Unsupported Browser</label>
+                       <label index="warning.incompatibleBrowser">You are using an unsupported browser version.</label>
+                       <label index="warning.incompatibleBrowserInternetExplorer">Please install &lt;a href="http://www.microsoft.com/internetexplorer/" target="_blank" /&gt;a more modern browser version&lt;/a&gt;.</label>
                        <label index="newsheadline">Important Messages:</label>
                        <label index="error.login">Your login attempt did not succeed. Make sure to spell your username and password correctly, including upper/lowercase characters.</label>
                        <label index="error.login.title">Your login attempt did not succeed</label>
index 8f30534..c42a222 100644 (file)
@@ -19,6 +19,9 @@
                                        <h2>###ERROR_COOKIES###</h2>
                                        <div id="t3-nocookies-ignore"><a href="#"  onclick="TYPO3BackendLogin.hideCookieWarning()">###ERROR_COOKIES_IGNORE###</a></div>
                                </div>
+                               <!--[if lte IE 6]>
+                                       ###WARNING_BROWSER_INCOMPATIBLE###
+                               <![endif]-->
                                <div id="t3-login-process" style="display: none">
                                        <h2>###LOGIN_PROCESS###</h2>
                                </div>