ÌìÃÀ´«Ã½
← Back
Editing: c2aecf9799e7ec62f6682437dc1f96a6a51a7689.php
<header class="banner" id="top"> <!-- Brand Bar --> <div class="brand-bar"> <!-- Alert Bar --> <?php if( get_field( 'alert_emergency_title', 'option' ) || ( get_field( 'alert_notify_title', 'option' ) ) ): ?> <?php if( get_field( 'alert_emergency_title', 'option' ) && ( get_field( 'alert_notify_title', 'option' ) ) || get_field( 'alert_emergency_title', 'option' ) ): ?> <?php if( get_field( 'alert_emergency_url', 'option' ) ): ?> <a href="<?php the_field('alert_emergency_url', 'option'); ?>" target="_blank"><?php endif; ?> <div class="alert-bar alert emergency-alert alert-<?php the_field('alert_emergency_type', 'option'); ?>"> <div class="alert-row"> <div class="alert-text"> <h2 class="alert-title"><?php the_field('alert_emergency_icon', 'option');?></h2> <div class="alert-content"><h2 class="alert-title"><?php the_field('alert_emergency_title', 'option');?></h2> <?php the_field('alert_emergency_content', 'option'); ?> </div> </div> </div> </div> <?php if( get_field( 'alert_emergency_url', 'option' ) ): ?> </a> <?php endif; ?> <?php endif; ?> <?php if( get_field( 'alert_notify_title', 'option' ) && ( !get_field( 'alert_emergency_title', 'option' ) ) ): ?> <?php if( get_field( 'alert_notify_url', 'option' ) ): ?> <a href="<?php the_field('alert_notify_url', 'option'); ?>" target="_blank"><?php endif; ?> <div class="alert-bar alert notify-alert notify-<?php the_field('alert_notify_type', 'option'); ?>"> <div class="alert-row"> <div class="alert-text"> <h2 class="alert-title"><?php the_field('alert_notify_icon', 'option'); ?></h2> <div class="alert-content"><h2 class="alert-title"> <?php the_field('alert_notify_title', 'option'); ?></h2> <?php the_field('alert_notify_content', 'option'); ?> </div> </div> </div> </div> <?php if( get_field( 'alert_notify_url', 'option' ) ): ?> </a> <?php endif; ?> <?php endif; ?> <?php endif; ?> <!-- Top Bar --> <div class="top-bar"> <div class="top-contain"> <nav class="nav-top-left hide-mobile"> <?php if(has_nav_menu('footer_navigation_left')): ?> <?php echo wp_nav_menu(['theme_location' => 'footer_navigation_left', 'menu_class' => 'nav', 'depth' => 1]); ?> <?php endif; ?> </nav> <nav class="nav-top-right"> <?php if(has_nav_menu('footer_navigation_right')): ?> <?php echo wp_nav_menu(['theme_location' => 'footer_navigation_right', 'menu_class' => 'nav', 'depth' => 1]); ?> <?php endif; ?> </nav> <div class="mobilenav hide-desktop"> <div class="nav-row"> <!-- Primary Navigation Bar --> <div class="nav-bar"> <?php if ( function_exists('max_mega_menu_is_enabled') && max_mega_menu_is_enabled('primary_navigation') ) : ?> <?php wp_nav_menu( array( 'theme_location' => 'primary_navigation') ); ?> <?php else: ?> <nav id="site-navigation" class="main-navigation" role="navigation"> <button class="menu-toggle"><?php _e( 'Menu', 'swicedu' ); ?></button> <?php wp_nav_menu( array( 'theme_location' => 'primary_navigation', 'menu_class' => 'navbar-nav' ) ); ?> </nav><!-- #site-navigation --> <?php endif; ?> </div> </div> </div> </div> </div> <div class="middle-bar"> <div class="middle-contain"> <div class="brand-left"> <a class="brand-link" href="<?php echo e(home_url('/')); ?>"> <img src="<?php if ( get_field( 'header_logo_url_id', 'option' ) ): ?> <?php the_field('header_logo_url_id', 'option'); ?> <?php else: // field_name returned false ?> <?php the_field('header_logo_id', 'option'); ?> <?php endif; // end of if field_name logic ?>" alt="<?php echo e(get_bloginfo('name', 'display')); ?>" /> </a> </div> <div class="brand-right"> <div class="row btn-row"> <?php if ( get_field( 'header_extra_button_label', 'option' ) && get_field( 'header_extra_button_link', 'option' ) ): ?> <a class="btn btn-secondary header-extra <?php the_field('header_extra_button_color', 'option'); ?>" href="<?php the_field('header_extra_button_link', 'option'); ?>" <?php if ( get_field( 'header_extra_button_target_blank', 'option' ) == true ) { echo 'target="_blank"'; } ?>><?php the_field('header_extra_button_label', 'option'); ?></a> <?php endif; // end of if field_name logic ?> <?php if ( get_field( 'header_give_button_label', 'option' ) && get_field( 'header_give_button_link', 'option' ) ): ?> <a class="btn btn-secondary header-give" href="<?php the_field('header_give_button_link', 'option'); ?>" <?php if ( get_field( 'header_give_button_target_blank', 'option' ) == 1 ) { echo 'target="_blank"'; } ?>><?php the_field('header_give_button_label', 'option'); ?></a> <?php endif; // end of if field_name logic ?> <?php if ( get_field( 'header_apply_button_label', 'option' ) && get_field( 'header_apply_button_link', 'option' ) ): ?> <a class="btn btn-secondary header-apply" href="<?php the_field('header_apply_button_link', 'option'); ?>" <?php if ( get_field( 'header_apply_button_target_blank', 'option' ) == 1 ) { echo 'target="_blank"'; } ?>><?php the_field('header_apply_button_label', 'option'); ?></a> <?php endif; // end of if field_name logic ?> <?php if ( get_field( 'header_tour_button_label', 'option' ) && get_field( 'header_tour_button_link', 'option' ) ): ?> <a class="btn btn-secondary header-tour" href="<?php the_field('header_tour_button_link', 'option'); ?>"><?php the_field('header_tour_button_label', 'option'); ?></a> <?php endif; // end of if field_name logic ?> <div class="nav-search hide-mobile"> <?php get_search_form(); ?> </div> </div> <div class="row nav-row"> <!-- Primary Navigation Bar --> <div class="nav-bar hide-mobile"> <?php if ( function_exists('max_mega_menu_is_enabled') && max_mega_menu_is_enabled('primary_navigation') ) : ?> <?php wp_nav_menu( array( 'theme_location' => 'primary_navigation') ); ?> <?php else: ?> <nav id="site-navigation" class="main-navigation" role="navigation"> <button class="menu-toggle"><?php _e( 'Menu', 'swicedu' ); ?></button> <?php wp_nav_menu( array( 'theme_location' => 'primary_navigation', 'menu_class' => 'navbar-nav' ) ); ?> </nav><!-- #site-navigation --> <?php endif; ?> </div> </div> </div> </div> </div> <div class="bottom-bar"> <div class="bottom-bar-container"> <?php if( !is_front_page() ): ?> <div class="breadcrumbs wp-block-cover-text hide-mobile" typeof="BreadcrumbList" vocab="https://schema.org/"> <!-- Header SubNav --> <span class="homeicon"><a href="" class="home-icon"> <i class="fas fa-home"></i></a></span> > <?php if(function_exists('bcn_display')) { bcn_display(); }?> </div> <?php if(get_field( '_fw_section_menu' )): ?> <div class="page-nav-container"> <nav class="navbar"> <button class="navbar-toggler ml-auto custom-toggler" type="button" data-toggle="collapse" data-target="#page-nav"> <span class="page-nav-txt">Section Menu</span> <span class="navbar-toggler-icon page-nav-icon"><i class="fas fa-bars"></i></span> </button> <div class="navbar-collapse collapse" id="page-nav"> <?php $sectionmenuId = intval(get_field('_fw_section_menu')); ?> <div class="featured-image-section-menu-wrap"> <nav class="featured-image-section-menu js-section-menu"> <?php echo wp_kses_post(wp_nav_menu(['menu' => $sectionmenuId, 'echo' => false, 'menu_class' => 'navbar-nav', 'depth' => 2])); ?> </nav> </div> </div> </nav> </div> <?php elseif( has_children()): ?> <div class="page-nav-container"> <nav class="navbar"> <button class="navbar-toggler ml-auto custom-toggler" type="button" data-toggle="collapse" data-target="#page-nav"> <span class="page-nav-txt">Section Menu</span> <span class="navbar-toggler-icon page-nav-icon"><i class="fas fa-bars"></i></span> </button> <div class="navbar-collapse collapse" id="page-nav"> <div class="featured-image-section-menu-wrap"> <?php if( is_page_template( 'views/theschmidt.blade.php' ) || $post->post_type == 'sac' ): ?> <?php $args = array( 'parent' => $post->ID, 'post_type' => 'sac', 'post_status' => 'publish' ); $pages = get_pages($args); ?> <nav class="featured-image-section-menu js-section-menu"> <ul class="navbar-nav"> <?php foreach( $pages as $page ) { ?> <li class="nav-item menu-item"> <a href="<?php echo get_permalink($page->ID); ?>" rel="bookmark" title="<?php echo $page->post_title; ?>" class="nav-link"> <span class="title"><?php echo $page->post_title; ?></span> </a> </li> <?php } ?> </ul> </nav> <?php else: ?> <?php $args = array( 'parent' => $post->ID, 'post_type' => 'page', 'post_status' => 'publish' ); $pages = get_pages($args); ?> <nav class="featured-image-section-menu js-section-menu"> <ul class="navbar-nav"> <?php foreach( $pages as $page ) { ?> <li class="nav-item menu-item"> <a href="<?php echo get_permalink($page->ID); ?>" rel="bookmark" title="<?php echo $page->post_title; ?>" class="nav-link"> <span class="title"><?php echo $page->post_title; ?></span> </a> </li> <?php } ?> </ul> </nav> <?php endif; ?> </div> </div> </nav> </div> <?php else: ?> <!-- Nothing happens if a section menu or child pages exists --> <?php endif; ?> <?php else: ?> <div class="breadcrumbs"> </div> <?php endif; ?> </div> </div> </div> <!-- Home Slideshow --> <div class="homeslider <?php echo $__env->make('partials.toggleclasses.alerts', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> "> <?php if(is_front_page()) { echo do_shortcode('[smartslider3 slider=2]'); } ?> </div> <!-- Subpage header --> <?php if( !is_front_page() ): ?> <?php if(is_404() || is_search()): ?> <div class="sub-hero alignfull <?php echo $__env->make('partials.toggleclasses.alerts', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> "> <div class="sub-hero-content animated slideInRight"> <div class="container wp-block-cover-text"> <?php echo $__env->make('partials.page-header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <div class="swic-readspeaker wp-block-cover-text "> <?php do_action('mdg_read_speaker_listen_button') ?> </div> </div> </div> <div class="wp-block-cover-text sub-hero-img-contain"> <img src="<?php if ( get_field( '_default_featured_image_ids', 'option' ) ): ?> <?php the_field('_default_featured_image_ids', 'option'); ?> <?php else: // field_name returned false ?> <?php the_field('_default_featured_image_ids', 'option'); ?> <?php endif; // end of if field_name logic ?>" alt="<?php echo e(get_bloginfo('name', 'display')); ?>" class="sub-hero-img" /> </div> </div> <?php elseif(has_post_thumbnail()): ?> <div class="sub-hero alignfull <?php echo $__env->make('partials.toggleclasses.alerts', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> "> <div class="sub-hero-content animated slideInRight"> <div class="container wp-block-cover-text"> <?php echo $__env->make('partials.page-header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <div class="swic-readspeaker wp-block-cover-text"> <?php do_action('mdg_read_speaker_listen_button') ?> </div> </div> </div> <div class="sub-hero-img wp-block-cover-text sub-hero-img-contain"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail('full'); } ?> </div> </div> <?php else: ?> <div class="sub-hero alignfull <?php echo $__env->make('partials.toggleclasses.alerts', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> "> <div class="sub-hero-content animated slideInRight"> <div class="container wp-block-cover-text"> <?php echo $__env->make('partials.page-header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <div class="swic-readspeaker wp-block-cover-text "> <?php do_action('mdg_read_speaker_listen_button') ?> </div> </div> </div> <div class="wp-block-cover-text sub-hero-img-contain"> <img src="<?php if ( get_field( '_default_featured_image_ids', 'option' ) ): ?> <?php the_field('_default_featured_image_ids', 'option'); ?> <?php else: // field_name returned false ?> <?php the_field('_default_featured_image_ids', 'option'); ?> <?php endif; // end of if field_name logic ?>" alt="<?php echo e(get_bloginfo('name', 'display')); ?>" class="sub-hero-img" /> </div> </div> <?php endif; ?> <?php endif; ?> <!-- Caption Alert Bar --> <?php if( get_field( 'alert_captionSW_title', 'option' ) || ( get_field( 'alert_caption_title' ) ) ): ?> <div class="captionAlert-bar"> <?php if( get_field( 'alert_caption_title') && ( !get_field( 'alert_captionSW_title', 'option' ) ) ): ?> <?php if( get_field( 'alert_caption_url' ) ): ?> <a href="<?php the_field('alert_caption_url'); ?>" target="_blank"><?php endif; ?> <div class="alert-bar alert caption-alert notify-<?php the_field('alert_caption_type'); ?>"> <div class="alert-row"> <div class="alert-text"> <h2 class="alert-title"><?php the_field('alert_caption_icon'); ?></h2> <div class="alert-content"><h2 class="alert-title"><?php the_field('alert_caption_title'); ?> </h2> <?php the_field('alert_caption_content'); ?> </div> </div> </div> </div> <?php if( get_field( 'alert_caption_url' ) ): ?> </a> <?php endif; ?> <?php endif; ?> <?php if( get_field( 'alert_captionSW_title', 'option' ) && ( get_field( 'alert_caption_title') ) || get_field( 'alert_captionSW_title', 'option' ) ): ?> <?php if( get_field( 'alert_captionSW_url', 'option' ) ): ?> <a href="<?php the_field('alert_captionSW_url', 'option'); ?>" target="_blank"><?php endif; ?> <div class="alert-bar alert captionSW-alert notify-<?php the_field('alert_captionSW_type', 'option'); ?>"> <div class="alert-row"> <div class="alert-text"> <h2 class="alert-title"><?php the_field('alert_captionSW_icon', 'option'); ?></h2> <div class="alert-content"><h2 class="alert-title"><?php the_field('alert_captionSW_title', 'option'); ?> </h2><?php the_field('alert_captionSW_content', 'option'); ?> </div> </div> </div> </div> <?php if( get_field( 'alert_captionSW_url', 'option' ) ): ?> </a> <?php endif; ?> <?php endif; ?> </div> <?php endif; ?> <!-- Home Button Bar --> <?php if(is_home() || is_front_page()): ?> <!-- button Bar --> <div class="btn-bar container col-12"> <div class="row"> <div class="col-12 col-sm-12 col-md-4"> <?php if ( get_field( 'left_button_link', 'option' ) ): ?> <a class="btn btn-primary btn-block btn-lg" href="<?php the_field('left_button_link', 'option'); ?>" role="button" target="_blank"><i class="far fa-calendar-alt"></i> <?php the_field('left_button', 'option'); ?></a> <?php endif; // end of if field_name logic ?> </div> <div class="col-12 col-sm-12 col-md-4"> <?php if ( get_field( 'middle_button_link', 'option' ) ): ?> <a class="btn btn-primary btn-block btn-lg" href="<?php the_field('middle_button_link', 'option'); ?>" role="button" target="_blank"><i class="fas fa-info-circle"></i> <?php the_field('middle_button', 'option'); ?></a> <?php endif; // end of if field_name logic ?> </div> <div class="col-12 col-sm-12 col-md-4"> <?php if ( get_field( 'right_button_link', 'option' ) ): ?> <a class="btn btn-primary btn-block btn-lg" href="<?php the_field('right_button_link', 'option'); ?>" role="button" target="_blank"><i class="fas fa-comments-dollar"></i> <?php the_field('right_button', 'option'); ?></a> <?php endif; // end of if field_name logic ?> </div> </div> </div> <!-- Caption Alert Bar --> <?php if( get_field( 'alert_captionSW_title', 'option' ) || ( get_field( 'alert_caption_title' ) ) ): ?> <div class="captionAlert-bar"> <?php if( get_field( 'alert_caption_title') && ( !get_field( 'alert_captionSW_title', 'option' ) ) ): ?> <?php if( get_field( 'alert_caption_url' ) ): ?> <a href="<?php the_field('alert_caption_url'); ?>" target="_blank"><?php endif; ?> <div class="alert-bar alert caption-alert notify-<?php the_field('alert_caption_type'); ?>"> <div class="alert-row"> <div class="alert-text"> <h2 class="alert-title"><?php the_field('alert_caption_icon'); ?></h2> <div class="alert-content"><h2 class="alert-title"><?php the_field('alert_caption_title'); ?> </h2> <?php the_field('alert_caption_content'); ?> </div> </div> </div> </div> <?php if( get_field( 'alert_caption_url') ): ?> </a> <?php endif; ?> <?php endif; ?> <?php if( get_field( 'alert_captionSW_title', 'option' ) && ( get_field( 'alert_caption_title') ) || get_field( 'alert_captionSW_title', 'option' ) ): ?> <?php if( get_field( 'alert_captionSW_url', 'option' ) ): ?> <a href="<?php the_field('alert_captionSW_url', 'option'); ?>" target="_blank"><?php endif; ?> <div class="alert-bar alert captionSW-alert notify-<?php the_field('alert_captionSW_type', 'option'); ?>"> <div class="alert-row"> <div class="alert-text"> <h2 class="alert-title"><?php the_field('alert_captionSW_icon', 'option'); ?></h2> <div class="alert-content"><h2 class="alert-title"><?php the_field('alert_captionSW_title', 'option'); ?> </h2><?php the_field('alert_captionSW_content', 'option'); ?> </div> </div> </div> </div> <?php if( get_field( 'alert_captionSW_url', 'option' ) ): ?> </a> <?php endif; ?> <?php endif; ?> </div> <?php endif; ?> <?php endif; ?> </header>
Save File
Cancel