]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - inc/footer.php
Change version for initial release
[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 <!-- Twitter -->
17 <a
18 class="btn btn-link btn-floating btn-md text-white"
19 href="https://twitter.com/Unreal_IRCd"
20 role="button"
21 data-mdb-ripple-color="dark"
22 target="_blank"
23 ><i class="fab fa-twitter"></i
24 ></a>
25 <!-- Github -->
26 <a
27 class="btn btn-link btn-floating btn-md text-white"
28 href="https://github.com/unrealircd/unrealircd-webpanel"
29 role="button"
30 data-mdb-ripple-color="dark"
31 target="_blank"
32 ><i style="margin-left: -18px" class="fab fa-github"></i
33 ></a>
34 <!-- UnrealIRCd -->
35 <a
36 href="https://unrealircd.org"
37 role="button"
38 data-mdb-ripple-color="dark"
39 target="_blank">
40 <img src="<?php echo get_config("base_url"); ?>img/unreal.jpg" width="16" height="16" style="margin-left: -7px; margin-right: 24px"></a>
41
42 <i id="bugreport" style="margin-left: -18px; margin-right: 10px;" height="10px" class="fa fa-bug" data-toggle="tooltip" data-placement="top" title="Report a bug (Opens in new tab)"></i>
43
44 <?php
45
46 $arr = []; Hook::run(HOOKTYPE_FOOTER, $arr);
47
48 ?>
49
50
51 </div>
52 </div><!-- Second div is because there is a container div in the header-->
53 </footer>
54 </body>
55 </html>
56 <!--
57 <script>
58 var bugreport = document.getElementById('bugreport');
59 bugreport.addEventListener('click', (e) => {
60 window.open("https://github.com/unrealircd/unrealircd-webpanel/issues/new?labels=bug&template=bug_report.md", '_blank');
61 });
62
63 // Function to check if the feedback prompt should be shown
64 function showFeedbackPrompt()
65 {
66 var showPrompt = localStorage.getItem('showFeedbackPrompt');
67
68 // Check if the prompt has never been shown or the user opted to see it again
69 if (showPrompt === null || showPrompt === 'true' || showPrompt == 'false')
70 {
71 const id = bsModal(
72
73 // Modal header (1st param)
74 "Help Us Improve Your Experience!",
75
76 // Modal content (2nd param)
77 `We value your opinion and would greatly appreciate your feedback. Your input will help us enhance the features, usability,
78 and overall performance of the panel, making it even better for managing your UnrealIRCd server/network.<br><br>
79 Please take a moment to share your thoughts, suggestions, or any issues you've encountered.
80 We welcome feedback on the user interface, functionality, ease of use, or any other aspect you deem important.
81 Your feedback is valuable to us in shaping the future of the web panel.<br><br>
82 Thank you for your time and support in making UnrealIRCd web panel the best it can be!`,
83
84 // Modal footer (3rd param) buttons
85 `<div class="btn btn-sm btn-danger" onclick="remindFeedback()">Remind me later!</div>
86 <div class="btn btn-sm btn-primary" onclick="submitFeedback()">Feedback</div>`,
87
88 // Optional bootstrap size param (e.g. sm, lg, xl, etc) or null
89 null,
90
91 // Optional "static" bool
92 true,
93
94 // Optional "show" option
95 false,
96
97 // Optional "closebutton" display
98 false
99 );
100 }
101 $('#' + id).modal('show');
102
103 }
104
105 // Function to handle user feedback submission and store preferences
106 function submitFeedback()
107 {
108 $('#'+id).modal('hide');
109 // Handle feedback submission
110 // ...
111
112 // Store user preference not to show the prompt again
113 localStorage.setItem('showFeedbackPrompt', 'false');
114 }
115
116 // don't show it yet lol
117 // showFeedbackPrompt();
118 </script> -->
119 <?php
120
121 // don't let people use this yet, still work in progress.
122 // require_once UPATH . "/misc/right-click.php";