]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - inc/footer.php
87975f999926032ed49bdec5688576f5e95cd232
[irc/unrealircd/unrealircd-webpanel.git] / inc / footer.php
1 <?php
2 if (!isset($nav_shown))
3 return;
4 ?>
5 <footer class="text-center bg-dark text-white fixed-bottom" style="background-color: #f1f1f1;">
6 <!-- Grid container -->
7 <div class="container">
8 <!-- Section: Social media -->
9
10 <?php
11 $arr = []; Hook::run(HOOKTYPE_PRE_FOOTER, $arr);
12 echo "<small style=\"font-size: 70%\"><code>Admin Panel ".get_config('webpanel_version')."</code></small>";
13 ?>
14
15 <section class="mt-1">
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
22 <!-- Twitter -->
23 <a
24 class="btn btn-link btn-floating btn-md text-white"
25 href="https://twitter.com/Unreal_IRCd"
26 role="button"
27 data-mdb-ripple-color="dark"
28 target="_blank"
29 ><i class="fab fa-twitter"></i
30 ></a>
31 <!-- Github -->
32 <a
33 class="btn btn-link btn-floating btn-md text-white"
34 href="https://github.com/unrealircd/unrealircd-webpanel"
35 role="button"
36 data-mdb-ripple-color="dark"
37 target="_blank"
38 ><i style="margin-left: -18px" class="fab fa-github"></i
39 ></a>
40 <!-- UnrealIRCd -->
41 <a
42 href="https://unrealircd.org"
43 role="button"
44 data-mdb-ripple-color="dark"
45 target="_blank">
46 <img src="<?php echo get_config("base_url"); ?>img/unreal.jpg" width="16" height="16" style="margin-left: -7px; margin-right: 17px"></a>
47
48 <?php
49
50 $arr = []; Hook::run(HOOKTYPE_FOOTER, $arr);
51
52 ?>
53
54
55 </div>
56 </div><!-- Second div is because there is a container div in the header-->
57 </footer>
58 </body>
59 </html>
60 <!--
61 <script>
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";