<?php
  $moduleAskData=$db->prepare("SELECT * FROM modules where module_id=:module_id");
  $moduleAskData->execute(array(
    'module_id' => 8
    ));
  $moduleCheckData=$moduleAskData->fetch(PDO::FETCH_ASSOC);

if ($moduleCheckData['status']==1){
?>
 <section class="tp-blog-area pt-90 pb-85">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="section-title-wrapper text-center mb-55 wow fadeInUp" data-wow-delay=".2s">
                            
                            <h2 class="tp-section-title mb-25"><?php echo  $langArray['BLOG_HEAD']; ?></h2>
                            <h5 class="tp-section-subtitle common-yellow-shape mb-20"><?php echo  $langArray['BLOG_DESC']; ?></h5>
                        </div>
                    </div>
                </div>
                <div class="row">
                   <?php
            $homeNewsAsk->execute(array(
              'status'             => 1,
              'post_type'          => 'post_post',
              'home_status'        => 1,
              'language'           => $getLangCheck['language_id']
            ));
            while ($homeNewsCheck=$homeNewsAsk->fetch(PDO::FETCH_ASSOC)){
              $x = explode("/", $homeNewsCheck['banner']);
              $y = explode('.', $x[1]);
            ?>
                    <div class="col-lg-4 col-md-6">
                        <div class="tp-blog mb-30 wow fadeInUp" data-wow-delay=".4s">
                            <div class="tp-blog-img mb-25">
                                <a href="<?php echo $homeNewsCheck['seo_url']; ?>"><img src="<?php echo "uploads/".$y[0].'-500x333'.'.'.$y[1]; ?>" class="img-fluid" alt="<?php echo $homeNewsCheck['title']; ?>"></a>
                            </div>
                            <div class="tp-blog-text">
                                <div class="tp-blog-meta mb-10">
                                    <ul>
                                        <li><a href="<?php echo $homeNewsCheck['seo_url']; ?>">// <?php
                                $dates = explode(' ',$homeNewsCheck['dates']);

                                echo   $dates[0];

                                 ?></a></li>
                                        
                                    </ul>
                                </div>
                                <h4 class="tp-blog-title mb-20"><a href="<?php echo $homeNewsCheck['seo_url']; ?>"><?php echo $homeNewsCheck['title']; ?></a></h4>
                                <div class="tp-blog-link">
                                    <a href="<?php echo $homeNewsCheck['seo_url']; ?>"><i class="flaticon-enter"></i> <?= $langArray['READ_MORE']; ?></a>
                                </div>
                            </div>
                        </div>
                    </div><?php } ?>
                    
                </div>
            </div>
        </section>

<?php } ?>
