Server : LiteSpeed
System : Linux terra.hostitbro.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : outerorb ( 1091)
PHP Version : 8.1.34
Disable Function : mail
Directory :  /home2/outerorb/zapnix.co/

📁 Create New:
⬆️ Upload File:
Current Dir [ Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

📄 File: category_sub.php

Path: /home2/outerorb/zapnix.co/category_sub.php

Size: 44.36 KB

Permissions: 0644

<?php

include_once("include/main.inc.php");

@extract($_REQUEST);

$admin_res = getAdminDetails();

// use the requested path's parent folder so this works regardless of subfolder depth (e.g. localhost/zapnix.co/...)
$ca_nam1 = basename(dirname(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)));

$ca_nam = rtrim($ca_nam1, '-');



$ca_nam1 = ucwords(str_replace("-", " ", $ca_nam1));



$pid = ucwords(str_replace("-", " ", $_REQUEST['pid']));



$cat_s = "select catImage, catName, displayName, categorybottom, catDesc, catID, catDesc1,catBanner, keyword1, keyword2, keyword3, parentID 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, categorybottom, catDesc, catID, catDesc1,catBanner, parentID from category_tbl where parentID='$category_id' and status='Y' order by catOrder";



$cat_qry = mysqli_query($GLOBALS['dbconn'], $cat_sql);



$cccnum = mysqli_num_rows($cat_qry);



$cat_sql1 = "select catName, displayName, catID, categorybottom, parentID,catImage,catDesc1,catBanner,keyword1,keyword2,keyword3,pageTitle,pageKeywords,pageDescription from category_tbl where catID='$category_id' order by catOrder";







$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'];



$page_desc = $cat_res['catDesc1'];



// print_r($page_bottom); die;

$imglink_sub = getImage($cat_res['catImage'], 300, 300, $cat_res['catName'], "/uploaded-files/category/images/");



$page_desc = str_ireplace('{companyName}', $admin_res['companyName'], $page_desc);



$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 = NO_IMG_URL;

}



$loc_sql = mysqli_query($GLOBALS['dbconn'], "select locationID,locationName,locationurl from location_tbl where locationurl='$ca_nam' and status='Y'");



$location = mysqli_fetch_array($loc_sql);



$location_id = $location['locationID'];
$ca_nam1 = $location['locationName'];

$locUrl = $location['locationurl'];

$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_sub = $categorysubdomain['description'];



            $page_short_desc  = $page_desc = $categorysubdomain['short_description'];

        }

    }

}



