Pulled out big chunks into separate methods and tried to improve readability.
FEATURE: Made bottom button configurable (although icon and style is still hardcoded)
- Button can be enabled/disabled through $wgCitizenEnableButton
- Link configurable through $wgCitizenButtonLink
- Title configurable through $wgCitizenButtonTitle
- Text configurable through $wgCitizenButtonText
FEATURE: Made visibility of page tools configurable through $wgCitizenShowPageTools
Possible config values:
- true -> always visible
- false -> always hidden
- 'login' -> only visible if user is logged in
- 'permission-*' -> only visible if user has the given permission for current page
- e.g.: 'permission-edit' -> Tools visible if user can edit current page