<%# View switcher partial — Tijdlijn / Grid + grid-cols picker. Mounted in shell.ejs once, visible on every non-admin page. Click handlers are wired in shell.ejs via event-delegation on document so HTMX-swapped content keeps working without rebinding. %> <% var _bc = (typeof bodyClass === 'string') ? bodyClass : ''; var _onShows = _bc.indexOf('on-shows') >= 0; // Pagina's zonder actieve feed-weergave → niets in de pill is 'actief' (Solo/Cirkel // + Tijdlijn/Grid grijs). Alleen Agenda krijgt z'n eigen is-active op de agenda. var _neutral = ['on-shows','on-downloads','on-post','on-epk','on-linkbio','on-newsletter','on-archive','on-read'] .some(function(c){ return _bc.indexOf(c) >= 0; }); var _onRead = _bc.indexOf('on-read') >= 0; var _sbR = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : ''; %>
<% if (typeof premiumUnlocked !== 'undefined' && premiumUnlocked && typeof agendaEnabled !== 'undefined' && agendaEnabled) { var _sbA = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : ''; %> <% } %> <% if (typeof hasCirkel !== 'undefined' && hasCirkel) { var _onCirkel = (typeof bodyClass === 'string' && bodyClass.indexOf('on-cirkel') >= 0); var _sb = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : ''; %> <% } %> <% if (!_neutral) { %>
<% } %>