2 if (!isset($nav_shown))
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
-->
11 $arr = []; Hook
::run(HOOKTYPE_PRE_FOOTER
, $arr);
12 echo "<small style=\"font-size: 70%\"><code>Admin Panel ".get_config('webpanel_version')."</code></small>";
15 <section
class="mt-1">
18 class="btn btn-link btn-floating btn-md text-white"
19 href
="https://twitter.com/Unreal_IRCd"
21 data
-mdb
-ripple
-color
="dark"
23 ><i
class="fab fa-twitter"></i
27 class="btn btn-link btn-floating btn-md text-white"
28 href
="https://github.com/unrealircd/unrealircd-webpanel"
30 data
-mdb
-ripple
-color
="dark"
32 ><i style
="margin-left: -18px" class="fab fa-github"></i
36 href
="https://unrealircd.org"
38 data
-mdb
-ripple
-color
="dark"
40 <img src
="<?php echo get_config("base_url
"); ?>img/unreal.jpg" width
="16" height
="16" style
="margin-left: -7px; margin-right: 24px"></a
>
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
>
46 $arr = []; Hook
::run(HOOKTYPE_FOOTER
, $arr);
52 </div
><!-- Second div is because there is a container div in the header
-->
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');
63 // Function to check if the feedback prompt should be shown
64 function showFeedbackPrompt()
66 var showPrompt
= localStorage
.getItem('showFeedbackPrompt');
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')
73 // Modal header (1st param)
74 "Help Us Improve Your Experience!",
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!`,
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>`,
88 // Optional bootstrap size param (e.g. sm, lg, xl, etc) or null
91 // Optional "static" bool
94 // Optional "show" option
97 // Optional "closebutton" display
101 $('#' + id).modal('show');
105 // Function to handle user feedback submission and store preferences
106 function submitFeedback()
108 $
('#'+id
).modal('hide');
109 // Handle feedback submission
112 // Store user preference not to show the prompt again
113 localStorage
.setItem('showFeedbackPrompt', 'false');
116 // don't show it yet lol
117 // showFeedbackPrompt();
121 // don't let people use this yet, still work in progress.
122 // require_once UPATH . "/misc/right-click.php";