New login image for t3skin by Ture Andersen
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Tue, 27 Feb 2007 23:43:19 +0000 (23:43 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Tue, 27 Feb 2007 23:43:19 +0000 (23:43 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2163 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/index.php
typo3/sysext/t3skin/ext_tables.php
typo3/sysext/t3skin/images/login/loginimage_4_1.jpg [new file with mode: 0644]
typo3/sysext/t3skin/images/login/one.jpg [deleted file]

index b421b8f..d77e3b3 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-02-28  Ingmar Schlecht  <ingmar@typo3.org>
+
+       * New login image for t3skin by Ture Andersen
+
 2007-02-27  Oliver Hader  <oh@inpublica.de>
 
        * Fixed bug: #5052: Form action URL is not htmlspecialchared (patch by Michael Stucki)
index d9c5f34..4f11386 100755 (executable)
@@ -596,9 +596,11 @@ class SC_index {
                                        // Get size of random file:
                                $imgSize = @getimagesize($dir.$files[$randImg]);
 
+                               $imgAuthor = is_array($GLOBALS['TBE_STYLES']['loginBoxImage_author'])&&$GLOBALS['TBE_STYLES']['loginBoxImage_author'][$files[$randImg]] ? htmlspecialchars($GLOBALS['TBE_STYLES']['loginBoxImage_author'][$files[$randImg]]) : '';
+
                                        // Create image tag:
                                if (is_array($imgSize)) {
-                                       $loginboxImage = '<img src="'.htmlspecialchars($GLOBALS['TBE_STYLES']['loginBoxImage_rotationFolder'].$files[$randImg]).'" '.$imgSize[3].' id="loginbox-image" alt="" />';
+                                       $loginboxImage = '<img src="'.htmlspecialchars($GLOBALS['TBE_STYLES']['loginBoxImage_rotationFolder'].$files[$randImg]).'" '.$imgSize[3].' id="loginbox-image" alt="'.$imgAuthor.'" title="'.$imgAuthor.'" />';
                                }
                        }
                } else {        // If no rotation folder configured, print default image:
index 1d44b5f..3428c1d 100644 (file)
@@ -70,6 +70,7 @@ if (TYPO3_MODE=='BE') {
 
        // Setting login box image rotation folder:
        $TBE_STYLES['loginBoxImage_rotationFolder'] = $temp_eP.'images/login/';
+       $TBE_STYLES['loginBoxImage_author']['loginimage_4_1.jpg'] = 'Photo by Ture Andersen (www.tureandersen.dk)';
        #$TBE_STYLES['loginBoxImage_rotationFolder'] = '';
 
        // Setting up stylesheets (See template() constructor!)
diff --git a/typo3/sysext/t3skin/images/login/loginimage_4_1.jpg b/typo3/sysext/t3skin/images/login/loginimage_4_1.jpg
new file mode 100644 (file)
index 0000000..d465dfe
Binary files /dev/null and b/typo3/sysext/t3skin/images/login/loginimage_4_1.jpg differ
diff --git a/typo3/sysext/t3skin/images/login/one.jpg b/typo3/sysext/t3skin/images/login/one.jpg
deleted file mode 100644 (file)
index b420044..0000000
Binary files a/typo3/sysext/t3skin/images/login/one.jpg and /dev/null differ