mirror of
https://github.com/Hutchy68/pivot.git
synced 2025-10-27 15:37:35 +01:00
improvements, update to readme.md with config settings
This commit is contained in:
34
README.md
34
README.md
@@ -37,20 +37,32 @@ To activate Pivot for all users and anonymous visitors, you need to set the `$wg
|
||||
|
||||
Use following features in `LocalSettings.php` to change the behavior.
|
||||
|
||||
- `showActionsForAnon => true` displays page actions for non-logged-in visitors.
|
||||
- `NavWrapperType => 'divonly'`: only a div with id `navwrapper` will be created. `'0'` - no div will be created (old behavior), other values will be used as class.
|
||||
- `showHelpUnderTools => true` a Link to "Help" will be created under "Tools".
|
||||
- `showRecentChangesUnderTools => true` a Link to "recent changes" will be created under "Tools".
|
||||
- `IeEdgeCode => 1` will produce a meta tag with "X-UA-Compatible" content="IE=edge", `2` will sent a header, `0` nothing will be done
|
||||
- `'showActionsForAnon' => true` displays page actions for non-logged-in visitors.
|
||||
- `'showHelpUnderTools' => true` a Link to "Help" will be created under "Tools".
|
||||
- `'showRecentChangesUnderTool's => true` a Link to "recent changes" will be created under "Tools".
|
||||
- `'IeEdgeCode' => 1` will produce a meta tag with "X-UA-Compatible" content="IE=edge", `2` will sent a header, `0` nothing will be done
|
||||
- `'fixedNavBar' => false` will allow the NavBar to scroll with the content, `true` will lock the NavBar.
|
||||
- `'navbarIcon' => false` no icon in mobile view, `true` to use the global set logopath image of the wiki.
|
||||
- `'showFooterIcons' => false` will show text in place of footer icons, `true` will output the icons as globally set.
|
||||
- `'addThisPUBID' => '' empty string will not fire the AddThis script, `'ra-##-#######'` publisher ID will allow the run the AddThis script in async.
|
||||
- `'useAddThisShare' => false` default, do not use AddThis share, `true` will insert the share toolbox div directly under page title, but before the tagline.
|
||||
- `'useAddThisFollow' => false` default, do not use AddThis follow, `true` will insert the follow toolbox div in the `right-footer` area before icon or text output.
|
||||
|
||||
These are the default values:
|
||||
|
||||
$wgPivotFeatures = array(
|
||||
'showActionsForAnon' => true,
|
||||
'NavWrapperType' => 'divonly',
|
||||
'showHelpUnderTools' => true,
|
||||
'showRecentChangesUnderTools' => true,
|
||||
'IeEdgeCode' => 1
|
||||
$wgPivotFeatures = array(
|
||||
'showActionsForAnon' => true,
|
||||
'fixedNavBar' => false,
|
||||
'showHelpUnderTools' => true,
|
||||
'showRecentChangesUnderTools' => true,
|
||||
'wikiName' => &$GLOBALS['wgSitename'],
|
||||
'wikiNameDesktop' => &$GLOBALS['wgSitename'],
|
||||
'navbarIcon' => false,
|
||||
'IeEdgeCode' => 1,
|
||||
'showFooterIcons' => false,
|
||||
'addThisPUBID' => '',
|
||||
'useAddThisShare' => false,
|
||||
'useAddThisFollow' => false
|
||||
);
|
||||
|
||||
### Usage of NavWrapperType
|
||||
|
||||
Reference in New Issue
Block a user