<?php 
include_once("include/main.inc.php");
$hover=='blog';
@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,blogDate,catID 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['pageTitle']!=''?$res_latest['pageTitle']:$res_latest['blogDname'];
$page_metakey=$res_latest['pageKeywords']!=''?$res_latest['pageKeywords']:$res_latest['blogDname'];
$page_metadesc=$res_latest['pageDescription']!=''?$res_latest['pageDescription']:$res_latest['blogDname'];
$blog_desc=str_ireplace('{companyName}',$admin_res['companyName'],$res_latest['catDesc1']);
$date = new DateTime($res_latest['blogDate']);
$day = $date->format('d');
$month = $date->format('M');
$year = $date->format('Y');

?>
<!DOCTYPE html>

<html lang="en">



<head>

    <meta charset="utf-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

 

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

</head>



<body>

    <?php include 'app_header.php'; ?>



    <section class="heading_banner" style="background-image: url(<?=site_url;?>/designer/images/blog-banner.webp)">

        <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">

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

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

                </div>

            </div>

        </div>

    </section>



    <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;?>/blogs.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="row">

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

                    <div class="blog_left blog_details">

                        <h2 class="blogTitle"><?=$blogdisplay;?></h2>

                        <ul>

                            <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>





                        <span class='st_facebook' displayText='Facebook'></span>

                        <span class='st_twitter' displayText='Tweet'></span>

                        <span class='st_instagram' displayText='Instagram'></span>

                        <span class='st_pinterest' displayText='Pinterest'></span>

                        <span class='st_linkedin' displayText='LinkedIn'></span>

                        <span class='st_email' displayText='Email'></span>

                        <span class='st_whatsapp' displayText='whatsapp'></span>

                        <script type="text/javascript">

                            var switchTo5x = true;

                        </script>
<script type="text/javascript" id="st_insights_js" >
        setTimeout(function() {
        $.getScript("http://w.sharethis.com/button/buttons.js?publisher=c753f626-1376-4cf4-9b90-03d3c1fcf65e&product=widget");
    }, 7000);
</script>
                        <!-- <script type="text/javascript" id="st_insights_js" src="http://w.sharethis.com/button/buttons.js?publisher=c753f626-1376-4cf4-9b90-03d3c1fcf65e&product=widget"></script> -->

                        <script type="text/javascript">

                            stLight.options({

                                publisher: "c753f626-1376-4cf4-9b90-03d3c1fcf65e",

                                doNotHash: false,

                                doNotCopy: false,

                                hashAddressBar: false

                            });

                        </script>

                        <div class="blog_details1">

                            <div class="blog_details_img h-auto overflow-hidden rounded rounded-3">

                                <img src="<?=getImage($res_latest['banner1'], 1175, 375, $res_latest['catName'], "/uploaded-files/blog/banners/"); ?>"  alt="<?=$blogdisplay;?>" title="<?=$blogdisplay;?>" title="<?=$blogdisplay;?>" class="w-100">

                            </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"></script> -->

<script async defer crossorigin="anonymous" >
        setTimeout(function() {
        $.getScript("https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v3.2");
    }, 7000);
</script>

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

                            </div>



                        </div>

                    </div>

                </div>



                

            </div>

        </div>

    </section>

    <section class="blog_page bg-light">

        <div class="container">

        <div class="products_heading wow float-none fadeInDown mb-3 animated" data-wow-delay=".1s" style="visibility: visible; animation-delay: 0.1s; animation-name: fadeInDown;">

                <div class="title_21 h2_title  aboutTitle">Latest <span>Blogs</span>

                </div>

                    <!-- <div class="aboutTitle">Our <span> Specialities</span></div> -->

                    <p class="text-center w-75 mx-auto mb-3"> Stay informed and inspired with our latest blogs. Explore insightful articles, industry trends, and expert advice to elevate your knowledge and stay ahead in your field.

                    </p>





            </div>

            <!-- <h2 class="title_2 aboutTitle">Our <span>Blog</span> </h2> -->

            <div class="row fadeInDown animated" data-wow-delay=".1s">

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

            <?php 
                while($blog_res=mysqli_fetch_array($blog_query)){ 
                    $date = new DateTime($blog_res['blogDate']);
                    $day = $date->format('d');
                    $month = $date->format('F');
                    $year = $date->format('Y');
                if($blog_res['catImage']!=''){
                $blog_img=  getImage($blog_res['catImage'], 375, 250, $blog_res['catName'], "/uploaded-files/blog/images/");
                }else{
                    $blog_img= NO_IMG_URL;
                }
                $blog_shortdesc=str_ireplace('{companyName}',$admin_res['companyName'],$blog_res['catDesc']);
                ?>



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

                    <div class="blog-2">

                        <div class="blog-photo clip-home">

                            <img src="<?=$blog_img;?>" alt="<?= $blog_res['blogDname'];?>" title="<?= $blog_res['blogDname'];?>" class="img-fluid bp">

                            <!-- <div class="date-box">

                                <span>26</span>Sept

                            </div> -->

                        </div>

                        <div class="detail">

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

                            <p><?=$blog_shortdesc;?></p>

                            <a href="<?=site_url;?>/blog/<?=getValidFileName($blog_res['catName']);?>.htm" class="moreBtn" title="Read More">Read More</a>

                        </div>

                    </div>

                </div>
<?php } ?>


               



           



                



                

            </div>



        </div>

    </section>

    <?//php include 'app_clients.php'; ?>

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

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

</body>



</html>