${header}
{if parent ~= nil and parent.parent == nil then
print([[
${opts.title}
${opts.subtitle}
]])
end}
{if parent ~= nil and parent.parent ~= nil then
print([[
// ${parent.name}
]])
end}
{if items then
for i=1,#items do
local item = items[i]
local icon = 'list-tree'
local thumbnail = ''
if #item.thumbnail > 0 then thumbnail = 'style="background-image: url(' .. EscapeFragment(item.thumbnail) .. ');"' end
if item.view3D or item.portal3D == false then icon = 'play' end
print([[
]])
end
end}
${footer}