Index: t3lib/class.t3lib_recordlist.php =================================================================== --- t3lib/class.t3lib_recordlist.php (revision 3725) +++ t3lib/class.t3lib_recordlist.php (working copy) @@ -378,9 +378,9 @@ * @param integer Sys language uid * @return string Language icon */ - function languageFlag($sys_language_uid) { - return ($this->languageIconTitles[$sys_language_uid]['flagIcon'] ? ' ' : ''). - htmlspecialchars($this->languageIconTitles[$sys_language_uid]['title']); + function languageFlag($sys_language_uid, $showTitle = true) { + return ($this->languageIconTitles[$sys_language_uid]['flagIcon'] ? ' ' : '') . + ($showTitle ? htmlspecialchars($this->languageIconTitles[$sys_language_uid]['title']) : ''); } } @@ -389,4 +389,4 @@ include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_recordlist.php']); } -?> \ No newline at end of file +?> Index: typo3/sysext/cms/layout/class.tx_cms_layout.php =================================================================== --- typo3/sysext/cms/layout/class.tx_cms_layout.php (revision 3725) +++ typo3/sysext/cms/layout/class.tx_cms_layout.php (working copy) @@ -131,7 +131,10 @@ var $externalTables = array(); // Array of tables which is configured to be listed by the Web > Page module in addition to the default tables. var $descrTable; // "Pseudo" Description -table name var $defLangBinding=FALSE; // If set true, the language mode of tt_content elements will be rendered with hard binding between default language content elements and their translations! - + var $showLanguageLabelInCE = false; // If set true, label for language will be shown in CE header + var $previewTextCropLength = 150; // sets length of preview text of CEs + var $columnWidth = 200; // fix width for columns + // External, static: Configuration of tt_content element display: var $tt_contentConfig = Array ( 'showInfo' => 1, // Boolean: Display info-marks or not @@ -449,7 +452,8 @@ $singleElementHTML.= $this->tt_content_drawHeader($row,$this->tt_contentConfig['showInfo']?15:5, $this->defLangBinding && $lP>0, TRUE); $isRTE = $RTE && $this->isRTEforField('tt_content',$row,'bodytext'); - $singleElementHTML.= '
+ |
+ + ' . t3lib_BEfunc::cshItem($this->descrTable,'language_list',$GLOBALS['BACK_PATH']) . + ' | +
'.$header.' | -||
'; - + $icon['space'] = ''; + // Edit content element: $params='&edit[tt_content]['.$this->tt_contentData['nextThree'][$row['uid']].']=edit'; - $out.=''. + $icon['edit'] = ''. 'backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.htmlspecialchars($this->nextThree>1?sprintf($GLOBALS['LANG']->getLL('nextThree'),$this->nextThree):$GLOBALS['LANG']->getLL('edit')).'" alt="" />'. ''; @@ -1584,27 +1584,27 @@ $params='&edit[tt_content]['.(-$row['uid']).']=new'; $onClick = t3lib_BEfunc::editOnClick($params,$this->backPath); } - $out.=''. + $icon['new'] = ''. 'backPath,'gfx/new_record.gif','width="16" height="12"').' title="'.$GLOBALS['LANG']->getLL('newAfter',1).'" alt="" />'. ''; // Move element up: if ($this->tt_contentData['prev'][$row['uid']]) { $params='&cmd[tt_content]['.$row['uid'].'][move]='.$this->tt_contentData['prev'][$row['uid']]; - $out.=''. + $icon['up'] = ''. 'backPath,'gfx/button_up.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->getLL('moveUp',1).'" alt="" />'. ''; } else { - $out.='backPath,'gfx/button_up.gif','width="11" height="10"',2).' alt="" />'; + $icon['up'] = 'backPath,'gfx/button_up.gif','width="11" height="10"',2).' alt="" />'; } // Move element down: if ($this->tt_contentData['next'][$row['uid']]) { $params='&cmd[tt_content]['.$row['uid'].'][move]='.$this->tt_contentData['next'][$row['uid']]; - $out.=''. + $icon['down'] = ''. 'backPath,'gfx/button_down.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->getLL('moveDown',1).'" alt="" />'. ''; } else { - $out.='backPath,'gfx/button_down.gif','width="11" height="10"',2).' alt="" />'; + $icon['down'] = 'backPath,'gfx/button_down.gif','width="11" height="10"',2).' alt="" />'; } } @@ -1613,12 +1613,12 @@ if ($hiddenField && $TCA['tt_content']['columns'][$hiddenField] && (!$TCA['tt_content']['columns'][$hiddenField]['exclude'] || $GLOBALS['BE_USER']->check('non_exclude_fields','tt_content:'.$hiddenField))) { if ($row[$hiddenField]) { $params='&data[tt_content]['.($row['_ORIG_uid'] ? $row['_ORIG_uid'] : $row['uid']).']['.$hiddenField.']=0'; - $out.=''. + $icon['hide'] = ''. 'backPath,'gfx/button_unhide.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->getLL('unHide',1).'" alt="" />'. ''; } else { $params='&data[tt_content]['.($row['_ORIG_uid'] ? $row['_ORIG_uid'] : $row['uid']).']['.$hiddenField.']=1'; - $out.=''. + $icon['hide'] = ''. 'backPath,'gfx/button_hide.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->getLL('hide',1).'" alt="" />'. ''; } @@ -1626,27 +1626,131 @@ // Delete $params='&cmd[tt_content]['.$row['uid'].'][delete]=1'; - $out.=''. + $icon['delete'] = ''. 'backPath,'gfx/garbage.gif','width="11" height="12"').' title="'.$GLOBALS['LANG']->getLL('deleteItem',1).'" alt="" />'. ''; - - // End cell: + + + // control cell: $out.= ' + + | ||
+
+ ' . $icon['edit'] . $icon['hide'] . $icon['space'] . $icon['new'] . $icon['space'] . $icon['info'] . $icon['space'] . $icon['delete'] . '
+
+
+ ' . $icon['up'] . $icon['down'] . '
+
|
||
'.implode(' ',$info).' |
- ||
'.$header.' | +
' . t3lib_BEfunc::cshItem($this->descrTable,'columns_multi',$GLOBALS['BACK_PATH']) . ' | '; + // Wrap the cells into a table row: + $columnWidth = intval($this->columnWidth) > 0 ? 'style="width:' . $this->columnWidth . 'px;"' : ''; $out = ' -
+ |
+ + ' . t3lib_BEfunc::cshItem($this->descrTable,'language_list',$GLOBALS['BACK_PATH']) . + ' | +
'.$header.' | -
'; - + $icon['space'] = ''; + // Edit content element: $params='&edit[tt_content]['.$this->tt_contentData['nextThree'][$row['uid']].']=edit'; - $out.=''. + $icon['edit'] = ''. 'backPath,'gfx/edit2.gif','width="11" height="12"').' title="'.htmlspecialchars($this->nextThree>1?sprintf($GLOBALS['LANG']->getLL('nextThree'),$this->nextThree):$GLOBALS['LANG']->getLL('edit')).'" alt="" />'. ''; @@ -1584,27 +1584,27 @@ $params='&edit[tt_content]['.(-$row['uid']).']=new'; $onClick = t3lib_BEfunc::editOnClick($params,$this->backPath); } - $out.=''. + $icon['new'] = ''. 'backPath,'gfx/new_record.gif','width="16" height="12"').' title="'.$GLOBALS['LANG']->getLL('newAfter',1).'" alt="" />'. ''; // Move element up: if ($this->tt_contentData['prev'][$row['uid']]) { $params='&cmd[tt_content]['.$row['uid'].'][move]='.$this->tt_contentData['prev'][$row['uid']]; - $out.=''. + $icon['up'] = ''. 'backPath,'gfx/button_up.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->getLL('moveUp',1).'" alt="" />'. ''; } else { - $out.='backPath,'gfx/button_up.gif','width="11" height="10"',2).' alt="" />'; + $icon['up'] = 'backPath,'gfx/button_up.gif','width="11" height="10"',2).' alt="" />'; } // Move element down: if ($this->tt_contentData['next'][$row['uid']]) { $params='&cmd[tt_content]['.$row['uid'].'][move]='.$this->tt_contentData['next'][$row['uid']]; - $out.=''. + $icon['down'] = ''. 'backPath,'gfx/button_down.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->getLL('moveDown',1).'" alt="" />'. ''; } else { - $out.='backPath,'gfx/button_down.gif','width="11" height="10"',2).' alt="" />'; + $icon['down'] = 'backPath,'gfx/button_down.gif','width="11" height="10"',2).' alt="" />'; } } @@ -1613,12 +1613,12 @@ if ($hiddenField && $TCA['tt_content']['columns'][$hiddenField] && (!$TCA['tt_content']['columns'][$hiddenField]['exclude'] || $GLOBALS['BE_USER']->check('non_exclude_fields','tt_content:'.$hiddenField))) { if ($row[$hiddenField]) { $params='&data[tt_content]['.($row['_ORIG_uid'] ? $row['_ORIG_uid'] : $row['uid']).']['.$hiddenField.']=0'; - $out.=''. + $icon['hide'] = ''. 'backPath,'gfx/button_unhide.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->getLL('unHide',1).'" alt="" />'. ''; } else { $params='&data[tt_content]['.($row['_ORIG_uid'] ? $row['_ORIG_uid'] : $row['uid']).']['.$hiddenField.']=1'; - $out.=''. + $icon['hide'] = ''. 'backPath,'gfx/button_hide.gif','width="11" height="10"').' title="'.$GLOBALS['LANG']->getLL('hide',1).'" alt="" />'. ''; } @@ -1626,27 +1626,131 @@ // Delete $params='&cmd[tt_content]['.$row['uid'].'][delete]=1'; - $out.=''. + $icon['delete'] = ''. 'backPath,'gfx/garbage.gif','width="11" height="12"').' title="'.$GLOBALS['LANG']->getLL('deleteItem',1).'" alt="" />'. ''; - - // End cell: + + + // control cell: $out.= ' + + |
+
+ ' . $icon['edit'] . $icon['hide'] . $icon['space'] . $icon['new'] . $icon['space'] . $icon['info'] . $icon['space'] . $icon['delete'] . '
+
+
+ ' . $icon['up'] . $icon['down'] . '
+
|
'.implode(' ',$info).' |
-
'.$header.' | +