28 lines
673 B
Plaintext
28 lines
673 B
Plaintext
<%
|
|
function layoutDiv() {
|
|
var el = '';
|
|
if (item.api == undefined) {
|
|
return el;
|
|
}
|
|
el += '<div class="widget-wrap" id="timeline">';
|
|
if (item.title) {
|
|
el += '<div class="widget-header cap dis-select">';
|
|
el += '<span class="name">' + item.title + '</span>';
|
|
el += '</div>';
|
|
}
|
|
el += '<div class="widget-body fs14">';
|
|
el += '<div class="tag-plugin timeline stellar-timeline-api"';
|
|
['api', 'user'].forEach(key => {
|
|
if (item[key]) {
|
|
el += ' ' + key + '="' + item[key] + '"';
|
|
}
|
|
});
|
|
el += '>';
|
|
el += '</div>';
|
|
el += '</div>';
|
|
el += '</div>';
|
|
return el;
|
|
}
|
|
%>
|
|
<%- layoutDiv() %>
|