|
@@ 3992-4011 (lines=20) @@
|
| 3989 |
|
if ( !$this->isNew ) { |
| 3990 |
|
$checkboxes['minor'] = ''; |
| 3991 |
|
$minorLabel = wfMessage( 'minoredit' )->parse(); |
| 3992 |
|
if ( $wgUser->isAllowed( 'minoredit' ) ) { |
| 3993 |
|
$attribs = [ |
| 3994 |
|
'tabindex' => ++$tabindex, |
| 3995 |
|
'accesskey' => wfMessage( 'accesskey-minoredit' )->text(), |
| 3996 |
|
'id' => 'wpMinoredit', |
| 3997 |
|
]; |
| 3998 |
|
$minorEditHtml = |
| 3999 |
|
Xml::check( 'wpMinoredit', $checked['minor'], $attribs ) . |
| 4000 |
|
" <label for='wpMinoredit' id='mw-editpage-minoredit'" . |
| 4001 |
|
Xml::expandAttributes( [ 'title' => Linker::titleAttrib( 'minoredit', 'withaccess' ) ] ) . |
| 4002 |
|
">{$minorLabel}</label>"; |
| 4003 |
|
|
| 4004 |
|
if ( $wgUseMediaWikiUIEverywhere ) { |
| 4005 |
|
$checkboxes['minor'] = Html::openElement( 'div', [ 'class' => 'mw-ui-checkbox' ] ) . |
| 4006 |
|
$minorEditHtml . |
| 4007 |
|
Html::closeElement( 'div' ); |
| 4008 |
|
} else { |
| 4009 |
|
$checkboxes['minor'] = $minorEditHtml; |
| 4010 |
|
} |
| 4011 |
|
} |
| 4012 |
|
} |
| 4013 |
|
|
| 4014 |
|
$watchLabel = wfMessage( 'watchthis' )->parse(); |
|
@@ 4016-4034 (lines=19) @@
|
| 4013 |
|
|
| 4014 |
|
$watchLabel = wfMessage( 'watchthis' )->parse(); |
| 4015 |
|
$checkboxes['watch'] = ''; |
| 4016 |
|
if ( $wgUser->isLoggedIn() ) { |
| 4017 |
|
$attribs = [ |
| 4018 |
|
'tabindex' => ++$tabindex, |
| 4019 |
|
'accesskey' => wfMessage( 'accesskey-watch' )->text(), |
| 4020 |
|
'id' => 'wpWatchthis', |
| 4021 |
|
]; |
| 4022 |
|
$watchThisHtml = |
| 4023 |
|
Xml::check( 'wpWatchthis', $checked['watch'], $attribs ) . |
| 4024 |
|
" <label for='wpWatchthis' id='mw-editpage-watch'" . |
| 4025 |
|
Xml::expandAttributes( [ 'title' => Linker::titleAttrib( 'watch', 'withaccess' ) ] ) . |
| 4026 |
|
">{$watchLabel}</label>"; |
| 4027 |
|
if ( $wgUseMediaWikiUIEverywhere ) { |
| 4028 |
|
$checkboxes['watch'] = Html::openElement( 'div', [ 'class' => 'mw-ui-checkbox' ] ) . |
| 4029 |
|
$watchThisHtml . |
| 4030 |
|
Html::closeElement( 'div' ); |
| 4031 |
|
} else { |
| 4032 |
|
$checkboxes['watch'] = $watchThisHtml; |
| 4033 |
|
} |
| 4034 |
|
} |
| 4035 |
|
Hooks::run( 'EditPageBeforeEditChecks', [ &$this, &$checkboxes, &$tabindex ] ); |
| 4036 |
|
return $checkboxes; |
| 4037 |
|
} |