403Webshell
Server IP : 104.21.38.3  /  Your IP : 172.71.81.12
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/template-category.php
<?php

/**

 * * Template Name: Category Page

 * */

get_header();



?>

<?php



$page_for_posts = get_option( 'page_for_posts' );

$terms = get_terms('productcategory',array('hide_empty'=>true,'parent' => 0));

    if(!empty($terms)) {

    	 $args = array(

                          'post_type'      => 'products',

                          'posts_per_page' => -1,

                       //   'paged' => $paged,

                          'post_status'    => 'publish',

                          'orderby' => 'date',

                          'order'   => 'DESC',

                         );?>

    	

	<section class="inner-cont prod-pg">

		<div class="container">

			<?php

                 foreach($terms as $term){ 

                    if($term->name != 'Uncategorized'){

                    	     
                            $args = array(

                                        'post_type' => 'products',



                                        'tax_query' => array(

                                            array(

                                                'taxonomy' => 'productcategory',

                                                'field'    => 'term_id',

                                                'terms'    => $term->term_id,

                                            ),

                                        ),

                                        'posts_per_page' =>-1,

                                      //  'paged'          => $paged,

                                        'post_status'    => 'publish',

                                        'orderby' => 'menu_order',

                                        'order'   => 'ASC',

                                    );

              $link = get_term_link($term->term_id);

              query_posts($args);

              global $wp_rewrite, $wp_query;

             if ( have_posts() ) {

            ?>

			<div class="prod-list">

				<div class="head"><?php echo $term->name; ?></div>

				<div class="row">

				<?php 

                while(have_posts()) : the_post();

               	$img = wp_get_attachment_url(get_post_thumbnail_id($post->ID),'large');?>


			        <div class="col-md-3">

						<a href="<?php echo $link.'?id='.$post->ID;?>" class="product-item" style="background-image: url('<?php echo $img;?>');">

							<div class="p-title center-both"><?php echo $post->post_title;?></div>

						</a>

					</div>
					
		        <?php  endwhile; ?>
			
					
				</div>

			</div>


		  <?php } } }?>

		</div>
		
	</section>

<?php }?>





<?php

get_footer();

Youez - 2016 - github.com/yon3zu
LinuXploit