Tryb komentowania ekranów
This commit is contained in:
@@ -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; ?>
|
||||
Reference in New Issue
Block a user