if ($cat_res['keyword1'] != '' && $cat_res['keyword2'] != '' && $cat_res['keyword3'] != '') {





    $m_title = "hotkeyword1 Manufacturers in location, hotkeyword2 Suppliers Exporters location";



    $page_metatitle = str_replace('hotkeyword1', $cat_res['keyword1'], str_replace('hotkeyword2', $cat_res['keyword2'], str_replace('location', $ca_nam1, $m_title)));



    $m_keyword = "hotkeyword1 Manufacturers in location, hotkeyword2 Manufacturers in location, hotkeyword1 Suppliers in location, hotkeyword2 Suppliers in location, hotkeyword1 Exporters in location, hotkeyword2 Exporters in location, hotkeyword1 in location, hotkeyword2 in location";



    $page_metakey = str_replace('hotkeyword1', $cat_res['keyword1'], str_replace('hotkeyword2', $cat_res['keyword2'], str_replace('hotkeyword3', $cat_res['keyword3'], str_replace('location', $ca_nam1, $m_keyword))));



    $meta_des = "Looking for Premium Quality hotkeyword1 Manufacturers in location? companyName - Leading Suppliers Exporters of hotkeyword2 Since year, Supplying at ✓Factory Price. Call phone.";



    $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'], str_replace('year', $admin_res['establish'], str_replace('location', $ca_nam1, $meta_des)))))));

} else if ($cat_res['keyword1'] != '' && $cat_res['keyword2'] != '') {



    $m_title = "hotkeyword1 Manufacturers in location, hotkeyword2 Suppliers Exporters location";



    $page_metatitle = str_replace('hotkeyword1', $cat_res['keyword1'], str_replace('hotkeyword2', $cat_res['keyword2'], str_replace('location', $ca_nam1, $m_title)));



    $m_keyword = "hotkeyword1 Manufacturers in location, hotkeyword2 Manufacturers in location, hotkeyword1 Suppliers in location, hotkeyword2 Suppliers in location, hotkeyword1 Exporters in location, hotkeyword2 Exporters in location, hotkeyword1 in location, hotkeyword2 in location";



    $page_metakey = str_replace('hotkeyword1', $cat_res['keyword1'], str_replace('hotkeyword2', $cat_res['keyword2'], str_replace('location', $ca_nam1, $m_keyword)));



    $meta_des = "Looking for Premium Quality hotkeyword1 Manufacturers in location? companyName - Leading Suppliers Exporters of hotkeyword2 Since year, Supplying at ✓Factory Price. Call phone.";



    $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'], str_replace('year', $admin_res['establish'], str_replace('location', $ca_nam1, $meta_des))))));

} else if ($cat_res['keyword1'] != '') {



    $m_title = "hotkeyword1 Manufacturers in location, hotkeyword1 Suppliers Exporters location";



    $page_metatitle = str_replace('hotkeyword1', $cat_res['keyword1'], str_replace('location', $ca_nam1, $m_title));



    $m_keyword = "hotkeyword1 Manufacturers in location, hotkeyword1 Suppliers in location, hotkeyword1 Exporters in location, hotkeyword1 in location";



    $page_metakey = str_replace('hotkeyword1', $cat_res['keyword1'], str_replace('location', $ca_nam1, $m_keyword));



    $meta_des = "Looking for Premium Quality hotkeyword1 Manufacturers in location? companyName - Leading Suppliers Exporters of hotkeyword1 Since year, Supplying at ✓Factory Price. Call phone.";



    $page_metadesc = str_replace('hotkeyword1', $cat_res['keyword1'], str_replace('companyName', $admin_res['companyName'], str_replace('phone', $admin_res['mobile'], str_replace('year', $admin_res['establish'], str_replace('location', $ca_nam1, $meta_des)))));

} else if ($page_metatitle1 != '' && $page_metadesc1 != '') {



    $page_metatitle = $page_metatitle1;



    $page_metakey = $page_metakey1;



    $page_metadesc = $page_metadesc1;

} else {



    $m_title = "" . $cat_res['catName'] . " Manufacturers in location, " . $cat_res['catName'] . " Suppliers Exporters location";



    $page_metatitle = str_replace('hotkeyword1', $cat_res['keyword1'], str_replace('location', $ca_nam1, $m_title));



    $m_keyword = "" . $cat_res['catName'] . " Manufacturers in location, " . $cat_res['catName'] . " Suppliers in location, " . $cat_res['catName'] . " Exporters in location, " . $cat_res['catName'] . " in location";



    $page_metakey = str_replace('hotkeyword1', $cat_res['keyword1'], str_replace('location', $ca_nam1, $m_keyword));



    $meta_des = "Looking for Premium Quality " . $cat_res['catName'] . " Manufacturers in location? companyName - Leading Suppliers Exporters of " . $cat_res['catName'] . " Since year, Supplying at ✓Factory Price. Call phone.";



    $page_metadesc = str_replace('hotkeyword1', $cat_res['keyword1'], str_replace('companyName', $admin_res['companyName'], str_replace('phone', $admin_res['mobile'], str_replace('year', $admin_res['establish'], str_replace('location', $ca_nam1, $meta_des)))));

}





$page_desc_sub = str_replace('countryname', $ca_nam1, $page_desc_sub);



$page_desc_sub = str_replace('catname', $pid, $page_desc_sub);



$page_desc_sub = str_replace('{location}', $ca_nam1, $page_desc_sub);



$page_desc_sub = str_replace('{companyName}', $admin_res['companyName'], $page_desc_sub);





$page_metatitle = str_replace('countryname', $ca_nam1, $page_metatitle);



$page_metatitle = str_replace('catname', $pid, $page_metatitle);



$page_metatitle = str_replace('{location}', $ca_nam1, $page_metatitle);



$page_metakey = str_replace('countryname', $ca_nam1, $page_metakey);



$page_metakey = str_replace('catname', $pid, $page_metakey);



