I also have this code in the template to call up the jplayer.
This has the php echo, but how do you add it to the html5 code properly
(old code)
PHP Code:
<!--bof Product description5 -->
<?php if ($products_description5 != '') { ?>
<div id="productDescription5" class="productGeneral alert6">
<?php echo build_mp3_icon($products_description5); ?>
</div>
<?php } ?>
<!-- eof Product description5 -->
(new html5 player with sample)
HTML Code:
<audio controls preload="metadata" style=" width:250px;">
<source src="mp3previews/.../0013124.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
I tried this, but it did not work :-(
HTML Code:
<audio controls preload="metadata" style=" width:250px;">
<source src=><?php if ($products_description5 != '') {
echo ($products_description5); } ?> <type="audio/mpeg">
Your browser does not support the audio element.
</audio>
Bookmarks