2021-07-18 10:59:37 +08:00
|
|
|
<%
|
|
|
|
function layoutDiv() {
|
|
|
|
var el = '';
|
|
|
|
el += '<div id="twikoo_container"';
|
|
|
|
let cfg = {};
|
|
|
|
if (page.comment_id) {
|
|
|
|
cfg['comment_id'] = page.comment_id;
|
|
|
|
}
|
|
|
|
for (let key of Object.keys(cfg)) {
|
|
|
|
if (cfg[key]) {
|
|
|
|
el += ' ' + key + '="' + cfg[key] + '"';
|
|
|
|
}
|
|
|
|
}
|
2024-01-19 13:51:55 +08:00
|
|
|
el += `>${icon('default:loading')}</div>`
|
2021-07-18 10:59:37 +08:00
|
|
|
return el;
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
|
|
|
|
<%- layoutDiv() %>
|