From cdc0422d31f246a1b07b4d270a9307e0b90a589e Mon Sep 17 00:00:00 2001 From: wrongecho Date: Tue, 4 Feb 2025 16:04:44 +0000 Subject: [PATCH] Allow adding custom links to the client portal nav-bar --- admin_custom_link.php | 4 +++- client/includes/header.php | 23 +++++++++++++++++++++++ modals/admin_custom_link_add_modal.php | 1 + modals/admin_custom_link_edit_modal.php | 1 + 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/admin_custom_link.php b/admin_custom_link.php index 13d705ee..6ade1314 100644 --- a/admin_custom_link.php +++ b/admin_custom_link.php @@ -96,8 +96,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $custom_link_location = intval($row['custom_link_location']); if ($custom_link_location == 1) { $custom_link_location_display = "Main Side Nav"; - } else { + } elseif ($custom_link_location == 2) { $custom_link_location_display = "Top Nav"; + } elseif ($custom_link_location == 3) { + $custom_link_location_display = "Client Portal Nav"; } ?> diff --git a/client/includes/header.php b/client/includes/header.php index bc360647..f06abcdc 100644 --- a/client/includes/header.php +++ b/client/includes/header.php @@ -77,6 +77,29 @@ header("X-Frame-Options: DENY"); // Legacy + + + + + +