Repository navigation
Expand file tree
/
Copy pathEmbedVideo.php
More file actions
52 lines (45 loc) · 1.67 KB
/
Copy pathEmbedVideo.php
File metadata and controls
52 lines (45 loc) · 1.67 KB
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
46
47
48
49
50
51
52
<?php
/**
* EmbedVideo
* EmbedVideo Services List
* Adds a parser function embedding video from popular sources.
* See README for details. For licensing information, see LICENSE. For a
* complete list of contributors, see CREDITS
*
* @license MIT
* @package EmbedVideo
* @link https://www.mediawiki.org/wiki/Extension:EmbedVideo
*
**/
if (!defined('MEDIAWIKI')) {
exit;
}
/******************************************/
/* Credits */
/******************************************/
$wgExtensionCredits['parserhook'][] = array(
'path' => __FILE__,
'name' => 'EmbedVideo',
'author' => array('Jim R. Wilson', 'Andrew Whitworth', 'Alexia E. Smith'),
'url' => 'http://www.mediawiki.org/wiki/Extension:EmbedVideo',
'version' => '2.1.4',
'descriptionmsg' => 'embedvideo_description'
);
/******************************************/
/* Language Strings, Page Aliases, Hooks */
/******************************************/
$extDir = __DIR__;
$wgExtensionMessagesFiles['EmbedVideo'] = "{$extDir}/EmbedVideo.i18n.php";
$wgExtensionMessagesFiles['EmbedVideoMagic'] = "{$extDir}/EmbedVideo.i18n.magic.php";
$wgMessagesDirs['EmbedVideo'] = "{$extDir}/i18n";
$wgAutoloadClasses['EmbedVideoHooks'] = "{$extDir}/EmbedVideo.hooks.php";
$wgAutoloadClasses['EmbedVideo\VideoService'] = "{$extDir}/classes/VideoService.php";
$wgAutoloadClasses['EmbedVideo\OEmbed'] = "{$extDir}/classes/OEmbed.php";
$wgHooks['ParserFirstCallInit'][] = 'EmbedVideoHooks::onParserFirstCallInit';
$wgResourceModules['ext.embedVideo'] = array(
'localBasePath' => __DIR__,
'remoteExtPath' => 'EmbedVideo',
'styles' => array('css/embedvideo.css'),
'position' => 'top'
);
?>