[FEATURE] Move Element form visual cleanup
authorFelix Kopp <felix-source@phorax.com>
Sun, 5 Feb 2012 23:03:59 +0000 (00:03 +0100)
committerTolleiv Nietsch <info@tolleiv.de>
Thu, 9 Feb 2012 00:14:42 +0000 (01:14 +0100)
Remove redundant information, add and change spaces.

Change-Id: Ifc29f3b62c8520bffae585d30aea5acddd423733
Resolves: #33692
Releases: 4.7
Reviewed-on: http://review.typo3.org/8852
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
typo3/move_el.php

index 03a73aa..5f2109a 100644 (file)
@@ -242,9 +242,8 @@ class SC_move_el {
                $this->doc->JScode='';
 
                        // Starting document content (header):
-               $this->content='';
-               $this->content.=$this->doc->header($GLOBALS['LANG']->getLL('movingElement'));
-               $this->content.=$this->doc->spacer(5);
+               $this->content = '';
+               $this->content .= $this->doc->header($GLOBALS['LANG']->getLL('movingElement'));
        }
 
        /**
@@ -263,6 +262,7 @@ class SC_move_el {
                        $hline.= t3lib_BEfunc::getRecordTitle($this->table,$elRow,TRUE);
 
                                // Make-copy checkbox (clicking this will reload the page with the GET var makeCopy set differently):
+                       $hline .= $this->doc->spacer(5);
                        $onClick = 'window.location.href=\''.t3lib_div::linkThisScript(array('makeCopy'=>!$this->makeCopy)).'\';';
                        $hline .= $this->doc->spacer(5);
                        $hline .= '<input type="hidden" name="makeCopy" value="0" />' .
@@ -272,7 +272,7 @@ class SC_move_el {
                                $GLOBALS['LANG']->getLL('makeCopy', 1) . '</label>';
 
                                // Add the header-content to the module content:
-                       $this->content.=$this->doc->section($GLOBALS['LANG']->getLL('moveElement') . ':', $hline, 0, 1);
+                       $this->content.=$this->doc->section('', $hline, FALSE, TRUE);
                        $this->content.=$this->doc->spacer(20);
 
                                // Reset variable to pick up the module content in:
@@ -372,7 +372,7 @@ class SC_move_el {
                        }
 
                                // Add the $code content as a new section to the module:
-                       $this->content.=$this->doc->section($GLOBALS['LANG']->getLL('selectPositionOfElement') . ':', $code, 0, 1);
+                       $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('selectPositionOfElement'), $code, FALSE, TRUE);
                }
 
                        // Setting up the buttons and markers for docheader