<?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.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">
                    <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;?>/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="title_1"><?=$blogdisplay;?></div>
        <div class="clearfix"></div>
            <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">
                       

                        <span class='st_facebook'></span>
                        <span class='st_twitter'></span>
                        <span class='st_instagram'></span>
                        <span class='st_pinterest'></span>
                        <span class='st_linkedin'></span>
                        <span class='st_email'></span>
                        <span class='st_whatsapp'></span>
                        <script>
                            var switchTo5x = true;
                        </script>
                        <script id="st_insights_js" src="http://w.sharethis.com/button/buttons.js?publisher=c753f626-1376-4cf4-9b90-03d3c1fcf65e&product=widget"></script>
                        <script>
                            stLight.options({
                                publisher: "c753f626-1376-4cf4-9b90-03d3c1fcf65e",
                                doNotHash: false,
                                doNotCopy: false,
                                hashAddressBar: false
                            });
                        </script>
                        <div class="blog_details1">
                            <div class="blog_details_img">
                                <img src="<?=getImage($res_latest['catImage'], 1700, 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"></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>

    <?php include "app_footer.php"; ?>
    <?php include "app_bottom.php"; ?>
</body>

</html>