]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blame - inc/footer.php
Run hook HOOKTYPE_PRE_FOOTER a little earlier
[irc/unrealircd/unrealircd-webpanel.git] / inc / footer.php
CommitLineData
830edb25
BM
1<?php
2 if (!isset($nav_shown))
3 return;
39330628 4 $arr = []; Hook::run(HOOKTYPE_PRE_FOOTER, $arr);
830edb25 5?>
399c9625 6<footer class="text-center bg-dark text-white fixed-bottom" style="background-color: #f1f1f1;">
2f8a5fe8
VP
7 <!-- Grid container -->
8 <div class="container">
9 <!-- Section: Social media -->
399c9625 10 <?php
79e2577d 11 echo "<small style=\"font-size: 70%\"><code>Admin Panel ".get_config('webpanel_version')."</code></small>";
399c9625 12 ?>
809f7483 13
399c9625 14 <section class="mt-1">
9a005fe5
VP
15 <a href="https://www.youtube.com/@unrealircdtutorials/"
16 role="button"
17 data-mdb-ripple-color="dark"
18 target="_blank">
19 <img src="https://static-00.iconduck.com/assets.00/youtube-icon-2048x2048-wiwalbpx.png" width="16" height="16"></a>
20
2f8a5fe8
VP
21 <!-- Twitter -->
22 <a
399c9625 23 class="btn btn-link btn-floating btn-md text-white"
2f8a5fe8
VP
24 href="https://twitter.com/Unreal_IRCd"
25 role="button"
26 data-mdb-ripple-color="dark"
399c9625 27 target="_blank"
2f8a5fe8
VP
28 ><i class="fab fa-twitter"></i
29 ></a>
30 <!-- Github -->
31 <a
399c9625 32 class="btn btn-link btn-floating btn-md text-white"
2f8a5fe8
VP
33 href="https://github.com/unrealircd/unrealircd-webpanel"
34 role="button"
35 data-mdb-ripple-color="dark"
399c9625 36 target="_blank"
c3805b04 37 ><i style="margin-left: -18px" class="fab fa-github"></i
2f8a5fe8
VP
38 ></a>
39 <!-- UnrealIRCd -->
40 <a
41 href="https://unrealircd.org"
42 role="button"
399c9625
BM
43 data-mdb-ripple-color="dark"
44 target="_blank">
9a005fe5 45 <img src="<?php echo get_config("base_url"); ?>img/unreal.jpg" width="16" height="16" style="margin-left: -7px; margin-right: 17px"></a>
d0843e71 46
2f8a5fe8 47 <?php
d72d1923 48
2f8a5fe8
VP
49 $arr = []; Hook::run(HOOKTYPE_FOOTER, $arr);
50
51 ?>
52
d0843e71 53
ce9cf366 54</div>
9057b83a 55</div><!-- Second div is because there is a container div in the header-->
2d62c85d
VP
56</footer>
57</body>
d0843e71 58</html>
e8b225fd 59<!--
d0843e71 60<script>
e8b225fd
VP
61 // Function to check if the feedback prompt should be shown
62 function showFeedbackPrompt()
63 {
64 var showPrompt = localStorage.getItem('showFeedbackPrompt');
65
66 // Check if the prompt has never been shown or the user opted to see it again
67 if (showPrompt === null || showPrompt === 'true' || showPrompt == 'false')
68 {
69 const id = bsModal(
70
71 // Modal header (1st param)
72 "Help Us Improve Your Experience!",
73
74 // Modal content (2nd param)
75 `We value your opinion and would greatly appreciate your feedback. Your input will help us enhance the features, usability,
76 and overall performance of the panel, making it even better for managing your UnrealIRCd server/network.<br><br>
77 Please take a moment to share your thoughts, suggestions, or any issues you've encountered.
78 We welcome feedback on the user interface, functionality, ease of use, or any other aspect you deem important.
79 Your feedback is valuable to us in shaping the future of the web panel.<br><br>
80 Thank you for your time and support in making UnrealIRCd web panel the best it can be!`,
81
82 // Modal footer (3rd param) buttons
83 `<div class="btn btn-sm btn-danger" onclick="remindFeedback()">Remind me later!</div>
84 <div class="btn btn-sm btn-primary" onclick="submitFeedback()">Feedback</div>`,
85
86 // Optional bootstrap size param (e.g. sm, lg, xl, etc) or null
87 null,
88
89 // Optional "static" bool
90 true,
91
92 // Optional "show" option
93 false,
94
95 // Optional "closebutton" display
96 false
97 );
98 }
99 $('#' + id).modal('show');
100
101 }
102
103 // Function to handle user feedback submission and store preferences
104 function submitFeedback()
105 {
106 $('#'+id).modal('hide');
107 // Handle feedback submission
108 // ...
109
110 // Store user preference not to show the prompt again
111 localStorage.setItem('showFeedbackPrompt', 'false');
112 }
113
114 // don't show it yet lol
115 // showFeedbackPrompt();
116</script> -->
117<?php
118
119// don't let people use this yet, still work in progress.
120// require_once UPATH . "/misc/right-click.php";