Fix: Show Audio file && Show shortcode

This commit is contained in:
Luca 2022-12-18 23:42:43 +00:00
parent 0d18486fc7
commit 2e372d5239
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@
layer.on('click', self.onMarkerClick); layer.on('click', self.onMarkerClick);
} }
}).addTo(this.map); }).addTo(this.map);
this.map.fitBounds(this.markers.getBounds()); if (this.markers.getBounds()) this.map.fitBounds(this.markers.getBounds());
}, },
ajaxFail: function(){ ajaxFail: function(){

View File

@ -126,7 +126,7 @@ if (!class_exists('Soundmap')){
<!-- <div class='att-icon'><img src='{$data['icon']}'/></div> --> <!-- <div class='att-icon'><img src='{$data['icon']}'/></div> -->
<div class='att-info'><a href='{$data['url']}'><strong>{$data['title']}</strong></a><br/> <div class='att-info'><a href='{$data['url']}'><strong>{$data['title']}</strong></a><br/>
<audio controls> <audio controls>
<source src='{$data['url']} type='{$data['mime']}'> <source src='{$data['url']}' type='{$data['mime']}'>
</audio><br/> </audio><br/>
<a href='#' class='delete-att-item'>Borrar</a></div><div class='clear'></div><input type='hidden' name='soundmap-att-ids[]' value='{$file}' /></div>"; <a href='#' class='delete-att-item'>Borrar</a></div><div class='clear'></div><input type='hidden' name='soundmap-att-ids[]' value='{$file}' /></div>";
} }