<!DOCTYPE html>

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

<head>
	<?php wp_head(); ?>
</head>

<body id="<?php print get_stylesheet(); ?>" <?php body_class(); ?>>
	<?php do_action( 'body_top' ); ?>
	<?php 
	if ( function_exists( 'wp_body_open' ) ) {
			wp_body_open();
	} else {
			do_action( 'wp_body_open' );
	} ?>
	<a class="skip-content" href="#main"><?php _e( 'Skip to content', 'author' ); ?></a>
		<div id="overflow-container" class="overflow-container">
			<div class="max-width">
				<div id="main-sidebar" class="main-sidebar">
					<?php do_action( 'before_main_sidebar' ); ?>
					<?php
					// Elementor `header` location
					if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'header' ) ) :
					?>
						<header class="site-header" id="site-header" role="banner">
							<div id="title-container" class="title-container">
								<?php
								$avatar_method = get_theme_mod( 'avatar_method' );
								$avatar        = get_theme_mod( 'avatar' );
								if ( $avatar_method == 'gravatar' || ( $avatar_method == 'upload' && ! empty( $avatar ) ) ) { ?>
									<div id="site-avatar" class="site-avatar"
											style="background-image: url('<?php echo esc_url( ct_author_output_avatar() ); ?>')"></div>
								<?php } ?>
								<div class="container">
									<?php get_template_part( 'logo' ) ?>
									<?php
									if ( get_bloginfo( 'description' ) ) {
										echo '<p class="tagline">' . esc_html( get_bloginfo( "description" ) ) . '</p>';
									} ?>
								</div>
							</div>
							<button id="toggle-navigation" class="toggle-navigation" aria-expanded="false">
								<span class="screen-reader-text"><?php _e( 'open primary menu', 'author' ); ?></span>
								<i class="fas fa-bars"></i>
							</button>
							<?php ct_author_social_icons_output(); ?>
							<?php get_template_part( 'menu', 'primary' ); ?>
						</header>
					<?php endif; ?>
					<?php do_action( 'after_header' ); ?>
					<?php get_sidebar( 'primary' ); ?>
					<?php do_action( 'after_sidebar' ); ?>
				</div>
				<?php do_action( 'before_main' ); ?>
				<section id="main" class="main" role="main">
					<?php do_action( 'main_top' );
					if ( function_exists( 'yoast_breadcrumb' ) ) {
						yoast_breadcrumb( '<p id="breadcrumbs">', '</p>' );
					}