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