[FEATURE] BE login needs a CSS class for popup login
authorGeorg Ringer <mail@ringerge.org>
Fri, 29 Jun 2012 06:03:57 +0000 (08:03 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 30 Jun 2012 11:58:48 +0000 (13:58 +0200)
If the popup window with the login information is rendered,
an additional class can help to style the output a bit better

Change-Id: I606760e46f2af457aae025014002030d16a12763
Resolves: #38471
Releases: 6.0
Reviewed-on: http://review.typo3.org/12433
Reviewed-by: Philipp Gampe
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/index.php
typo3/sysext/t3skin/templates/login.html

index f3cca01..5e606d5 100644 (file)
@@ -280,13 +280,21 @@ class SC_index {
                );
                $browserWarning = $browserWarning->render();
 
+               $additionalCssClasses = array();
+               if ($this->isLoginInProgress()) {
+                       $additionalCssClasses[] = 'error';
+               }
+               if ($this->loginRefresh) {
+                       $additionalCssClasses[] = 'refresh';
+               }
+
                $markers = array(
                        'LOGO'             => $logo,
                        'LOGINBOX_IMAGE'   => $this->makeLoginBoxImage(),
                        'FORM'             => $content,
                        'NEWS'             => $this->makeLoginNews(),
                        'COPYRIGHT'        => $this->makeCopyrightNotice(),
-                       'CSS_ERRORCLASS'   => ($this->isLoginInProgress() ? ' class="error"' : ''),
+                       'CSS_CLASSES'      => !empty($additionalCssClasses) ? 'class="' . implode(' ', $additionalCssClasses) . '"' : '',
                        'CSS_OPENIDCLASS'  => 't3-login-openid-' . (t3lib_extMgm::isLoaded('openid') ? 'enabled' : 'disabled'),
 
                                // The labels will be replaced later on, thus the other parts above
index c42a222..14bdaa9 100644 (file)
@@ -1,5 +1,5 @@
 <!-- ###PAGE### begin -->
-<div id="t3-login-form-outer" ###CSS_ERRORCLASS###>
+<div id="t3-login-form-outer" ###CSS_CLASSES###>
        <div id="t3-login-form">
                <div id="t3-login-image">
                        ###LOGO###