ok

Mini Shell

Direktori : /home/importfo/public_html/aasthahealthplus.com/
Upload File :
Current File : /home/importfo/public_html/aasthahealthplus.com/blog_detail.php

<?php include ("admin/config.php");?>
<!DOCTYPE html>
<html>
<head>
<title>Aastha Health Plus</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width; initial-scale = 1.0;
maximum-scale=1.0; user-scalable=no" />

<link href="assets/css/core/bootstrap.min.css" rel="stylesheet" />

<link href="assets/css/external/font-awesome.min.css" rel="stylesheet" />
<link href="assets/css/external/jquery-ui.css" rel="stylesheet" />
<link href="assets/css/external/jquery-ui.theme.css" rel="stylesheet" />
<link href="assets/css/external/ytplayer.css" rel="stylesheet" />
<link href="assets/css/external/jquery.bxslider.css" rel="stylesheet" />
<link href="assets/css/external/yamm.css" rel="stylesheet" />
<link href="assets/css/external/slick.css" rel="stylesheet" />
<link href="assets/css/external/wfmi-style.css" rel="stylesheet" />
<link href="assets/css/external/lightbox.css" rel="stylesheet" />

<link href="assets/css/project/style.css" rel="stylesheet" />

<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700%7CRaleway:400,700" rel="stylesheet">
</head>
<body>


<?php include('header.php');?>


<section id="section-title" class="bg-alternative">
<div id="top-img-bg">
<h1 class="text-center">Blog Post</h1>
</div>
</section>


    <div id="single-blog-page" class="wide-100 blog-page-section division">
                <div class="container">
                    <div class="row">


                        <!-- SINGLE POST -->
                        <div class="col-lg-8">
                            <div class="single-blog-post pr-30">
                                 <?php
                             if(isset($_GET['slug']))
                           {
                              $slug=$_GET['slug'];
                            }
                            else
                            {
                              $slug=0;
                            }
                            $sql="SELECT * from blog where id='$slug' " ;
                            $res=mysqli_query($db,$sql);
                            $row=mysqli_fetch_array($res);
                            $post_date=$row['post_date'];
                            $post_by=$row['post_by'];
                            $image=$row['image'];
                            $post_desc=$row['post_desc'];
                            ?>


                            
                                <!-- BLOG POST IMAGE -->
                                <div class="blog-post-img mb-40">
                                    <a href=" <?php echo $row['title'];?>">
                <img src="admin/upload/<?php echo $row['image']; ?>" class="img-fluid img-featured" alt="Epic Egg Salad" title="" style:width="300px;" height="300px;" />      
                </a>    
                                </div>  


                                <!-- BLOG POST TEXT -->
                                <div class="sblog-post-txt">

                                    <!-- Post Title -->
                                  <center>  <h1 class="article-title"><?php echo $row['title'];?></h1></center>

                                   
                                    <!-- Post Text -->
                                    <h4><p class="mt-30">
                  <?php echo $row['post_desc']; ?> </p></h4>

                                    <!-- Text -->   
                                <!-- BLOG POST SHARE LINKS -->
                                    <div class="post-share-links">

                                        

                                    </div>  <!-- END BLOG POST SHARE -->
                                    

                                </div>  <!-- END BLOG POST TEXT -->


                                

                                <!-- RELATED POSTS -->
                                <div class="related-posts">

                                    <!-- Title -->  
                                    

                                    <div class="row">
                                        
                                        <!-- BLOG POST #1 -->
                                        <div class="col-md-6">
                                            <div class="blog-post">

                                                <!-- BLOG POST IMAGE -->
                                                
                                                <!-- BLOG POST TEXT -->
                                                
                                            </div>
                                        </div>  <!-- END  BLOG POST #1 -->


                                        <!-- BLOG POST #2 -->
                                        <div class="col-md-6">
                                            
                                        </div>  <!-- END  BLOG POST #2 -->

                                    </div>  <!-- End row -->

                                </div>  <!-- END RELATED POSTS -->


                
                            
                            </div>
                        </div>   <!-- END SINGLE POST -->                       

                        <!-- SIDEBAR -->
                        <aside id="sidebar" class="col-lg-4">



                            
                            <!-- BLOG CATEGORIES --> 
                            

                            <!-- POPULAR POSTS -->
                            <div class="popular-posts sidebar-div mb-50">
                                    
                                <!-- Title -->
                                <h3 class="h5-sm steelblue-color">Recent Posts</h3>
                                <br/>
                                <br/>
                                <?php
                                $sql="SELECT * from blog order by post_date DESC,id LIMIT 3";
                                 $res=mysqli_query($db,$sql);
                                while($row=mysqli_fetch_array($res))
                                {
                                 ?>  

                                <ul class="popular-posts">
                                
                                    <!-- Popular post #1 -->
                                    <a href="blog_detail.php?slug=<?php echo $row['id']; ?>">
                                    <li class="">
                                        <h4>
                                  <?php echo $row['title']; ?></h4></li></a>

                                        <!-- Image -->
                       <a href="blog_detail.php?slug=<?php echo $row['id']; ?>">        
                <img src="admin/upload/<?php echo $row['image']; ?>" style="height:150px;width:200px"  class="img-fluid img-featured" alt="Epic Egg Salad" title="" />      </a>
                    <!-- Text -->
                                        
                                    </li>
                                    
                                
                                </ul>
<?php }?>

                            </div>      


                        </aside>    <!-- END SIDEBAR -->

                        
                    </div>  <!-- End row -->    
                 </div>  <!-- End container -->
            </div>  <!-- END BLOG PAGE CONTENT -->

<?php include('footer.php'); ?>

<section id="go-back-top">
<a class="scroll" href="#main-menu">
<i class="fa fa-angle-up"></i>
</a>
</section>

<script data-cfasync="false" src="../cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script src="assets/js/core/jquery.min.js"></script>
<script src="assets/js/core/bootstrap.min.js"></script>
<script src="assets/js/external/jquery.backstretch.min.js"></script>
<script src="assets/js/external/jquery.countTo.js"></script>
<script src="assets/js/external/jquery.easing.1.3.js"></script>
<script src="assets/js/external/jquery.mb.YTPlayer.js"></script>
<script src="assets/js/external/waypoints.min.js"></script>
<script src="assets/js/external/jquery.bxslider.min.js"></script>
<script src="assets/js/external/slick.min.js"></script>
<script src="assets/js/external/jquery-ui.js"></script>
<script src="assets/js/external/lightbox-2.6.min.js"></script>

<script src="assets/js/project/script.js"></script>
</body>
</html>


Zerion Mini Shell 1.0