Server : LiteSpeed System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64 User : u615232177 ( 615232177) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/u615232177/domains/soniahjeweler.com/public_html/ |
<?php include("minks.php"); ?>
<?php
// Check if a new currency is selected
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['currency'])) {
$_SESSION['currency'] = $_POST['currency'];
}
// Set default currency if not already set
if (!isset($_SESSION['currency'])) {
$_SESSION['currency'] = '$';
}
$currency = $_SESSION['currency'];
?>
<?php
if (isset($_SESSION['email'])){
$email = $_SESSION['email'];
$first_name = $_SESSION['first_name'];
$last_name = $_SESSION['last_name'];
$phone = $_SESSION['phone'];
$user_id = $_SESSION['user_id'];
}
else{
}
?>
<!doctype html>
<html class="no-js layout__5" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.png">
<!-- Place favicon.ico in the root directory -->
<!-- CSS here -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/animate.min.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/all.min.css">
<link rel="stylesheet" href="css/futura.css">
<link rel="stylesheet" href="css/slick.css">
<link rel="stylesheet" href="css/style.css">
<script src='https://www.google.com/recaptcha/api.js'></script>
</head>
<div>
<select id="currency-selector" style='position:absolute;top:10px;left:10px;z-index:9999;'>
<option value="$" <?php echo ($currency == '$') ? 'selected' : ''; ?>>USD</option>
<option value="₦" <?php echo ($currency == '₦') ? 'selected' : ''; ?>>NGN</option>
</select>
</div>
<script>
document.getElementById('currency-selector').addEventListener('change', function() {
let selectedCurrency = this.value;
// Create a hidden form and submit it to update the session
let form = document.createElement('form');
form.method = 'POST';
form.action = ""; // Submits to the same page
form.style.display = 'none';
let input = document.createElement('input');
input.type = 'hidden';
input.name = 'currency';
input.value = selectedCurrency;
form.appendChild(input);
document.body.appendChild(form);
form.submit();
});
</script>
<body>
<main class="main_wrapper body__overlay overflow__hidden">
<!-- header__topbar__start -->
<div class="header__topbar header__topbar__3 desktop__menu__wrapper">
<div class="container">
<div class="row">
<div class="col-xl-7 col-lg-7">
<div class="header__topbar__left header__topbar__left__3">
<ul>
<li>
<svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512"><rect x="48" y="96" width="416" height="320" rx="40" ry="40" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M112 160l144 112 144-112"/></svg><?= $company_email ?>
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512"><path d="M256 48c-79.5 0-144 61.39-144 137 0 87 96 224.87 131.25 272.49a15.77 15.77 0 0025.5 0C304 409.89 400 272.07 400 185c0-75.61-64.5-137-144-137z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><circle cx="256" cy="192" r="48" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/></svg><?= $company_address ?>
</li>
</ul>
</div>
</div>
<div class="col-xl-5 col-lg-5">
<div class="header__topbar__right header__topbar__right__3">
<div class="header__topbar__language__wraper">
<div class="header__topbar__language">
<div class="header__topbar__language__inner">
</div>
</div>
</div>
<div class="header__topbar__social__icon">
<ul>
<li>
<a href="#">
<i class="fab fa-facebook-f"></i>
</a>
</li>
<li>
<a href="#">
<i class="fab fa-twitter"></i>
</a>
</li>
<li>
<a href="#">
<i class="fab fa-youtube"></i>
</a>
</li>
<li>
<a href="#">
<i class="fab fa-instagram"></i>
</a>
</li>
<li>
<a href="#">
<i class="fab fa-tiktok"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- header__topbar__end -->
<!-- header section start -->
<header>
<div class="headerarea header__sticky">
<div class="container desktop__menu__wrapper">
<div class="row common__row position-relative">
<div class="col-xl-2 col-lg-2 col-md-6">
<div class="headerarea__logo">
<a href="index.php"><img src="img/logo/logo.png" style="width:200px; height:74px;"></a>
</div>
</div>
<div class="col-xl-7 col-lg-7 col-md-6 main_menu_wrap">
<div class="headerarea__main__menu ">
<nav>
<ul>
<li class='<?php if($page_name == "index.php"){echo"active";} ?>'>
<a href='index.php'>Home</a>
</li>
<li class='<?php if($page_name == "shop.php"){echo"active";} ?>'>
<a href='shop.php'>Shop</a>
</li>
<li><a class='headerarea__has__dropdown' href=''>Categories <span class="header__label hot__color">Hot</span>
</a>
<ul class="headerarea__submenu">
<?php
$get_categories = mysqli_query($con,"SELECT * FROM categories ORDER BY cat_title");
$count_categories = mysqli_num_rows($get_categories);
if($count_categories > 0){
while($row = mysqli_fetch_array($get_categories)){
$cat_id = $row["cat_id"];
$cat_title = $row["cat_title"];
echo"
<li>
<a href='categories.php?id=$cat_id&nm=$cat_title'>$cat_title</a>
</li>";
}} ?>
</ul>
</li>
<li class='<?php if($page_name == "account.php"){echo"active";} ?>'>
<a href='account.php'>Account</a>
</li>
<li class='<?php if($page_name == "contact.php"){echo"active";} ?>'>
<a href='contact.php'>Contact</a>
</li>
</ul>
</nav>
</div>
</div>
<div class="col-xl-3 col-lg-3 col-md-6">
</div>
</div>
</div>
</div>
<div class="container-fluid mob_menu_wrapper headerarea header__sticky">
<div class="row align-items-center">
<div class="col-sm-4 col-2">
<div class="mobile-off-canvas">
<a class="mobile-aside-button" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-menu">
<line x1="3" y1="12" x2="21" y2="12"></line>
<line x1="3" y1="6" x2="21" y2="6"></line>
<line x1="3" y1="18" x2="21" y2="18"></line>
</svg>
</a>
</div>
</div>
<div class="col-sm-4 col-5">
<div class="mobile-logo">
<a class="logo__mobile" href="#"><img src="img/logo/logo.png" alt="logo"></a>
</div>
</div>
<div class="col-sm-4 col-5">
<div class="header-right-wrap">
<div class="header__right__inner__wrap d-flex align-items-center justify-content-end">
<ul class="headerarea__right headerarea__right__mobail__menu">
<li>
<div class="headerarea__search cursor__pointer">
</div>
</li>
<li>
<div class="setting__wrap cursor__pointer">
<div class="setting__wrap__active">
</div>
</div>
</li>
<li>
<div class="headermiddle__bar cursor__pointer">
<div class="headermiddle__account">
<div class="headermiddle__account__img">
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- Mobile Menu Start Here -->
<div class="mobile-off-canvas-active">
<a class="mobile-aside-close"><i class="fa fa-close"></i></a>
<div class="header-mobile-aside-wrap">
<div class="mobile__logo">
<a href='index.php'>
<img src="img/logo/logo.png" style="width:200px;height:74px;">
</a>
</div>
<div class="mobile-search">
</div>
<div class="mobile-menu-wrap">
<div class="mobile-navigation">
<nav>
<ul class="mobile-menu">
<li class='<?php if($page_name == "index.php"){echo"active";} ?>'>
<a href='index.php'>Home</a>
</li>
<li class='<?php if($page_name == "shop.php"){echo"active";} ?>'>
<a href='shop.php'>Shop</a>
</li>
<li class="menu-item-has-children"><a href=''>Categories</a>
<ul class="dropdown">
<?php
$get_categories = mysqli_query($con,"SELECT * FROM categories ORDER BY cat_title");
$count_categories = mysqli_num_rows($get_categories);
if($count_categories > 0){
while($row = mysqli_fetch_array($get_categories)){
$cat_id = $row["cat_id"];
$cat_title = $row["cat_title"];
echo"
<li>
<a href='categories.php?id=$cat_id&nm=$cat_title'>$cat_title</a>
</li>";
}} ?>
</ul>
</li>
<li class='<?php if($page_name == "account.php"){echo"active";} ?>'>
<a href='account.php'>Account</a>
</li>
<li class='<?php if($page_name == "contact.php"){echo"active";} ?>'>
<a href='contact.php'>Contact</a>
</li>
</ul>
</nav>
</div>
</div>
<div class="mobile-curr-lang-wrap">
<div class="single-mobile-curr-lang">
</div>
<div class="single-mobile-curr-lang">
</div>
</div>
<div class="mobile-social-wrap">
</div>
</div>
</div>
<!-- Mobile Menu end Here -->
<!-- setting__wrap__list__start -->
<!-- setting__wrap__list__end -->
</header>
<!-- header section end -->