📁 File Manager
Editing:
/home/wedigitalindia/www/kirmson.com/blog.php
<?php include('include/head.php'); ?> <body> <?php include('include/header.php'); ?> <!-- ==== service-detail banner start ==== --> <section class="whykrimson"> <div class="service-banner-text"> <h1>Blog </h1> <p>Electrical Power Solutions</p> </div> </section> <!-- ==== service-detail banner end ==== --> <!-- ===== blog section start ==== --> <section class="user-blog"> <div class="container"> <!-- <div class="text-center"> <h5 class="section-title ff-secondary text-center text-primary fw-normal">Our Blog</h5> <h1 class="mb-5">Our Blog</h1> </div> --> <div class="row"> <?php $blog = mysqli_query($conn, "SELECT * FROM `blogs` order by id DESC"); while($rol = mysqli_fetch_array($blog)) { $title = $rol['name']; $banner = $rol['banner']; $short_description = $rol['short_description']; $slug = $rol['slug']; ?> <div class="col-md-4"> <div class="item2"> <div class="blog-grid"> <div class="img-date"> <img src="<?php path(); ?>/admin/assets/images/blog-image/<?php echo $banner; ?>" width="100%" style="height: 250px;"> <!--<div class="date-blog">May--> <!-- <br /> 20,--> <!--</div>--> </div> <div class="discretion-blog"> <a href="<?php path(); ?>/blogs/<?php echo $slug; ?>" style="text-decoration: none;"> <h4><?php echo $title; ?></h4> </a> <!-- <p class="para"><?php //echo $short_description; ?></p>--> <!--<a class="btn" href="blog-details.php">Read more</a>--> </div> </div> </div> </div> <?php } ?> </div> </div> </section> <!-- ==== blog section end ==== --> <?php include('include/footer.php'); ?> </body> </html>
Save
Cancel