|
@@ 4151-4170 (lines=20) @@
|
| 4148 |
|
if ( !$this->isNew ) { |
| 4149 |
|
$checkboxes['minor'] = ''; |
| 4150 |
|
$minorLabel = $this->context->msg( 'minoredit' )->parse(); |
| 4151 |
|
if ( $wgUser->isAllowed( 'minoredit' ) ) { |
| 4152 |
|
$attribs = [ |
| 4153 |
|
'tabindex' => ++$tabindex, |
| 4154 |
|
'accesskey' => $this->context->msg( 'accesskey-minoredit' )->text(), |
| 4155 |
|
'id' => 'wpMinoredit', |
| 4156 |
|
]; |
| 4157 |
|
$minorEditHtml = |
| 4158 |
|
Xml::check( 'wpMinoredit', $checked['minor'], $attribs ) . |
| 4159 |
|
" <label for='wpMinoredit' id='mw-editpage-minoredit'" . |
| 4160 |
|
Xml::expandAttributes( [ 'title' => Linker::titleAttrib( 'minoredit', 'withaccess' ) ] ) . |
| 4161 |
|
">{$minorLabel}</label>"; |
| 4162 |
|
|
| 4163 |
|
if ( $wgUseMediaWikiUIEverywhere ) { |
| 4164 |
|
$checkboxes['minor'] = Html::openElement( 'div', [ 'class' => 'mw-ui-checkbox' ] ) . |
| 4165 |
|
$minorEditHtml . |
| 4166 |
|
Html::closeElement( 'div' ); |
| 4167 |
|
} else { |
| 4168 |
|
$checkboxes['minor'] = $minorEditHtml; |
| 4169 |
|
} |
| 4170 |
|
} |
| 4171 |
|
} |
| 4172 |
|
|
| 4173 |
|
$watchLabel = $this->context->msg( 'watchthis' )->parse(); |
|
@@ 4175-4193 (lines=19) @@
|
| 4172 |
|
|
| 4173 |
|
$watchLabel = $this->context->msg( 'watchthis' )->parse(); |
| 4174 |
|
$checkboxes['watch'] = ''; |
| 4175 |
|
if ( $wgUser->isLoggedIn() ) { |
| 4176 |
|
$attribs = [ |
| 4177 |
|
'tabindex' => ++$tabindex, |
| 4178 |
|
'accesskey' => $this->context->msg( 'accesskey-watch' )->text(), |
| 4179 |
|
'id' => 'wpWatchthis', |
| 4180 |
|
]; |
| 4181 |
|
$watchThisHtml = |
| 4182 |
|
Xml::check( 'wpWatchthis', $checked['watch'], $attribs ) . |
| 4183 |
|
" <label for='wpWatchthis' id='mw-editpage-watch'" . |
| 4184 |
|
Xml::expandAttributes( [ 'title' => Linker::titleAttrib( 'watch', 'withaccess' ) ] ) . |
| 4185 |
|
">{$watchLabel}</label>"; |
| 4186 |
|
if ( $wgUseMediaWikiUIEverywhere ) { |
| 4187 |
|
$checkboxes['watch'] = Html::openElement( 'div', [ 'class' => 'mw-ui-checkbox' ] ) . |
| 4188 |
|
$watchThisHtml . |
| 4189 |
|
Html::closeElement( 'div' ); |
| 4190 |
|
} else { |
| 4191 |
|
$checkboxes['watch'] = $watchThisHtml; |
| 4192 |
|
} |
| 4193 |
|
} |
| 4194 |
|
Hooks::run( 'EditPageBeforeEditChecks', [ &$this, &$checkboxes, &$tabindex ] ); |
| 4195 |
|
return $checkboxes; |
| 4196 |
|
} |