<% let currentPage = "Dashboard"; if (now) { const pages = req?.locales?.partials?.navbar?.pages; if (now === 'manage') currentPage = pages?.manage || "Manage Guilds"; if (now === 'settings') currentPage = pages?.settings || "Manage Guilds"; if (now === 'commands') currentPage = pages?.commands || "Commands"; if (now === 'pp') currentPage = pages?.pp || "Privacy Policy"; if (now === 'admin') currentPage = pages?.admin || "Admin Panel"; if (now === 'error') currentPage = pages?.error || "Error"; if (now === 'credits') currentPage = pages?.credits || "Credits"; if (now === 'debug') currentPage = pages?.debug || "Debug"; if (now === 'leaderboard') currentPage = pages?.leaderboard || "Leaderboard"; if (now === 'profile') currentPage = pages?.profile || "Profile"; if (now === 'maintenance') currentPage = pages?.maintenance || "Under Maintenance"; } %> <%- include('meta.ejs', {now: now}) %> <%= themeConfig.websiteName %> - <%- currentPage %> <% if(themeConfig.preloader.image) { %> <% } %> <% // By default system theme is loaded, unless a user has changed it. Probably could be optimised further but :shrug: if(req.cookies?.selectedTheme == "dark" || req.cookies?.selectedTheme == "auto" || !req.cookies?.selectedTheme) { %> media="(prefers-color-scheme: dark)"<% } %>> <% if (themeConfig?.icons?.sidebar?.darkUrl) { %> <% } %> <% } %> <%- include('colorscheme.ejs') %> <% if(now !== "maintenance" && now !== "error") { %> <%- include('theme.ejs') %> <% } %>