]>
Commit | Line | Data |
---|---|---|
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"> |
2f8a5fe8 VP |
16 | <!-- Twitter --> |
17 | <a | |
399c9625 | 18 | class="btn btn-link btn-floating btn-md text-white" |
2f8a5fe8 VP |
19 | href="https://twitter.com/Unreal_IRCd" |
20 | role="button" | |
21 | data-mdb-ripple-color="dark" | |
399c9625 | 22 | target="_blank" |
2f8a5fe8 VP |
23 | ><i class="fab fa-twitter"></i |
24 | ></a> | |
25 | <!-- Github --> | |
26 | <a | |
399c9625 | 27 | class="btn btn-link btn-floating btn-md text-white" |
2f8a5fe8 VP |
28 | href="https://github.com/unrealircd/unrealircd-webpanel" |
29 | role="button" | |
30 | data-mdb-ripple-color="dark" | |
399c9625 | 31 | target="_blank" |
c3805b04 | 32 | ><i style="margin-left: -18px" class="fab fa-github"></i |
2f8a5fe8 VP |
33 | ></a> |
34 | <!-- UnrealIRCd --> | |
35 | <a | |
36 | href="https://unrealircd.org" | |
37 | role="button" | |
399c9625 BM |
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> | |
d0843e71 | 41 | |
399c9625 | 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> |
2f8a5fe8 VP |
43 | |
44 | <?php | |
d72d1923 | 45 | |
2f8a5fe8 VP |
46 | $arr = []; Hook::run(HOOKTYPE_FOOTER, $arr); |
47 | ||
48 | ?> | |
49 | ||
d0843e71 | 50 | |
ce9cf366 | 51 | </div> |
9057b83a | 52 | </div><!-- Second div is because there is a container div in the header--> |
2d62c85d VP |
53 | </footer> |
54 | </body> | |
d0843e71 | 55 | </html> |
e8b225fd | 56 | <!-- |
d0843e71 VP |
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 | }); | |
e8b225fd VP |
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"; |