mediawiki-skins-Citizen/includes
Hannes dd9c8c6f0a
Refactor CitizenTemplate
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
2019-12-26 00:20:04 +01:00
..
api Add 'Citizen' namespaces to Api class 2019-12-26 00:12:14 +01:00
CitizenHooks.php Refactor Hooks class 2019-12-26 00:13:59 +01:00
CitizenTemplate.php Refactor CitizenTemplate 2019-12-26 00:20:04 +01:00
SkinCitizen.php Refactor SkinCitizen 2019-12-26 00:15:01 +01:00