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.
33 lines
1.2 KiB
33 lines
1.2 KiB
<%- partial('_pre') %> |
|
<section class="widget <%- item.class %> <%- page.widget_style %> <%- page.widget_platform %>"> |
|
<%- partial('header', {item: item}) %> |
|
<div class='content'> |
|
<ul class="list entry 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" %>" |
|
> |
|
<div class='name'> |
|
<% 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 %> |
|
</div> |
|
<% if(row.desc) { %> |
|
<div class='badge'>(<%- row.desc %>)</div> |
|
<% } %> |
|
</a></li> |
|
<% }) %> |
|
</ul> |
|
</div> |
|
</section>
|
|
|