@@ -3580,15 +3580,17 @@ protected function generateTree($table, $id, $arrPrevNext, $blnHasSorting, $intM
3580
3580
$ session [$ node ][$ id ] = (is_int ($ session [$ node ][$ id ])) ? $ session [$ node ][$ id ] : 0 ;
3581
3581
$ mouseover = ($ GLOBALS ['TL_DCA ' ][$ this ->strTable ]['list ' ]['sorting ' ]['mode ' ] == 5 || $ table == $ this ->strTable ) ? ' onmouseover="Theme.hoverDiv(this,1)" onmouseout="Theme.hoverDiv(this,0)" onclick="Theme.toggleSelect(this)" ' : '' ;
3582
3582
3583
- $ return .= "\n " . '<li class=" ' .((($ GLOBALS ['TL_DCA ' ][$ this ->strTable ]['list ' ]['sorting ' ]['mode ' ] == 5 && $ objRow ->type == 'root ' ) || $ table != $ this ->strTable ) ? 'tl_folder ' : 'tl_file ' ).' click2edit" ' .$ mouseover .'><div class="tl_left" style="padding-left: ' .($ intMargin + $ intSpacing + ( empty ( $ childs ) ? 20 : 0 ) ).'px"> ' ;
3583
+ $ return .= "\n " . '<li class=" ' .((($ GLOBALS ['TL_DCA ' ][$ this ->strTable ]['list ' ]['sorting ' ]['mode ' ] == 5 && $ objRow ->type == 'root ' ) || $ table != $ this ->strTable ) ? 'tl_folder ' : 'tl_file ' ).' click2edit" ' .$ mouseover .'><div class="tl_left" style="padding-left: ' .($ intMargin + $ intSpacing ).'px"> ' ;
3584
3584
3585
3585
// Calculate label and add a toggle button
3586
3586
$ args = array ();
3587
+ $ folderAttribute = 'style="margin-left:20px" ' ;
3587
3588
$ showFields = $ GLOBALS ['TL_DCA ' ][$ table ]['list ' ]['label ' ]['fields ' ];
3588
3589
$ level = ($ intMargin / $ intSpacing + 1 );
3589
3590
3590
3591
if (!empty ($ childs ))
3591
3592
{
3593
+ $ folderAttribute = '' ;
3592
3594
$ img = ($ session [$ node ][$ id ] == 1 ) ? 'folMinus.gif ' : 'folPlus.gif ' ;
3593
3595
$ alt = ($ session [$ node ][$ id ] == 1 ) ? $ GLOBALS ['TL_LANG ' ]['MSC ' ]['collapseNode ' ] : $ GLOBALS ['TL_LANG ' ]['MSC ' ]['expandNode ' ];
3594
3596
$ return .= '<a href=" ' .$ this ->addToUrl ('ptg= ' .$ id ).'" title=" ' .specialchars ($ alt ).'" onclick="Backend.getScrollOffset();return AjaxRequest.toggleStructure(this, \'' .$ node .'_ ' .$ id .'\', ' .$ level .', ' .$ GLOBALS ['TL_DCA ' ][$ this ->strTable ]['list ' ]['sorting ' ]['mode ' ].')"> ' .\Image::getHtml ($ img , '' , 'style="margin-right:2px" ' ).'</a> ' ;
@@ -3644,11 +3646,11 @@ protected function generateTree($table, $id, $arrPrevNext, $blnHasSorting, $intM
3644
3646
$ strMethod = $ GLOBALS ['TL_DCA ' ][$ table ]['list ' ]['label ' ]['label_callback ' ][1 ];
3645
3647
3646
3648
$ this ->import ($ strClass );
3647
- $ return .= $ this ->$ strClass ->$ strMethod ($ objRow ->row (), $ label , $ this , '' , false , $ blnProtected );
3649
+ $ return .= $ this ->$ strClass ->$ strMethod ($ objRow ->row (), $ label , $ this , $ folderAttribute , false , $ blnProtected );
3648
3650
}
3649
3651
elseif (is_callable ($ GLOBALS ['TL_DCA ' ][$ table ]['list ' ]['label ' ]['label_callback ' ]))
3650
3652
{
3651
- $ return .= $ GLOBALS ['TL_DCA ' ][$ table ]['list ' ]['label ' ]['label_callback ' ]($ objRow ->row (), $ label , $ this , '' , false , $ blnProtected );
3653
+ $ return .= $ GLOBALS ['TL_DCA ' ][$ table ]['list ' ]['label ' ]['label_callback ' ]($ objRow ->row (), $ label , $ this , $ folderAttribute , false , $ blnProtected );
3652
3654
}
3653
3655
else
3654
3656
{
@@ -3719,7 +3721,7 @@ protected function generateTree($table, $id, $arrPrevNext, $blnHasSorting, $intM
3719
3721
3720
3722
for ($ j =0 , $ c =count ($ ids ); $ j <$ c ; $ j ++)
3721
3723
{
3722
- $ return .= $ this ->generateTree ($ this ->strTable , $ ids [$ j ], array ('pp ' =>$ ids [($ j -1 )], 'nn ' =>$ ids [($ j +1 )]), $ blnHasSorting , ($ intMargin + $ intSpacing ), $ arrClipboard , false , ($ j <(count ($ ids )-1 ) || !empty ($ childs )));
3724
+ $ return .= $ this ->generateTree ($ this ->strTable , $ ids [$ j ], array ('pp ' =>$ ids [($ j -1 )], 'nn ' =>$ ids [($ j +1 )]), $ blnHasSorting , ($ intMargin + $ intSpacing + 20 ), $ arrClipboard , false , ($ j <(count ($ ids )-1 ) || !empty ($ childs )));
3723
3725
}
3724
3726
}
3725
3727
}
0 commit comments