Index: typo3/sysext/setup/mod/index.php =================================================================== --- typo3/sysext/setup/mod/index.php (revision 3768) +++ typo3/sysext/setup/mod/index.php (working copy) @@ -250,11 +250,11 @@ $this->doc->JScodeLibArray['dyntabmenu'] = $this->doc->getDynTabMenuJScode(); $this->doc->form = '
'; - $this->doc->tableLayout = Array ( - 'defRow' => Array ( - '0' => Array('',''), - '2' => Array('',''), - 'defCol' => Array('','') + $this->doc->tableLayout = array ( + 'defRow' => array ( + '0' => array('',''), + '2' => array('',''), + 'defCol' => array('','') ) ); $this->doc->table_TR = ''; @@ -306,29 +306,56 @@ } $this->content .= $this->doc->spacer(25); } - - + + // display full help is active? + $displayFullText = ($BE_USER->uc['edit_showFieldHelp'] == 'text'); + if ($displayFullText) { + $this->doc->tableLayout['defRowEven'] = array ( + 'defCol' => array ( + '','' + ), + ); + } + // Personal data $code = array(); - $code[1][1] = $this->setLabel('beUser_realName'); - $code[1][2] = 'formWidth(20).' />'; - $code[1][3] = $this->getCSH('beUser_realName'); + $i = 0; + + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('beUser_realName'); + + } + $code[$i][1] = $this->setLabel('beUser_realName'); + $code[$i][2] = 'formWidth(20).' />'; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('beUser_realName'); - $code[2][1] = $this->setLabel('beUser_email'); - $code[2][2] = 'formWidth(20).' />'; - $code[2][3] = $this->getCSH('beUser_email'); + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('beUser_email'); + } + $code[$i][1] = $this->setLabel('beUser_email'); + $code[$i][2] = 'formWidth(20).' />'; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('beUser_email'); - $code[3][1] = $this->setLabel('emailMeAtLogin').($BE_USER->user['email'] ? ' ('.$BE_USER->user['email'].')' : ''); - $code[3][2] = 'uc['emailMeAtLogin']?' checked="checked"':'').' />'; - $code[3][3] = $this->getCSH('emailMeAtLogin'); + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('emailMeAtLogin'); + } + $code[$i][1] = $this->setLabel('emailMeAtLogin').($BE_USER->user['email'] ? ' ('.$BE_USER->user['email'].')' : ''); + $code[$i][2] = 'uc['emailMeAtLogin']?' checked="checked"':'').' />'; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('emailMeAtLogin'); - $code[4][1] = $this->setLabel('newPassword'); - $code[4][2] = 'formWidth(20).' onchange="this.value=this.value?MD5(this.value):\'\';" />'; - $code[4][3] = $this->getCSH('newPassword'); + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('newPassword'); + } + $code[$i][1] = $this->setLabel('newPassword'); + $code[$i][2] = 'formWidth(20).' onchange="this.value=this.value?MD5(this.value):\'\';" />'; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('newPassword'); - $code[5][1] = $this->setLabel('newPasswordAgain'); - $code[5][2] = 'formWidth(20).' onchange="this.value=this.value?MD5(this.value):\'\'" />'; - $code[5][3] = $this->getCSH('newPasswordAgain'); + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('newPasswordAgain'); + } + $code[$i][1] = $this->setLabel('newPasswordAgain'); + $code[$i][2] = 'formWidth(20).' onchange="this.value=this.value?MD5(this.value):\'\'" />'; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('newPasswordAgain'); // Languages: $opt = array(); @@ -362,9 +389,12 @@ } - $code[6][1] = $this->setLabel('language'); - $code[6][2] = $languageCode; - $code[6][3] = t3lib_BEfunc::cshItem('_MOD_user_setup', 'language', $BACK_PATH, '|'); + if ($displayFullText) { + $code[$i++][1] = t3lib_BEfunc::cshItem('_MOD_user_setup', 'language', $BACK_PATH, '|'); + } + $code[$i][1] = $this->setLabel('language'); + $code[$i][2] = $languageCode; + $code[$i++][3] = $displayFullText ? ' ' : t3lib_BEfunc::cshItem('_MOD_user_setup', 'language', $BACK_PATH, '|'); $menuItems[] = array( 'label' => $LANG->getLL('language').' & '.$LANG->getLL('personal_data'), @@ -375,22 +405,29 @@ // compiling the 'Startup' section $code = array(); + $i = 0; + + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('condensedMode'); + } + $code[$i][1] = $this->setLabel('condensedMode','condensedMode'); + $code[$i][2] = 'uc['condensedMode']?' checked="checked"':'').' />'; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('condensedMode'); - $code[2][1] = $this->setLabel('condensedMode','condensedMode'); - $code[2][2] = 'uc['condensedMode']?' checked="checked"':'').' />'; - $code[2][3] = $this->getCSH('condensedMode'); - if($GLOBALS['BE_USER']->uc['interfaceSetup'] == 'backend_old') { - $code[3][1] = $this->setLabel('noMenuMode','noMenuMode'); - $code[3][2] = ' '; - $code[3][3] = $this->getCSH('noMenuMode'); + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('noMenuMode'); } - $code[4][1] = $this->setLabel('startModule','startModule'); + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('startModule'); + } + $code[$i][1] = $this->setLabel('startModule','startModule'); $modSelect = ''; - $code[4][2] = $modSelect; - $code[4][3] = $this->getCSH('startModule'); + $code[$i][2] = $modSelect; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('startModule'); - $code[5][1] = $this->setLabel('showThumbs','thumbnailsByDefault'); - $code[5][2] = 'uc['thumbnailsByDefault']?' checked="checked"':'').' />'; - $code[5][3] = $this->getCSH('showThumbs'); + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('showThumbs'); + } + $code[$i][1] = $this->setLabel('showThumbs','thumbnailsByDefault'); + $code[$i][2] = 'uc['thumbnailsByDefault']?' checked="checked"':'').' />'; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('showThumbs'); - $code[6][1] = $this->setLabel('helpText'); - $code[6][2] = 'uc['helpText']?' checked="checked"':'').' />'; - $code[6][3] = $this->getCSH('helpText'); + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('helpText'); + } + $code[$i][1] = $this->setLabel('helpText'); + $code[$i][2] = 'uc['helpText']?' checked="checked"':'').' />'; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('helpText'); - $code[7][1] = $this->setLabel('edit_showFieldHelp'); - $code[7][2] = ' '; - $code[7][3] = $this->getCSH('edit_showFieldHelp'); + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('edit_showFieldHelp'); - $code[8][1] = $this->setLabel('maxTitleLen','titleLen'); - $code[8][2] = 'formWidth(5).' maxlength="5" />'; - $code[8][3] = $this->getCSH('maxTitleLen'); + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('maxTitleLen'); + } + $code[$i][1] = $this->setLabel('maxTitleLen','titleLen'); + $code[$i][2] = 'formWidth(5).' maxlength="5" />'; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('maxTitleLen'); $menuItems[] = array( 'label' => $LANG->getLL('opening'), @@ -438,28 +487,46 @@ // Edit $code = array(); + $i = 0; + if ($GLOBALS['TYPO3_CONF_VARS']['BE']['RTEenabled']) { - $code[2][1] = $this->setLabel('edit_RTE'); - $code[2][2] = 'uc['edit_RTE']?' checked="checked"':'').' />'; - $code[2][3] = $this->getCSH('edit_RTE'); + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('edit_RTE'); + } + $code[$i][1] = $this->setLabel('edit_RTE'); + $code[$i][2] = 'uc['edit_RTE']?' checked="checked"':'').' />'; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('edit_RTE'); } - $code[4][1] = $this->setLabel('edit_docModuleUpload'); - $code[4][2] = 'uc['edit_docModuleUpload']?' checked="checked"':'').' />'; - $code[4][3] = $this->getCSH('edit_docModuleUpload'); + + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('edit_docModuleUpload'); + } + $code[$i][1] = $this->setLabel('edit_docModuleUpload'); + $code[$i][2] = 'uc['edit_docModuleUpload']?' checked="checked"':'').' />'; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('edit_docModuleUpload'); - $code[6][1] = $this->setLabel('disableCMlayers'); - $code[6][2] = 'uc['disableCMlayers']?' checked="checked"':'').' />'; - $code[6][3] = $this->getCSH('disableCMlayers'); + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('disableCMlayers'); + } + $code[$i][1] = $this->setLabel('disableCMlayers'); + $code[$i][2] = 'uc['disableCMlayers']?' checked="checked"':'').' />'; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('disableCMlayers'); // Advanced Operations: - $code[8][1] = $this->setLabel('copyLevels'); - $code[8][2] = 'formWidth(5).' maxlength="5" /> '.$LANG->getLL('levels'); - $code[8][3] = $this->getCSH('copyLevels'); + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('copyLevels'); + } + $code[$i][1] = $this->setLabel('copyLevels'); + $code[$i][2] = 'formWidth(5).' maxlength="5" /> '.$LANG->getLL('levels'); + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('copyLevels'); - $code[10][1] = $this->setLabel('recursiveDelete'); - $code[10][2] = 'uc['recursiveDelete']?' checked="checked"':'').' />'; - $code[10][3] = $this->getCSH('recursiveDelete'); + if ($displayFullText) { + $code[$i++][1] = $this->getCSH('recursiveDelete'); + } + $code[$i][1] = $this->setLabel('recursiveDelete'); + $code[$i][2] = 'uc['recursiveDelete']?' checked="checked"':'').' />'; + $code[$i++][3] = $displayFullText ? ' ' : $this->getCSH('recursiveDelete'); $menuItems[] = array( 'label' => $LANG->getLL('edit_functions') . ' & ' . $LANG->getLL('functions'), @@ -468,14 +535,18 @@ $code = array(); + $i = 0; // Admin functions if($BE_USER->isAdmin()) { // Simulate selector box: if ($this->simulateSelector) { - $code[1][1] = $this->setLabel('simulate'); - $code[1][2] = $this->simulateSelector; - $code[1][3] = t3lib_BEfunc::cshItem('_MOD_user_setup', 'simuser', $BACK_PATH,'|'); + if ($displayFullText) { + $code[$i++][1] = t3lib_BEfunc::cshItem('_MOD_user_setup', 'simuser', $BACK_PATH,'|'); + } + $code[$i][1] = $this->setLabel('simulate'); + $code[$i][2] = $this->simulateSelector; + $code[$i++][3] = $displayFullText ? ' ' : t3lib_BEfunc::cshItem('_MOD_user_setup', 'simuser', $BACK_PATH,'|'); } $menuItems[] = array(