HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/shootinschool/wp-content/themes/shootinschool/single.php
<?php get_header();?>

	<?php
		$post_types = splash_sportspress_side_posts();
		$post_type = get_post_type();
	?>


	<?php if(!empty($post_types[$post_type])):
		$current = $post_types[$post_type]; ?>
		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
			<div class="<?php echo esc_attr($current['class']) ?>">
				<div class="container">
					<?php if ( have_posts() ) :
						while ( have_posts() ) : the_post();
							get_template_part('partials/global/sportspress/' . $current['template']);
						endwhile;
					endif; ?>
				</div>
			</div>
		</div>
	<?php else: ?>
		<!--SINGLE POST-->
		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
			<div class="stm-single-post stm-default-page <?php if(is_layout('magazine_one')) echo 'stm-single-post-magazine'?>">
				<div class="container">
					<?php if ( have_posts() ) :
                        $template = (is_layout('magazine_one')) ? 'partials/global/post-content-magazine': 'partials/global/post-content';

						while ( have_posts() ) : the_post();
					        get_template_part($template);
						endwhile;
					endif; ?>
				</div>
			</div>
		</div>
	<?php endif; ?>
<?php get_footer();?>