| 1 | <!DOCTYPE html> |
|---|
| 2 | <html <?php language_attributes(); ?>> |
|---|
| 3 | <head> |
|---|
| 4 | <meta charset="<?php bloginfo( 'charset' ); ?>"> |
|---|
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|---|
| 6 | <link rel="profile" href="https://gmpg.org/xfn/11"> |
|---|
| 7 | |
|---|
| 8 | <?php wp_head(); ?> |
|---|
| 9 | </head> |
|---|
| 10 | |
|---|
| 11 | <body <?php body_class(); ?>> |
|---|
| 12 | <?php |
|---|
| 13 | if ( function_exists( 'wp_body_open' ) ) { |
|---|
| 14 | wp_body_open(); |
|---|
| 15 | } else { |
|---|
| 16 | do_action( 'wp_body_open' ); |
|---|
| 17 | } |
|---|
| 18 | ?> |
|---|
| 19 | |
|---|
| 20 | <!-- Preloader --> |
|---|
| 21 | <?php get_template_part( 'templates/header/preloader' ); ?> |
|---|
| 22 | |
|---|
| 23 | <!-- Page Wrapper --> |
|---|
| 24 | <div id="page-wrap"> |
|---|
| 25 | |
|---|
| 26 | <!-- Boxed Wrapper --> |
|---|
| 27 | <div id="page-header" <?php echo esc_attr(ashe_options( 'general_header_width' )) === 'boxed' ? 'class="boxed-wrapper"': ''; ?>> |
|---|
| 28 | |
|---|
| 29 | <?php |
|---|
| 30 | |
|---|
| 31 | // Top Bar |
|---|
| 32 | get_template_part( 'templates/header/top', 'bar' ); |
|---|
| 33 | |
|---|
| 34 | // Page Header |
|---|
| 35 | get_template_part( 'templates/header/page', 'header' ); |
|---|
| 36 | |
|---|
| 37 | // Main Navigation |
|---|
| 38 | get_template_part( 'templates/header/main', 'navigation' ); |
|---|
| 39 | |
|---|
| 40 | ?> |
|---|
| 41 | |
|---|
| 42 | </div><!-- .boxed-wrapper --> |
|---|
| 43 | |
|---|
| 44 | <!-- Page Content --> |
|---|
| 45 | <div class="page-content"> |
|---|
| 46 | |
|---|
| 47 | <?php // Featured Slider and Links |
|---|
| 48 | $post_meta = get_post_meta(get_the_ID()); |
|---|
| 49 | |
|---|
| 50 | if ( is_front_page() && (isset($post_meta['_wp_page_template']) && 'elementor_header_footer' === $post_meta['_wp_page_template'][0]) ) { |
|---|
| 51 | |
|---|
| 52 | // Featured Slider, Carousel |
|---|
| 53 | if ( ashe_options( 'featured_slider_label' ) === true && ashe_options( 'featured_slider_location' ) !== 'blog' ) { |
|---|
| 54 | if ( ashe_options( 'featured_slider_source' ) === 'posts' ) { |
|---|
| 55 | get_template_part( 'templates/header/featured', 'slider' ); |
|---|
| 56 | } else { |
|---|
| 57 | get_template_part( 'templates/header/featured', 'slider-custom' ); |
|---|
| 58 | } |
|---|
| 59 | } |
|---|
| 60 | |
|---|
| 61 | // Featured Links, Banners |
|---|
| 62 | if ( ashe_options( 'featured_links_label' ) === true && ashe_options( 'featured_links_location' ) !== 'blog' ) { |
|---|
| 63 | get_template_part( 'templates/header/featured', 'links' ); |
|---|
| 64 | } |
|---|
| 65 | |
|---|
| 66 | } |
|---|
| 67 | |
|---|
| 68 | ?> |
|---|
| 69 | |
|---|
| 70 | <?php get_template_part( 'templates/sidebars/sidebar', 'alt' ); // Sidebar Alt ?> |
|---|