<?php 
include_once("include/main.inc.php"); 
@extract($_REQUEST);
if (preg_match('webpulse\.co$/', $_SERVER['HTTP_HOST'], $match)) {
    $match1=$match[1];
    $vanity_url='http://'.$_SERVER['HTTP_HOST'];
}
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$ee=explode('/',$actual_link);
$ca_nam1=$ee[3];
// $ca_nam1=ucwords(str_replace("-"," ",$ca_nam1));
$pid=ucwords(str_replace("-"," ",$_REQUEST['pid']));
$cat_s="select catImage, catName, displayName, catDesc, catID, catDesc1,catBanner, keyword1, keyword2, keyword3, parentID, headingh1, headingh2,alttag from category_tbl where catName='$pid'";
$cat_q=mysqli_query($GLOBALS['dbconn'],$cat_s);
$num=mysqli_num_rows($cat_q);
$cat_r=mysqli_fetch_array($cat_q);
$category_id=$cat_r['catID'];
$hover='category';
$catn=$cat_r['catName'];
$cat_sql="select catImage, catName, displayName, catDesc, catID, catDesc1,catBanner, parentID from category_tbl where parentID='$category_id' and status='Y'";
$cat_qry=mysqli_query($GLOBALS['dbconn'],$cat_sql);
$cccnum=mysqli_num_rows($cat_qry);
$cat_sql1="select catName, displayName, catID, parentID,catImage,catDesc1,catBanner,keyword1,keyword2,keyword3,headingh1, headingh2,alttag,pageTitle,pageKeywords,pageDescription from category_tbl where catID='$category_id'";
$cat_qry1=mysqli_query($GLOBALS['dbconn'],$cat_sql1);
$cat_res=mysqli_fetch_array($cat_qry1);
$pageTitles=$cat_res['catName'];
$disTitles=$cat_res['displayName']; 
$pdes=$cat_res['catDesc'];
$parent=$cat_res['parentID'];
$cat_sql2="select catName, displayName, catID, parentID from category_tbl where catID='$parent'";
$cat_qry2=mysqli_query($GLOBALS['dbconn'],$cat_sql2);
$num2=mysqli_num_rows($cat_qry2);
$cat_res2=mysqli_fetch_array($cat_qry2);
$mparent=$cat_res2['parentID'];
$cat_sql3="select catName, displayName, catID, parentID from category_tbl where catID='$mparent'";
$cat_qry3=mysqli_query($GLOBALS['dbconn'],$cat_sql3);
$num3=mysqli_num_rows($cat_qry3);
$cat_res3=mysqli_fetch_array($cat_qry3);
$mmparent=$cat_res3['parentID'];
$cat_sql4="select catName, displayName, catID, parentID from category_tbl where catID='$mmparent'";
$cat_qry4=mysqli_query($GLOBALS['dbconn'],$cat_sql4);
$num4=mysqli_num_rows($cat_qry4);
$cat_res4=mysqli_fetch_array($cat_qry4);
$mobile=$admin_res['mobile'];
$city=$admin_res['city'];
$state=$admin_res['state'];
$country=$admin_res['country'];
$companyName=$admin_res['companyName'];
$address=$admin_res['address']; 
if($cat_res['catImage']!=''){
    $imglink= getImage($cat_res[catImage], 500, 500, $cat_res[catName],"/uploaded-files/category/images/");
    } else {
        $imglink= getImage("noimage.jpg", 500, 500, "noimages","/uploaded-files/category/images/");
    } 

    $loc_Name = ucfirst(str_replace("-", " ", $ca_nam1));
    $loc_sql = mysqli_query($GLOBALS['dbconn'], "select locationID,locationName,loc_url from location_tbl where loc_url='$ca_nam1' or  locationName='$loc_Name' and status='Y'");
    $location = mysqli_fetch_array($loc_sql);
    $location_id = $location['locationID'];
    $locationName = $location['locationName'];
    $category_sub_specific=mysqli_query($dbconn,"select location_ids,meta_title,meta_keyword,meta_description,description,short_description from location_content_tbl where category_id='$category_id' AND location_id='$location_id'");
    $category_sub_general=mysqli_query($dbconn,"select location_ids,meta_title,meta_keyword,meta_description,description,short_description from location_content_tbl where category_id='$category_id' AND location_id='0'");
    $content_count = mysqli_num_rows($category_sub_general);
    if($content_count > 0){
        while($categorysubdomain=mysqli_fetch_array($category_sub_general)){
            $locati = explode(",", $categorysubdomain['location_ids']);
            if(in_array($location_id, $locati)){
                if($categorysubdomain['meta_title'] != ''){
                    $page_metatitle1=$categorysubdomain['meta_title'];
                }
                if($categorysubdomain['meta_keyword'] != ''){
                    $page_metakey1=$categorysubdomain['meta_keyword'];
                }
                if($categorysubdomain['meta_description']){
                    $page_metadesc1=$categorysubdomain['meta_description'];
                }
                $page_desc=$categorysubdomain['description'];
            }
        }
    //    specific location content
    }else{
    $page_desc=$categorysubdomain['description'];
    $page_short_desc=$categorysubdomain['short_description'];
    $page_metatitle1=$categorysubdomain['meta_title'];
    //    general content
    }
    if($cat_res['keyword1']!='' && $cat_res['keyword2']!='' && $cat_res['keyword3']!=''){

    $m_title = "hotkeyword1 in location, hotkeyword2 in location"; 
       $page_metatitle = str_replace('hotkeyword1',$cat_res[keyword1],str_replace('hotkeyword2', $cat_res[keyword2], str_replace('location', $locationName,$m_title)));
       $m_keyword = "hotkeyword1 in location, hotkeyword2 in location, hotkeyword1 in location, hotkeyword1, hotkeyword2";
       $page_metakey = str_replace('hotkeyword1',$cat_res[keyword1],str_replace('hotkeyword2', $cat_res[keyword2], str_replace('hotkeyword3', $cat_res[keyword3],str_replace('location', $locationName,$m_keyword))));
       $meta_des = "hotkeyword1 in location - Astrologer DR BHAWANI SHEKHAWAT is the Best hotkeyword2 in location and has good experience in the field of Astrology. Call At phone. hotkeyword2 in location";    
       $page_metadesc = str_replace('hotkeyword1',$cat_res[keyword1],str_replace('hotkeyword2', $cat_res[keyword2],str_replace('hotkeyword3', $cat_res[keyword3],str_replace('companyName', $admin_res['companyName'], str_replace('phone', $admin_res['mobile_meta'], str_replace('location', $locationName,$meta_des))))));
       } else if($cat_res['keyword1']!='' && $cat_res['keyword2']!=''){
           $m_title = "hotkeyword1 in location, hotkeyword2 in location";  
           $page_metatitle = str_replace('hotkeyword1',$cat_res[keyword1],str_replace('hotkeyword2', $cat_res[keyword2], str_replace('location', $locationName,$m_title)));
           $m_keyword = "hotkeyword1 in location, hotkeyword2 in location, hotkeyword1 in location, hotkeyword1, hotkeyword2";
           $page_metakey = str_replace('hotkeyword1',$cat_res[keyword1],str_replace('hotkeyword2', $cat_res[keyword2], str_replace('location', $locationName,$m_keyword)));
           $meta_des = "hotkeyword1 in location - Astrologer DR BHAWANI SHEKHAWAT is the Best hotkeyword2 in location and has good experience in the field of Astrology. Call At phone. hotkeyword2 in location";    
           $page_metadesc = str_replace('hotkeyword1',$cat_res[keyword1],str_replace('hotkeyword2', $cat_res[keyword2], str_replace('companyName', $admin_res[companyName], str_replace('phone', $admin_res['mobile_meta'], str_replace('location', $locationName,$meta_des)))));
       }else if($cat_res['keyword1']!=''){
           $m_title = "hotkeyword1 in location, hotkeyword1 in location";  
           $page_metatitle = str_replace('hotkeyword1',$cat_res[keyword1], str_replace('location', $locationName,$m_title));
           $m_keyword = "hotkeyword1 in location, hotkeyword1 in location, hotkeyword1 in location, hotkeyword1 in location";
           $page_metakey = str_replace('hotkeyword1',$cat_res[keyword1], str_replace('location', $locationName,$m_keyword));
           $meta_des = "hotkeyword1 in location - Astrologer DR BHAWANI SHEKHAWAT is the Best hotkeyword1 in location and has good experience in the field of Astrology. Call At phone. hotkeyword1 in location";    
           $page_metadesc = str_replace('hotkeyword1',$cat_res[keyword1], str_replace('companyName', $admin_res[companyName], str_replace('phone',$admin_res['mobile_meta'], str_replace('location', $locationName,$meta_des))));
       } else{
           $page_metatitle=$page_metatitle1;
           $page_metakey=$page_metakey1;
           $page_metadesc=$page_metadesc1;
       }
    $page_desc = str_replace('countryname',$locationName, $page_desc);
    $page_desc = str_replace('catname',$pid, $page_desc);
    $page_desc = str_replace('{location}',$locationName, $page_desc);
    $page_desc=str_ireplace('{companyName}',$admin_res['companyName'],$page_desc);
    $page_metatitle = str_replace('countryname',$locationName, $page_metatitle);
    $page_metatitle = str_replace('catname',$pid, $page_metatitle);
    $page_metatitle = str_replace('{location}',$locationName, $page_metatitle);
    $page_metakey = str_replace('countryname',$locationName, $page_metakey);
    $page_metakey = str_replace('catname',$pid, $page_metakey);
    $page_metakey = str_replace('{location}',$locationName, $page_metakey);
    $page_metadesc = str_replace('countryname',$locationName, $page_metadesc);
    $page_metadesc = str_replace('catname',$pid, $page_metadesc);
    $page_metadesc = str_replace('{location}',$locationName, $page_metadesc);
    $page_short_desc = str_replace('countryname',$locationName, $page_short_desc);
    $page_short_desc = str_replace('catname',$pid, $page_short_desc);
    $page_short_desc = str_replace('{location}',$locationName, $page_short_desc);
    $category_sub_uncheck_loc=mysqli_query($GLOBALS['dbconn'],"select description,short_description from location_content_tbl where category_id='$category_id' AND location_id='0'");
    $category_sub_uncheck_res=mysqli_fetch_array($category_sub_uncheck_loc);
    $page_desc1=$category_sub_uncheck_res['description'];
    $page_desc1 = str_replace('{location}',$locationName,  $page_desc1);
    $page_desc1=str_ireplace('{companyName}',$admin_res['companyName'],$page_desc1);
