]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - footer.php
More work on installation screen
[irc/unrealircd/unrealircd-webpanel.git] / footer.php
index 3a0ccd9c6dddfa9aa73b4d19b496fa53f2ba9708..46bb18f8284bb1fb2e826045723736f200fefb48 100644 (file)
@@ -1,38 +1,62 @@
+<?php
+       if (!isset($nav_shown))
+               return;
+?>
 <footer class="text-center bg-dark text-white fixed-bottom" style="background-color: #f1f1f1;">
-  <!-- Grid container -->
-  <div class="container">
-    <!-- Section: Social media -->
-    <section class="mt-1">
-    © 1999-<?php echo date('Y'); ?> UnrealIRCd 
+       <!-- Grid container -->
+       <div class="container">
+               <!-- Section: Social media -->
+
+               <?php
+                       $arr = []; Hook::run(HOOKTYPE_PRE_FOOTER, $arr);
+                       echo "<small style=\"font-size: 70%\"><code>Admin Panel ".WEBPANEL_VERSION."</code></small>";
+               ?>
+
+               <section class="mt-1">
+                       <!-- Twitter -->
+                       <a
+                               class="btn btn-link btn-floating btn-md text-white"
+                               href="https://twitter.com/Unreal_IRCd"
+                               role="button"
+                               data-mdb-ripple-color="dark"
+                               target="_blank"
+                               ><i class="fab fa-twitter"></i
+                       ></a>
+                       <!-- Github -->
+                       <a
+                               class="btn btn-link btn-floating btn-md text-white"
+                               href="https://github.com/unrealircd/unrealircd-webpanel"
+                               role="button"
+                               data-mdb-ripple-color="dark"
+                               target="_blank"
+                               ><i style="margin-left: -18px" class="fab fa-github"></i
+                       ></a>
+                       <!-- UnrealIRCd -->
+                       <a
+                               href="https://unrealircd.org"
+                               role="button"
+                               data-mdb-ripple-color="dark"
+                               target="_blank">
+                               <img src="<?php echo get_config("base_url"); ?>img/unreal.jpg" width="16" height="16" style="margin-left: -7px; margin-right: 24px"></a>
+
+                       <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>
+               
+               <?php
+
+               $arr = []; Hook::run(HOOKTYPE_FOOTER, $arr);
+               
+               ?>
+               
+               
+</div>
+</div><!-- Second div is because there is a container div in the header-->
 
-      <!-- Twitter -->
-      <a
-        class="btn btn-link btn-floating btn-lg text-white"
-        href="https://twitter.com/Unreal_IRCd"
-        role="button"
-        data-mdb-ripple-color="dark"
-        ><i class="fab fa-twitter"></i
-      ></a>
-      <!-- Github -->
-      <a
-        class="btn btn-link btn-floating btn-lg text-white"
-        href="https://github.com/unrealircd/unrealircd-webpanel"
-        role="button"
-        data-mdb-ripple-color="dark"
-        ><i class="fab fa-github"></i
-      ></a>
-      <!-- UnrealIRCd -->
-      <a
-        href="https://unrealircd.org"
-        role="button"
-        data-mdb-ripple-color="dark"
-        ><img  class="btn btn-link btn-floating btn-xs text-white" src="<?php echo BASE_URL; ?>img/favicon.ico" width="25" height="25"></i
-      ></a>
-      
-    </section>
-    
 </footer>
 </body>
 </html>
-</div>
-</div>
+<script>
+       var bugreport = document.getElementById('bugreport');
+       bugreport.addEventListener('click', (e) => {
+               window.open("https://github.com/unrealircd/unrealircd-webpanel/issues/new?labels=bug&template=bug_report.md", '_blank');
+       });
+</script>
\ No newline at end of file