Current Path : /proc/4741/cwd/wp-content/themes/hello-elementor/template-parts/ |
Current File : //proc/4741/cwd/wp-content/themes/hello-elementor/template-parts/header.php |
<?php /** * The template for displaying header. * * @package HelloElementor */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } $site_name = get_bloginfo( 'name' ); $tagline = get_bloginfo( 'description', 'display' ); $header_nav_menu = wp_nav_menu( [ 'theme_location' => 'menu-1', 'fallback_cb' => false, 'echo' => false, ] ); ?> <a class="skip-link screen-reader-text" href="#content"> <?php _e( 'Skip to content', 'hello-elementor' ); ?></a> <header id="site-header" class="site-header" role="banner"> <div class="site-branding"> <?php if ( has_custom_logo() ) { the_custom_logo(); } elseif ( $site_name ) { ?> <h1 class="site-title"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( 'Home', 'hello-elementor' ); ?>" rel="home"> <?php echo esc_html( $site_name ); ?> </a> </h1> <p class="site-description"> <?php if ( $tagline ) { echo esc_html( $tagline ); } ?> </p> <?php } ?> </div> <?php if ( $header_nav_menu ) : ?> <nav class="site-navigation" role="navigation"> <?php echo $header_nav_menu; ?> </nav> <?php endif; ?> </header>