Add icons in MobileMenuHook.
[philipp/winterrodeln/mediawiki_extensions/wrreport.git] / extension.json
index 5c00904b342a95ef7dbc917038013ed9edb0b39e..806d7bbf0f4dcabb1862ede31897837e35ee2933 100644 (file)
@@ -1,8 +1,8 @@
 {
        "name": "Winterrodeln Report",
-       "version": "3.0.2",
+       "version": "3.1.0",
        "author": "Philipp Spitzer",
-       "url": "http://www.winterrodeln.org/trac/wiki/WrReport",
+       "url": "https://www.winterrodeln.org/trac/wiki/WrReport",
        "description": "Interprets the <report/> tag in sledrun pages and creates report summaries",
        "descriptionmsg": "wrreport-description",
        "type": "parserhook",
        },
        "ResourceModules": {
                "ext.wrreport": {
+                       "targets": [
+                               "mobile",
+                               "desktop"
+                       ],
                        "styles": [
                                "wrreport.css"
                        ],
                        "position": "top"
+               },
+               "ext.wrreport.icons": {
+                       "class": "ResourceLoaderImageModule",
+                       "selector": ".mw-ui-icon-wr-{name}:before",
+                       "images": {
+                               "regions": "regions.svg",
+                               "new-reports": "newreports.svg"
+                       }
                }
        },
        "ResourceFileModulePaths": {
                "remoteExtPath": "wrreport"
        },
        "Hooks": {
-               "LanguageGetSpecialPageAliases": "SpecialWrReport::LanguageGetSpecialPageAliasesHook",
-               "ParserFirstCallInit": "WrReport::ParserFirstCallInitHook"
+               "ParserFirstCallInit": "WrReport::ParserFirstCallInitHook",
+               "MobileMenu": "WrReport::MobileMenuHook"
        },
        "config": {
                "WrReportMode": "allow",
                "WrReportBlackListAll": [],
                "WrReportBlackListStrangers": [],
                "WrReportDeleteMode": "loggedin",
-               "WrReportFeedRoot": "http://www.winterrodeln.org/feed"
+               "WrReportFeedRoot": "https://www.winterrodeln.org/feed",
+               "WrReportEnableIntermaps": true,
+               "WrReportIntermapsValidDays": 1
+       },
+       "ExtensionMessagesFiles": {
+               "wrreportAlias": "wrreport.alias.php"
        },
        "manifest_version": 1
 }