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

28 lines
1.0 KiB
Plaintext
Executable File

<%- partial('_pre') %>
<section class="widget <%- item.class %> <%- page.widget_platform %>">
<%- partial('header', {item: item}) %>
<div class='content'>
<div class="grid navigation<%- item.fixed ? ' fixed' : '' %>">
<% getList(item.rows).forEach(function(row){ %>
<a class="flat-box" href="<%- url_for(row.url) %>"
<% if (row.rel) { %>
rel="<%- row.rel %>"
<% } %>
<% if (row.target) { %>
target="<%- row.target %>"
<% } %>
active-action="action-<%= url_for(row.url).replace(/\/|%|\./g, "")?url_for(row.url).replace(/\/|%|\./g, ""):"home" %>">
<% if (row.img) { %>
<img src="<%- row.img %>">
<% } else if(row.avatar) { %>
<img src="<%- row.avatar %>" id="round">
<% } else { %>
<i class="<%= row.icon %> fa-fw" aria-hidden="true"></i>
<% } %>
<%- row.name %>
</a>
<% }) %>
</div>
</div>
</section>