ÌìÃÀ´«Ã½
← Back
Editing: 6ad40f16c170ed86b3cc5b44e0a911ecf8ee29ea.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"> <?php if( is_page_template( 'views/theschmidt.blade.php' ) || $post->post_type == 'sac' ): ?> <nav class="nav-top-left hide-mobile"> <?php if(has_nav_menu('sac_header_navigation_left')): ?> <?php echo wp_nav_menu(['theme_location' => 'sac_header_navigation_left', 'menu_class' => 'nav', 'depth' => 1]); ?> <?php endif; ?> </nav> <nav class="nav-top-right"> <?php if(has_nav_menu('sac_footer_navigation_right')): ?> <?php echo wp_nav_menu(['theme_location' => 'sac_footer_navigation_right', 'menu_class' => 'nav', 'depth' => 1]); ?> <?php endif; ?> </nav> <?php else: ?> <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> <?php endif; ?> <div class="mobilenav hide-desktop"> <?php if( is_page_template( 'views/theschmidt.blade.php' ) || $post->post_type == 'sac' ): ?> <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('sac_primary_navigation') ) : ?> <?php wp_nav_menu( array( 'theme_location' => 'sac_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' => 'sac_primary_navigation', 'menu_class' => 'navbar-nav' ) ); ?> </nav><!-- #site-navigation --> <?php endif; ?> </div> </div> <?php else: ?> <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> <?php endif; ?> </div> </div> </div> <div class="middle-bar"> <div class="middle-contain"> <div class="brand-left"> <?php if( is_page_template( 'views/theschmidt.blade.php' ) || $post->post_type == 'sac' ): ?> <a class="brand-link sac-logo" href="<?php the_field('sac_header_logo_link', 'option'); ?>"> <img class="sacimglogo" src="<?php if ( get_field( 'schmidt_logo_image_url_id', 'option' ) ): ?> <?php the_field('schmidt_logo_image_url_id', 'option'); ?> <?php else: // field_name returned false ?> <?php the_field('sac_header_logo_id', 'option'); ?> <?php endif; // end of if field_name logic ?>" alt="<?php echo e(get_bloginfo('name', 'display')); ?>" /></a> <?php else: ?> <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> <?php endif; ?> </div> <div class="brand-right"> <div class="row btn-row"> <?php if( is_page_template( 'views/theschmidt.blade.php' ) || $post->post_type == 'sac' ): ?> <?php if ( get_field( 'sac_header_button_label', 'option' ) && get_field( 'sac_header_button_link', 'option' ) ): ?> <a class="btn btn-secondary header-apply" href="<?php the_field('sac_header_button_link', 'option'); ?>" <?php if ( get_field( 'sac_header_button_target_blank', 'option' ) == 1 ) { echo 'target="_blank"'; } ?>><?php the_field('sac_header_button_label', 'option'); ?></a> <?php endif; // end of if field_name logic ?> <?php else: ?> <?php if ( get_field( 'header_extra_button_label', 'option' ) && get_field( 'header_extra_button_link', 'option' ) ): ?> <a class="btn btn-secondary header-apply <?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' ) == true ) { 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-extra" href="<?php the_field('header_apply_button_link', 'option'); ?>" <?php if ( get_field( 'header_apply_button_target_blank', 'option' ) == true ) { 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 if ( get_field( 'header_extra_button_target_blank', 'option' ) == true ) { echo 'target="_blank"'; } ?>><?php the_field('header_tour_button_label', 'option'); ?></a> <?php endif; // end of if field_name logic ?> <?php endif; ?> <div class="nav-search hide-mobile"> <?php get_search_form(); ?> </div> </div> <?php if( is_page_template( 'views/theschmidt.blade.php' ) || $post->post_type == 'sac' ): ?> <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('sac_primary_navigation') ) : ?> <?php wp_nav_menu( array( 'theme_location' => 'sac_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' => 'sac_primary_navigation', 'menu_class' => 'navbar-nav' ) ); ?> </nav><!-- #site-navigation --> <?php endif; ?> </div> </div> <?php else: ?> <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> <?php endif; ?> </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(is_pakb_main() || is_pakb_category() || is_pakb_single() || is_tax('knowledgebase_tags')){ global $pakb_helper, $pakb_loop; $pakb_loop->the_breadcrumbs(); } else{ // All others echo ' >'; bcn_display(); } ?> </div> <?php if(is_404() || is_search()): ?> <div class="page-nav-container"> </div> <?php elseif(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() || is_pakb_main() || is_pakb_category() || is_tax('knowledgebase_tags')): ?> <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(in_category('swic-o-ween') || is_tax('swic-o-ween')): ?> <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_oween_image_ids', 'option' ) ): ?> <?php the_field('_default_oween_image_ids', 'option'); ?> <?php else: // field_name returned false ?> <?php the_field('_default_oween_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(is_page_template( 'views/template-class-of-2020.blade.php' ) || in_category('commencement') || is_tax('commencement')): ?> <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_graduation_image_ids', 'option' ) ): ?> <?php the_field('_default_graduation_image_ids', 'option'); ?> <?php else: // field_name returned false ?> <?php the_field('_default_graduation_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(in_category('quarantine-talent-show') || is_tax('quarantine-talent-show')): ?> <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_qts_image_ids', 'option' ) ): ?> <?php the_field('_default_qts_image_ids', 'option'); ?> <?php else: // field_name returned false ?> <?php the_field('_default_qts_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(get_field( 'slideshow' )): ?> <?php $slideshow = get_field( 'slideshow' ); ?> <?php echo do_shortcode($slideshow) ?> <h1>Has Slideshow</h1> <?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 if(is_post_type_archive( 'tribe_events' )): ?> <div class="page-header"> <h1>SWIC Events</h1> </div> <?php else: ?> <?php echo $__env->make('partials.page-header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <?php endif; ?> <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 if(is_post_type_archive( 'tribe_events' )): ?> <div class="page-header"> <h1>SWIC Events</h1> </div> <?php else: ?> <?php echo $__env->make('partials.page-header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <?php endif; ?> <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; ?> <!-- 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 if(!is_front_page() && get_field( '_fw_caption_menu' )): ?> <?php if(is_search()): ?> <!-- Nothing happens if Caption Menu or caption does not exist --> <?php else: ?> <div class="alignfull caption-menu-wrap"> <?php $captionmenuId = intval(get_field('_fw_caption_menu')); ?> <div class="featured-image-caption-menu-wrap"> <nav class="featured-image-caption-menu js-caption-menu"> <span class="menulabel"></span><?php echo wp_kses_post(wp_nav_menu(['menu' => $captionmenuId, 'echo' => false, 'menu_class' => 'navbar-nav captionmenu', 'depth' => 1])); ?> </nav> </div> </div> <?php endif; ?> <?php elseif(is_page_template( 'views/template-class-of-2020.blade.php' ) || in_category('commencement') || is_tax('commencement')): ?> <div class="alignfull caption-menu-wrap"> <div class="featured-image-caption-menu-wrap"> <nav class="featured-image-caption-menu js-caption-menu"> <span class="menulabel"></span><?php echo wp_kses_post(wp_nav_menu(['menu' => 646, 'echo' => false, 'menu_class' => 'navbar-nav captionmenu', 'depth' => 1])); ?> </nav> </div> </div> <?php elseif(in_category('quarantine-talent-show') || is_tax('quarantine-talent-show')): ?> <div class="alignfull caption-menu-wrap"> <div class="featured-image-caption-menu-wrap"> <nav class="featured-image-caption-menu js-caption-menu"> <span class="menulabel"></span><?php echo wp_kses_post(wp_nav_menu(['menu' => 717, 'echo' => false, 'menu_class' => 'navbar-nav captionmenu', 'depth' => 1])); ?> </nav> </div> </div> <?php elseif(get_field( '_fw_caption' )): ?> <div class="alignfull caption-menu-wrap"> <div class="featured-image-caption-menu-wrap"> <p class="caption"><?php the_field( '_fw_caption' ); ?></p> </div> </div> <?php else: ?> <!-- Nothing happens if Caption Menu or caption does not exist --> <?php endif; ?> <?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> <div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex" id="totop" style="display: none;"> <div class="wp-block-button totop"> <a class="wp-block-button__link wp-element-button" href="#top">To Top</a> </div> </div>
Save File
Cancel