Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

24 lines
511 B
PHP

<?php
/**
* Underscore.js template
*
* @package fusion-builder
* @since 2.1
*/
?>
<script type="text/html" id="tmpl-fusion_audio-shortcode">
<div {{{ _.fusionGetAttributes( attr ) }}}>
<audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none">
<source src="{{ attr.values.src }}"/>
</audio>
<#
if ( ! _.isEmpty( attr.values.src ) ) {
setTimeout( function() {
window.frames[0].wp.mediaelement.initialize();
}, 100 );
}
#>
</div>
</script>