balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

header.php (1770B)


      1 <?php
      2 /**
      3  * The header for our theme
      4  *
      5  * This is the template that displays all of the <head> section and everything up until <div id="content">
      6  *
      7  * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
      8  *
      9  * @package appside
     10  */
     11 
     12 ?>
     13 <!doctype html>
     14 <html <?php language_attributes(); ?>>
     15 <head>
     16     <meta charset="<?php bloginfo( 'charset' ); ?>">
     17     <meta name="viewport" content="width=device-width, initial-scale=1">
     18     <link rel="profile" href="https://gmpg.org/xfn/11">
     19 
     20 	<?php wp_head(); ?>
     21 </head>
     22 
     23 <body <?php body_class(); ?>>
     24 <?php wp_body_open(); ?>
     25 <?php
     26 do_action( 'appside_after_body' );
     27 $page_container_meta = Appside_Group_Fields_Value::page_container( 'appside', 'header_options' );
     28 $header_variant = !empty($page_container_meta['navbar_type']) ? $page_container_meta['navbar_type'] : 'default';
     29 $header_variant = ($page_container_meta['navbar_build_type'] == 'header_builder' && !empty($page_container_meta['header_builder_style']) ) ? 'builder' : $header_variant;
     30 if ($header_variant == 'default' && cs_get_option('global_navbar_build_type') == 'default'){
     31 	$header_variant = cs_get_option('global_header_style');
     32 }elseif($header_variant == 'default' && cs_get_option('global_navbar_build_type') == 'header_builder'){
     33 	$header_variant = 'builder';
     34 }
     35 ?>
     36 <div id="page" class="site">
     37     <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'aapside' ); ?></a>
     38     <header id="masthead" class="site-header header-style-<?php echo esc_attr( $header_variant ); ?>">
     39     <?php get_template_part('template-parts/header/header',$header_variant); ?>
     40     </header><!-- #masthead -->
     41 	<?php do_action( 'appside_before_page_content' ) ?>
     42     <div id="content" class="site-content">