mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Introduced Custom Extenal Links on main side Nav DB Structure updated Thanks @aftechno
This commit is contained in:
47
side_nav.php
47
side_nav.php
@@ -209,6 +209,12 @@
|
||||
<p>Categories</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="custom_links.php" class="nav-link <?php if(basename($_SERVER["PHP_SELF"]) == "custom_links.php") { echo "active"; } ?>">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>Custom Links</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="taxes.php" class="nav-link <?php if(basename($_SERVER["PHP_SELF"]) == "taxes.php") { echo "active"; } ?>">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
@@ -238,6 +244,47 @@
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
|
||||
$sql = mysqli_query($mysqli,"SELECT * FROM custom_links WHERE company_id = $session_company_id");
|
||||
|
||||
if(mysqli_num_rows($sql) > 0){
|
||||
|
||||
?>
|
||||
|
||||
<li class="nav-header mt-3">EXTERNAL LINKS</li>
|
||||
|
||||
<?php
|
||||
|
||||
$sql = mysqli_query($mysqli,"SELECT * FROM custom_links WHERE company_id = $session_company_id");
|
||||
while($row = mysqli_fetch_array($sql)){
|
||||
|
||||
$custom_link_id = $row['custom_link_id'];
|
||||
$custom_link_name = $row['custom_link_name'];
|
||||
$custom_link_icon = $row['custom_link_icon'];
|
||||
if(empty($custom_link_icon)){
|
||||
$custom_link_icon_display = "far fa-circle";
|
||||
}else{
|
||||
$custom_link_icon_display = $custom_link_icon;
|
||||
}
|
||||
$custom_link_url = $row['custom_link_url'];
|
||||
|
||||
?>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="//<?php echo $custom_link_url; ?>" target="_blank" class="nav-link">
|
||||
<i class="nav-icon fas fa-<?php echo $custom_link_icon_display; ?>"></i>
|
||||
<p><?php echo $custom_link_name; ?></p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- /.sidebar-menu -->
|
||||
|
||||
Reference in New Issue
Block a user