<?php 
include_once("include/main.inc.php"); 
$hover='blog';
$blog_query = mysqli_query($GLOBALS['dbconn'], "select catImage,catName,blogDname,catDesc,blog_written,blogDate 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"; ?>

    <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">Our Blog</h1>
                    <div class="clearfix"></div>
                    <!-- <div class="cat_title2">We Are Available For You</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 class="active">Our Blog</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>


    <section class="home_latest_blog">
        <div class="container">
            <h2 class="section-title-2 text-center wow fadeInDown animated" data-wow-delay=".1s"><span
                    class="line-divider-separator">
                </span> Our <span class="outline-style-2">Latest</span> Blog <br></h2>
            <p class="text-center">Dive into our latest blogs for insights on cutting-edge BIM trends, innovative design
                strategies, and expert advice. Stay informed and inspired with fresh perspectives and industry updates
                delivered straight to you. </p>
            <div class="row">

                <?php 
                     while($blog_res=mysqli_fetch_array($blog_query)){ 
                     if($blog_res['catImage']!=''){
                     $blog_img=  getImage($blog_res['catImage'], 415, 415, $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="news-block_one col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12 wow zoomIn"
                    data-wow-delay=".2s">
                    <div class="news-block_one-image">
                        <img src="<?=$blog_img;?>" alt="<?= $blog_res['blogDname'];?>"
                            title="<?= $blog_res['blogDname'];?>">

                    </div>
                    <div class="news-block_one_b">
                        <div class="news-block_one-content">
                            <!-- <div class="news-block_one-title">June 25, 2024</div> -->
                            <div class="news-block_one-heading"><a
                                    href="<?=site_url;?>/blog/<?=getValidFileName($blog_res['catName']);?>.htm"
                                    title="<?= $blog_res['blogDname'];?>"><?= $blog_res['blogDname'];?></a></div>
                            <div class="news-block_one-meta">
                                <p> <?= substr($blog_res['catDesc'], 0, 115); ?>...</p>
                                <a class="read_more"
                                    href="<?=site_url;?>/blog/<?=getValidFileName($blog_res['catName']);?>.htm"
                                    title="Read More"><span>Read More</span> </a>
                            </div>
                        </div>
                    </div>
                </div>

                <?php } ?>

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


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

</html>