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/header.php
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
	<meta name="format-detection" content="telephone=no">
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
	
	<?php wp_head(); ?>
	<?php echo gravity_form_enqueue_scripts( 7, true ); ?>
    
</head>

<?php
$bg_image = '';
$page_image_bg = get_post_meta(get_the_ID(), 'page_image_bg', true);
if(!empty($page_image_bg)) {
    $page_image_bg = wp_get_attachment_image_src($page_image_bg, 'full');
    if(!empty($page_image_bg[0])) {
        $bg_image = $page_image_bg[0];
    }
}

$bodyBg = '';
if(is_layout('magazine_one')) {
    if(!empty($bg_image))
        $bodyBg = 'style="background: url(' . esc_url($bg_image) . '); background-size: cover; background-attachment: fixed;"';
}

?>

<body <?php body_class(splash_get_body_class()); ?> <?php if(!empty($bodyBg)) echo $bodyBg; ?>>
	<div id="wrapper" <?php if(!empty($bg_image) && empty($bodyBg)) echo 'style="background: url(' . esc_url($bg_image) . '); background-size: cover; background-attachment: fixed;"'; ?>>

		<?php
		if(!is_page_template('coming-soon.php')) {
			$header_type = get_theme_mod('header_type', 'header_1');

			switch ($header_type) {
                case 'header_2':
                    get_template_part('partials/header/header-second');
                    break;
                case 'header_3':
                    get_template_part('partials/header/header-third');
                    break;
                case 'header_4':
                    get_template_part('partials/header/header-four');
                    break;
                case 'header_magazine_one':
                    get_template_part('partials/header/header-magazine-one');
                    break;
                default:
                    get_template_part('partials/header/header-default');
                    break;
            }
		}
		
		?>
		
		<div id="main">