Mini Shell

Direktori : /home/haworld/public_html/
Upload File :
Current File : /home/haworld/public_html/product.php

<!doctype html>
<html class="no-js" lang="zxx">

<head>
    <?php include "include/head.php";
    if (isset($_GET['url']) && $_GET['url'] != '') {
        $url = $_GET['url'];
        $product = mysqli_fetch_assoc(mysqli_query($con, "SELECT * FROM `product` WHERE `url` = '$url'"));
    ?>
        <title><?= $product['meta_title'] ?></title>
        <meta name="description" content="<?= $product['meta_description'] ?>" />
        <meta name="keywords" content="<?= $product['keyword'] ?>" />
        <link rel="canonical" href="<?= $product['canonical_tag'] ?>" />
</head>

<body>

    <?php include "include/header.php";
        $url = $_GET['url'];
        $product = mysqli_fetch_assoc(mysqli_query($con, "SELECT * FROM `product` WHERE `url` = '$url'"));
        $image = json_decode($product['image']);
    ?>

    <main>

        <!-- breadcrumb-area-start -->
        <div class="tp-breadcrumb__area p-relative fix tp-breadcrumb-height" data-background="assets/img/breadcrumb/breadcrumb-bg.png">
            <div class="tp-breadcrumb__shape-1 z-index-5">
                <img src="assets/img/breadcrumb/breadcrumb-shape-1.png" alt="">
            </div>
            <div class="tp-breadcrumb__shape-2 z-index-5">
                <img src="assets/img/breadcrumb/breadcrumb-shape-2.png" alt="">
            </div>
            <div class="container">
                <div class="row">
                    <div class="col-12">
                        <div class="tp-breadcrumb__content z-index-5">
                            <h3 class="tp-breadcrumb__title"><?= $product['name'] ?></h3>
                            <div class="tp-breadcrumb__list">
                                <span><a href="index.php">Home</a></span>
                                <span class="dvdr"><i class="fa-sharp fa-solid fa-slash-forward"></i></span>
                                <span><?= $product['name'] ?></span>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- breadcrumb-area-end -->

        <!-- about-area-start -->
        <div class="tp-about-3__area" style="margin-top: 50px;">
            <div class="container">
                <div class="row align-items-xl-start align-items-center">
                    <div class="col-xl-5 col-lg-5 wow tpfadeLeft" data-wow-duration=".9s" data-wow-delay=".3s">
                        <div class="tp-about-3__main-thumb p-relative">
                            <img src="media/product/<?= $image['0'] ?>" alt="<?= $product['image_alt_tag'] ?>" style="border: 3px solid #181919;">
                        </div>
                    </div>
                    <div class="col-xl-7 col-lg-7 wow tpfadeRight" data-wow-duration=".9s" data-wow-delay=".9s">
                        <div class="tp-about-3__left-side">
                            <div class="tp-about-3__section-title">
                                <span class="tp-section-subtitle-3">About</span>
                                <h4 class="tp-section-title"><?= $product['title'] ?> </h4>
                            </div>
                            <div class="tp-about-3__content">
                                <div class="tp-about-3__text">
                                    <?= $product['description'] ?>
                                </div>
                                <div class="tp-about-3__btn">
                                    <a class="tp-btn" href="contact.php">Buy Now</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- about-area-end -->



    </main>

    <?php include('include/footer.php'); ?>
<?php
        include "include/foot.php";
    } else {
        header('Location: index.php');
    }
?>

</body>

</html>