You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
945 B

4 years ago
<%
let music;
if (music == undefined) {
theme.widget.forEach(function(widget){
if (widget.class == 'music'){
music = widget;
}
})
}
%>
<% if (theme.aplayer == true) { %>
<% if (post && post.music) { %>
<meting-js
mini='true'
autoplay='<%- (post.music && post.music.autoplay) || music.autoplay %>'
volume='<%- music.volume %>'
loop='<%- music.loop %>'
server='<%- (post.music && post.music.server) || music.server %>'
type='<%- post.music && post.music.type || music.type %>'
id='<%- post.music && post.music.id || music.mid %>'>
</meting-js>
<% } else { %>
<meting-js
theme='<%- music.theme %>'
autoplay='<%- music.autoplay %>'
volume='<%- music.volume %>'
loop='<%- music.loop %>'
order='<%- music.order %>'
server='<%- music.server %>'
type='<%- music.type %>'
id='<%- music.mid %>'>
</meting-js>
<% } %>
6 years ago
<% } %>