<?php
-$wgAutoloadClasses['HomePageWMES'] = __DIR__ . "/HomePageWMES_body.php";
-$wgHooks['ParserFirstCallInit'][] = 'HomePageWMES::setupHook';
+if ( function_exists( 'wfLoadExtension' ) ) {
+ wfLoadExtension( 'HomePageWMES' );
+} else {
+ $wgAutoloadClasses['HomePageWMES'] = __DIR__ . "/HomePageWMES_body.php";
+ $wgHooks['ParserFirstCallInit'][] = 'HomePageWMES::setupHook';
-$wgResourceModules['ext.homepage-wmes'] = array(
- 'scripts' => 'js/home.js',
- 'styles' => 'style.css',
- 'localBasePath' => dirname( __FILE__ ),
- 'remoteExtPath' => 'HomePageWMES'
-);
+ $wgResourceModules['ext.homepage-wmes'] = array(
+ 'scripts' => 'js/home.js',
+ 'styles' => 'style.css',
+ 'localBasePath' => dirname( __FILE__ ),
+ 'remoteExtPath' => 'HomePageWMES'
+ );
+}
--- /dev/null
+{
+ "name": "HomePageWMES",
+ "type": "parserhook",
+ "author": "Platonides",
+ "version": "3.0",
+ "license-name": "GPL-2.0-or-later",
+ "description": "Muestra la portada de Wikimedia EspaƱa",
+ "AutoloadClasses": {
+ "HomePageWMES": "HomePageWMES_body.php"
+ },
+ "ResourceModules": {
+ "ext.homepage-wmes": {
+ "scripts": "js/home.js",
+ "styles": "style.css"
+ }
+ },
+ "ResourceFileModulePaths": {
+ "localBasePath": "",
+ "remoteExtPath": "HomePageWMES"
+ },
+ "Hooks": {
+ "ParserFirstCallInit": "HomePageWMES::setupHook"
+ },
+
+ "manifest_version": 1
+}