HEX
Server: Apache/2.4.54 (Debian)
System: Linux f988254d8f22 6.8.0-87-generic #88~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 14 14:03:14 UTC 2 x86_64
User: (1000)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/hitmag-pro/single.php
<?php
/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package HitMag Pro
 */

if ( is_attachment() ) {
	get_template_part( 'single_template_1' );
	return;
}

$hm_post_layout = hitmag_pro_single_post_template();

switch ( $hm_post_layout ) {
	case 'post-style-1':
		get_template_part( 'single_template_1' );
		break;	

	case 'post-style-2':
		get_template_part( 'single_template_2' );
		break;

	case 'post-style-3':
		get_template_part( 'single_template_3' );
		break;

	case 'post-style-4':
		get_template_part( 'single_template_4' );
		break;
	
	default:
		get_template_part( 'single_template_1' );
		break;
}