burguillos.info/templates/page/_mobile_foldable.html.ep

18 lines
730 B
Plaintext
Raw Normal View History

2023-09-28 16:32:33 +02:00
<div class="transparent-fullscreen-hide">
</div>
2023-08-29 00:02:27 +02:00
<nav class="mobile-foldable" id="mobile-foldable"><%
my $first = 1;
for my $category_key (sort {
$categories->{$a}{priority} <=> $categories->{$b}{priority}
} keys %$categories) {
my $category = $categories->{$category_key};
if (defined $category->{parent} || $category->{slug} eq 'index') {
next;
}
2023-09-28 18:03:21 +02:00
%><a href="<%= '/'.$category->{slug} %>"><span class="round-center">v</span> <%==$category->{menu_text}%></a><div class="child-categories-mobile"><%
2023-08-29 00:02:27 +02:00
for my $child_category ($category->{children}->@*) {
2023-09-28 16:32:33 +02:00
%><a href="<%="/$child_category->{slug}"%>"><%==$child_category->{menu_text}%></a><%
2023-08-29 00:02:27 +02:00
}%></div><%
}
%></nav>