$page_metakey = str_replace('{location}', $ca_nam1, $page_metakey);



$page_metadesc = str_replace('countryname', $ca_nam1, $page_metadesc);



$page_metadesc = str_replace('catname', $pid, $page_metadesc);



$page_metadesc = str_replace('{location}', $ca_nam1, $page_metadesc);



$page_short_desc = str_replace('countryname', $ca_nam1, $page_short_desc);



$page_short_desc = str_replace('catname', $pid, $page_short_desc);



$page_short_desc = str_replace('{location}', $ca_nam1, $page_short_desc);







$category_sub_uncheck_loc = mysqli_query($GLOBALS['dbconn'], "select description,about_short_desc, 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);

//  print_r($category_sub_uncheck_res); die;

$page_desc1 = $category_sub_uncheck_res['description'];



$page_desc1 = str_replace('{location}', $ca_nam1,  $page_desc1);



$page_desc1 = str_ireplace('{companyName}', $admin_res['companyName'], $page_desc1);



$page_bottom = $category_sub_uncheck_res['about_short_desc'];



$page_bottom = str_replace('{location}', $ca_nam1, $page_bottom);



$page_bottom = str_ireplace('{companyName}', $admin_res['companyName'], $page_bottom);





if (mysqli_num_rows($loc_sql) > 0) {

} else {



    header("Location: " . site_url);



    exit;

}



if (mysqli_num_rows($cat_q) > 0)

?>

<?php if ($cat_r['parentID'] == 0) { ?>

    <!DOCTYPE html>

    <html lang="en">



    <head>

        <?php include 'app_top.php'; ?>

        <style>

            .header-4 {

                background-color: white;

            }
            
            h2 span {
                        color: #005c88;
                        font-weight:700px;
                    }

        </style>

    </head>



    <body>

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

        <div class="breadcrumb-wrapper bg-cover">

            <div class="container">

                <div class="page-heading">

                    <div class="main-ttt wow fadeInUp" data-wow-delay=".3s">

                        <h1 class="text-white"><?php echo $cat_res['displayName']; ?> In <?php echo $ca_nam1; ?></h1>

                    </div>

                    <ul class="breadcrumb-items wow fadeInUp" data-wow-delay=".5s">

                        <li>

                            <a href="<?= site_url; ?>" title="Home">

                                Home

                            </a>

                        </li>

                        <li>

                            <i class="fas fa-chevron-right"></i>

                        </li>



                        <?php if ($num4 > 0) { ?>



                            <li><a href="<?= site_url; ?>/<?= getValidFileName($cat_res4['catName']); ?>.html"



                                    title="<?php echo $cat_res4['displayName']; ?> "><?php echo $cat_res4['displayName']; ?></a>



                            </li>



                        <?php } ?>



                        <?php if ($num3 > 0) { ?>



                            <li><a href="<?= site_url; ?>/<?= getValidFileName($cat_res3['catName']); ?>.html"



                                    title="<?php echo $cat_res3['displayName']; ?>"><?php echo $cat_res3['displayName']; ?></a>



                            </li>



                        <?php } ?>



                        <?php if ($num2 > 0) { ?>



                            <li><a href="<?= site_url; ?>/<?= getValidFileName($cat_res2['catName']); ?>.html"



                                    title="<?php echo $cat_res2['displayName']; ?>"><?php echo $cat_res2['displayName']; ?></a>



                            </li>



                        <?php  } ?>



                        <li class="active"><?php echo $cat_res['displayName']; ?></li>

                    </ul>

                </div>

            </div>

        </div>



        <div class="cateogry-page ">

            <div class="container-fluid px-md-5">

                <div class="content-bxx">



                    <div class="main-img-bx text-center">

                        <img src="<?= $imglink; ?>" title="<?= $cat_res['displayName']; ?> in <?= $ca_nam1; ?>" alt="<?= $cat_res['displayName']; ?> in <?= $ca_nam1; ?>">

                        <a title="Get Started" href="#enq_popup" data-bs-toggle="modal" class="theme-btn mt-4 liner-bg">

                            Get Started

                            <i class="fa-solid fa-arrow-right-long"></i>

                        </a>

                    </div>



                    <!--<div class="section-title m-0">-->

                    <!--    <div class="tt wow fadeInUp fs-2">Want to improve your ROI? <br> <span> Drive more organic traffic to your website.</span></div>-->

                    <!--</div>-->



                    <?= $page_desc1; ?>



                    <div class="row g-5 align-items-center mt-5">



                        <div class="col-lg-5 col-12">

                            <div class="vd_bx">

                                <img src="<?= theme_url; ?>img/you-tube.jpg" alt="10 Best Digital Marketing Agency in Canada" title="10 Best Digital Marketing Agency in Canada">

                                <a href="https://www.youtube.com/watch?v=I3r91wD1wUA" data-fancybox="" class="video-popup" title="10 Best Digital Marketing Agency in Canada">

                                    <svg version="1.1" viewBox="0 0 68 48">

                                        <path class="ytp-large-play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="#f00"></path>

                                        <path d="M 45,24 27,14 27,34" fill="#fff"></path>

                                    </svg>

                                </a>

                            </div>

                        </div>

                        <div class="col-lg-7 col-12">

                        <?=$page_bottom;?>

                           

                        </div>

                    </div>

                </div>

            </div>

        </div>





        <div class="bg-cover lp-footer" style="background-image: url('<?= theme_url; ?>img/section-bg.jpg');">

            <div class="container">

                <div class="section-padding">

                    <div class="section-title text-center mb-0">

                        <h3 class="tt wow fadeInUp mb-1" data-wow-delay=".3s"> Let’s make <span> things happen </span></h3>

                        <p>Partner with the #1 ranked digital marketing agency - before your competitor does.</p>

                        <button class="modal-btn" data-bs-toggle="modal" data-bs-target="#enq_popup">Get Your Free Proposal </button>

                        <div class="sub-text">or call <a title="CAll US" href="tel:<?= $admin_res['mobile']; ?>"><?= $admin_res['mobile']; ?></a> to get started today

                        </div>

                    </div>

                </div>

            </div>

        </div>





        <section class="service-section-3 section-padding pt-3">

            <div class="line-shape-2">

                <img src="<?= theme_url; ?>img/service/line-shape-2.png" alt="shape-img" title="shape-img">

            </div>

            <div class="container-fluid px-md-5">

                <div class="section-title text-center">

                    <div class="tt wow fadeInUp"><?= $cat_res['displayName'];?> <span> Services</span></div>

                    <p class="wow fadeInUp" data-wow-delay=".3s">By offering custom omnichannel marketing strategies, led by

                        experts and backed by data, Zapnix can help your business hit your revenue goals. Stop juggling

                        multiple agencies and start working with a top-rated agency that will drive results.</p>

                </div>

                <div class="row">

                    <?php

                    $cat_like = "SELECT catImage, catName, displayName, catDesc, catID, catDesc1, catBanner,catIcon, parentID 

                FROM category_tbl 

                WHERE (parentID = '" . $cat_res['catID'] . "' AND parentID!='0') 

                AND status = 'Y' 

                ORDER BY catOrder limit 0,8";



                    $cat_qryLike = mysqli_query($GLOBALS['dbconn'], $cat_like);

                    while ($homeCatRes = mysqli_fetch_assoc($cat_qryLike)) {

                        $subcatId = $homeCatRes['catID'];
          $category_sub2_uncheck_loc = mysqli_query($GLOBALS['dbconn'], "select description,short_description from location_content_tbl where category_id='$subcatId' AND location_id='0'");
          $category_sub2_uncheck_res = mysqli_fetch_array($category_sub2_uncheck_loc);
          $page_subdesc1 = $category_sub2_uncheck_res['description'];
          $page_subdesc1 = str_replace('{location}', $ca_nam1, $page_subdesc1);
          $page_subdesc1 = str_ireplace('{companyName}', $admin_res['companyName'], $page_subdesc1);
          $page_subcat_desc = $category_sub2_uncheck_res['short_description'];
          $page_subcat_desc = str_replace('{location}', $ca_nam1, $page_subcat_desc);
          $page_subcat_desc = str_ireplace('{companyName}', $admin_res['companyName'], $page_subcat_desc);

          $page_subcat_desc = $page_subcat_desc != '' ? $page_subcat_desc : $subcategory['catDesc'];

                    ?>

                        <div class="col-xl-3 col-lg-4 col-md-6 wow fadeInUp" data-wow-delay=".3s">

                            <div class="service-box-items style-3">

                                <div class="icon">

                                    <img src="<?= upload_url; ?>category/caticon/<?= $homeCatRes['catIcon']; ?>" title="<?= $homeCatRes['catName']; ?> in <?= $ca_nam1; ?>" alt="<?= $homeCatRes['catName']; ?> in <?= $ca_nam1; ?>">

                                </div>

                                <div class="content">

                                    <div class="tt">

                                        <a title="<?= $homeCatRes['displayName']; ?> in <?= $ca_nam1; ?>" href="<?= site_url; ?>/<?= getValidFileName($homeCatRes['catName']); ?>.html">

                                            <?= $homeCatRes['displayName']; ?>

                                        </a>

                                    </div>

                                  <p>

                                        <?= substr($page_subcat_desc, 0, 125); ?>...
                    </p>
                                    

                                    <a title="Read More" href="<?= site_url; ?>/<?= rtrim(getValidFileName($ca_nam1),'-'); ?>/<?= getValidFileName($homeCatRes['catName']); ?>.html" class="theme-btn-2">

                                        read More

                                        <i class="fa-solid fa-arrow-right-long"></i>

                                    </a>

                                </div>

                            </div>

                        </div>

                    <?php } ?>

                </div>

            </div>

            </div>

        </section>





        <?php include 'app-pricing.php';?>





        <section class="faq-section-2 fix section-padding">

            <div class="container">

                <div class="section-title text-center">

                    <div class="tt wow fadeInUp fs-2">Questions to Ask <br> <span> When Hiring an SEO Agency</span></div>

                </div>

                <div class="faq-content style-2">

                    <div class="faq-accordion mt-4 mt-md-0">

                        <div class="accordion" id="accordion">

                            <?php

                            $faq = mysqli_query($GLOBALS['dbconn'], "SELECT slno, question, answer FROM faqnew_tbl WHERE status='1'");

                            $index = 0;

                            while ($resFaq = mysqli_fetch_assoc($faq)) {

                                $index++;

                                $isActive = $index === 1 ? 'show' : 'collapsed';

                                $isExpanded = $index === 1 ? 'true' : 'false';

                                $collapseClass = $index === 1 ? 'collapse show' : 'collapse';

                            ?>

                                <div class="accordion-item mb-3 wow fadeInUp" data-wow-delay=".<?= $index * 3; ?>s">

                                    <div class="accordion-header">

                                        <button class="accordion-button <?= $isActive ?>" type="button"

                                            data-bs-toggle="collapse" data-bs-target="#faq<?= $index ?>"

                                            aria-expanded="<?= $isExpanded ?>" aria-controls="faq<?= $index ?>">

                                            <?= $resFaq['question']; ?>

                                        </button>

                                    </div>

                                    <div id="faq<?= $index ?>" class="accordion-collapse <?= $collapseClass ?>" data-bs-parent="#accordion">

                                        <div class="accordion-body">

                                            <?= $resFaq['answer'] ?>

                                        </div>

                                    </div>

                                </div>

                            <?php } ?>

                        </div>

                    </div>

                </div>

            </div>

        </section>



        <div class="cta-section before mb-5">

            <div class="container-fluid px-md-5">

                <div class="cta-wrapper">

                    <div class="mask-shape">

                        <img src="<?= theme_url; ?>img/cta-mask.png" title="shape-img" alt="shape-img">

                    </div>

                    <div class="circle-shape">

                        <img src="<?= theme_url; ?>img/circle.png" title="shape-img" alt="shape-img">

                    </div>

                    <div class="cta-image wow fadeInUp" data-wow-delay=".3s">

                        <img src="<?= theme_url; ?>img/cta.png" title="Ready to discuss your project?" alt="Ready to discuss your project?">

                    </div>

                    <div class="cta-items gap-4">

                        <div>

                            <h3 class="wow fadeInUp" data-wow-delay=".5s">Ready to discuss your project?</h3>

                            <p class="text-white">Partner with the #1 ranked digital marketing agency - before your competitor does.</p>

                        </div>

                        <a title="Contact US" href="<?= site_url; ?>/contact.html" class="theme-btn bg-white wow fadeInUp" data-wow-delay=".7s">

                            Contact Us

                            <i class="fa-solid fa-arrow-right-long"></i>

                        </a>

                    </div>

                </div>

            </div>

        </div>

        <section>



        <?php } else {



        ?>

            <!DOCTYPE html>

            <html lang="en">



            <head>

                <meta charset="UTF-8">

                <?php include 'app_top.php'; ?>

                <style>

                    .header-4 {

                        background-color: white;

                    }
                    
                    h2 span {
                        color: #005c88;
                        font-weight:700px;
                    }

                </style>

            </head>



            <body>

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





                <div class="breadcum-sec">

                    <div class="container-fluid px-md-5">

                        <div class="row g-5 align-items-center">

                            <div class="col-lg-8 col-12">

                                <div class="subtt"> America’s #1 Rated Digital Marketing Agency</div>

                                <div class="tt">

                                    <h1 class="text-white"><?php echo $cat_res['displayName']; ?> in <?php echo $ca_nam1; ?></h1>

                                </div>

                                <p><?= $page_short_desc; ?></p>

                            </div>

                            <div class="col-lg-4 col-12">

                                <div class="_qut_form wow fadeInRight animated" data-wow-delay=".5s">

                                    <div class="_head">

                                        <div class="_head-tit">Grow Your Brand</div>

                                        <p>by partnering with Zapnix</p>

                                    </div>

                                    <div id="responseMessageCategory"></div>

                                    <form id="cat_form" action="" method="post">

                                        <div class="form-group">

                                            <div class="input-group">

                                                <div class="input-icon">

                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"

                                                        class="bi bi-person" viewBox="0 0 16 16">

                                                        <path

                                                            d="M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z" />

                                                    </svg>

                                                </div>

                                                <input type="text" class="form-control" placeholder="Enter Your Name*">

                                            </div>

                                        </div>

                                        <div class="form-group">

                                            <div class="input-group">

                                                <div class="input-icon">

                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"

                                                        class="bi bi-envelope" viewBox="0 0 16 16">

                                                        <path

                                                            d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z">

                                                        </path>

                                                    </svg>

                                                </div>

                                                <input type="email" class="form-control" placeholder="name@address.com*">

                                            </div>

                                        </div>

                                        <div class="form-group">

                                            <div class="input-group">

                                                <div class="input-icon">

                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"

                                                        class="bi bi-phone" viewBox="0 0 16 16">

                                                        <path

                                                            d="M11 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h6zM5 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H5z">

                                                        </path>

                                                        <path d="M8 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"></path>

                                                    </svg>

                                                </div>

                                                <input type="text" class="form-control" placeholder="Enter Phone Number*">

                                            </div>

                                        </div>

                                        <div class="form-group">







<div class="col-12">

<div class="g-recaptcha" data-sitekey="<?=SITE_KEY;?>"></div>

</div>



</div>

                                        <button class="theme-btn w-100" type="submit" name="cat_submit">

                                            <span>

                                                Get Your Free Proposal

                                                <i class="fa-solid fa-arrow-right-long"></i>

                                            </span>

                                        </button>

                                    </form>

                                </div>

                            </div>

                        </div>

                    </div>

                </div>

                <div class=" breadcum-sec2">

                    <div class="container-fluid px-md-5">

                        <ul>

                            <li><a href="<?= site_url; ?>" title="Home"> Home</a></li>



                            <?php if ($num4 > 0) { ?>



                                <li><a href="<?= site_url; ?>/<?= getValidFileName($cat_res4['catName']); ?>.html"



                                        title="<?php echo $cat_res4['displayName']; ?> "><?php echo $cat_res4['displayName']; ?></a>



                                </li>



                            <?php } ?>



                            <?php if ($num3 > 0) { ?>



                                <li><a href="<?= site_url; ?>/<?= getValidFileName($cat_res3['catName']); ?>.html"



                                        title="<?php echo $cat_res3['displayName']; ?>"><?php echo $cat_res3['displayName']; ?></a>



                                </li>



                            <?php } ?>



                            <?php if ($num2 > 0) { ?>



                                <li><a href="<?= site_url; ?><?= $cat_res2['locationurl']; ?>/<?= getValidFileName($cat_res2['catName']); ?>.html"



                                        title="<?php echo $cat_res2['displayName']; ?>"><?php echo $cat_res2['displayName']; ?></a>



                                </li>



                            <?php  } ?>



                            <li class="active"><?php echo $cat_res['displayName']; ?></li>



                        </ul>

                    </div>

                </div>



                <div class="cateogry-page pb-5">

                    <div class="container-fluid px-md-5">

                        <div class="content-bxx">

                            <div class="main-img-bx">

                                <img src="<?= $imglink_sub; ?>" alt="<?= $cat_res['displayName']; ?> in <?= $ca_nam1; ?>" title="<?= $cat_res['displayName']; ?> in <?= $ca_nam1; ?>">



                            </div>

                            <!--<div class="section-title m-0">-->

                            <!--    <div class="tt wow fadeInUp fs-2">Want to improve your ROI? <br> <span> Drive more organic traffic to your website.</span></div>-->

                            <!--</div>-->

                            <?= $page_desc_sub; ?>

                        </div>

                        <div class="clearfix"></div>

                    </div>

                </div>



                <div class="cta-section before mb-5">

                    <div class="container-fluid px-md-5">

                        <div class="cta-wrapper">

                            <div class="mask-shape">

                                <img src="<?= theme_url; ?>img/cta-mask.png" alt="shape-img" title="shape-img">

                            </div>

                            <div class="circle-shape">

                                <img src="<?= theme_url; ?>img/circle.png" alt="shape-img" title="shape-img">

                            </div>

                            <div class="cta-image wow fadeInUp" data-wow-delay=".3s">

                                <img src="<?= theme_url; ?>img/cta.png" alt="Ready to discuss your project?" title="Ready to discuss your project?">

                            </div>

                            <div class="cta-items gap-4">

                                <div>

                                    <h3 class="wow fadeInUp" data-wow-delay=".5s">Ready to discuss your project?</h3>

                                    <p class="text-white">Partner with the #1 ranked digital marketing agency - before your competitor does.</p>

                                </div>

                                <a title="Contact Us" href="<?= site_url; ?>/contact.html" class="theme-btn bg-white wow fadeInUp" data-wow-delay=".7s">

                                    Contact Us

                                    <i class="fa-solid fa-arrow-right-long"></i>

                                </a>

                            </div>

                        </div>

                    </div>

                </div>



                <section class="service-section-3 section-padding pt-3">

                    <div class="line-shape-2">

                        <img src="<?= theme_url; ?>img/service/line-shape-2.png" alt="shape-img" title="shape-img">

                    </div>

                    <div class="container-fluid px-md-5">

                        <div class="section-title text-center">

                            <div class="tt wow fadeInUp"><?= $cat_res['displayName'];?><span> Services</span></div>

                            <p class="wow fadeInUp" data-wow-delay=".3s">By offering custom omnichannel marketing strategies, led by

                                experts and backed by data, Zapnix can help your business hit your revenue goals. Stop juggling

                                multiple agencies and start working with a top-rated agency that will drive results.</p>

                        </div>

                        <div class="row">



                            <?php

                            $cat_likenew = "SELECT catImage, catName, displayName, catDesc, catIcon, catID, catDesc1, catBanner, catImage, parentID 

                             FROM category_tbl 

                             WHERE (parentID = '" . $cat_res['parentID'] . "' AND parentID!='0') 

                             AND catID != '" . $cat_res['catID'] . "' 

                             AND status = 'Y' 

                            ORDER BY catOrder limit 0,8";

                            $cat_qryLikes = mysqli_query($GLOBALS['dbconn'], $cat_likenew);

                            while ($homeCatResult = mysqli_fetch_assoc($cat_qryLikes)) {
                                
                                $subcatId = $homeCatResult['catID'];
          $category_sub2_uncheck_loc = mysqli_query($GLOBALS['dbconn'], "select description,short_description from location_content_tbl where category_id='$subcatId' AND location_id='0'");
          $category_sub2_uncheck_res = mysqli_fetch_array($category_sub2_uncheck_loc);
          $page_subdesc1 = $category_sub2_uncheck_res['description'];
          $page_subdesc1 = str_replace('{location}', $ca_nam1, $page_subdesc1);
          $page_subdesc1 = str_ireplace('{companyName}', $admin_res['companyName'], $page_subdesc1);
          $page_subcat_desc = $category_sub2_uncheck_res['short_description'];
          $page_subcat_desc = str_replace('{location}', $ca_nam1, $page_subcat_desc);
          $page_subcat_desc = str_ireplace('{companyName}', $admin_res['companyName'], $page_subcat_desc);

          $page_subcat_desc = $page_subcat_desc != '' ? $page_subcat_desc : $subcategory['catDesc'];

                            ?>

                                <div class="col-xl-3 col-lg-4 col-md-6 wow fadeInUp" data-wow-delay=".3s">

                                    <div class="service-box-items style-3">

                                        <div class="icon">

                                            <img src="<?= upload_url; ?>category/caticon/<?= $homeCatResult['catIcon']; ?>" title="<?= $homeCatResult['catName']; ?> in <?= $ca_nam1; ?>" alt="<?= $homeCatResult['catName']; ?> in <?= $ca_nam1; ?>">

                                        </div>

                                        <div class="content">

                                            <div class="tt">

                                                <a title="<?= $homeCatResult['displayName']; ?> in <?= $ca_nam1; ?>" href="<?= site_url; ?>/<?= getValidFileName($homeCatResult['catName']); ?>.html">

                                                    <?= $homeCatResult['displayName']; ?>

                                                </a>

                                            </div>

                                            <p>

                                                 <?= substr($page_subcat_desc, 0, 125); ?>...

                                            </p>

                                            <a title="Read More" href="<?= site_url; ?>/<?= rtrim(getValidFileName($ca_nam1),'-'); ?>/<?= getValidFileName($homeCatResult['catName']); ?>.html" class="theme-btn-2">

                                                read More

                                                <i class="fa-solid fa-arrow-right-long"></i>

                                            </a>

                                        </div>

                                    </div>

                                </div>

                            <?php } ?>

                        </div>

                    </div>

                    </div>

                </section>

             <?php include 'app-pricing.php';?>



                <section class="faq-section-2 fix section-padding">

                    <div class="container">

                        <div class="section-title text-center">

                            <div class="tt wow fadeInUp fs-2">Questions to Ask <br> <span> When Hiring an SEO Agency</span></div>

                        </div>

                        <div class="faq-content style-2">

                            <div class="faq-accordion mt-4 mt-md-0">

                                <div class="accordion" id="accordion">

                                    <?php

                                    $faq = mysqli_query($GLOBALS['dbconn'], "SELECT slno, question, answer FROM faqnew_tbl WHERE status='1'");

                                    $index = 0;

                                    while ($resFaq = mysqli_fetch_assoc($faq)) {

                                        $index++;

                                        $isActive = $index === 1 ? 'show' : 'collapsed';

                                        $isExpanded = $index === 1 ? 'true' : 'false';

                                        $collapseClass = $index === 1 ? 'collapse show' : 'collapse';

                                    ?>

                                        <div class="accordion-item mb-3 wow fadeInUp" data-wow-delay=".<?= $index * 3; ?>s">

                                            <div class="accordion-header">

                                                <button class="accordion-button <?= $isActive ?>" type="button"

                                                    data-bs-toggle="collapse" data-bs-target="#faq<?= $index ?>"

                                                    aria-expanded="<?= $isExpanded ?>" aria-controls="faq<?= $index ?>">

                                                    <?= $resFaq['question']; ?>

                                                </button>

                                            </div>

                                            <div id="faq<?= $index ?>" class="accordion-collapse <?= $collapseClass ?>" data-bs-parent="#accordion">

                                                <div class="accordion-body">

                                                    <?= $resFaq['answer'] ?>

                                                </div>

                                            </div>

                                        </div>

                                    <?php } ?>

                                </div>

                            </div>

                        </div>

                    </div>

                </section>

            <?php } ?>



            <?php include 'app_footer_sub.php'; ?>

            <?php include 'app_bottom.php'; ?>

            </body>

            </html>

← Back to Directory Edit File 🔒 Chmod

WP File Manager