<?php

include('include/main.inc.php');

$web_det_query = "Select * from admin_details where slno = '1'";

$res_web = $dbconn->query($web_det_query);

$web_details = $res_web->fetch_assoc();

$page_metatitle = $web_details['companyName'].' - Blogs';

$page_metadesc = $web_details['companyName'].' - Blogs';

$page_metakey = $web_details['companyName'].' - Blogs';



?>

<!DOCTYPE html>

<html lang="en">



<head>

    <meta charset="utf-8">

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

    <title><?= $page_metatitle; ?></title>

    <meta name="description" content="<?= $page_metadesc; ?>">

    <meta name="keywords" content="<?= $page_metakey; ?>" >

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

</head>

<body>

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



    <section class="pageBanner" style="background-image:url('<?= site_url; ?>/designer/images/blog_bg.jpg')">

        <div class="container">

            <div class="pagebannerWrap">

                <h1 class="pagebanner_heading">Our Blogs</h1>

            </div>

        </div>

    </section>



        <!-- Quote Box -->

    <section class="w-p-s-home-feture">

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

                        <div class="page_breadcrumb">

                            <ul>

                                <li><a href="<?= site_url; ?>" title="Home">Home</a></li>

                                <li>/</li>

                                <li>Blogs</li>

                            </ul>

                        </div>

                    </div>

                </div>

            </div>

        </div>

    </section>



    <div class="blog_section blog_page">

        <div class="container">

                    <!-- <span class="SubHeadeing"></span> -->

                    <h2 class="sec_title_1">Empowering Minds through Knowledge Sharing</h2>   

            <div class="row">

                <?php

                        $sel_blog_query = "select catImage,blogDname,catName,blogDate,catDesc from blog_tbl order by catID desc";

                        $res_blog = $dbconn->query($sel_blog_query);

                        if($res_blog->num_rows > 0){

                            $sno = 0;

                            while($blogs = $res_blog->fetch_assoc()){

                            $blog_href = str_ireplace(" ", "-", $blogs['catName']);

                            $sno++;

                    ?>

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

                    <a href="<?= site_url; ?>/blog/<?= strtolower($blog_href); ?>.htm" title="<?= $blogs['blogDname']; ?>"><div class="blog_item">

                        <div class="blog_imagebox">

                            <img src="<?= site_url; ?>/uploaded-files/blog/images/<?= $blogs['catImage']; ?>" title="<?= $blogs['blogDname']; ?>" alt="<?= $blogs['blogDname']; ?>">

                            <span class="blog_date"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-calendar-week-fill" viewBox="0 0 16 16"> <path d="M4 .5a.5.5 0 0 0-1 0V1H2a2 2 0 0 0-2 2v1h16V3a2 2 0 0 0-2-2h-1V.5a.5.5 0 0 0-1 0V1H4V.5zM16 14V5H0v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2zM9.5 7h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zm3 0h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zM2 10.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1zm3.5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5z"/> </svg> <?= date('d M Y', strtotime($blogs['blogDate'])); ?></span>

                        </div>

                        <div class="blog_content">

                            <h5><a href="<?= site_url; ?>/blog/<?= strtolower($blog_href); ?>.htm" title="<?= $blogs['blogDname']; ?>"><?= $blogs['blogDname']; ?></a></h5>

                            <p><?= substr_replace($blogs['catDesc'], '...', '300'); ?></p>

                            <a href="<?= site_url; ?>/blog/<?= strtolower($blog_href); ?>.htm" class="read_more1" title="Read More">Read More</a>

                        </div>

                    </div></a>               

                </div>

                <?php } } ?>

            </div>

        </div>

    </div>



    <div class="clear"></div>



    <?//php include "app_testimonials.php"; ?>

    <?//php include "app_faq.php"; ?>

    <?//php include "app_clients.php"; ?>

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

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

</body>

</html>