mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 19:34:52 +00:00
Remove DB Check
This commit is contained in:
@@ -28,37 +28,33 @@
|
|||||||
<!-- Right navbar links -->
|
<!-- Right navbar links -->
|
||||||
<ul class="navbar-nav ml-auto">
|
<ul class="navbar-nav ml-auto">
|
||||||
|
|
||||||
<?php if(CURRENT_DATABASE_VERSION > '1.4.5' ) { // Check DB Version REMOVE on Decemeber 1st 2024 -Johnny ?>
|
<!--Custom Nav Link -->
|
||||||
|
<?php
|
||||||
|
$sql_custom_links = mysqli_query($mysqli, "SELECT * FROM custom_links WHERE custom_link_location = 2 AND custom_link_archived_at IS NULL
|
||||||
|
ORDER BY custom_link_order ASC, custom_link_name ASC"
|
||||||
|
);
|
||||||
|
|
||||||
<!--Custom Nav Link -->
|
while ($row = mysqli_fetch_array($sql_custom_links)) {
|
||||||
<?php
|
$custom_link_name = nullable_htmlentities($row['custom_link_name']);
|
||||||
$sql_custom_links = mysqli_query($mysqli, "SELECT * FROM custom_links WHERE custom_link_location = 2 AND custom_link_archived_at IS NULL
|
$custom_link_uri = nullable_htmlentities($row['custom_link_uri']);
|
||||||
ORDER BY custom_link_order ASC, custom_link_name ASC"
|
$custom_link_icon = nullable_htmlentities($row['custom_link_icon']);
|
||||||
);
|
$custom_link_new_tab = intval($row['custom_link_new_tab']);
|
||||||
|
if ($custom_link_new_tab == 1) {
|
||||||
|
$target = "target='_blank' rel='noopener noreferrer'";
|
||||||
|
} else {
|
||||||
|
$target = "";
|
||||||
|
}
|
||||||
|
|
||||||
while ($row = mysqli_fetch_array($sql_custom_links)) {
|
?>
|
||||||
$custom_link_name = nullable_htmlentities($row['custom_link_name']);
|
|
||||||
$custom_link_uri = nullable_htmlentities($row['custom_link_uri']);
|
|
||||||
$custom_link_icon = nullable_htmlentities($row['custom_link_icon']);
|
|
||||||
$custom_link_new_tab = intval($row['custom_link_new_tab']);
|
|
||||||
if ($custom_link_new_tab == 1) {
|
|
||||||
$target = "target='_blank' rel='noopener noreferrer'";
|
|
||||||
} else {
|
|
||||||
$target = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
<li class="nav-item" title="<?php echo $custom_link_name; ?>">
|
||||||
|
<a href="<?php echo $custom_link_uri; ?>" <?php echo $target; ?> class="nav-link">
|
||||||
|
<i class="fas fa-<?php echo $custom_link_icon; ?> nav-icon"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="nav-item" title="<?php echo $custom_link_name; ?>">
|
<?php } ?>
|
||||||
<a href="<?php echo $custom_link_uri; ?>" <?php echo $target; ?> class="nav-link">
|
<!-- End Custom Nav Links -->
|
||||||
<i class="fas fa-<?php echo $custom_link_icon; ?> nav-icon"></i>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<?php } ?>
|
|
||||||
<!-- End Custom Nav Links -->
|
|
||||||
|
|
||||||
<?php } // End DB Check ?>
|
|
||||||
|
|
||||||
<!-- New Notifications Dropdown -->
|
<!-- New Notifications Dropdown -->
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Reference in New Issue
Block a user