📁 File Manager
Editing:
/home/wedigitalindia/public_html/demo.wedigitalindia.com/koscove.co.in/blog.php
<!DOCTYPE html> <html lang="en"> <head> <?php include_once("assets/include/head.php")?> </head> <body> <?php include_once("assets/include/header.php")?> <!-- section subbanner started... --> <section class="sub-banner"> <picture> <source media="(max-width:767px)" srcset="assets/images/Blog-Mobile-View.webp"> <source media="(min-width:768px)" srcset="assets/images/Blog.webp"> <img src="#" alt="banner-img"> </picture> <nav aria-label="breadcrumb"> <div class="container"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="<?php path();?>">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Blog</li> </ol> </div> </nav> </section> <!-- section subbanner ended... --> <!-- section blog_home started... --> <section class="blog_home py-40"> <div class="container"> <h3 class="title mb-5 text-center">New Featured <span>Posts</span></h3> <div class="row"> <div class="col-lg-4"> <div class="right_top"> <div class="sidebar"> <div class="sidebar_box"> <h5 class="title2">Popular Posts</h5> <?php $qu1=mysqli_query($con,"SELECT * FROM blogs"); while( $sho=mysqli_fetch_array($qu1)) { $title1 = $sho['name']; $title1 = str_replace(" ","-", $title1); $date1 = $sho['created_at']; $time1 = strtotime($date1); $day1 = date('d M Y', $time1); ?> <div class="recent-post"> <div class="recent-img"> <img src="assets/images/blog/<?php echo $sho['banner']?>" alt=""> </div> <div class="recent-content"> <h6><a href="<?php path(); ?>/blogs/<?php echo $sho['slug']; ?>"><?php echo $sho['name']; ?></a></h6> <a href="<?php path(); ?>/blogs/<?php echo $sho['slug']; ?>" class="btn btn-primary">Read More</a> </div> </div> <?php } ?> </div> </div> </div> </div> <div class="col-lg-8"> <div class="row"> <?php $qu=mysqli_query($con,"SELECT * FROM blogs"); while( $show=mysqli_fetch_array($qu)) { $title = $show['name']; $title = str_replace(" ","-", $title); $date = $show['created_at']; $time = strtotime($date); $day = date('d M Y', $time); ?> <div class="col-md-6"> <div class="blog-box mb-4"> <a href="<?php path(); ?>/blogs/<?php echo $show['slug']; ?>" class="blog-img"><img src="assets/images/blog/<?php echo $show['banner']?>" alt=""></a> <div class="blog-content"> <h5><a href="<?php path(); ?>/blogs/<?php echo $show['slug']; ?>" class="d-block"><?php echo $show['name'] ?></a></h5> <?php echo $show['short_description'] ?> </div> </div> </div> <?php } ?> </div> </div> </div> </div> </section> <!-- section blog_home ended... --> <?php include_once("assets/include/footer.php")?> </body> </html>
Save
Cancel