1616}
1717
1818?>
19- </div> <!-- content -->
19+ </div>
20+ <footer id="footer" class="footer fixed-bottom bg-dark pb-3" style="height: 3.5rem !important;">
21+ <div class="container bg-dark">
22+ <div id="footer-content" class="row bg-dark">
23+ <div id="footer-branch" class="col-4 text-center mt-2">
24+ Version: <?= gitVersion () ?> <br>
25+ </div>
26+ <div id="footer-themes" class="col-4 text-center mt-2">
27+ <select id="theme-select" class="form-select" onchange="updateSetting('defaultTheme', $(this).val());">
28+ <?php
29+ foreach ($ themes as $ theme ) {
30+ ?>
31+ <option <?= $ theme == USER_THEME ? 'selected ' : '' ?> value="<?= $ theme ?> "><?= $ theme ?> </option>
32+ <?php
33+ }
34+ ?>
35+ </select>
36+ </div>
37+ <div id="footer-icons" class="col-4 text-end mt-2">
38+ <a href="https://github.com/Notifiarr/starrproxy" title="Visit the <?= APP_NAME ?> github" target="_blank"><i class="fab fa-github fa-lg"></i></a>
39+ </div>
40+ </div>
41+ </div>
42+ </footer>
2043
21- <!-- Toast container -->
22- <div class="toast-container bottom-0 end-0 p-3" style="z-index: 10001 !important; position: fixed;"></div>
44+ <!-- Toast container -->
45+ <div class="toast-container bottom-0 end-0 p-3" style="z-index: 10001 !important; position: fixed;"></div>
2346
24- <!-- Generic modal -->
25- <div id="dialog-modal-container">
26- <div class="modal fade" id="dialog-modal" style="z-index: 9999 !important;" data-bs-backdrop="static">
27- <div class="modal-dialog modal-dialog-scrollable">
28- <div class="modal-content bg-dark" style="border: grey solid 1px;">
29- <div class="modal-header" style="border: grey solid 1px;">
30- <h5 class="modal-title w-100"></h5>
31- <div class="d-flex text-end">
32- <i class="far fa-window-close fa-2x" data-bs-dismiss="modal" style="cursor: pointer;"></i>
33- </div>
34- </div>
35- <div class="modal-body" data-scrollbar=”true” data-wheel-propagation=”true”></div>
36- <div class="modal-footer"></div>
47+ <!-- Generic modal -->
48+ <div id="dialog-modal-container">
49+ <div class="modal fade" id="dialog-modal" style="z-index: 9999 !important;" data-bs-backdrop="static">
50+ <div class="modal-dialog modal-dialog-scrollable">
51+ <div class="modal-content bg-dark" style="border: grey solid 1px;">
52+ <div class="modal-header" style="border: grey solid 1px;">
53+ <h5 class="modal-title w-100"></h5>
54+ <div class="d-flex text-end">
55+ <i class="far fa-window-close fa-2x" data-bs-dismiss="modal" style="cursor: pointer;"></i>
3756 </div>
3857 </div>
58+ <div class="modal-body" data-scrollbar=”true” data-wheel-propagation=”true”></div>
59+ <div class="modal-footer"></div>
3960 </div>
4061 </div>
62+ </div>
63+ </div>
4164
42- <!-- Loading modal -->
43- <div class="modal fade" id="loading-modal" style="z-index: 9999 !important;" data-bs-backdrop="static">
44- <div class="modal-dialog">
45- <div class="modal-content">
46- <div class="modal-header">
47- <h5 class="modal-title">Loading</h5>
48- <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
49- </div>
50- <div class="modal-body">
51- <p>
52- <div class="spinner-border text-primary" style="margin-right: 1em;"></div>
53- I'm gathering everything needed to complete the request, give me just a moment...
54- </p>
55- </div>
56- <div class="modal-footer"> </div>
57- </div>
65+ <!-- Loading modal -->
66+ <div class="modal fade" id="loading-modal" style="z-index: 9999 !important;" data-bs-backdrop="static">
67+ <div class="modal-dialog">
68+ <div class="modal-content">
69+ <div class="modal-header">
70+ <h5 class="modal-title">Loading</h5>
71+ <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
72+ </div>
73+ <div class="modal-body">
74+ <p>
75+ <div class="spinner-border text-primary" style="margin-right: 1em;"></div>
76+ I'm gathering everything needed to complete the request, give me just a moment...
77+ </p>
5878 </div>
79+ <div class="modal-footer"> </div>
5980 </div>
81+ </div>
82+ </div>
83+
84+ <!-- Javascript Libraries -->
85+ <script src="libraries/jquery/jquery-3.4.1.min.js"></script>
86+ <script src="libraries/jquery/jquery-ui-1.13.2.min.js"></script>
87+ <script src="libraries/bootstrap/bootstrap.bundle.min.js"></script>
88+ <script src="libraries/select2/select2.min.js"></script>
6089
61- <!-- Javascript Libraries -->
62- <script src="libraries/jquery/jquery-3.4.1.min.js"></script>
63- <script src="libraries/jquery/jquery-ui-1.13.2.min.js"></script>
64- <script src="libraries/bootstrap/bootstrap.bundle.min.js"></script>
65- <script src="libraries/select2/select2.min.js"></script>
90+ <!-- Internal functions -->
91+ <?php
92+ $ dir = opendir ('js ' );
93+ while ($ file = readdir ($ dir )) {
94+ if (!str_contains ($ file , '.js ' )) {
95+ continue ;
96+ }
6697
67- <!-- Internal functions -->
68- <?php
69- $ dir = opendir ('js ' );
70- while ($ file = readdir ($ dir )) {
71- if (!str_contains ($ file , '.js ' )) {
72- continue ;
73- }
98+ ?>
99+ <script src="js/<?= $ file ?> ?t=<?= filemtime ('js/ ' . $ file ) ?> "></script><?php
100+ }
101+ closedir ($ dir );
102+ ?>
103+ </body>
74104
75- ?> <script src="js/<?= $ file ?> ?t=<?= filemtime ('js/ ' . $ file ) ?> "></script><?php
76- }
77- closedir ($ dir );
78- ?>
79- </body>
80- </html>
105+ </html>
0 commit comments