<!DOCTYPE html>
<html <?php language_attributes(); ?>>
	<head>
		<?php global $syrus; ?>
		<meta http-equiv="content-type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">

		<?php if($syrus->get_option("social","twitter_username")) { ?>
			<meta name="twitter:site" content="@<?php echo $syrus->get_option("social","twitter_username") ?>" />
			<meta name="twitter:card" content="summary">
			<meta name="twitter:creator" content="@<?php echo $syrus->get_option("social","twitter_username") ?>" />
		<?php } ?>

		<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

		<?php $syrus->preload_resources() ?>
		
		<?php do_action('syrus_wp_head'); ?>

		<?php if(apply_filters('syrus_handle_404', (!is_404() || $syrus->get_current_layout() != 1))) { ?>
			<?php wp_head(); ?>
		<?php } else { ?>
			<link rel="stylesheet" href="<?php echo $syrus->get_css_dir()."footer.css" ?>">
			<link rel="stylesheet" href="<?php echo $syrus->get_css_dir()."header.css" ?>">
			<link rel="stylesheet" href="<?php echo $syrus->get_css_dir()."sidebar.css" ?>">
			<link rel="stylesheet" href="<?php echo $syrus->get_css_dir()."bootstrap.min.css" ?>">
		<?php } ?>

		<style>
			  @font-face {
				font-family: 'Montserrat';
				font-style: normal;
				font-display: swap;
				src: url('<?php echo SYRUS_THEME_URI; ?>/fonts/Montserrat.ttf');
			}
		</style>
		<?php $syrus->get_option('ads','head',true); ?>
	</head>
	<body <?php body_class(); ?>>

	<a class="screen-reader-text skip-link" href="#main-content">Skip to main content</a>
	<?php if(apply_filters('syrus_handle_404', (!is_404() || $syrus->get_current_layout() != 1))) { ?>
    	<?php wp_body_open(); ?>
	<?php } ?>

	<?php do_action('before_syrus_theme_header'); ?>
	<?php $syrus->topnav(); ?>
	<?php do_action('after_syrus_theme_header'); ?>