forked from wikimedia/mediawiki-extensions-HTMLTags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHTMLTags.php
45 lines (38 loc) · 1.08 KB
/
HTMLTags.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* HTML Tags extension
*
* @file
* @ingroup Extensions
*
* This is the main include file for the HTML Tags extension for
* MediaWiki.
*
* Usage: Add the following line in LocalSettings.php:
* require_once( "$IP/extensions/HTMLTags/HTMLTags.php" );
*/
// Check environment
if ( !defined( 'MEDIAWIKI' ) ) {
echo( "This is an extension to the MediaWiki package and cannot be run standalone.\n" );
die( -1 );
}
/* Configuration */
// Credits
$wgExtensionCredits['parserhook'][] = array(
'path' => __FILE__,
'name' => 'HTML Tags',
'author' => 'Yaron Koren',
'version' => '0.2',
'url' => 'https://www.mediawiki.org/wiki/Extension:HTML_Tags',
'descriptionmsg' => 'htmltags-desc',
'license-name' => 'GPL-2.0+'
);
// Internationalization
$wgMessagesDirs['HTMLTags'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['HTMLTags'] = __DIR__ . '/HTMLTags.i18n.php';
// Register classes
$wgAutoloadClasses['HTMLTags'] = __DIR__ . '/HTMLTags_body.php';
// Register parser hook
$wgHooks['ParserFirstCallInit'][] = 'HTMLTags::register';
// Settings
$wgHTMLTagsAttributes = array();