diff options
Diffstat (limited to 'mod/zaudio/start.php')
-rw-r--r-- | mod/zaudio/start.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mod/zaudio/start.php b/mod/zaudio/start.php new file mode 100644 index 000000000..b353dffb9 --- /dev/null +++ b/mod/zaudio/start.php @@ -0,0 +1,18 @@ +<?php + /** + * ZAudio - a simple mp3 player + * A simple plugin to play mp3 files on the page + * http://wpaudioplayer.com/license + * http://wpaudioplayer.com/standalone + * + * @package ElggZAudio + */ + +elgg_register_event_handler('init', 'system', 'zaudio_init'); + +function zaudio_init() { + elgg_extend_view('css/elgg', 'zaudio/css'); + + $js_url = elgg_get_site_url() . 'mod/zaudio/audioplayer/audio-player.js'; + elgg_register_js('elgg.zaudio', $js_url); +} |