Tryb komentowania ekranów

This commit is contained in:
2026-02-18 21:17:24 +01:00
parent c0beb640e6
commit a282dd2080
7 changed files with 1028 additions and 155 deletions

View File

@@ -27,4 +27,13 @@
<!-- Vendors JS -->
<!-- Main JS -->
<script src="<?= $basePath ?>/assets/js/main.js"></script>
<script src="<?= $basePath ?>/assets/js/main.js"></script>
<script>
// Przekazujemy ścieżkę z PHP do globalnej zmiennej JS
// Używamy json_encode dla bezpieczeństwa typów
const MAGICO_BASE_URL = <?= json_encode($basePath); ?>;
</script>
<?php if (!empty($enablePrototypeComments) && $enablePrototypeComments): ?>
<script src="<?= $basePath ?>/assets/js/comments.js"></script>
<?php endif; ?>