|
@@ 3942-3961 (lines=20) @@
|
| 3939 |
|
if ( !$this->isNew ) { |
| 3940 |
|
$checkboxes['minor'] = ''; |
| 3941 |
|
$minorLabel = wfMessage( 'minoredit' )->parse(); |
| 3942 |
|
if ( $wgUser->isAllowed( 'minoredit' ) ) { |
| 3943 |
|
$attribs = [ |
| 3944 |
|
'tabindex' => ++$tabindex, |
| 3945 |
|
'accesskey' => wfMessage( 'accesskey-minoredit' )->text(), |
| 3946 |
|
'id' => 'wpMinoredit', |
| 3947 |
|
]; |
| 3948 |
|
$minorEditHtml = |
| 3949 |
|
Xml::check( 'wpMinoredit', $checked['minor'], $attribs ) . |
| 3950 |
|
" <label for='wpMinoredit' id='mw-editpage-minoredit'" . |
| 3951 |
|
Xml::expandAttributes( [ 'title' => Linker::titleAttrib( 'minoredit', 'withaccess' ) ] ) . |
| 3952 |
|
">{$minorLabel}</label>"; |
| 3953 |
|
|
| 3954 |
|
if ( $wgUseMediaWikiUIEverywhere ) { |
| 3955 |
|
$checkboxes['minor'] = Html::openElement( 'div', [ 'class' => 'mw-ui-checkbox' ] ) . |
| 3956 |
|
$minorEditHtml . |
| 3957 |
|
Html::closeElement( 'div' ); |
| 3958 |
|
} else { |
| 3959 |
|
$checkboxes['minor'] = $minorEditHtml; |
| 3960 |
|
} |
| 3961 |
|
} |
| 3962 |
|
} |
| 3963 |
|
|
| 3964 |
|
$watchLabel = wfMessage( 'watchthis' )->parse(); |
|
@@ 3966-3984 (lines=19) @@
|
| 3963 |
|
|
| 3964 |
|
$watchLabel = wfMessage( 'watchthis' )->parse(); |
| 3965 |
|
$checkboxes['watch'] = ''; |
| 3966 |
|
if ( $wgUser->isLoggedIn() ) { |
| 3967 |
|
$attribs = [ |
| 3968 |
|
'tabindex' => ++$tabindex, |
| 3969 |
|
'accesskey' => wfMessage( 'accesskey-watch' )->text(), |
| 3970 |
|
'id' => 'wpWatchthis', |
| 3971 |
|
]; |
| 3972 |
|
$watchThisHtml = |
| 3973 |
|
Xml::check( 'wpWatchthis', $checked['watch'], $attribs ) . |
| 3974 |
|
" <label for='wpWatchthis' id='mw-editpage-watch'" . |
| 3975 |
|
Xml::expandAttributes( [ 'title' => Linker::titleAttrib( 'watch', 'withaccess' ) ] ) . |
| 3976 |
|
">{$watchLabel}</label>"; |
| 3977 |
|
if ( $wgUseMediaWikiUIEverywhere ) { |
| 3978 |
|
$checkboxes['watch'] = Html::openElement( 'div', [ 'class' => 'mw-ui-checkbox' ] ) . |
| 3979 |
|
$watchThisHtml . |
| 3980 |
|
Html::closeElement( 'div' ); |
| 3981 |
|
} else { |
| 3982 |
|
$checkboxes['watch'] = $watchThisHtml; |
| 3983 |
|
} |
| 3984 |
|
} |
| 3985 |
|
Hooks::run( 'EditPageBeforeEditChecks', [ &$this, &$checkboxes, &$tabindex ] ); |
| 3986 |
|
return $checkboxes; |
| 3987 |
|
} |