<?php 
include_once("include/main.inc.php"); 
$hover='blog';
$blog_query = mysqli_query($GLOBALS['dbconn'], "select catImage,catName,blogDname,catDesc,blog_written from blog_tbl");
$page_metatitle="Blogs - ".$admin_res['companyName'];
$page_metakey="Blogs - ".$admin_res['companyName'];
$page_metadesc="Blogs - ".$admin_res['companyName'];
?>
<!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"; ?>

    <div class="heading_banner" style="background-image: url(<?=site_url;?>/designer/images/aboutsbanner.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">Our Blogs</div>
                    <div class="clearfix"></div>
                    <div class="cat_title2">We Are Available For You</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 class="active">Our Blogs</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div class="home_latest_blog">
        <div class="container pb-3">
            <h1 class="h2_title_1 wow fadeInDown animated" data-wow-delay=".1s">Our Latest Blogs</h1>
            <p class="mx-auto text-white text-center mb-4 w-75">Stay informed with our latest blogs covering trends in swing door wardrobes, laminate doors, office workstations, acrylic modular kitchens, minimal kitchen designs, and office sofas. Explore insightful articles as inspiration for your next project.
            </p>
            <div class="row">
            <?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-4 col-xl-4 col-lg-4 col-md-6 col-sm-12 col-12 mb-3 wow zoomIn animated"
                    data-wow-delay=".2s" style="visibility: visible; animation-delay: 0.2s; animation-name: zoomIn;">
                    <article class="post clearfix">
                        <div class="featured-post">
                            <img src="<?=$blog_img;?>" alt="<?= $blog_res['blogDname'];?>" title="<?= $blog_res['blogDname'];?>">
                            <!-- <ul class="post-comment">
                                <li class="date"><span class="day"> 14 </span></li>
                                <li class="comment"> Jan</li>
                            </ul> -->
                        </div>
                        <div class="content-post">
                            <h2 class="title-post"><a href="<?=site_url;?>/blog/<?=getValidFileName($blog_res['catName']);?>.htm" title="<?= $blog_res['blogDname'];?>"><?= $blog_res['blogDname'];?></a></h2>

                            <div class="entry-post">
                            <p> <?=$blog_shortdesc;?>...</p> 
                                <a class="read_more" href="<?=site_url;?>/blog/<?=getValidFileName($blog_res['catName']);?>.htm" title="Read More"><span>Read More</span> </a>
                            </div>
                        </div>
                    </article>
                </div>
                <?php }?>

                

            </div>
        </div>
    </div>




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

</html>