  </main>
</div>
<script>window.__BASE = <?= json_encode(\App\Core\View::url()) ?>;</script>
<?php // Self-hosted TinyMCE; only the screens with a richtext field pay for it. ?>
<?php if (!empty($needsEditor)): ?>
<script src="<?= \App\Core\View::url('/assets/tinymce/tinymce.min.js') ?>"></script>
<?php endif; ?>
<script src="<?= \App\Core\View::url('/assets/admin.js') ?>"></script>
</body>
</html>
