2022-10-23 18:27:14 +08:00
|
|
|
<%
|
|
|
|
function layoutDiv() {
|
|
|
|
var el = '';
|
|
|
|
if (item.api == undefined) {
|
|
|
|
return el;
|
|
|
|
}
|
|
|
|
el += '<div class="widget-wrap" id="timeline">';
|
|
|
|
if (item.title) {
|
2022-10-25 13:57:31 +08:00
|
|
|
el += '<div class="widget-header cap theme dis-select">';
|
2022-10-23 18:27:14 +08:00
|
|
|
el += '<span class="name">' + item.title + '</span>';
|
|
|
|
el += '</div>';
|
|
|
|
}
|
|
|
|
el += '<div class="widget-body fs14">';
|
|
|
|
el += '<div class="tag-plugin timeline stellar-timeline-api"';
|
2022-10-29 23:10:23 +08:00
|
|
|
['api', 'user', 'hide'].forEach(key => {
|
2022-10-23 18:27:14 +08:00
|
|
|
if (item[key]) {
|
|
|
|
el += ' ' + key + '="' + item[key] + '"';
|
|
|
|
}
|
|
|
|
});
|
|
|
|
el += '>';
|
|
|
|
el += '</div>';
|
|
|
|
el += '</div>';
|
|
|
|
el += '</div>';
|
|
|
|
return el;
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
<%- layoutDiv() %>
|