]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - header.php
Make a start on filtering for later
[irc/unrealircd/unrealircd-webpanel.git] / header.php
index 44f1268ebf3c7b9e083aba4c7225e1693a95e783..30fa5a5c85f2c5254520e55e5cc7cbf3af566f8a 100644 (file)
@@ -1,5 +1,14 @@
+<?php $arr = []; Hook::run(HOOKTYPE_PRE_HEADER, $arr); ?>
 <!DOCTYPE html>
 <head>
+<div class="media">
+<div class="media-body">
+
+               <!-- This will make it so that it "works" on mobile device. Not sure it's a good idea yet though
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<meta name="HandheldFriendly" content="true">
+-->
+
  <!-- Latest compiled and minified CSS -->
 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
 
 <div class="container-fluid">
        
        <!-- Fixed navbar -->
-       <nav class="navbar navbar-expand-sm navbar-dark bg-dark fixed-top">
+       <nav class="navbar navbar-expand-sm navbar-dark bg-dark fixed-top z-index padding-top">
                <ul class="nav navbar-nav">
-                       <a class="navbar-brand" href="<?php echo BASE_URL; ?>/index.php"><img src="<?php echo BASE_URL; ?>img/favicon.ico" height="25" width="25"> UnrealIRCd Admin Panel</a>
+                       <a class="navbar-brand" href="<?php echo BASE_URL; ?>"><img src="<?php echo BASE_URL; ?>img/favicon.ico" height="25" width="25"> UnrealIRCd Admin Panel</a>
 <?php
 
 $active_page = NULL;
-/* Needs to be a separate step due to multiple matches */
+
 foreach ($pages as $name => $page)
 {
        $script = $_SERVER['SCRIPT_FILENAME'];
@@ -40,7 +49,6 @@ foreach ($pages as $name => $page)
        }
        else if (str_ends_with($script, BASE_URL . "index.php") && BASE_URL != "/" && !strlen($tok[0]))
        {
-               echo "2";
                $active_page = $tok[0];
        }
        else if (!str_ends_with($page, ".php"))