Project

General

Profile

Bug #18633 » bug8147.diff

Administrator Admin, 2008-04-21 22:12

View differences:

trunk.new/typo3/alt_shortcut.php 2008-04-21 23:32:50.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;';
$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-21 23:59:40.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"' : '').'/>';
$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">'.
trunk.new/typo3/sysext/lang/locallang_misc.xml 2008-04-21 23:34:06.000000000 +0400
<label index="shortcut_onlineWS">LIVE workspace</label>
<label index="shortcut_offlineWS">Draft workspace</label>
<label index="shortcut_noWSfound">ERROR: No workspaces found!</label>
<label index="frontend_preview">Frontend Preview:</label>
<label index="overwriteExistingFiles">Overwrite existing files</label>
<label index="selectPosition">Select a position for the new page</label>
<label index="goBack">Go back</label>
(1-1/2)