<!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php if ( function_exists( 'wp_body_open' ) ) : wp_body_open(); endif; ?> <div class="site-container"> <?php if ( ! is_singular( [ 'post', 'page' ] ) || ! get_post_meta( get_the_ID(), 'ht_hide_header', true ) ) : ?> <header class="site-header"> <div class="header-navbar"> <div class="header-navbar__start"> <div class="header-logo"> <?php if ( has_custom_logo() ) : the_custom_logo(); else : ?> <a href="<?php echo esc_url( home_url() ); ?>" rel="home"> <div class="header-logo__name"><?php bloginfo( 'name' ); ?></div> <?php if ( get_bloginfo( 'description' ) ) : ?> <div class="header-logo__description"><?php bloginfo( 'description' ); ?></div> <?php endif; ?> </a> <?php endif; ?> </div> </div> <div class="header-navbar__end"> <div class="header-navbar__burger" data-component="burger"> <a href="#"> <i class="fas fa-bars"></i> <?php if ( function_exists( 'hivepress' ) && hivepress()->request->get_context( 'notice_count' ) ) : ?> <small><?php echo esc_html( hivepress()->request->get_context( 'notice_count' ) ); ?></small> <?php endif; ?> </a> <?php wp_nav_menu( [ 'theme_location' => 'header', 'container' => 'ul', ] ); ?> </div> <nav class="header-navbar__menu" data-component="menu"> <?php wp_nav_menu( [ 'theme_location' => 'header', 'container' => 'ul', ] ); ?> </nav> <?php if ( has_filter( 'hivetheme/v1/areas/site_header' ) ) : ?> <div class="header-navbar__actions"> <?php echo apply_filters( 'hivetheme/v1/areas/site_header', '' ); ?> </div> <?php endif; ?> </div> </div> <?php echo apply_filters( 'hivetheme/v1/areas/site_hero', '' ); ?> </header> <?php endif; ?> <div class="site-content" id="content"> <div class="container">
</div> </div> </div> <?php if ( ! is_singular( [ 'post', 'page' ] ) || ! get_post_meta( get_the_ID(), 'ht_hide_footer', true ) ) : ?> <footer class="site-footer"> <div class="container"> <?php if ( is_active_sidebar( 'site_footer' ) ) : ?> <div class="footer-widgets"> <div class="row"> <?php dynamic_sidebar( 'site_footer' ); ?> </div> </div> <?php endif; ?> <div class="footer-navbar"> <?php if ( get_theme_mod( 'copyright_notice' ) ) : ?> <div class="footer-navbar__start"> <div class="footer-navbar__copyright"> <?php echo wp_kses_post( get_theme_mod( 'copyright_notice' ) ); ?> </div> </div> <?php endif; ?> <div class="footer-navbar__end"> <nav class="footer-navbar__menu"> <?php wp_nav_menu( [ 'theme_location' => 'footer', 'container' => 'ul', ] ); ?> </nav> </div> </div> </div> </footer> <?php endif; wp_footer(); ?> </body> </html>