HEX
Server: LiteSpeed
System: Linux venus 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: axxoncom (1007)
PHP: 8.3.19
Disabled: 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
Upload Files
File: /home/axxoncom/domains/standardshop.pk/public_html/wp-content/themes/vasia/single.php
<?php
/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package vasia
 */

get_header();

$single_post_layout = rdt_get_option('blog_single_layout', 'right-sidebar');

//Start demo
if(isset($_GET['ps_layout']) && $_GET['ps_layout'] != '') {
	$single_post_layout = $_GET['ps_layout'];
}
//End demo
if($single_post_layout == 'right-sidebar' && is_active_sidebar('column-blog')){
	$class = 'col-lg-9 col-12 ';
}elseif($single_post_layout == 'left-sidebar' && is_active_sidebar('column-blog')){
	$class = 'col-lg-9 col-12  order-lg-last';
}else{
	$class = 'col-lg-12 col-12 col-md-12';
}

$single_post_design = rdt_get_option('blog_single_design', '1');
$title_background = rdt_get_option('blog_single_bgtitle', '');
$custom_page_title_bground = get_post_meta( $post->ID, 'page_custom_title_image', true );
if ($custom_page_title_bground ) {
	$title_background = $custom_page_title_bground;
}
$title_class = '';
$title_align = rdt_get_option('blog_single_title_align', 'left');
//Start demo
if(isset($_GET['ps_title']) && $_GET['ps_title'] != '') {
	$title_align = $_GET['ps_title'];
}
//End demo
$title_color = rdt_get_option('blog_single_title', 'dark');
$title_class .= 'text-'.$title_align;
$title_class .= ' text-'.$title_color;

$related_active = rdt_get_option( 'blog_single_related' , '1');
$related_limit = rdt_get_option('blog_single_related_limit', '4');
$related_column = rdt_get_option('blog_single_related_column', '3');
?>
<?php echo vasia_breadcrumb(); ?>
<?php if($single_post_design == '2') : ?>
	<header class="entry-header title-background <?php echo esc_attr($title_class); ?>" 
		<?php if($title_background): ?> style= "background-image: url('<?php echo esc_url($title_background); ?>');background-size: cover; " <?php endif; ?>>
		<div class="container">
			<?php
			if ( 'post' === get_post_type() ) :?>
				<div class="entry-meta"><?php 
					vasia_posted_on();
					vasia_posted_by();
				?>				
				</div>
			<!-- .entry-meta --><?php endif; ?>
			<?php
			if ( 'post' === get_post_type() ) :
				?>
				<div class="post-categories-parent">
					<?php
					echo get_the_category_list( esc_html__( ', ', 'vasia' ) );
					?>
				</div>
			<?php endif; ?>
			<?php
			the_title( '<h1 class="entry-title">', '</h1>' );			?>
		</div>
	</header><!-- .entry-header -->
<?php endif; ?>
<div id="content">
	<div class="container">
		<div class="row">
			<div class="main-content <?php echo esc_attr($class); ?>">
				<?php
				while ( have_posts() ) :
					the_post();

					get_template_part( 'template-parts/posts/content', 'single' );

					the_post_navigation(
						array(
							'prev_text' => '<span class="nav-subtitle">' . esc_html__( 'Previous', 'vasia' ) . '</span> <span class="nav-title">%title</span>',
							'next_text' => '<span class="nav-subtitle">' . esc_html__( 'Next', 'vasia' ) . '</span> <span class="nav-title">%title</span>',
						)
					);

					if ( $related_active == '1' &&  class_exists('Vasia_Core')) : ?>
					<div class="related_posts">
						<h2 class="title-block"><?php echo esc_html__( 'Related posts', 'vasia' ) ?></h2>
						<?php echo vasia_get_related_posts($post->ID, $related_limit , $related_column); ?>
					</div>
					<?php endif;

					// If comments are open or we have at least one comment, load up the comment template.
					if ( comments_open() || get_comments_number() ) :
						comments_template();
					endif;

				endwhile; // End of the loop.
				?>
			</div>
			<?php
			if($single_post_layout != 'no-sidebar' && is_active_sidebar('column-blog')){
				get_sidebar();
			}
			?>
		</div>
	</div>
</div>

<?php 
get_footer();