2018-11-04 12:19:44 +02:00
|
|
|
<?php
|
2018-12-19 14:46:42 +02:00
|
|
|
/**
|
2019-07-11 19:10:44 +03:00
|
|
|
* The template for displaying the header
|
2018-12-19 14:46:42 +02:00
|
|
|
*
|
2019-07-11 19:10:44 +03:00
|
|
|
* This is the template that displays all of the <head> section, opens the <body> tag and adds the site's header.
|
|
|
|
*
|
|
|
|
* @package HelloElementor
|
2018-12-19 14:46:42 +02:00
|
|
|
*/
|
|
|
|
|
2018-11-04 12:19:44 +02:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
2019-07-11 18:37:10 +03:00
|
|
|
exit; // Exit if accessed directly.
|
2018-11-04 12:19:44 +02:00
|
|
|
}
|
2023-03-20 23:39:12 +02:00
|
|
|
|
|
|
|
$viewport_content = apply_filters( 'hello_elementor_viewport_content', 'width=device-width, initial-scale=1' );
|
|
|
|
$enable_skip_link = apply_filters( 'hello_elementor_enable_skip_link', true );
|
|
|
|
$skip_link_url = apply_filters( 'hello_elementor_skip_link_url', '#content' );
|
2018-11-04 12:19:44 +02:00
|
|
|
?>
|
2018-03-19 13:51:18 +02:00
|
|
|
<!doctype html>
|
|
|
|
<html <?php language_attributes(); ?>>
|
|
|
|
<head>
|
|
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
2019-07-11 18:03:39 +03:00
|
|
|
<meta name="viewport" content="<?php echo esc_attr( $viewport_content ); ?>">
|
2021-12-19 15:46:32 +02:00
|
|
|
<link rel="profile" href="https://gmpg.org/xfn/11">
|
2018-03-19 13:51:18 +02:00
|
|
|
<?php wp_head(); ?>
|
|
|
|
</head>
|
|
|
|
<body <?php body_class(); ?>>
|
|
|
|
|
2023-01-22 18:10:21 +02:00
|
|
|
<?php wp_body_open(); ?>
|
2022-07-06 08:55:42 +03:00
|
|
|
|
2023-03-20 23:39:12 +02:00
|
|
|
<?php if ( $enable_skip_link ) { ?>
|
2023-03-27 16:53:13 +03:00
|
|
|
<a class="skip-link screen-reader-text" href="<?php echo esc_url( $skip_link_url ); ?>"><?php echo esc_html__( 'Skip to content', 'hello-elementor' ); ?></a>
|
2023-03-20 23:39:12 +02:00
|
|
|
<?php } ?>
|
2019-08-04 11:34:08 +03:00
|
|
|
|
2022-07-06 08:55:42 +03:00
|
|
|
<?php
|
2018-03-19 14:19:29 +02:00
|
|
|
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'header' ) ) {
|
2023-11-14 15:38:06 +02:00
|
|
|
if ( did_action( 'elementor/loaded' ) && hello_header_footer_experiment_active() ) {
|
|
|
|
get_template_part( 'template-parts/dynamic-header' );
|
|
|
|
} else {
|
|
|
|
get_template_part( 'template-parts/header' );
|
2021-03-17 16:10:53 +02:00
|
|
|
}
|
2018-03-27 12:22:05 +01:00
|
|
|
}
|