MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.224.70.11
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/deergham.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/deergham.com/header.php
<?php 
    $count = 0;
    if(isset($_SESSION['cart'])){
       $count = count($_SESSION['cart']);
    }
?>
 <style>
      .shopping-card {
          position:relative;
          
      }
      .shopping::before{
          content: "<?php echo $count; ?>" !important;
          position:absolute;
          top:0;
          right:17px;
          font-weight:bold;
      }
      .btn-user{
        background:white;
        color:black!important;
        padding:0px!important;
    }
    li{
        list-style-type:none;
    }
 </style>
    <header class="header d-flex flex-wrap align-items-center headroom sticky headroom--not-top headroom--not-bottom header--pinned" data-page="home" data-overlay="true">
        <div class="container d-flex flex-wrap flex-xl-nowrap align-items-center justify-content-between">
            <!--           <a class="brand header_logo d-flex align-items-center" href=index-2.html>-->
            <!--<img src="imgs/deergham-logo.png" alt="Girl in a jacket" width="100%" >-->
                    <!--</span><span class=accent>Herba</span> <span>list</span>-->
            <!--                   </a>-->
            <a href="<?php echo $wspath?>" class="logo">
                <img src="<?php echo $wspath?>admin/images/<?php echo $data1["header_logo"];?>" alt="logo">
            </a>
            <nav class="header_nav" style="padding-left: 12px; padding-right: 12px;">
                <ul class="header_nav-list">
                    <li class="header_nav-list_item "><a class="nav-link d-inline-flex align-items-center" href="<?php echo $wspath?>">Home </a>
                    </li>
                    <li class="header_nav-list_item dropdown">
                        <a class="nav-link dropdown-toggle d-inline-flex align-items-center" href="<?php echo $wspath?>all-product.html" data-bs-toggle="dropdown" data-bs-target="#shopMenu" aria-expanded="false" aria-controls="shopMenu" >Products <i class="icon-caret_down icon"></i></a>
                        <div class="dropdown-menu" id="shopMenu">
                            <ul class="dropdown-list">
                                <?php
                                    $sqltour = "SELECT * FROM tbl_main_cat WHERE cat_status='Active' ORDER BY `cat_order_by` ASC";
                                    $runtour = mysqli_query($db,$sqltour) or die("Query Not run");
                                    while($datatour = mysqli_fetch_assoc($runtour)){
                                ?>
                                <li class="list-item nav-item">
                                    <a class="dropdown-item" href="<?php echo $wspath?>product<?php echo $datatour['slug'];?>.html"><?php echo $datatour['cat_name'];?></a>
                                </li>
                                <?php } ?>
                                <!--<li class="list-item nav-item"><a class="dropdown-item" href="#">Healthy Oils</a></li>-->
                                <!--<li class="list-item nav-item"><a class="dropdown-item" href="#">Nutrient-Rich Seeds</a></li>-->
                                <!--<li class="list-item nav-item"><a class="dropdown-item" href="#">Ghee and Dairy Delights</a></li>-->
                                <!--<li class="list-item nav-item"><a class="dropdown-item" href="#">Superfood Supplements</a></li>-->
                                <!--<li class="list-item nav-item"><a class="dropdown-item" href="#">Natural Herbs</a></li>-->
                            </ul>
                        </div>
                    </li>
                    <li class="header_nav-list_item "><a class="nav-link d-inline-flex align-items-center" href="<?php echo $wspath?>about.html">About Us</a>
                    </li>
                    <!--<li class="header_nav-list_item "><a class="nav-link d-inline-flex align-items-center" href="<?php echo $wspath?>blogs.html">Blogs</a>-->
                    <!--</li>-->
                    <li class="header_nav-list_item "><a class="nav-link d-inline-flex align-items-center" href="<?php echo $wspath?>contact.html">Contact Us</a>
                    </li>
                </ul>
            </nav>
            <span class="header_trigger d-inline-flex d-xl-none flex-column justify-content-between">
                <span class="line line--short"></span> 
                <span class="line line"></span> 
                <span class="line line--short"></span> 
                <span class="line line"></span>
            </span>
            
            <div class="header_user d-flex justify-content-end align-items-center">
            <?php
                session_start();
                if(isset($_SESSION['user']) && ($_SESSION['user']['user_type'] == 'customer')) {
                    echo '<a class="header_user-action d-inline-flex align-items-center justify-content-center" href="#"  data-bs-toggle=offcanvas data-bs-target=#cartOffcanvas aria-controls=cartOffcanvas><i class="fa-solid fa-user" ></i> </a>';
                }else{
                    echo '<a class="header_user-action d-inline-flex align-items-center justify-content-center" href="'.$wspath.'login.html"  ><i class="fa-solid fa-user" ></i> </a>';
                }
            ?>
               
               <a class="header_user-action d-inline-flex align-items-center justify-content-center" href="<?php echo $wspath?>wishlist.html"><i class="icon-heart"></i> </a>
               <li class="shopping-card">
               <a class="header_user-action d-inline-flex align-items-center justify-content-center shopping" href="<?php echo $wspath?>add-to-cart.html" ><i class="icon-basket"></i></a>
               </li>
            </div>
        </div>
    </header>
     
    

MMCT - 2023