Header Update
This commit is contained in:
parent
ba7ef1d47d
commit
a05bd1db37
25
header.php
25
header.php
|
@ -1,3 +1,15 @@
|
|||
<?php
|
||||
$_SESSION["url"] = $_SERVER['REQUEST_URI'];
|
||||
if ($_SESSION["userId"] <> "") {
|
||||
$_SESSION["isLoggedIn"] = true;
|
||||
$customer_data = getCustomerbyLoginId($_SESSION["userId"]);
|
||||
// $customerData = json_decode($customer_data, true);
|
||||
|
||||
} else {
|
||||
$_SESSION["isLoggedIn"] = false;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php ?>
|
||||
<header class="ec-header">
|
||||
<style>
|
||||
|
@ -136,18 +148,25 @@
|
|||
</div>
|
||||
<!-- Header Top social End -->
|
||||
<!-- Header Top Message Start -->
|
||||
<div class="col text-center header-top-center">
|
||||
<!-- <div class="col text-center header-top-center">
|
||||
<div class="header-top-message text-upper">
|
||||
<span>Free Shipping</span>This Week Order Over - $75
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- Header Top Message End -->
|
||||
<!-- Header Top Language Currency -->
|
||||
<div class="col header-top-right d-none d-lg-block">
|
||||
<div class="header-top-lan-curr d-flex justify-content-end">
|
||||
<!-- Download Modal -->
|
||||
<div class="header-top-download">
|
||||
<button class="text-upper" onclick="displayPopup()">Download App <i aria-hidden="true"></i></button>
|
||||
<!-- 04-01-2024 Stacy modified this block of code -->
|
||||
<!-- <button class="text-upper" onclick="displayPopup()">Download App <i aria-hidden="true"></i></button> -->
|
||||
<?php if(isset($customer_data)) { ?>
|
||||
<button style="cursor:default;">Hi <span class="text-upper"><?php echo $customer_data[0]['first_name'] ?>!</span></button>
|
||||
<?php } else { ?>
|
||||
<button class="text-upper"><a href="login.php">Login</a></button>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
function displayPopup() {
|
||||
|
|
Loading…
Reference in New Issue