Commit graph

1182 commits

Author SHA1 Message Date
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
Hannes 2344122fa4
Refactor SkinCitizen
Refactored into separate methods also made code MW compliant
2019-12-26 00:15:01 +01:00
Hannes c51a1ef796
Refactor Hooks class
Make code compliant to MW guidelines
Add exception checking ang global var removal
2019-12-26 00:13:59 +01:00
Hannes 41b1f157cd
Add 'Citizen' namespaces to Api class
Refactor code to pass MediaWiki guidelines
2019-12-26 00:12:14 +01:00
alistair3149 94d15bb483
Attempt to fix image class #2 2019-12-25 17:33:52 -05:00
alistair3149 bfa10edab9
Attempt to fix image class 2019-12-25 17:10:19 -05:00
alistair3149 fdb97832cf
Fixed broken link from contact button 2019-12-25 16:49:56 -05:00
alistair3149 cf58f8b9a3 Bumped version and updated readme 2019-12-24 01:08:43 -05:00
alistair3149 72e23056b3 Added support for Feature Policy 2019-12-24 00:40:30 -05:00
alistair3149 21778bec63 Enabled CSP for testing 2019-12-23 23:27:36 -05:00
alistair3149 2e4bc7adc3 Added CSP support 2019-12-23 23:13:42 -05:00
alistair3149 6ee9ce7f98 Added HSTS preload support 2019-12-23 22:43:11 -05:00
alistair3149 97d3e2ccb2 Enabled HSTS 2019-12-23 22:25:39 -05:00
alistair3149 067386964e Added HSTS support 2019-12-23 22:17:28 -05:00
alistair3149 ebfa056aee Fixed typo in skincitizen.php 2019-12-23 21:15:52 -05:00
alistair3149 4bd3cd2ec5 Added deny xframe 2019-12-23 21:10:13 -05:00
alistair3149 59aa0d9ab0 Enable strict origin referrer policy 2019-12-23 20:26:26 -05:00
alistair3149 67ca36e631 Changed h1 h2 line height 2019-12-23 18:44:04 -05:00
alistair3149 966a8ecefc Updated the value for viewport meta tag 2019-12-23 02:56:10 -05:00
alistair3149 ee403dfcef Added strict referrer policy 2019-12-23 02:34:55 -05:00
alistair3149 ea8f9603dc Removed XUA tag 2019-12-23 02:24:35 -05:00
alistair3149 c644b5fabb Updated README 2019-12-21 01:03:27 -05:00
alistair3149 f3e57a19fc Add documentation to the skin 2019-12-21 00:56:15 -05:00
alistair3149 9db38659b3 Reverted CitizenTemplate 2019-12-20 15:38:26 -05:00
alistair3149 dc7453ec7c Moved contact button to global config, fixed php quote styles 2019-12-20 15:19:17 -05:00
alistair3149 0e286b7dbd Fix legend dark mode color 2019-12-20 14:56:04 -05:00
alistair3149 f438fd857d Updated font licenses 2019-12-20 13:18:12 -05:00
alistair3149 364bd55b55 Dropped TTF and EOT support 2019-12-20 13:12:31 -05:00
alistair3149 f73a50f065 Oops missed a semi colon 2019-12-16 15:05:29 -05:00
alistair3149 0ba57f9114 Tweaked autosuggest position 2019-12-16 15:03:57 -05:00
alistair3149 94d026552a Fixed search icon 2019-12-16 14:52:04 -05:00
alistair3149 45c1e0dfab Added styles for the search button 2019-12-16 14:36:18 -05:00
alistair3149 229c8540bb Switched search button from text to icon 2019-12-16 14:10:44 -05:00
alistair3149 0619214ada Forgot to pass the search limit var to JS 2019-12-14 00:44:09 -05:00
alistair3149 06d399ec3f Increased the number of search result from 6 to 10 2019-12-13 23:31:48 -05:00
alistair3149 ca72018b49 Fixed search button height 2019-12-13 17:40:40 -05:00
alistair3149 462562c447 Add support for using description for search result 2019-12-13 01:21:16 -05:00
alistair3149 363b946bfc Update to manifest 2 #4 2019-12-12 21:37:19 -05:00
alistair3149 a4e72132a0 Update to manifest 2 #3 2019-12-12 21:33:37 -05:00
alistair3149 dd026e70af Update to manifest 2 2019-12-12 21:28:28 -05:00
alistair3149 9d7d0ec5d0 Update to manifest 2 2019-12-12 21:25:37 -05:00
alistair3149 525c25f922 Fixed ToC styles 2019-12-12 17:21:18 -05:00
alistair3149 d1b06df7d0 Enable Description2 for testing 2019-12-12 17:11:14 -05:00
alistair3149 71c23103c1 Better search UI on mobile #3 2019-12-12 13:37:26 -05:00
alistair3149 6941f6131e Better search UI on mobile #2 2019-12-12 12:52:52 -05:00
alistair3149 49132bc2a7 Better search UI on mobile 2019-12-12 12:44:36 -05:00
alistair3149 4956d6ab48 Add condition to check if there is no desc #2 2019-12-12 00:45:58 -05:00
alistair3149 61df983d18 Add condition to check if there is no desc 2019-12-12 00:35:37 -05:00
alistair3149 ef5954b71f Test global var #2 2019-12-11 23:07:00 -05:00
alistair3149 ea297d7967 Test global var 2019-12-11 23:01:14 -05:00