<?php
  $getPostAsk->execute(array(
    'seo_url'    => $_GET["seo_url"],
    'post_type'  => 'post_Gallery'
  ));
  $postDataCheck=$getPostAsk->fetch(PDO::FETCH_ASSOC);
?>
     <div class="tp-page-title-area pt-180 pb-185 position-relative fix" data-background="<?php echo $postDataCheck['banner']; ?>">
            <div class="tp-custom-container">
                <div class="row">
                    <div class="col-12">
                        <div class="tp-page-title z-index">
                            <h2 class="breadcrumb-title"> <span><?php echo $postDataCheck['title']; ?></span></h2>
                            <div class="breadcrumb-menu">
                                <nav class="breadcrumb-trail breadcrumbs">
                                    <ul class="trail-items">
                                        <li class="trail-item trail-begin"><a href="<?php echo $generalSettingCheck['site_url']; ?>"><?php echo $langArray['LINK_HOME']; ?></a>
                                        </li>
                                        <li class="trail-item trail-end"><span><?php echo $postDataCheck['title']; ?></span></li>
                                    </ul>
                                </nav>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
           <div class="tp-prjects-area pt-120 pb-120">
            <div class="container">
         
                <div class="row pb-50">
                    <div class="col-12">
                        <div class="tp-prjects-tab-content">
                            <div class="tab-content" id="myTabContent">
                                <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
                                    <div class="row">
                                       <h2><?php echo $postDataCheck['title']; ?></h2>
            <p> <?php echo $postDataCheck['content']; ?></p>
                   <?php
           $typeandid = 'image_gallery-'.$postDataCheck['post_id'];
           $allMediaAsk->execute(array(
             'gallery_type_id'        => $typeandid
           ));
           while ($allTypeCheck=$allMediaAsk->fetch(PDO::FETCH_ASSOC)){
        ?>
                                        <div class="col-lg-4 col-md-6">
                                            <div class="tp-project z-index mb-30">
                                                <div class="tp-project-img">
                                                    <a href="<?php echo $allTypeCheck['media_large']; ?>" data-fancybox="gallery" data-caption="Caption #1">
                                                    <img src="<?php echo $allTypeCheck['media_medium']; ?>" alt="" />
                                                            </a>
                                                </div>
                                           
                                            </div>
                                        </div> <?php } ?>
                                    </div>
                                </div>
                            
                                                   
                              </div>
                        </div>
                    </div>
                </div>
            
            </div>
        </div>
