<?php 

include_once("include/main.inc.php"); 

$hover='blog';

$blog_query = mysqli_query($GLOBALS['dbconn'], "select blogDate,catImage,catName,blogDname,catDesc from blog_tbl");

$page_metatitle="Blogs - ".COMPANY_NAME;

$page_metakey="Blogs - ".COMPANY_NAME;

$page_metadesc="Blogs - ".COMPANY_NAME;

?>

<!DOCTYPE html>

<html lang="en">



<head>

    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

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

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

</head>



<body>



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







    <!-- Heading Banner--->

    <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 Blogs</h1>

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

                </div>

            </div>

        </div>

    </section>



    <!-- Breadcrumb--->

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

    </section>







    <!-- Home About--->

    <section class="blog_page py-5">

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

                        <h2>Blogs</h2>

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

                        <div class="row">

                        <?php while($blog_res=mysqli_fetch_assoc($blog_query)){ 

                                

                                if($blog_res['catImage']!=''){

                                 $blog_img=  getImage($blog_res['catImage'], 356, 356, $blog_res['catName'], "/uploaded-files/blog/images/");

                                }else{

                                    $blog_img= NO_IMG_URL;

                                }

                                ?>

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

                                <div class="single-post2 wow fadeInLeft" data-wow-delay=".3s">

                                    <div class="blog-thumb2">

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

                                    </div>

                                    <div class="blog-content2">

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

                                        <p><?= html_entity_decode(substr($blog_res['catDesc'],0,100));?>...</p>

                                        <a class="read_more" href="<?=site_url;?>/blog/<?=getValidFileName($blog_res['catName']);?>.htm" tabindex="0" title="MORE READ">MORE READ</a>

                                    </div>

                                </div>

                            </div>

                            <?php } ?>

                         

                        </div>

                    </div>

                </div>

            </div>

        </div>

    </section>



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

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

</body>



</html>