28 lines
549 B
Plaintext
28 lines
549 B
Plaintext
<%
|
|
function layoutDiv() {
|
|
var el = '';
|
|
el += '<nav class="menu dis-select';
|
|
if (where == 'main') {
|
|
el += ' mobile-hidden';
|
|
}
|
|
el += '">';
|
|
for (let id of Object.keys(theme.menu)) {
|
|
let item = theme.menu[id];
|
|
if (item == undefined || item.length == 0) {
|
|
continue;
|
|
}
|
|
el += '<a class="nav-item';
|
|
if (id == page.menu_id) {
|
|
el += ' active';
|
|
}
|
|
el += '" href="' + url_for(md_link(item)) + '">';
|
|
el += __(md_text(item));
|
|
el += '</a>';
|
|
}
|
|
el += '</nav>';
|
|
return el;
|
|
}
|
|
%>
|
|
|
|
<%- layoutDiv() %>
|