403Webshell
Server IP : 152.53.162.115  /  Your IP : 216.73.217.85
Web Server : Apache/2
System : Linux host 6.12.0-55.40.1.el10_0.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Oct 21 05:54:51 EDT 2025 x86_64
User : pbshosting ( 1005)
PHP Version : 8.3.30
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/pbshosting/domains/drkprakash.com/public_html/wp-content/themes/Theme16/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/pbshosting/domains/drkprakash.com/public_html/wp-content/themes/Theme16/ajx_press_release.php
<?php
include("../../../wp-blog-header.php");

$offset = $_POST['offset'];

?>


	  		<?php
		if($_POST['next']) { 
				$args1 = array(
				'posts_per_page' => 1,
				'post_type' => 'events',
				'offset' => $offset,
				'tax_query' => array(
							array(
								'taxonomy' => 'eventcat',
								'field' => 'term_id',
								'terms' => 6,
							)
						)
				);	
				$the_query = new WP_Query( $args1 );
			   if ( $the_query -> have_posts() ) : 
			   while ( $the_query -> have_posts() ) : $the_query -> the_post();
			   $content = get_the_content();
			   $trimmed_content = wp_trim_words( $content, 15); ?> 	
			   <input type="hidden" class="Pressoffset" value="<?php echo ($offset+3); ?>" />
			   <input type="hidden" class="offsetPrev" value="<?php echo ($offset-3); ?>" /> 
        		<div class="press-container">
                    <div class="press-image-container">
                        <img src="<?php echo wp_get_attachment_url(get_post_thumbnail_id(get_the_ID())); ?>" alt="<?php the_title(); ?>" />
                         <div class="press-date"><i class="fa fa-calendar" ></i><?php the_time('d M Y'); ?></div>
                    </div><!-- press-image-container -->
                    
                    <h4 class="press-heading"><?php the_title(); ?></h4>
                    <p><?php echo $trimmed_content; ?></p>
				<hr>
                </div><!-- featured-video -->
		<?php endwhile; endif; ?>
		 
		 <?php
				$args2 = array(
				'posts_per_page' => 2,
				'offset' => $offset+1,
				'post_type' => 'events',				
				'tax_query' => array(
							array(
								'taxonomy' => 'eventcat',
								'field' => 'term_id',
								'terms' => 6,
							)
						)
				);	
				$the_query = new WP_Query( $args2 );
			   if ( $the_query -> have_posts() ) : 
			   while ( $the_query -> have_posts() ) : $the_query -> the_post(); ?>  
			   <input type="hidden" class="Pressoffset" value="<?php echo ($offset+3); ?>" />
			   <input type="hidden" class="offsetPrev" value="<?php echo ($offset-3); ?>" /> 
			  <div class="press-media">
                    <div class="col-md-4 col-sm-4 col-xs-4 pad-left-none">
					  <div class="press-left">
						<a href="<?php the_permalink(); ?>">
						  <img class="press-object" src="<?php echo wp_get_attachment_url(get_post_thumbnail_id(get_the_ID())); ?>" alt="<?php the_title(); ?>">
						</a>
					  </div>
					</div>
					<div class="col-md-8 col-sm-8 col-xs-8 pad-left-none">
					  <div class="press-body">
						<h4><?php the_title(); ?></h4>
						<div class="press-date"><i class="fa fa-calendar" ></i><?php the_time('d M Y'); ?></div>
					  </div>
					</div><!-- col-8 -->
					<hr>
			</div><!-- featured-video-tile -->
			<?php endwhile; endif; 
	} else { 
		$args1 = array(
				'posts_per_page' => 1,
				'post_type' => 'events',
				'offset' => $offset,
				'tax_query' => array(
							array(
								'taxonomy' => 'eventcat',
								'field' => 'term_id',
								'terms' => 6,
							)
						)
				);	
				$the_query = new WP_Query( $args1 );
			   if ( $the_query -> have_posts() ) : 
			   while ( $the_query -> have_posts() ) : $the_query -> the_post(); ?> 	
			   <input type="hidden" class="Pressoffset" value="<?php echo ($offset+3); ?>" />
			   <input type="hidden" class="offsetPrev" value="<?php echo ($offset-3); ?>" /> 
        <div class="press-container">
                    <div class="press-image-container">
                        <img src="<?php echo wp_get_attachment_url(get_post_thumbnail_id(get_the_ID())); ?>" alt="<?php the_title(); ?>" />
                         <div class="press-date"><i class="fa fa-calendar" ></i><?php the_time('d M Y'); ?></div>
                    </div><!-- press-image-container -->
                    
                    <h4 class="press-heading"><?php the_title(); ?></h4>
                    <p><?php echo $trimmed_content; ?></p>
				<hr>
                </div><!-- featured-video -->
		<?php endwhile; endif; ?>
		 
		 <?php
				$args2 = array(
				'posts_per_page' => 2,
				'offset' => $offset+1,
				'post_type' => 'events',				
				'tax_query' => array(
							array(
								'taxonomy' => 'eventcat',
								'field' => 'term_id',
								'terms' => 6,
							)
						)
				);	
				$the_query = new WP_Query( $args2 );
			   if ( $the_query -> have_posts() ) : 
			   while ( $the_query -> have_posts() ) : $the_query -> the_post(); ?>  
			   <input type="hidden" class="Pressoffset" value="<?php echo ($offset+3); ?>" />
			   <input type="hidden" class="offsetPrev" value="<?php echo ($offset-3); ?>" /> 
			  <div class="press-media">
                    <div class="col-md-4 col-sm-4 col-xs-4 pad-left-none">
					  <div class="press-left">
						<a href="<?php the_permalink(); ?>">
						  <img class="press-object" src="<?php echo wp_get_attachment_url(get_post_thumbnail_id(get_the_ID())); ?>" alt="<?php the_title(); ?>">
						</a>
					  </div>
					</div>
					<div class="col-md-8 col-sm-8 col-xs-8 pad-left-none">
					  <div class="press-body">
						<h4><?php the_title(); ?></h4>
						<div class="press-date"><i class="fa fa-calendar" ></i><?php the_time('d M Y'); ?></div>
					  </div>
					</div><!-- col-8 -->
					<hr>
			</div><!-- featured-video-tile -->
			<?php endwhile; endif; 
	} ?>

Youez - 2016 - github.com/yon3zu
LinuXploit