📁 File Manager
Editing:
/home/wedigitalindia/public_html/demo.wedigitalindia.com/ifuel_energy/blog.php
<?php include_once('include/header.php'); ?> <!-- Hero Start --> <div class="container-fluid bg-primary p-5 bg-hero mb-5 section-container " id="for-height"> <div class="row py-5"> <div class="col-12 text-center"> <h3 class="text-white mb-md-4">Blog</h3> <a href="index.php" class="text-light me-1">Home</a><span>/</span> <a href="blog.php" class="text-primary ">Blog</a> </div> </div> </div> <!-- Hero End --> <div class="container"> <!--<div class="mb-5 text-center">--> <!-- <h6 class="text-primary text-uppercase">Our Blog</h6>--> <!-- <h2 class="fw-bold text-purple">Latest Blog Post</h2>--> <!--</div>--> <div class="row"> <?php $blog = mysqli_query($conn, "SELECT * FROM `blogs` ORDER BY id DESC"); while($blo = mysqli_fetch_array($blog)) { $name = $blo['name']; $slug = $blo['slug']; $banner = $blo['banner']; $short_description = $blo['short_description']; ?> <div class="col-lg-4 mb-5"> <div class="blog-item"> <div class="position-relative overflow-hidden rounded-top"> <img class="img-fluid w-100 bg-light" src="<?php path() ?>/admin/assets/images/blog-image/<?php echo $banner; ?>" alt=""> </div> <div class="pt-3"> <a href="<?php path(); ?>/blogs/<?php echo $slug; ?>" class=" text-secondary"> <h5 class="text-primary" style="font-weight: bold !important;"> <?php echo $name; ?></h5> </a> <p class="para"><?php echo $short_description; ?></p> <a href="<?php path(); ?>/blogs/<?php echo $slug; ?>" class=" text-primary font-weight-medium">Read More <i class="bi bi-arrow-right"></i></a> </div> </div> </div> <?php } ?> </div> </div> <?php include_once('include/footer.php'); ?>
Save
Cancel