${header} {if parent ~= nil and parent.parent == nil then print([[

${opts.title}


${opts.plugin_global_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} {if parent.parent == nil then for i=1,5 do local urls = app.opts[ 'plugin_federation_url_' .. i] if #urls > 0 then local title = urls:gsub(' .*','') local fediurl = '/?url=' .. EscapeFragment(title) local thumburl = urls:gsub('.* ','') local icon = 'list-tree' local thumbnail = '' if #thumburl > 0 then thumbnail = 'style="background-image: url(' .. EscapeFragment(thumburl) .. ');"' end print([[
]]) end end end}
${footer}