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

if ($moduleCheckData['status']==1){
?>
  <section class="tp-service-area-three pt-115 pb-100 bg-gray-light">
            <div class="container">
                <div class="row">
                    <div class="col-12">
                        <div class="section-title-wrapper text-center mb-55 wow fadeInUp" data-wow-delay=".3s">
                            
                            <h2 class="tp-section-title-two color-theme-blue"><?php echo $langArray['SERVICES_HEAD']; ?></h2>
                            <h5 class="tp-section-subtitle-three color-theme-blue "><?php echo $langArray['SERVICES_DESC']; ?></h5>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <?php
            $postAsk->execute(array(
              'post_type' => 'post_services',
              'language'  => $getLangCheck['language_id']
            ));
            while ($servicesCheck=$postAsk->fetch(PDO::FETCH_ASSOC)){
              $x = explode("/", $servicesCheck['banner']);
              $y = explode('.', $x[1]);
          ?>
                    <div class="col-lg-6">
                        <div class="tp-service-three mb-30 wow fadeInUp" data-wow-delay=".6s">
                            <a href="<?php echo $servicesCheck['seo_url']; ?>">
                            <div class="tp-service-three-img">
                                <img src="<?php echo "uploads/".$y[0].'-500x333'.'.'.$y[1]; ?>" class="img-fluid" alt="<?php echo $servicesCheck['title']; ?>">
                               
                            </div></a>
                            <div class="tp-service-three-text fix">
                                <h4 class="tp-service-three-title mb-20"><a href="<?php echo $servicesCheck['seo_url']; ?>"><?php echo $servicesCheck['title']; ?></a></h4>
                                <p class="mb-30"><?php echo strip_tags(shorter($servicesCheck['content'], 118)); ?></p>
                                <div class="tp-service-three-text-btn">
                                    <a href="<?php echo $servicesCheck['seo_url']; ?>" class="yellow-btn"><i class="flaticon-enter"></i><?= $langArray['detay']; ?></a>
                                </div>
                            </div>
                        </div>
                    </div>   <?php } ?>
                 </div>
            </div>
        </section>

<?php } ?>
