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