<?php 

include_once("include/main.inc.php");

$hover=='blogs';

@extract($_GET);

@extract($_POST);

@extract($_REQUEST);

if (preg_match('webpulse\.co$/', $_SERVER['HTTP_HOST'], $match)) {

	$match1=$match[1];

	$vanity_url='http://'.$_SERVER['HTTP_HOST'];

}

$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";

$mm=$ee[4];

$ss=explode('.',$mm);

$cc=$ss[0];

$cat=str_replace("-", " ", $cc);

$cats=ucfirst($cat);

$catss=ucwords($cat);

$blog_name = ucwords(str_replace('-', ' ', $blog_name));

$sql_latest=mysqli_query($GLOBALS['dbconn'],"select catImage,catName,blogDname,catDesc,catDesc1,banner1,blog_written from blog_tbl where catName='$blog_name'");

$res_latest=mysqli_fetch_array($sql_latest);

$blogdisplay=$res_latest['blogDname'];

$blog_ID=$res_latest['catID'];

$page_metatitle=$res_latest['blogDname'];

$page_metakey=$res_latest['blogDname'];

$page_metadesc=$res_latest['blogDname'];
$blog_desc=str_ireplace('{companyName}',$admin_res['companyName'],$res_latest['catDesc1']);

?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <?php include "app_top.php"; ?>
 
<style>
.stButton { margin-bottom: 0px;}
</style>

</head>
<body>
    <?php include "app_header.php"; ?>
    <div class="heading_banner" style="background-image: url(<?=site_url;?>/designer/images/about-banner.jpg)">

        <div class="container">

            <div class="row">

                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">

                    <div class="cat_title"><?=$blogdisplay;?></div>

                    <div class="clearfix"></div>

                </div>

            </div>

        </div>

    </div>
    <div class="inner_breadcrumb hidden_xs">

        <div class="container">

            <div class="row">

                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">

                    <ul class="breadcrumb">

                        <li><a href="<?=site_url;?>" title="Home">Home</a></li>

                        <li><a href="<?=site_url;?>/blog.htm" title="Blog">Blog</a></li>

                        <li class="active"><?=$blogdisplay;?></li>

                    </ul>

                </div>

            </div>

        </div>

    </div>
    <section class="blog_page">

        <div class="container">

            <div class="tt-bx">

                <h1 class="tt"><?=$blogdisplay;?> </h1>
            </div>

            <!-- <h2 class="title_2">Classic Meets Contemporary: Men’s Style Insights</h2> -->

            <div class="clearfix"></div>

            <div class="blog_left blog_details">

                <div class="text-center mb-4">
<div class="d-flex align-items-center justify-content-center">
<ul class="mb-0">

<li><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
        viewBox="0 0 16 16">

        <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z">
        </path>

    </svg> By: <?=$res_latest['blog_written'];?></li>
</ul>

<div class="social-share-buttons">
<span class="st_facebook" title="Share on Facebook">  </span>
<span class="st_twitter" title="Share on Twitter"> </span>
<span class="st_instagram" title="Share on Instagram"> </span>
<span class="st_pinterest" title="Pin on Pinterest"></span>
<span class="st_linkedin" title="Share on LinkedIn"></span>
<span class="st_email" title="Share via Email"></span>
<span class="st_whatsapp" title="Share on WhatsApp"></span>
<span class="st_share" title="More Sharing Options"></span>
</div>

</div>
                
<script>
    var switchTo5x = true;
</script>
<script 
    id="st_insights_js" 
    src="https://w.sharethis.com/button/buttons.js?publisher=c753f626-1376-4cf4-9b90-03d3c1fcf65e&product=widget"
    async>
</script>
<script>
    stLight.options({
        publisher: "c753f626-1376-4cf4-9b90-03d3c1fcf65e",
        doNotHash: false,
        doNotCopy: false,
        hashAddressBar: false
    });
</script>
                </div>

                <div class="blog_details1">

                    <div class="blog_details_img">

                        <img src="<?=getImage($res_latest['catImage'], 800, 500, $res_latest['catName'], "/uploaded-files/blog/images/"); ?>"
                            alt="<?=$blogdisplay;?>" title="<?=$blogdisplay;?>">

                    </div>

                    <?php echo html_entity_decode($blog_desc);?>
                    <div class="facebook_comment">

                        <div id="fb-root"></div>

                        <script async defer crossorigin="anonymous"
                            src="https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v3.2" title="Sharing Button">
                        </script>

                        <div class="fb-comments" data-href="https://www.facebook.com/webpulsesolution/"
                            data-width="1000px" data-numposts="5" title="Sharing Button"></div>

                    </div>
                </div>

            </div>

        </div>

    </section>

    <div class="homeBlog">

        <div class="container">

            <div class="tt-bx">

                <div class="tt">Latest <span>Post</span></div>

                <p>Keep up with the latest trends, insights, and updates through our posts. From fashion tips to expert
                    advice, each article is crafted to inspire and inform. Explore new ideas, exclusive releases, and
                    valuable content tailored to elevate your experience. Stay connected with fresh perspectives that
                    bring style and innovation to the forefront.
                </p>

            </div>

            <div class="clearfix"></div>
            <div class="row">

                <?php $blog_query1 = mysqli_query($GLOBALS['dbconn'], "select catImage,catName,blogDname,catDesc,blog_written,blogDate from blog_tbl where catID!='$blog_ID'");
 ?>

                <?php while ($blog_res1 = mysqli_fetch_assoc($blog_query1)) {

if ($blog_res1['catImage'] != '') {

    $blog_img =  getImage($blog_res1['catImage'], 300, 235, $blog_res1['catName'], "/uploaded-files/blog/images/");
} else {

    $blog_img = NO_IMG_URL;
}

?>
                <div class="col-lg-6 col-md-12 col-12 wow fadeInUp">

                    <div class="blogBox d-flex">

                        <a href="<?= site_url; ?>/blog/<?= getValidFileName($blog_res1['catName']); ?>.htm"
                            title="<?= $blog_res1['blogDname']; ?>" class="blogs1">

                            <div class="image">

                                <img src="<?= $blog_img; ?>" alt="<?= $blog_res1['blogDname']; ?>"
                                    title="<?= $blog_res1['blogDname']; ?>">

                            </div>

                        </a>

                        <div class="blogDescribe blogs12">

                            <!-- <abbr class="blogDate">01 Sept, 2022</abbr> -->

                            <div class="tt"><a
                                    href="<?= site_url; ?>/blog/<?= getValidFileName($blog_res1['catName']); ?>.htm"
                                    title="<?= $blog_res1['blogDname']; ?>"><?= $blog_res1['blogDname']; ?></a></div>

                            <p><?= html_entity_decode(substr($blog_res1['catDesc'], 0, 200)); ?>...</p>

                            <a href="<?= site_url; ?>/blog/<?= getValidFileName($blog_res1['catName']); ?>.htm"
                                title="Read More" class="readMore">Read More <svg xmlns="http://www.w3.org/2000/svg"
                                    width="16" height="16" fill="currentColor" viewBox="0 0 16 16">

                                    <path fill-rule="evenodd"
                                        d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z">

                                    </path>

                                </svg></a>

                        </div>

                    </div>

                </div>
                <?php } ?>
            </div>

        </div>

    </div>

    <?php include "app_footer.php"; ?>

    <?php include "app_bottom.php"; ?>

</body>
</html>