Added feature #3613: additional wrap for FORM radio buttons
authorSusanne Moog <typo3@susannemoog.de>
Tue, 19 Oct 2010 21:42:26 +0000 (21:42 +0000)
committerSusanne Moog <typo3@susannemoog.de>
Tue, 19 Oct 2010 21:42:26 +0000 (21:42 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9170 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index 5277924..3e78b60 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,8 +13,9 @@
 
 2010-10-19  Susanne Moog  <typo3@susanne-moog.de>
 
-       * Fixed bug #15095: Bug: The Web>Versioning view has style issues resulting in "wrong layers"
+       * Fixed bug #15095: The Web>Versioning view has style issues resulting in "wrong layers"
        * Fixed bug #13294: IRRE deleted combo records are still validated by TBE_EDITOR (Thanks to Marcel Greter)
+       * Added feature #3613: additional wrap for FORM radio buttons
 
 2010-10-18  Steffen Kamper  <steffen@typo3.org>
 
index 9a65aed..7a64877 100644 (file)
@@ -2330,23 +2330,23 @@ class tslib_cObj {
                                                        // Create the select-box:
                                                $iCount = count($items);
                                                for ($a = 0; $a < $iCount; $a++) {
+                                                       $optionParts = '';
                                                        $radioId = $prefix . $fName . $this->cleanFormName($items[$a][0]);
                                                        if ($conf['accessibility']) {
                                                                $radioLabelIdAttribute = ' id="' . $radioId . '"';
                                                        } else {
                                                                $radioLabelIdAttribute = '';
                                                        }
-                                                       $option .= '<input type="radio" name="' . $confData['fieldname'] . '"' .
-                                                               $radioLabelIdAttribute . ' value="' . $items[$a][1] . '"' .
-                                                               (!strcmp($items[$a][1], $default) ? ' checked="checked"' : '') .
-                                                               $addParams . ' />';
+                                                       $optionParts .= '<input type="radio" name="' . $confData['fieldname'] . '"' .
+                                                                       $radioLabelIdAttribute . ' value="' . $items[$a][1] . '"' .
+                                                                       (!strcmp($items[$a][1], $default) ? ' checked="checked"' : '') . $addParams . ' />';
                                                        if ($conf['accessibility']) {
-                                                               $option .= '<label for="' . $radioId . '">' .
-                                                                       $this->stdWrap(trim($items[$a][0]), $conf['radioWrap.']) .
-                                                                       '</label>';
+                                                               $optionParts .= '<label for="' . $radioId . '">' . $this->stdWrap(trim($items[$a][0]),
+                                                                       $conf['radioWrap.']) . '</label>';
                                                        } else {
-                                                               $option .= $this->stdWrap(trim($items[$a][0]), $conf['radioWrap.']);
+                                                               $optionParts .= $this->stdWrap(trim($items[$a][0]), $conf['radioWrap.']);
                                                        }
+                                                       $option .= $this->stdWrap($optionParts, $conf['radioInputWrap.']);
                                                }
 
                                                if ($conf['accessibility']) {
@@ -10427,4 +10427,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class
        include_once ($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_content.php']);
 }
 
-?>
\ No newline at end of file
+?>