<?php
include_once("include/main.inc.php");
$hover = 'blog';
$blog_res = mysqli_query($dbcon, "select * from blog_tbl");
$page_metatitle = "Our Blogs - Mangla Plastic Industries";
$page_metakey ="Our Blogs - Mangla Plastic Industries";
$page_metadesc = "Our Blogs - Mangla Plastic Industries";
?>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <?php include "top.php"; ?>
</head>

<body>
  <div class="webpulse-main-wrapper wrapper-wide" id="top">
    <?php include "header.php"; ?>
    <div class="clearfix"></div>
    <div class="heading_banner about_us_banner" style="background-image: url('<?= SITE_URL_PATH; ?>/images/blog.jpg')">
      <div class="container">
        <div class="row">
          <div class="col-sm-12 col-lg-12 col-md-12 col-xl-12 col-xxl-12 text-center">
            <div class="cat_title">Our Blogs</div>
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
    </div>
    <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-xs-12 col-12">
            <ul class="breadcrumb">
              <li><a href="<?= SITE_URL_PATH; ?>/" title="Home">Home</a></li>
              <li class="active">Our Blogs</li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <section class="blog_page webpulse_tm_universal_title_holder">
      <div class="container">
        <div class="row">
          <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-xs-12 col-12">
            <div class="blog_left">
              <div class="title_holder_inner">
                <h1>Our Blogs</h1>
              </div>
              <div class="row g-3">
                <?php while ($blog_sql = mysqli_fetch_array($blog_res)) { ?>
                  <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-12 col-xs-12 col-12">
                    <div class="blog_grid h-100">
                      <a href="<?= SITE_URL_PATH; ?>/blog/<?= getValidFileName($blog_sql['catName']); ?>.htm" title="<?php echo $blog_sql['blogDname']; ?>">
                        <div class="image">
                          <img src="<?= getImage($blog_sql['catImage'], 471, 290, $blog_sql['blogDname'], "/uploaded-files/blog/images/"); ?>" alt="<?php echo $blog_sql['blogDname']; ?>" title="<?php echo $blog_sql['blogDname']; ?>">
                        </div>
                      </a>
                      <div class="article_title ">
                        <hr class="article_line">
                        <h2 class="text-limit-100px fs-5 mb-2" >
                          <a href="<?= SITE_URL_PATH; ?>/blog/<?= getValidFileName($blog_sql['catName']); ?>.htm" title="<?php echo $blog_sql['blogDname']; ?>"><?php echo $blog_sql['blogDname']; ?></a>
                        </h2>
                        <div class="article_desc"><?php echo html_entity_decode(substr($blog_sql['catDesc'], 0, 311)); ?>...</div>


                      </div>
                    </div>
                  </div>
                <?php } ?>
                <div class="clearfix"></div>
              </div>
            </div>
          </div>
          <!-- <?php include 'blog-left.php'; ?> -->
        </div>
      </div>
    </section>

    <?php include "award_video.php"; ?>
    <?php include 'testimonail.php'; ?>
    <?php include "footer.php"; ?>
  </div>
  <?php include "bottom.php"; ?>
</body>

</html>