feat(core): rename $wgCitizenSiteToolsPorlet to $wgCitizenGlobalToolsPorlet

This commit is contained in:
alistair3149 2022-10-04 19:57:01 -04:00
parent fb9b17108d
commit 2bc022aba2
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -97,7 +97,7 @@ Name | Description | Values | Default
`$wgCitizenThemeDefault` | The default theme of the skin | `auto` - switch between light and dark according to OS/browser settings; `light`; `dark` | `auto`
`$wgCitizenEnableCollapsibleSections` | Enables or disable collapsible sections on content pages | `true` - enable; `false` - disable | `true`
`$wgCitizenShowPageTools` | The condition of page tools visibility | `true` - always visible; `login` - visible to logged-in users; `permission` - visible to users with the right permissions | `true`
`$wgCitizenSiteToolsPortlet` | ID of the portlet to attach the site tools | string |
`$wgCitizenGlobalToolsPortlet` | ID of the portlet to attach the global tools | string |
`$wgCitizenEnableDrawerSiteStats` | Enables the site statistics in drawer menu | `true` - enable; `false` - disable | `true`
`$wgCitizenUseNumberFormatter` | Use NumberFormatter for site statistics, which allows formatting number in a localized way | `true` - enable; `false` - disable | `true`
`$wgCitizenThemeColor` | The color defined in the `theme-color` meta tag | Hex color code | `#131a21`

View file

@ -50,7 +50,7 @@ final class Drawer extends Partial {
// Enable label for first portlet
$sidebarData['data-portlets-first']['has-label'] = true;
$globalToolsId = $this->getConfigValue( 'CitizenSiteToolsPortlet' );
$globalToolsId = $this->getConfigValue( 'CitizenGlobalToolsPortlet' );
$globalToolsHtml = $this->getGlobalToolsHTML();
$globalToolsAdded = false;

View file

@ -751,10 +751,10 @@
"descriptionmsg": "citizen-config-showpagetools",
"public": true
},
"SiteToolsPortlet": {
"GlobalToolsPortlet": {
"value": "",
"description": "ID of the portlet to attach the site tools",
"descriptionmsg": "citizen-config-sitetoolsportlet",
"description": "ID of the portlet to attach the global tools",
"descriptionmsg": "citizen-config-globaltoolsportlet",
"public": true
},
"EnableCollapsibleSections": {