<?php 
include_once("include/main.inc.php"); 
$hover='blog';
$blog_query = mysqli_query($GLOBALS['dbconn'], "select * from blog_tbl");
$page_metatitle="Blogs- ".COMPANY_NAME;
$page_metakey="Blogs- ".COMPANY_NAME;
$page_metadesc="Blogs- ".COMPANY_NAME;
?>
<!DOCTYPE html>
<html lang="zxx">

<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/about/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 Blogs-
                        <?=COMPANY_NAME;?>
                    </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 class="active">Our Blogs</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <section class="blog_page">
        <div class="container">
            <h2 class="title_2">Our Blogs</h2>
            <div class="row">
                <div class="row">
                    <?php
             while($blog_res = mysqli_fetch_assoc($blog_query)){
              
                $date = new DateTime($blog_res['blogDate']);
                $day = $date->format('d');
                $month = $date->format('M');
                $year = $date->format('Y'); ?>
                    <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-6 col-12">
                        <div class="blog-2">
                            <a href="<?=site_url;?>/blog/<?=getValidFileName($blog_res['catName']);?>.htm"
                                title="<?php echo $blog_res['blogDname'];?>">
                                <div class="blog-photo clip-home">
                                    <img src="<?=site_url;?>/uploaded-files/blog/images/<?=$blog_res['catImage']; ?>" alt="<?php echo $blog_res['blogDname'];?>" title="<?php echo $blog_res['blogDname'];?>" class="img-fluid bp">
                                    <!-- <div class="date-box">
                                        <span>
                                            <?=$day;?>
                                        </span>
                                        <?=$month;?>
                                    </div> -->
                                </div>
                            </a>
                            <div class="detail">
                                <div class="blogheadings"><a href="<?=site_url;?>/blog/<?=getValidFileName($blog_res['catName']);?>.htm"
                                        title="<?php echo $blog_res['blogDname'];?>">
                                        <?php echo $blog_res['blogDname'];?>
                                    </a></div>
                                <p>
                                    <?=html_entity_decode(substr($blog_res['catDesc'],0,150));?>...
                                </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>
        </div>
    </section>
    <?php include "app_faq.php"; ?>
    <?php include "app_footer.php"; ?>
    <?php include "app_bottom.php"; ?>
</body>

</html>