diff options
Diffstat (limited to 'mod/zaudio')
3 files changed, 9 insertions, 9 deletions
diff --git a/mod/zaudio/views/default/file/specialcontent/audio/mp3.php b/mod/zaudio/views/default/file/specialcontent/audio/mp3.php index f13a9a0d4..080cb8f20 100644 --- a/mod/zaudio/views/default/file/specialcontent/audio/mp3.php +++ b/mod/zaudio/views/default/file/specialcontent/audio/mp3.php @@ -10,10 +10,10 @@ ?> <!-- include the audioplayer js code --> -<script type="text/javascript" src="<?php echo $vars['url']; ?>mod/zaudio/audioplayer/audio-player.js"></script> +<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 $vars['url']; ?>mod/zaudio/audioplayer/player.swf", { + AudioPlayer.setup("<?php echo elgg_get_site_url(); ?>mod/zaudio/audioplayer/player.swf", { width: 290 }); </script> @@ -21,7 +21,7 @@ <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 $vars['url']; ?>mod/file/download.php?file_guid=<?php echo $vars['entity']->getGUID(); ?>"}); + 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 diff --git a/mod/zaudio/views/default/file/specialcontent/audio/mpeg.php b/mod/zaudio/views/default/file/specialcontent/audio/mpeg.php index ea5eadadf..6cb39f250 100644 --- a/mod/zaudio/views/default/file/specialcontent/audio/mpeg.php +++ b/mod/zaudio/views/default/file/specialcontent/audio/mpeg.php @@ -10,10 +10,10 @@ ?> <!-- include the audioplayer js code --> -<script type="text/javascript" src="<?php echo $vars['url']; ?>mod/zaudio/audioplayer/audio-player.js"></script> +<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 $vars['url']; ?>mod/zaudio/audioplayer/player.swf", { + AudioPlayer.setup("<?php echo elgg_get_site_url(); ?>mod/zaudio/audioplayer/player.swf", { width: 290 }); </script> @@ -21,6 +21,6 @@ <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 $vars['url']; ?>mod/file/download.php?file_guid=<?php echo $vars['entity']->getGUID(); ?>"}); + 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 diff --git a/mod/zaudio/views/default/file/specialcontent/audio/mpg.php b/mod/zaudio/views/default/file/specialcontent/audio/mpg.php index ea5eadadf..6cb39f250 100644 --- a/mod/zaudio/views/default/file/specialcontent/audio/mpg.php +++ b/mod/zaudio/views/default/file/specialcontent/audio/mpg.php @@ -10,10 +10,10 @@ ?> <!-- include the audioplayer js code --> -<script type="text/javascript" src="<?php echo $vars['url']; ?>mod/zaudio/audioplayer/audio-player.js"></script> +<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 $vars['url']; ?>mod/zaudio/audioplayer/player.swf", { + AudioPlayer.setup("<?php echo elgg_get_site_url(); ?>mod/zaudio/audioplayer/player.swf", { width: 290 }); </script> @@ -21,6 +21,6 @@ <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 $vars['url']; ?>mod/file/download.php?file_guid=<?php echo $vars['entity']->getGUID(); ?>"}); + 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 |