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/templates/content-single.php
<?php get_template_part('header'); global $post; ?>
<?php 
	kingstore_setPostViews(get_the_ID()); 
?>

<?php kingstore_breadcrumb_title(); ?>
<div class="container">
	<div class="row sidebar-row">		
	
		<!-- Left Sidebar -->
		<?php if ( is_active_sidebar('left-blog') && kingstore_sidebar_template() == 'left' ):
			$kingstore_left_span_class = 'col-lg-'.sw_options('sidebar_left_expand');
			$kingstore_left_span_class .= ' col-md-'.sw_options('sidebar_left_expand_md');
			$kingstore_left_span_class .= ' col-sm-'.sw_options('sidebar_left_expand_sm');
		?>
		<aside id="left" class="sidebar <?php echo esc_attr($kingstore_left_span_class); ?>">
			<?php dynamic_sidebar('left-blog'); ?>
		</aside>
		<?php endif; ?>
	
		<div class="single main <?php kingstore_content_blog(); ?>" >
			<?php while (have_posts()) : the_post(); ?>
			<?php $related_post_column = sw_options('sidebar_blog'); ?>
			<div <?php post_class(); ?>>
				<?php $pfm = get_post_format();?>
				<div class="entry-wrap">
					<h1 class="entry-title clearfix"><?php the_title(); ?></h1>
					<div class="entry-meta clearfix">
						<span class="entry-date hidden">
							<i class="fa fa-calendar"></i> <?php esc_html_e('Register Date:', 'kingstore'); ?> <?php echo get_the_date( '', $post->ID );?>
						</span>
						<div class="entry-view hidden">
							<?php echo kingstore_getPostViews( get_the_ID() ) .' '. esc_html__( 'person read', 'kingstore' ); ?>
						</div>
					</div>
					<div class="entry-content clearfix">
						<div class="entry-summary single-content ">
							<?php the_content(); ?>
							
							<div class="clear"></div>
							<!-- link page -->
							<?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>
				
				<div class="clearfix"></div> 
				<!-- Relate Post -->
				<?php 
					global $post;
					global $related_term;
					$class_col= "";
					$categories = get_the_category($post->ID);								
					$category_ids = array();
					foreach($categories as $individual_category) {$category_ids[] = $individual_category->term_id;}
					if ($categories) {
						if($related_post_column =='full'){
							$class_col .= 'col-lg-3 col-md-3 col-sm-3';
							$related = array(
								'category__in' => $category_ids,
								'post__not_in' => array($post->ID),
								'showposts'=>4,
								'orderby'	=> 'post__in',
								'order' => 'ASC',
								'ignore_sticky_posts'=>1
								 );
						} else {
							$class_col .= 'col-lg-3 col-md-3 col-sm-3';
							$related = array(
								'category__in' => $category_ids,
								'post__not_in' => array($post->ID),
								'showposts'=>4,
								'orderby'	=> 'post__in',
								'order' => 'ASC',
								'ignore_sticky_posts'=>1
								 );
						} 
				?>
						<div class="single-post-relate">
							<h4><?php esc_html_e('Related News', 'kingstore'); ?></h4>
							<div class="row">
							<?php
								$related_term = new WP_Query($related);
								while($related_term -> have_posts()):$related_term -> the_post();
									$format = get_post_format();
							?>
								<div <?php post_class( $class_col ); ?> >
									<?php if ( get_the_post_thumbnail() ) { ?>
									<div class="item-relate-img">
										<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('kingstore_blog-responsive1'); ?></a>	
									</div>
									<?php } ?>
									<div class="item-relate-content">
										<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
										<div class="entry-date hidden"><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo get_the_date( '', $post->ID );?></div>
									</div>
								</div>
								<?php
									endwhile;
									wp_reset_postdata();
								?>
							</div>
						</div>
						<?php } ?>
					
					<div class="clearfix"></div>
					<!-- Comment Form -->
			</div>
			<?php endwhile; ?>
		</div>
		
		<!-- Right Sidebar -->
		<?php if ( is_active_sidebar('right-blog') && kingstore_sidebar_template() == 'right' ):
			$kingstore_right_span_class = 'col-lg-'.sw_options('sidebar_right_expand');
			$kingstore_right_span_class .= ' col-md-'.sw_options('sidebar_right_expand_md');
			$kingstore_right_span_class .= ' col-sm-'.sw_options('sidebar_right_expand_sm');
		?>
		<aside id="right" class="sidebar <?php echo esc_attr( $kingstore_right_span_class ); ?>">
			<?php dynamic_sidebar('right-blog'); ?>
		</aside>
		<?php endif; ?>
	</div>	
</div>
<?php get_template_part('footer'); ?>