2026-07-23 10:01:34 +02:00
|
|
|
${header}
|
|
|
|
|
|
2026-07-30 20:53:12 +02:00
|
|
|
{if parent ~= nil and parent.parent == nil then
|
|
|
|
|
print([[
|
2026-07-31 19:32:19 +02:00
|
|
|
<div style="height:90px;" class="jumbotron">
|
|
|
|
|
<h1 style="display:none">${opts.title}</h1>
|
|
|
|
|
<br>
|
|
|
|
|
<center class="col3">${opts.subtitle}</center>
|
2026-07-30 20:53:12 +02:00
|
|
|
</div>
|
2026-07-31 19:32:19 +02:00
|
|
|
<hr style="margin-top:0"/>
|
2026-07-30 20:53:12 +02:00
|
|
|
]])
|
|
|
|
|
end}
|
2026-07-29 22:44:24 +02:00
|
|
|
|
2026-07-30 20:53:12 +02:00
|
|
|
{if parent ~= nil and parent.parent ~= nil then
|
|
|
|
|
print([[
|
2026-07-31 19:32:19 +02:00
|
|
|
<h2><span class="col1">//</span> ${parent.name}</h2>
|
2026-07-30 20:53:12 +02:00
|
|
|
]])
|
|
|
|
|
end}
|
2026-07-23 10:01:34 +02:00
|
|
|
|
|
|
|
|
<div class="grid">
|
2026-07-31 14:41:34 +02:00
|
|
|
{if items then
|
|
|
|
|
for i=1,#items do
|
|
|
|
|
local item = items[i]
|
2026-07-31 19:32:19 +02:00
|
|
|
local icon = 'list-tree'
|
|
|
|
|
local thumbnail = ''
|
|
|
|
|
if #item.thumbnail > 0 then thumbnail = 'style="background-image: url(' .. item.thumbnail .. ');"' end
|
2026-07-31 14:41:34 +02:00
|
|
|
if item.view3D or item.portal3D == false then icon = 'play' end
|
|
|
|
|
print([[
|
|
|
|
|
<div class="tile">
|
|
|
|
|
<a href="]] .. item.url .. [[">
|
2026-07-31 19:32:19 +02:00
|
|
|
<div class="img" ]] .. thumbnail .. [[></div>
|
2026-07-31 14:41:34 +02:00
|
|
|
<div class="text">
|
2026-07-31 19:32:19 +02:00
|
|
|
<img src="img/]] .. icon .. [[.svg" class="icon ]] .. icon .. [["/> <a href="]] .. item.url .. [[">]] .. item.title .. [[</a>
|
2026-07-31 14:41:34 +02:00
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
]])
|
|
|
|
|
end
|
|
|
|
|
end}
|
2026-07-23 10:01:34 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
${footer}
|