
<?php 
include('admin/master/config.php');
    	$query=mysqli_query($conn, "SELECT * FROM `add-blog` order by id desc");

?>
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="author" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>IGS BPO - Blog</title>
<?php include 'inc/hscript.php';?>

</head>


<body>

    <!--page start-->
    <div class="page">
      <?php include 'inc/header.php';?>
        <!-- page-title -->
        <div class="ttm-page-title-row">
            <div class="ttm-page-title-row-inner">
                <div class="container">
                    <div class="row align-items-center">
                        <div class="col-lg-12">
                            <div class="page-title-heading ttm-textcolor-white">
                                <h2 class="title">blog</h2>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="breadcrumb-wrapper ttm-bgcolor-grey">
                    <span>
                        <a title="Homepage" href="index.php">Home</a>
                    </span>
                    <span class="current">blog</span>
                </div>
            </div>                    
        </div><!-- page-title end-->


    <!--site-main start-->
    <div class="site-main">

        <!--grid-section-->
        <section class="ttm-row grid-section clearfix">
            <div class="container">
                <!-- row -->
                <div class="row">
                    
                    
                    <?php 
                                            
                         while($row=mysqli_fetch_array($query)){
                                                    
                      ?>
                    <div class="ttm-box-col-wrapper col-lg-4">
                        <!-- featured-imagebox-post -->
                        <div class="featured-imagebox featured-imagebox-post style1">
                            <div class="ttm-post-thumbnail featured-thumbnail">
                                <div class="post-meta">
                                    <span class="ttm-meta-line post-date"><i class="fa fa-calendar"></i><?= date('d M Y',strtotime($row['created'])) ?></span>
                                    <span class="ttm-meta-line byline"><i class="fa fa-user"></i>Admin</span>
                                </div>
                                <img class="img-fluid" src="admin/master/blog-image/<?=$row['image']?>" alt="image">
                            </div>
                            <div class="featured-content">
                                <div class="featured-title">
                                    <h5><a href="https://www.igsbpo.in/blog/<?php echo $row['slug'] ?>"><?php //echo substr( $row['title'], 0, strrpos(substr( $row['title'], 0, 40), ' ')) . '...'; ?><?= $row['title'] ?></a></h5>
                                </div>
                                <!--<div class="featured-desc">-->
                                    <p><?php //echo $row['text'] ?></p>
                                <!--</div>-->
                                <div class="post_box-footer">
                                    <div class="post-link">
                                        <a href="https://www.igsbpo.in/blog/<?php echo $row['slug'] ?>"><i class="ti ti-angle-right"></i></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>	<?php  } ?>	
                    
                  
                    
                    
                    
                </div>
            </div>
        </section>
        <!--grid-section end-->


    </div><!--site-main end-->
<?php include 'inc/footer.php';?>
</div><!-- page end -->

<?php include 'inc/fscript.php';?>

</body>

</html>