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

if ($moduleCheckData['status']==1){
?>
<div class="container">
                <div class="row align-items-center">
                    <div class="col-xl-4 col-lg-4 col-md-6">
                        <div class="tp-project-title-wrapper wow fadeInUp" data-wow-delay=".2s">
                            <h5 class="tp-section-subtitle-three mb-20"><?php echo $langArray['PROJECT_DESC']; ?></h5>
                            <h2 class="tp-section-title-two color-theme-blue mb-45"><?php echo $langArray['PROJECT_HEAD']; ?></h2>
                            <div class="tp-project-title-btn">
                                <a href="project-details.html" class="yellow-btn"><i class="flaticon-enter"></i> More Project</a>
                            </div>
                        </div>
                    </div>
                    <?php
        $homeProjectAsk->execute(array(
          'post_type'       => 'post_projects',
          'status'          => 1,
          'home_status'     => 1,
          'language'        => $getLangCheck['language_id']
        ));
        while ($homeProjectCheck=$homeProjectAsk->fetch(PDO::FETCH_ASSOC)){
          $x = explode("/", $homeProjectCheck['banner']);
          $y = explode('.', $x[1]);
      ?>
                    <div class="col-xl-4 col-lg-4 col-md-6">
                        <div class="tp-project-three mb-30 wow fadeInUp" data-wow-delay=".4s">
                            <div class="tp-project-three-img">
                                <a href="<?php echo $homeProjectCheck['seo_url']; ?>">
                                <img src="<?php echo $homeProjectCheck['banner']; ?>" class="img" alt="<?php echo $homeProjectCheck['title']; ?>"></a>
                                <div class="tp-project-three-img-overlay">
                                   <div class="tp-project-three-img-overlay-text">
                                        <div class="tp-project-three-img-overlay-text-icon">
                                            <a href="<?php echo $homeProjectCheck['seo_url']; ?>" ><i class="fal fa-plus"></i></a>
                                        </div>
                                        <h4 class="tp-project-three-img-overlay-title"><a href="<?php echo $homeProjectCheck['seo_url']; ?>"><?php echo $homeProjectCheck['title']; ?></a></h4>
                                   </div>
                                </div>
                            </div>
                        </div>
                    </div><?php } ?>
             
                </div>
            </div>
 

<?php } ?>
