Server IP : 172.67.216.182 / Your IP : 162.158.189.243 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/coircraft.com/wp-content/themes/coircraft/ |
Upload File : |
<?php get_header(); $term = get_queried_object(); ?> <section class="inner-cont custom-pg"> <div class="container"> <div class="inner-content products-wrapp"> <h3><?php echo $term->name; ?></h3> <p><?php echo $term->description; ?></p> <div class="product-row1"> <div class="tab-wrapp"> <?php $catposts_array = query_posts( array( 'posts_per_page' => -1, 'post_type' => 'products', 'post_status'=>'publish', 'tax_query' => array( array( 'taxonomy' => 'productcategory', 'field' => 'term_id', 'terms' => $term->term_id, ) ) ) ); if(!empty($catposts_array)){ $term_child = get_terms( 'productcategory', array( 'parent' => $term->term_id, 'orderby' => 'slug', 'hide_empty' => true ) ); if(!empty($term_child)){ ?> <div class="tab-top"> <div class=" container tab-outer"> <div class="row"> <div class="w3-bar w3-black"> <?php $i=1; foreach ( $term_child as $t_child ) { ?> <button class="w3-bar-item w3-button tablink <?php if($i == 1) echo 'active'; ?>" onclick="openCity(event,'tab<?php echo $i; ?>')"><?php echo $t_child->name; ?></button> <?php $i++; } ?> </div> </div> </div> </div> <div class="tab-body"> <?php $j=1; foreach ( $term_child as $t_child ) { ?> <div id="tab<?php echo $j; ?>" class="tabs tab-row1" style="display:<?php if($j == 1) echo 'block'; else echo 'none'; ?>;"> <?php $catsub_array = query_posts( array( 'posts_per_page' => -1, 'post_type' => 'products', 'post_status'=>'publish', 'tax_query' => array( array( 'taxonomy' => 'productcategory', 'field' => 'term_id', 'terms' => $t_child->term_id, ) ) ) ); if(!empty($catsub_array)){ $si = 1; ?> <div class="tab-top inner-tab"> <div class=" container tab-outer"> <div class="row"> <div class="w3-bar w3-black"> <?php foreach($catsub_array as $sub){ ?> <button class="w3-bar-item w3-button tablinks tabs<?php echo $j.$si; ?> <?php if($si == 1) echo 'active'; ?>" onclick="openCitys(event,'tabs<?php echo $j.$si; ?>')"><?php echo $sub->post_title; ?></button> <?php $si++; } ?> </div> </div> </div> </div> <div class="tab-body inner-tabs-wrapp"> <?php $sj=1; foreach($catsub_array as $sub){ ?> <div id="tabs<?php echo $j.$sj; ?>" class="tabsin tab-row1" style="display:<?php if($sj == 1) echo 'block'; else echo 'none'; ?>;"> <?php echo apply_filters('the_content',$sub->post_content); ?> <?php $productdetails = get_post_meta($sub->ID,'productdetails',true); if(!empty($productdetails)){ ?> <div class="facility-col1"> <div class="slider autoplay"> <?php foreach($productdetails as $dt){ $product_image = wp_get_attachment_url($dt['product-image'],'full'); ?> <div> <div class="facility-col2"> <div class="facility-row1"> <div class="facility-thm2"> <span class="square-img"> <?php if(!empty($dt['product-image'])){ ?> <img src="<?php echo $product_image; ?>" alt="thumb1 publications" /> <?php }else{ ?> <img src="<?php echo TEMPLATE_URL; ?>assets/images/cat-noimage.jpg" alt="thumb1" /> <?php } ?> <div class="txt"> <h3><?php echo $dt['product']; ?></h3> </div> </span> </div> </div> <div class="facility-row2"> <p><?php echo $dt['product-specification']; ?></p> <?php echo apply_filters('the_content',$dt['product-description']); ?> </div> </div> </div> <?php } ?> </div> </div> <?php } ?> </div> <?php $sj++; } ?> </div> <?php } ?> </div> <?php $j++; } ?> </div> <?php } else { $si = 1;$j=1;?> <div class="tab-body"> <div class="tab-top inner-tab"> <div class=" container tab-outer"> <div class="row"> <div class="w3-bar w3-black"> <?php foreach($catposts_array as $sub){ ?> <button class="w3-bar-item w3-button tablinks tabs<?php echo $j.$si; ?> <?php if($si == 1) echo 'active'; ?>" onclick="openCitys(event,'tabs<?php echo $j.$si; ?>')"><?php echo $sub->post_title; ?></button> <?php $si++; } ?> </div> </div> </div> </div> <div class="tab-body inner-tabs-wrapp"> <?php $sj=1; foreach($catposts_array as $sub){ ?> <div id="tabs<?php echo $j.$sj; ?>" class="tabsin tab-row1" style="display:<?php if($sj == 1) echo 'block'; else echo 'none'; ?>;"> <?php echo apply_filters('the_content',$sub->post_content); ?> <?php $productdetails = get_post_meta($sub->ID,'productdetails',true); if(!empty($productdetails)){ ?> <div class="facility-col1"> <div class="slider autoplay"> <?php foreach($productdetails as $dt){ $product_image = wp_get_attachment_url($dt['product-image'],'full'); ?> <div> <div class="facility-col2"> <div class="facility-row1"> <div class="facility-thm2"> <span class="square-img"> <?php if(!empty($dt['product-image'])){ ?> <img src="<?php echo $product_image; ?>" alt="thumb1 publications" /> <?php }else{ ?> <img src="<?php echo TEMPLATE_URL; ?>assets/images/cat-noimage.jpg" alt="thumb1" /> <?php } ?> <div class="txt"> <h2><?php echo $dt['product']; ?></h2> <p><?php echo $dt['product-specification']; ?></p> </div> </span> </div> </div> <div class="facility-row2"> <?php echo apply_filters('the_content',$dt['product-description']); ?> </div> </div> </div> <?php } ?> </div> </div> <?php } ?> </div> <?php $sj++; } ?> </div> </div> <?php } ?> <div class="loader-outer"> <div class="loader" style="display:none;"></div> </div> <?php }else echo '<p class="not-found">No products found</p>'; ?> </div> </div> </div> </div> </section> <?php get_footer(); ?>