Skip to content

Commit a3660bc

Browse files
committed
for loop
1 parent ede219e commit a3660bc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

resources/templates/footer.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
</footer>
3030

3131
</body>
32-
33-
<script src="<?php echo getURL("js/filter.js") ;?>"></script>
34-
<script src="<?php echo getURL("js/sort.js"); ?>"></script>
35-
<script src="<?php echo getURL("js/global.js"); ?>"></script>
36-
<script src="<?php echo getURL("js/tables.js"); ?>"></script>
37-
32+
<?php
33+
foreach (["filter", "sort", "global", "tables"] as $x) {
34+
$url = getURL("js/$x.js");
35+
echo "<script src='$url'>";
36+
}
37+
?>
3838
</html>

0 commit comments

Comments
 (0)