You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<%
|
|
|
|
var plats = [];
|
|
|
|
if (item.display) {
|
|
|
|
item.display.forEach(function(plat){
|
|
|
|
plats.push(plat);
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
plats = ['desktop', 'mobile'];
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
<section class="widget <%- theme.style.shadow.card ? 'card-shadow' : '' %> <%- theme.style.blur && theme.style.blur.widget ? 'widget-blur' : '' %> <%- item.class %> <%- plats.join(' ') %>">
|
|
|
|
<%- partial('header', {item: item}) %>
|
|
|
|
<div class='content'>
|
|
|
|
<ul class="grid navigation">
|
|
|
|
<% (item.rows||[]).forEach(function(row){ %>
|
|
|
|
<li><a class="flat-box" title="<%- url_for(row.url) %>" href="<%- url_for(row.url) %>"
|
|
|
|
<% if (row.rel) { %>
|
|
|
|
rel="<%- row.rel %>"
|
|
|
|
<% } %>
|
|
|
|
<% if (row.target) { %>
|
|
|
|
target="<%- row.target %>"
|
|
|
|
<% } %>
|
|
|
|
id="<%= 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></li>
|
|
|
|
<% }) %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</section>
|