File: /home/reachcon/www/wp-content/themes/reach-connects/header.php
<?php global $omada,$omadaLayout; ?>
<!doctype html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<?php
$omadaLayout->omadaHeader();
wp_head();
?>
</head>
<body <?php echo body_class(); ?>>
<?php
// Display Site Alerts
if( have_rows('omada_alerts','option') ):
while ( have_rows('omada_alerts','option') ) : the_row();
if(get_sub_field('active')=='1'){
echo '<div class="websiteAlert callout '.get_sub_field('alert_color').'">';
if(get_sub_field('alert_title')){ echo '<strong>'.get_sub_field('alert_title').'</strong>:'; }
if(get_sub_field('alert_text')){ the_sub_field('alert_text'); }
echo '</div>';
}
endwhile;
endif;
// IF YOU DO NOT WISH TO USE THE HEADER BUILDER SIMPLY REMOVE THE FOLLOWING CODE AND BUILD YOUR HEADERS.
if(!$omadaLayout->hideHeader){
$pid = $post->post_ID;
$selected = get_field('omada_header_selection',$pid);
$tempId = ($selected!='') ? $selected : get_field('omada_default_header','option');
$id = ($omadaLayout->headerID) ? $omadaLayout->headerID : $tempId; // Check Override
if($id!=''){
echo '<header id="header">'.apply_filters('the_content', get_post_field('post_content', $id)).'</header>'."\n";
}
}
/* This commented code will allows you to assign code to specific pages if needed.
if ( is_front_page() && is_home() ) {
// Default homepage
} elseif ( is_front_page()){
//Static homepage
} elseif ( is_home()){
//Blog page
} else {
//everything else
}
*/
?>