Skip to content

Commit

Permalink
Rename script section in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Usbac committed Feb 12, 2024
1 parent 6cd36ca commit aa239cd
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@
document.cookie = 'theme=' + theme + ';path=/';
});
</script>
<?php $this->sectionStart('script') ?>
<?php $this->sectionStart('extra') ?>
<?php $this->sectionEnd() ?>
2 changes: 1 addition & 1 deletion app/views/admin/link.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</div>
<?php $this->sectionEnd() ?>

<?php $this->sectionStart('script') ?>
<?php $this->sectionStart('extra') ?>
<script>
window.id = <?= js($link['id'] ?? '') ?>;

Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<button class="load-more hidden" onclick="Listing.loadNextPage()"><?= t('load_more') ?></button>
<?php $this->sectionEnd() ?>

<?php $this->sectionStart('script') ?>
<?php $this->sectionStart('extra') ?>
<script>
let filters_form = document.getElementById('filters-form');

Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
</div>
<?php $this->sectionEnd() ?>

<?php $this->sectionStart('script') ?>
<?php $this->sectionStart('extra') ?>
<?= setting('editor_code') ?>
<script>
window.id = <?= js($page['id'] ?? '') ?>;
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<dialog id="image-dialog" class="image-dialog"></dialog>
<?php $this->sectionEnd() ?>

<?php $this->sectionStart('script') ?>
<?php $this->sectionStart('extra') ?>
<?= setting('editor_code') ?>
<script>
window.id = <?= js($post['id'] ?? '') ?>;
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
<dialog id="image-dialog" class="image-dialog"></dialog>
<?php $this->sectionEnd() ?>

<?php $this->sectionStart('script') ?>
<?php $this->sectionStart('extra') ?>
<script>
var new_version = '';
var update_handler_initialized = false;
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</div>
<?php $this->sectionEnd() ?>

<?php $this->sectionStart('script') ?>
<?php $this->sectionStart('extra') ?>
<script>
window.id = <?= js($tag['id'] ?? '') ?>;

Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<dialog id="image-dialog" class="image-dialog"></dialog>
<?php $this->sectionEnd() ?>

<?php $this->sectionStart('script') ?>
<?php $this->sectionStart('extra') ?>
<script>
window.id = <?= js($user['id'] ?? '') ?>;

Expand Down

0 comments on commit aa239cd

Please sign in to comment.