28 lines
720 B
Plaintext
28 lines
720 B
Plaintext
<%
|
|
function layoutDiv() {
|
|
var el = '';
|
|
if (item.api == undefined) {
|
|
return el;
|
|
}
|
|
el += `<widget class="widget-wrapper${scrollreveal(' ')} timeline">`
|
|
if (item.title) {
|
|
el += '<div class="widget-header dis-select">';
|
|
el += '<span class="name">' + item.title + '</span>';
|
|
el += '</div>';
|
|
}
|
|
el += '<div class="widget-body fs14">';
|
|
el += `<div class="tag-plugin timeline ds-${(item.type || 'timeline')}"`;
|
|
['api', 'user', 'hide', 'limit'].forEach(key => {
|
|
if (item[key]) {
|
|
el += ' ' + key + '="' + item[key] + '"';
|
|
}
|
|
});
|
|
el += '>';
|
|
el += '</div>';
|
|
el += '</div>';
|
|
el += '</widget>';
|
|
return el;
|
|
}
|
|
%>
|
|
<%- layoutDiv() %>
|