Index: trunk/extensions/SemanticForms/specials/SF_UploadWindow2.php |
— | — | @@ -1046,10 +1046,11 @@ |
1047 | 1047 | } |
1048 | 1048 | |
1049 | 1049 | /** |
1050 | | - * A form field that contains a radio box in the label |
| 1050 | + * A form field that contains a radio box in the label. |
1051 | 1051 | */ |
1052 | 1052 | class SFUploadSourceField extends HTMLTextField { |
1053 | | - function getLabelHtml() { |
| 1053 | + |
| 1054 | + function getLabelHtml( $cellAttributes = array() ) { |
1054 | 1055 | $id = "wpSourceType{$this->mParams['upload-type']}"; |
1055 | 1056 | $label = Html::rawElement( 'label', array( 'for' => $id ), $this->mLabel ); |
1056 | 1057 | |
— | — | @@ -1060,6 +1061,7 @@ |
1061 | 1062 | 'id' => $id, |
1062 | 1063 | 'value' => $this->mParams['upload-type'], |
1063 | 1064 | ); |
| 1065 | + |
1064 | 1066 | if ( !empty( $this->mParams['checked'] ) ) |
1065 | 1067 | $attribs['checked'] = 'checked'; |
1066 | 1068 | $label .= Html::element( 'input', $attribs ); |
— | — | @@ -1067,10 +1069,11 @@ |
1068 | 1070 | |
1069 | 1071 | return Html::rawElement( 'td', array( 'class' => 'mw-label' ), $label ); |
1070 | 1072 | } |
| 1073 | + |
1071 | 1074 | function getSize() { |
1072 | 1075 | return isset( $this->mParams['size'] ) |
1073 | 1076 | ? $this->mParams['size'] |
1074 | 1077 | : 60; |
1075 | 1078 | } |
1076 | | -} |
1077 | | - |
| 1079 | + |
| 1080 | +} |
\ No newline at end of file |