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.
|
|
|
<%
|
|
|
|
var needDisplay = true;
|
|
|
|
if (page.music && page.music.autoplay) {
|
|
|
|
needDisplay = false;
|
|
|
|
}
|
|
|
|
if (page.widget && page.widget.music == false) {
|
|
|
|
needDisplay = false;
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
|
|
|
|
<% if (theme.music && theme.music.enable == true && needDisplay == true) { %>
|
|
|
|
<section class='widget <%- item.widget %>'>
|
|
|
|
<%- partial('header', {item: item, defIcon: '', defTitle: ''}) %>
|
|
|
|
<div class='content <%= theme.style %>'>
|
|
|
|
<%- partial('../_third-party/aplayer',
|
|
|
|
{aplayer_theme: item.color, aplayer_mini: false, aplayer_mode: item.mode,
|
|
|
|
aplayer_server: item.server, aplayer_type: item.type, aplayer_id: item.id,
|
|
|
|
aplayer_volume: item.volume, aplayer_autoplay: item.autoplay?item.autoplay:false }) %>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<% } %>
|