2025-02-08 03:18:24 +00:00

22 lines
632 B
Plaintext
Executable File

<%
let widget_library_temp = [];
%>
<% getList(widgets).forEach(function(widget){ %>
<% if (theme.sidebar.widget_library && (widget in theme.sidebar.widget_library)){ %>
<% let w = theme.sidebar.widget_library[widget]; w.id = widget; %>
<% if(w.sticky) { %>
<% widget_library_temp.push(w) %>
<% } else { %>
<%- partial(w.class, {item: w, where: where}) %>
<% } %>
<% } %>
<% }) %>
<div class="widget-sticky">
<% if(widget_library_temp.length !== 0) { %>
<% widget_library_temp.forEach( w => { %>
<%- partial(w.class, {item: w, where: where}) %>
<% }) %>
<% } %>
</div>