Project

General

Profile

Bug #17701 ยป 20071018_previewinfo.patch

Administrator Admin, 2007-10-18 17:10

View differences:

class.tslib_fe.php (working copy)
*/
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: fixed; bottom: 20px; left: 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'] ?
    (1-1/1)