diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-07-15 15:33:36 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-07-15 15:33:36 -0300 |
commit | a5f917bbc55e295896b8084f6657eb8b6abaf8a8 (patch) | |
tree | 83dca14378e45b11fe6bbf1d17e64505dff43cbd /extensions/TimedMediaHandler/MwEmbedModules/TimedText/TimedText.php | |
parent | a1d705e541e0d10baa6bb03935ffd38d9478d0e6 (diff) |
Add TimedMediaHandler extension that allows display audio and video files in wiki pages, using the same syntax as for image files
Diffstat (limited to 'extensions/TimedMediaHandler/MwEmbedModules/TimedText/TimedText.php')
-rw-r--r-- | extensions/TimedMediaHandler/MwEmbedModules/TimedText/TimedText.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/extensions/TimedMediaHandler/MwEmbedModules/TimedText/TimedText.php b/extensions/TimedMediaHandler/MwEmbedModules/TimedText/TimedText.php new file mode 100644 index 00000000..57f50043 --- /dev/null +++ b/extensions/TimedMediaHandler/MwEmbedModules/TimedText/TimedText.php @@ -0,0 +1,21 @@ +<?php + + // Register all the timedText modules + return array( + "mw.TimedText" => array( + 'scripts' => "resources/mw.TimedText.js", + 'styles' => "resources/mw.style.TimedText.css", + 'dependencies' => array( + 'mw.EmbedPlayer', + 'mw.TextSource' + ), + 'messageDir' => 'i18n', + ), + "mw.TextSource" => array( + 'scripts' => "resources/mw.TextSource.js", + 'dependencies' => array( + 'mediawiki.UtilitiesTime', + "mw.ajaxProxy", + ) + ) + ); |