aboutsummaryrefslogtreecommitdiff
path: root/mod/zaudio/views/default/file/specialcontent/audio/mp3.php
blob: 080cb8f200d33365e7d51c7ad8146956c66c4837 (plain)
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
<?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>  

<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>