2022-10-23 18:27:14 +08:00
|
|
|
<%
|
|
|
|
function layoutDiv() {
|
|
|
|
var el = '';
|
|
|
|
if (item.api == undefined) {
|
|
|
|
return el;
|
|
|
|
}
|
2022-11-23 21:54:21 +08:00
|
|
|
el += '<widget class="widget-wrapper timeline">';
|
2022-10-23 18:27:14 +08:00
|
|
|
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">';
|
2022-10-30 21:23:26 +08:00
|
|
|
el += '<div class="tag-plugin timeline stellar-' + (item.type || "timeline") + '-api"';
|
|
|
|
['api', 'user', 'hide', 'limit'].forEach(key => {
|
2022-10-23 18:27:14 +08:00
|
|
|
if (item[key]) {
|
|
|
|
el += ' ' + key + '="' + item[key] + '"';
|
|
|
|
}
|
|
|
|
});
|
|
|
|
el += '>';
|
|
|
|
el += '</div>';
|
|
|
|
el += '</div>';
|
2022-11-23 21:54:21 +08:00
|
|
|
el += '</widget>';
|
2022-10-23 18:27:14 +08:00
|
|
|
return el;
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
<%- layoutDiv() %>
|