2024-02-13 17:54:24 +08:00
|
|
|
<!-- <div class="ec-vendor-block-items">
|
2024-02-12 10:35:09 +08:00
|
|
|
<ul>
|
|
|
|
<li <?php if ($_SERVER['REQUEST_URI'] == '/user-profile.php') echo 'class="active"'; ?>><a href="user-profile.php" id="user-profile-link">User Profile</a></li>
|
|
|
|
<li <?php if ($_SERVER['REQUEST_URI'] == '/user-history.php') echo 'class="active"'; ?>><a href="user-history.php" id="purchase-history-link">Purchase History</a></li>
|
|
|
|
<li <?php if ($_SERVER['REQUEST_URI'] == '/user-refund-history.php') echo 'class="active"'; ?>><a href="user-refund-history.php" id="refund-history-link">User Refund History</a></li>
|
|
|
|
<li <?php if ($_SERVER['REQUEST_URI'] == '/wishlist.php') echo 'class="active"'; ?>><a href="wishlist.php" id="wishlist-link">Wishlist</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2024-02-13 17:54:24 +08:00
|
|
|
<style>.ec-vendor-block-items ul li.active a {
|
|
|
|
color: white !important; /* Change the text color */
|
|
|
|
background-color: #3474d4; /* Change the background color */
|
|
|
|
padding: 10px;
|
|
|
|
border-radius: 10px;
|
|
|
|
}
|
|
|
|
</style> -->
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$current_page = basename($_SERVER['PHP_SELF']);
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="ec-vendor-block-items">
|
|
|
|
<ul>
|
|
|
|
<li <?php if ($current_page == 'user-profile.php') echo 'class="active"'; ?>><a href="user-profile.php" id="user-profile-link">User Profile</a></li>
|
|
|
|
<li <?php if ($current_page == 'user-history.php') echo 'class="active"'; ?>><a href="user-history.php" id="purchase-history-link">Purchase History</a></li>
|
|
|
|
<li <?php if ($current_page == 'user-refund-history.php') echo 'class="active"'; ?>><a href="user-refund-history.php" id="refund-history-link">User Refund History</a></li>
|
|
|
|
<li <?php if ($current_page == 'wishlist.php') echo 'class="active"'; ?>><a href="wishlist.php" id="wishlist-link">Wishlist</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2024-02-12 10:35:09 +08:00
|
|
|
<style>.ec-vendor-block-items ul li.active a {
|
|
|
|
color: white !important; /* Change the text color */
|
|
|
|
background-color: #3474d4; /* Change the background color */
|
|
|
|
padding: 10px;
|
|
|
|
border-radius: 10px;
|
|
|
|
}
|
|
|
|
</style>
|