20 lines
532 B
Plaintext
20 lines
532 B
Plaintext
|
<%
|
||
|
function div() {
|
||
|
var el = '';
|
||
|
if (page.banner == undefined || page.banner == false) {
|
||
|
return el;
|
||
|
}
|
||
|
el += '<div class="l_cover post' + scrollreveal() + '">';
|
||
|
el += '<div class="cover">';
|
||
|
if (theme.plugins.lazyload && theme.plugins.lazyload.enable) {
|
||
|
el += '<div class="lazy img bg" data-bg="' + page.banner + '"></div>';
|
||
|
} else {
|
||
|
el += '<div class="lazy img bg" style="background-image:url("' + page.banner + '")"></div>';
|
||
|
}
|
||
|
el += '</div>';
|
||
|
el += '</div>';
|
||
|
return el;
|
||
|
}
|
||
|
%>
|
||
|
<%- div() %>
|