(minor) Fixed bug #6548: FE "Preview" Label not stylable
authorBenni Mack <benni.mack@typo3.org>
Tue, 13 Nov 2007 11:21:28 +0000 (11:21 +0000)
committerBenni Mack <benni.mack@typo3.org>
Tue, 13 Nov 2007 11:21:28 +0000 (11:21 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2691 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php

index fed3c7a..c57ffae 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-13  Benjamin Mack  <mack@xnos.org>
+
+       * (minor) Fixed bug #6548: FE "Preview" Label not stylable
+
 2007-11-12  Oliver Hader  <oh@inpublica.de>
 
        * (minor) Fixed bug #6696: Parts of the TYPO3 back-end do not work correctly with prototype.js 1.6.0
index cf4cfe7..c89463f 100755 (executable)
@@ -3279,22 +3279,13 @@ if (version == "n3") {
         */
        function previewInfo()  {
                if ($this->fePreview)   {
-
                                if ($this->fePreview==2)        {
                                        $text = 'Preview of workspace "'.$this->whichWorkspace(TRUE).'" ('.$this->whichWorkspace().')';
                                } else {
                                        $text = 'PREVIEW!';
                                }
 
-                               $stdMsg = '
-                               <br />
-                               <div align="center">
-                                       <table border="3" bordercolor="black" cellpadding="2" bgcolor="red" summary="">
-                                               <tr>
-                                                       <td>&nbsp;&nbsp;<font face="Verdana" size="1"><b>'.htmlspecialchars($text).'</b></font>&nbsp;&nbsp;</td>
-                                               </tr>
-                                       </table>
-                               </div>';
+                               $stdMsg = '<div id="typo3-previewInfo" style="position: absolute; top: 20px; right: 20px; border: 2px solid #000; padding: 5px 150px; background: #f00; font: 1em Verdana; color: #000; font-weight: bold; z-index: 10001">'.htmlspecialchars($text).'</div>';
 
                                if ($this->fePreview==2)        {
                                        $temp_content = $this->config['config']['message_preview_workspace'] ?