aboutsummaryrefslogtreecommitdiff
path: root/mod/zaudio/views/default/file/specialcontent/audio/mpg.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/zaudio/views/default/file/specialcontent/audio/mpg.php')
-rw-r--r--mod/zaudio/views/default/file/specialcontent/audio/mpg.php29
1 files changed, 5 insertions, 24 deletions
diff --git a/mod/zaudio/views/default/file/specialcontent/audio/mpg.php b/mod/zaudio/views/default/file/specialcontent/audio/mpg.php
index 6cb39f250..11d09708a 100644
--- a/mod/zaudio/views/default/file/specialcontent/audio/mpg.php
+++ b/mod/zaudio/views/default/file/specialcontent/audio/mpg.php
@@ -1,26 +1,7 @@
<?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
- **/
-
-?>
-<!-- include the audioplayer js code -->
-<script type="text/javascript" src="<?php echo elgg_get_site_url(); ?>mod/zaudio/audioplayer/audio-player.js"></script>
-<!-- set up the player -->
-<script type="text/javascript">
- AudioPlayer.setup("<?php echo elgg_get_site_url(); ?>mod/zaudio/audioplayer/player.swf", {
- width: 290
- });
-</script>
+/**
+ * ZAudio file view override
+ * @package ElggZAudio
+ */
-<div style="margin:10px 0 10px 0;">
-<p id="audioplayer_1">Alternative content</p>
- <script type="text/javascript">
- AudioPlayer.embed("audioplayer_1", {soundFile: "<?php echo elgg_get_site_url(); ?>mod/file/download.php?file_guid=<?php echo $vars['entity']->getGUID(); ?>"});
- </script>
-</div> \ No newline at end of file
+echo elgg_view('zaudio/audioplayer', array('file_guid' => $vars['entity']->getGUID()));