<section class="blog-wrapper news-wrapper section-padding">
        <div class="container">
            <div class="row">
                <div class="col-12 col-lg-8">
                    <div class="blog-post-details border-wrap">
                        <div class="single-blog-post post-details">                            
                            <div class="post-content">
                               <img src="resimler/<?=$haberler['resim']?>" alt="<?=$haberler['adi']?>">
                                <h2><?=$haberler['adi']?></h2>
                                
                                <p><?=$haberler['aciklama']?></p>
                               
                                                            
                               
                            </div>
                        </div>
                       

                        
                    </div>
                </div>
                <div class="col-12 col-lg-4">
                    <div class="main-sidebar">
                        
                      
                        <div class="single-sidebar-widget">
                            <div class="wid-title">
                                <h3>Diğer Bloglar </h3>
                            </div>
                            <div class="popular-posts">
                            
                            <?php
                            $dierblogcek=$db->query("select * from haberler where durum='on' and not id='$id'")->fetchAll(PDO::FETCH_ASSOC);
							foreach($dierblogcek as $dierblog){
							?>
                                <div class="single-post-item">
                                    <div class="thumb bg-cover" style="background-image: url('resimler/<?=$dierblog['resim']?>')"></div>
                                    <div class="post-content">
                                        <h5><a href="<?=$dierblog['seo']?>"><?=$dierblog['adi']?></a></h5>
                                        <div class="post-date">
                                            <i class="far fa-calendar-alt"></i><?=$dierblog['eklenme_tarihi']?>
                                        </div>
                                    </div>
                                </div>
                              <?php }?>
                              
                              
                            </div>
                        </div>
                        
                        
                        
                        
                        
                    </div>
                </div>
            </div>
        </div>
    </section>