Hey
I am setting up an mp3 backing track web site using the Shoppica 2 theme and I’m struggling to get the music player extension into the latest.tpl file
I have manipulated the product.tpl to include the player there but really need it to appear in modules like latest, featured etc.
The script I need to insert is:
<?php foreach ($product_music2 as $product_music) { ?>
<b><?php echo $product_music['artist']; ?> <br /><?php echo $product_music['name']; ?></b><br>
<script type="text/javascript" src="player/audio-player.js"></script>
<script type="text/javascript">
AudioPlayer.setup("player/player.swf", {
width: 250,
initialvolume: 100
});
</script>
<p id="audioplayer_<?php echo $product_music['priority']; ?>">Music Player</p>
<script type="text/javascript">
AudioPlayer.embed("audioplayer_<?php echo $product_music['priority']; ?>", {soundFile: "music_dir/<?php echo $product_music['filename']; ?>",
artists: "<?php echo $product_music['artist']; ?>",
titles: "<?php echo $product_music['name']; ?>"
});
</script>
<?php } ?>
Ideally I'd like it to appear under the product thumb and name in latest.
All help greatly appreciated )
|
|
Can anyone please help with this??
PM me and I will provide access info to the files if required.
|
|