Project

General

Profile

Bug #18633 » bug8147v2.diff

Administrator Admin, 2008-04-21 22:38

View differences:

trunk.new/typo3/alt_shortcut.php 2008-04-22 00:40:21.000000000 +0400
$selector = '';
// Preview:
if ($BE_USER->workspace!==0) {
$selector.= '<label for="workspacePreview">Frontend Preview:</label> <input type="checkbox" name="workspacePreview" id="workspacePreview" onclick="changeWorkspacePreview('.($BE_USER->user['workspace_preview'] ? 0 : 1).')"; '.($BE_USER->user['workspace_preview'] ? 'checked="checked"' : '').'/>&nbsp;';
if ($BE_USER->workspace!==0 && $BE_USER->getTSConfigVal('options.hideFrontendPreview')!=1) {
$selector.= '<label for="workspacePreview">'.$GLOBALS['LANG']->getLL('frontend_preview',1).'</label> <input type="checkbox" name="workspacePreview" id="workspacePreview" onclick="changeWorkspacePreview('.($BE_USER->user['workspace_preview'] ? 0 : 1).')"; '.($BE_USER->user['workspace_preview'] ? 'checked="checked"' : '').'/>&nbsp;';
}
$selector.= '<a href="mod/user/ws/index.php" target="content">'.
trunk.new/typo3/classes/class.workspaceselector.php 2008-04-22 00:40:09.000000000 +0400
}
// preview
if($GLOBALS['BE_USER']->workspace !== 0) {
$workspaceSelector.= ' <label for="workspacePreview">Frontend Preview:</label> <input type="checkbox" name="workspacePreview" id="workspacePreview" onclick="changeWorkspacePreview('.($GLOBALS['BE_USER']->user['workspace_preview'] ? 0 : 1).')"; '.($GLOBALS['BE_USER']->user['workspace_preview'] ? 'checked="checked"' : '').'/>';
if($GLOBALS['BE_USER']->workspace !== 0 && $GLOBALS['BE_USER']->getTSConfigVal('options.hideFrontendPreview')!=1) {
$workspaceSelector.= ' <label for="workspacePreview">'.$GLOBALS['LANG']->getLL('frontend_preview',1).'</label> <input type="checkbox" name="workspacePreview" id="workspacePreview" onclick="changeWorkspacePreview('.($GLOBALS['BE_USER']->user['workspace_preview'] ? 0 : 1).')"; '.($GLOBALS['BE_USER']->user['workspace_preview'] ? 'checked="checked"' : '').'/>';
}
$workspaceSelector.= ' <a href="mod/user/ws/index.php" target="content">'.
(2-2/2)