if($cat_res['headingh1']!=''){
    $heading1=$cat_res['headingh1'].' in '.$locationName;
}else{
    $heading1=$disTitles.' in '.$locationName;
}
if($cat_res['headingh2']!=''){
    $heading2=$cat_res['headingh2'].' in '.$locationName;
}else{
    $heading2=$disTitles.' in '.$locationName;
}
if($cat_res['alttag']!=''){
    $alttag=$cat_res['alttag'].' in '.$locationName;
}else{
    if($cat_res['parentID']!='4'){
    $alttag=$disTitles.' in '.$locationName;
}else{
    $alttag=$disTitles.' in '.$locationName;
}
}
if($cat_res['keyword2']!=''){
    $headingsubdomain2=$cat_res['keyword2'].' in '.$locationName;
}else{
    $keywrd= explode(',',$page_metatitle);
    // print_r($keywrd);
    // exit;
    $headingsubdomain2=$cat_res=$keywrd['1'];
}
if(mysqli_num_rows($loc_sql) > 0)
   {
   }else
       {
   	header("Location: ".site_url);
   				exit;
   }
if(mysqli_num_rows($cat_q) > 0)
{ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <?php include "app_top.php"; ?>
</head>

<body>

    <?php include "app_header_sub.php"; ?>

    <div class="heading_banner" style="background-image: url(<?=site_url;?>/designer/images/category-banner.webp)">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">
                    <h1 class="cat_title"><?=$heading1;?></h1>
                    <div class="clearfix"></div>
                    <div class="cat_title2">Explore the Science of Compatibility</div>
                </div>
            </div>
        </div>
    </div>

    <div class="inner_breadcrumb hidden_xs">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <ul class="breadcrumb">
    <?php if($num4 > 0) {?>
        <li>
            <?php if($cat_res4['catID'] == 1) { ?>
                <a href="javascript:void(0);" title="<?php echo $cat_res4['catName']; ?>"><?php echo $cat_res4['displayName']; ?></a>
            <?php } else { ?>
                <a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($cat_res4['catName']);?>.htm"
                   title="<?php echo $cat_res4['catName']; ?>"><?php echo $cat_res4['displayName']; ?></a>
            <?php } ?>
        </li>
    <?php } ?>

    <?php if($num3 > 0) {?>
        <li>
            <?php if($cat_res3['catID'] == 1) { ?>
                <a href="javascript:void(0);" title="<?php echo $cat_res3['catName']; ?>"><?php echo $cat_res3['displayName']; ?></a>
            <?php } else { ?>
                <a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($cat_res3['catName']);?>.htm"
                   title="<?php echo $cat_res3['catName']; ?>"><?php echo $cat_res3['displayName']; ?></a>
            <?php } ?>
        </li>
    <?php } ?>

    <?php if($num2 > 0) {?>
        <li>
            <?php if($cat_res2['catID'] == 1) { ?>
                <a href="javascript:void(0);" title="<?php echo $cat_res2['catName']; ?>"><?php echo $cat_res2['displayName']; ?></a>
            <?php } else { ?>
                <a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($cat_res2['catName']);?>.htm"
                   title="<?php echo $cat_res2['catName']; ?>"><?php echo $cat_res2['displayName']; ?></a>
            <?php } ?>
        </li>
    <?php } ?>

    <li class="active"><?=$disTitles; ?></li>
</ul>

                </div>
            </div>
        </div>
    </div>
    <div class="mainConter">
        <div class="container">
            <div class="row banner_uspes about-uspes">
                <div class="col">
                    <div class="usp_box">
                        <p class="counter-count count-p">30</p>
                        <span>+</span>
                        <p>Years of<br> experience </p>
                    </div>
                </div>
                <div class="col">
                    <div class="usp_box">
                        <p class="counter-count count-p">10</p>
                        <span>K+</span>
                        <p>Trusted by Million Clients</p>
                    </div>
                </div>
                <div class="col">
                    <div class="usp_box">
                        <p class="counter-count count-p">99</p>
                        <span>%</span>
                        <p>Success Prediction</p>
                    </div>
                </div>
                <div class="col">
                    <div class="usp_box">
                        <p class="counter-count count-p">10</p>
                        <span>+</span>
                        <p>AWARDS FOR <br>EXCELLENCE</p>
                    </div>
                </div>
                <div class="col">
                    <div class="usp_box count-up">
                        <p class="count-p">4.9/5</p>
                        <img loading="lazy" src="<?=site_url;?>/designer/images/5star.png" alt="RATED ON GOOGLE" title="RATED ON GOOGLE">
                        <p>RATED ON GOOGLE</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="category_page">
        <div class="container">
            <h2 class="title_1"><?=$headingsubdomain2;?></h2>
            <div class="clearfix"></div>
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <div class="wps_right">
                        <div class="product_right_image">
                            <a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $cat_res['catID'];?>');
$('.catName').html('<?php echo $cat_res['catName'];?>');
$('.catImg').attr('src','<?=$imglink;?>');  $('.catImg').attr('alt','<?=$alttag;?>'); $('.catImg').attr('title','<?=$alttag;?>');" title="<?=$alttag;?>">
                                <div class="detail_image">
                                    <img width="500" height="500" class="img-responsive" src="<?=$imglink;?>" alt="<?=$alttag;?>" title="<?=$alttag;?>">
                                </div>
                                <span class="read_more" title="Consult with Astrologer">
                                    <span><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                            <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z"></path>
                                        </svg> Consult with Astrologer</span></span>
                            </a>

                        </div>
                        <?php if($page_desc!=''){ ?>
<?=html_entity_decode($page_desc);?>
<?php }else{ ?>
<?=html_entity_decode($page_desc1);?>
<?php   } ?>

                        <div class="clearfix"></div>
                        <div class="title_1">Astrology Service Provided by Dr B.S Shekhawat</div>
                        <div class="maxWidth">
                            <p>Astrology encompasses various systems and traditions that have evolved over centuries<br>
across different cultures.</p>
                        </div>
                        <div class="row">
                        <div class="col-xl-3 col-lg-3 col-md-3 col-sm-6 col-6">
                            <div class="benefitsItem">
                                <div class="benefitsItemInfo">
                                    <div class="benefitsItemIcon">
                                        <img width="150" height="150" loading="lazy" src="<?=site_url;?>/designer/images/horoscope.png" alt="Horoscope Analysis" title="Horoscope Analysis">
                                    </div>
                                    <h4 class="tp-service-2-title">Horoscope Analysis</h4>
                                </div>
                            </div>
                        </div>

                        <div class="col-xl-3 col-lg-3 col-md-3 col-sm-6 col-6">
                            <div class="benefitsItem">
                                <div class="benefitsItemInfo">
                                    <div class="benefitsItemIcon">
                                        <img width="150" height="150" loading="lazy" src="<?=site_url;?>/designer/images/birth.png" alt="Birth Chart Analysis" title="Birth Chart Analysis">
                                    </div>
                                    <h4 class="tp-service-2-title">Birth Chart Analysis</h4>
                                </div>
                            </div>
                        </div>

                        <div class="col-xl-3 col-lg-3 col-md-3 col-sm-6 col-6">
                            <div class="benefitsItem">
                                <div class="benefitsItemInfo">
                                    <div class="benefitsItemIcon">
                                        <img width="150" height="150" loading="lazy" src="<?=site_url;?>/designer/images/Kundali-Matching.png" alt="Kundali Matching" title="Kundali Matching">
                                    </div>
                                    <h4 class="tp-service-2-title">Kundali Matching</h4>
                                </div>
                            </div>
                        </div>

                        <div class="col-xl-3 col-lg-3 col-md-3 col-sm-6 col-6">
                            <div class="benefitsItem">
                                <div class="benefitsItemInfo">
                                    <div class="benefitsItemIcon">
                                        <img width="150" height="150" loading="lazy" src="<?=site_url;?>/designer/images/portfolio.png" alt="Career Problems" title="Career Problems">
                                    </div>
                                    <h4 class="tp-service-2-title">Career Problems</h4>
                                </div>
                            </div>
                        </div>


                        <div class="col-xl-3 col-lg-3 col-md-3 col-sm-6 col-6">
                            <div class="benefitsItem">
                                <div class="benefitsItemInfo">
                                    <div class="benefitsItemIcon">
                                        <img width="150" height="150" loading="lazy" src="<?=site_url;?>/designer/images/Vastu-Consultation.png" alt="Vastu Consultation" title="Vastu Consultation">
                                    </div>
                                    <h4 class="tp-service-2-title">Vastu Consultation</h4>
                                </div>
                            </div>
                        </div>

                        <div class="col-xl-3 col-lg-3 col-md-3 col-sm-6 col-6">
                            <div class="benefitsItem">
                                <div class="benefitsItemInfo">
                                    <div class="benefitsItemIcon">
                                        <img width="150" height="150" loading="lazy" src="<?=site_url;?>/designer/images/relationship.png" alt="Relationship Astrology" title="Relationship Astrology">
                                    </div>
                                    <h4 class="tp-service-2-title">Relationship Astrology</h4>
                                </div>
                            </div>
                        </div>


                        <div class="col-xl-3 col-lg-3 col-md-3 col-sm-6 col-6">
                            <div class="benefitsItem">
                                <div class="benefitsItemInfo">
                                    <div class="benefitsItemIcon">
                                        <img width="150" height="150" loading="lazy" src="<?=site_url;?>/designer/images/healthcare1.png" alt="Medical Astrology" title="Medical Astrology">
                                    </div>
                                    <h4 class="tp-service-2-title">Medical Astrology</h4>
                                </div>
                            </div>
                        </div>

                        <div class="col-xl-3 col-lg-3 col-md-3 col-sm-6 col-6">
                            <div class="benefitsItem">
                                <div class="benefitsItemInfo">
                                    <div class="benefitsItemIcon">
                                        <img width="150" height="150" loading="lazy" src="<?=site_url;?>/designer/images/Spiritual-Astrology.png" alt="Spiritual Astrology" title="Spiritual Astrology">
                                    </div>
                                    <h4 class="tp-service-2-title">Spiritual Astrology</h4>
                                </div>
                            </div>
                        </div>

                        <div class="col-xl-3 col-lg-3 col-md-3 col-sm-6 col-6">
                            <div class="benefitsItem">
                                <div class="benefitsItemInfo">
                                    <div class="benefitsItemIcon">
                                        <img width="150" height="150" loading="lazy" src="<?=site_url;?>/designer/images/voting.png" alt="Electional Astrology" title="Electional Astrology">
                                    </div>
                                    <h4 class="tp-service-2-title">Electional Astrology</h4>
                                </div>
                            </div>
                        </div>

                        <div class="col-xl-3 col-lg-3 col-md-3 col-sm-6 col-6">
                            <div class="benefitsItem">
                                <div class="benefitsItemInfo">
                                    <div class="benefitsItemIcon">
                                        <img width="150" height="150" loading="lazy" src="<?=site_url;?>/designer/images/speculate.png" alt="Speculation Astrology" title="Speculation Astrology">
                                    </div>
                                    <h4 class="tp-service-2-title">Speculation Astrology</h4>
                                </div>
                            </div>
                        </div>

                    </div>



                        <div class="you_may">All Astrology Services</div>
                        <div class="allListing">
                        <?php
if(mysqli_num_rows($cat_qry)>0){
$subcat_sql=$cat_qry;
}else{
   $subcat_sql=mysqli_query($GLOBALS['dbconn'],"select catImage, catName, displayName, catDesc, catID, catDesc1, parentID from category_tbl where parentID ='$parent' and status='Y' and catID!='$category_id' order by catOrder Asc");
}
while($sub_res=mysqli_fetch_array($subcat_sql)) {
if($sub_res['catImage'] != ''){
    $img_link = getImage($sub_res[catImage], 374, 374, $sub_res[catName],"/uploaded-files/category/images/");
    $img_link1 = getImage($sub_res[catImage], 436, 429, $sub_res[catName],"/uploaded-files/category/images/");
}else{
    $img_link = getImage("noimage.jpg",  376, 376, "noimages","/uploaded-files/category/images/");
    $img_link1 = getImage("noimage.jpg", 436, 429, "noimages","/uploaded-files/category/images/");
}
$cat_id1 = $sub_res['catID'];
$category_sub_specific1=mysqli_query($GLOBALS['dbconn'],"select short_description from location_content_tbl where category_id='$cat_id1' AND location_id='$location_id'");
$category_sub_general1=mysqli_query($GLOBALS['dbconn'],"select * from location_content_tbl where category_id='$cat_id1' AND location_id='0'");
$content_count = mysqli_num_rows($category_sub_specific1);
if($content_count > 0){
$categorysubdomain=mysqli_fetch_array($category_sub_specific1);
$page_short_desc=$categorysubdomain['short_description'];
}else{
$categorysubdomain=mysqli_fetch_array($category_sub_general1);
$page_short_desc=$categorysubdomain['short_description'];
}
$page_short_desc = str_replace('countryname',$locationName, $page_short_desc);
$page_short_desc = str_replace('{location}',$locationName, $page_short_desc);
$page_short_desc = str_replace('catname',$pid, $page_short_desc);
$page_short_desc=str_ireplace('{companyName}',$admin_res['companyName'],$page_short_desc);
?>
                            <div class="product_listing">
                                <div class="row">
                                    <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-5 col-12">
                                        <div class="product">
                                            <a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($sub_res['catName']);?>.htm" title="<?= $sub_res['displayName'];?> in <?=$locationName;?>">
                                                <div class="image1">
                                                    <img width="374" height="374" loading="lazy" src="<?=$img_link;?>" alt="<?= $sub_res['displayName'];?> in <?=$locationName;?>" title="<?= $sub_res['displayName'];?> in <?=$locationName;?>">
                                                </div>
                                            </a>
                                        </div>
                                    </div>
                                    <div class="col-xxl-8 col-xl-8 col-lg-8 col-md-8 col-sm-7 col-12">
                                        <div class="right-content">
                                            <h4 class="titleH3_1"><a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($sub_res['catName']);?>.htm" title="<?= $sub_res['displayName'];?> in <?=$locationName;?>"><?= $sub_res['displayName'];?></a></h4>
                                            <div class="blue-line1"></div>
                                            <div class="more_info">
                                            <p><?=html_entity_decode($page_short_desc);?></p>

                                            </div>

                                            <div class="clearfix"></div>
                                            <a class="read_more" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $sub_res['catID'];?>');
    $('.catName').html('<?php echo $sub_res['catName'];?>');
    $('.catImg').attr('src','<?= $img_link1;?>'); $('.catImg').attr('alt','<?= $sub_res['displayName'];?> in <?=$locationName;?>'); $('.catImg').attr('title','<?= $sub_res['displayName'];?> in <?=$locationName;?>');" title="Consult with Astrologer">
                                                <span><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                        <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z" />
                                                    </svg> Consult with Astrologer</span></a>
                                            <a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($sub_res['catName']);?>.htm" class="read_more" title="View More"><span> View More <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                        <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"></path>
                                                    </svg></span></a>

                                        </div>
                                    </div>
                                </div>
                            </div>
                            <?php } ?>
                          
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>



    <?php include "app_video_gallery.php"; ?>

    <?php include "app_consultants.php"; ?>
    <?php include "app_testimonials.php"; ?>
   <?php include "app_gallery.php"; ?>
    <!-- <?php 
    // include "app_faq.php"; 
    ?> -->
    <?php include "app_footer_sub.php"; ?>
    <?php include "app_bottom.php"; ?>

</body>

</html>
</html>
<?php
}
else
{
    header("Location: ".site_url);
    exit;
}
?>