HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/hanode/public_html/wp-content/themes/kingstore/search.php
<?php get_header(); ?>

<?php kingstore_breadcrumb_title(); ?>
<div class="container">
	<div class="listing-title">			
		<h1><span><?php kingstore_title(); ?></span></h1>				
	</div>
	<?php
	$kingstore_post_type = isset( $_GET['search_posttype'] ) ? $_GET['search_posttype'] : '';
	if( ( $kingstore_post_type != '' ) &&  locate_template( 'templates/search-' . $kingstore_post_type . '.php' ) ){
		get_template_part( 'templates/search', $kingstore_post_type );
	}else{ 
		if( have_posts() ){
			?>
			<div class="blog-content content-search">
				<?php 
				while (have_posts()) : the_post(); 
					global $post;
					$post_format = get_post_format();
					?>
					<div id="post-<?php the_ID();?>" <?php post_class( 'theme-clearfix' ); ?>>
						<div class="entry clearfix">
							<?php if (get_the_post_thumbnail()){?>
							<div class="entry-thumb pull-left">
								<a class="entry-hover" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">			
									<?php the_post_thumbnail("thumbnail")?>
								</a>
							</div>
							<?php }?>
							<div class="entry-content">
								<div class="title-blog">
									<h3>
										<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?> </a>
									</h3>
								</div>
								<div class="entry-meta">
									<span class="entry-author"><i class="fa fa-user"></i><?php the_author_posts_link(); ?></span>
									<span class="entry-date">
										<i class="fa fa-clock-o"></i><?php echo ( get_the_title() ) ? date( 'F j, Y',strtotime($post->post_date)) : '<a href="'.get_the_permalink().'">'.date( 'F j, Y',strtotime($post->post_date)).'</a>'; ?>
									</span>
									<?php if( has_category()) :?>
										<span class="category-blog">
											<i class="fa fa fa-folder-open"></i><?php the_category(', '); ?>
										</span>
									<?php endif; ?>
								</div>
								<div class="entry-description">
									<?php 

									if ( preg_match('/<!--more(.*?)?-->/', $post->post_content, $matches) ) {
										$content = explode($matches[0], $post->post_content, 2);
										$content = $content[0];
										$content = wp_trim_words($post->post_content, 30, '...');
										echo $content;	
									} else {
										$content = wp_trim_words($post->post_content, 25, '...');
										echo $content;	
									}		
									?>
								</div>
								<div class="bl_read_more"><a href="<?php the_permalink(); ?>"><?php esc_html_e('Read more','kingstore')?><i class="fa fa-angle-double-right"></i></a></div>
								<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'kingstore' ).'</span>', 'after' => '</div>' , 'link_before' => '<span>', 'link_after'  => '</span>' ) ); ?>
							</div>
						</div>
					</div>			
				<?php endwhile; ?>
				<?php get_template_part('templates/pagination'); ?>
			</div>
			<?php
		}else{
			get_template_part('templates/no-results');
		}
	}
	?>
</div>
<?php get_footer(); ?>