File: /home/bigfreeodds/public_html/wp-content/themes/neon-kick-live/header.php
<?php
/**
* Neon Kick Live — Header Template
* The actual page-level content is in each page template.
* header.php outputs only the document <head> and opens <body>.
*
* @package NeonKickLive
*/
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="description" content="<?php
if ( is_singular() ) {
echo esc_attr( get_the_excerpt() ?: get_bloginfo( 'description' ) );
} else {
echo esc_attr( get_bloginfo( 'description' ) );
}
?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php
$nk_theme_pref = 'dark';
if ( is_user_logged_in() ) {
$nk_theme_pref = sanitize_key( get_user_meta( get_current_user_id(), 'neonkick_theme_preference', true ) ?: 'dark' );
}
?>
<script>
(function () {
try {
var saved = localStorage.getItem('neonkick_theme');
var pref = saved || <?php echo wp_json_encode( $nk_theme_pref ); ?>;
if (pref !== 'light' && pref !== 'dark') pref = 'dark';
document.body.classList.toggle('light', pref === 'light');
} catch (e) {
document.body.classList.remove('light');
}
})();
</script>
<div class="app">