File: /home/adventp/www/wp-content/themes/brooklyn/partials/section.php
<?php
/* check if primary navigation has been created and set */
if ( has_nav_menu( 'primary' ) ) :
/* run query */
$pagequery = ut_prepare_front_query();
if( !empty( $pagequery ) ) {
/* start query */
query_posts( $pagequery );
}
endif; ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* needed variables */
$postID = get_the_ID();
$post_name = ut_clean_section_id($post->post_name);
$extraStyle = $extraStyleHeader = 'style="';
$template_name = get_post_meta( $postID , '_wp_page_template', true );
/* get section settings*/
$ut_display_section_header = get_post_meta( $postID , 'ut_display_section_header' , true );
/* header align */
$ut_section_header_align = get_post_meta( $postID , 'ut_section_header_align' , true );
$ut_section_header_align = empty($ut_section_header_align) ? 'center' : $ut_section_header_align; /* fallback */
/* header width */
$ut_section_header_width = get_post_meta( $postID , 'ut_section_header_width' , true );
if( !$ut_section_header_width || $ut_section_header_width == 'global' ) {
$ut_section_header_width = ot_get_option( 'ut_global_headline_width', 'seven' );
}
$ut_section_header_width = $ut_section_header_width == 'ten' ? 'grid-100' : 'grid-70 prefix-15';
/* header align */
$ut_section_header_text_align = get_post_meta( $postID , 'ut_section_header_text_align' , true);
if( !$ut_section_header_text_align || $ut_section_header_text_align == 'global' ) {
$ut_section_header_text_align = ot_get_option( 'ut_global_headline_align', 'center' );
}
$ut_section_header_text_align = 'header-' . $ut_section_header_text_align;
$ut_section_slogan = get_post_meta( $postID , 'ut_section_slogan' , true );
$ut_section_slogan = wpautop($ut_section_slogan); /* add paragraphs */
$ut_section_title_glow = get_post_meta( $postID , 'ut_section_title_glow' , true) == 'on' ? 'ut-glow' : '';
$ut_parallax_section = get_post_meta( $postID , 'ut_parallax_section' , true);
$ut_overlay_section = get_post_meta( $postID , 'ut_overlay_section' , true);
$ut_section_skin = get_post_meta( $postID , 'ut_section_skin' , true);
$ut_section_shadow = get_post_meta( $postID , 'ut_section_shadow' , true);
$ut_section_class = get_post_meta( $postID , 'ut_section_class' , true);
$ut_section_header_style = get_post_meta( $postID , 'ut_section_header_style', true );
$ut_section_header_style = ( !empty($ut_section_header_style) && $ut_section_header_style != 'global' ) ? $ut_section_header_style : ot_get_option('ut_global_headline_style');
/* video settings */
$ut_section_video_state = get_post_meta( $postID , 'ut_section_video_state' , true );
$ut_section_video_source = get_post_meta( $postID , 'ut_section_video_source' , true );
$ut_section_video_class = (isset($ut_section_video_state) && $ut_section_video_state == 'on' && isset($ut_section_video_source) && $ut_section_video_source == 'selfhosted') ? 'ut-video-section' : '';
/* section width */
$data_width = $ut_section_width = get_post_meta( $postID , 'ut_section_width' , true);
$ut_section_width_class = NULL;
if( $ut_section_width == 'split' ) {
$data_width = 'centered';
$ut_section_width_class = 'ut-split-screen';
}
/* section shadow */
$shadow = ( $ut_section_shadow == 'on' ) ? 'ut-section-shadow' : '';
/* section post parent */
$first_parent = array_reverse( get_post_ancestors( $postID ) );
if( !empty( $first_parent[0] ) ) {
$first_parent = get_page($first_parent[0]);
$post_parent = 'data-parent="section-' . ut_clean_section_id($first_parent->post_name) . '"';
} else {
$post_parent = NULL;
}
/* section header style */
$ut_section_header_style = !empty($ut_section_header_style) ? $ut_section_header_style : 'pt-style-1';
/* fallback if there is no entry or if someone switched from another theme */
$ut_section_width = empty($ut_section_width) ? 'centered' : $ut_section_width;
/* get parallax settings*/
$ut_parallax_image = get_post_meta( get_the_ID() , 'ut_parallax_image' , true );
if( is_array($ut_parallax_image) && !empty( $ut_parallax_image['background-image'] ) ) {
$ut_parallax_image = $ut_parallax_image['background-image'];
} elseif( !is_array($ut_parallax_image) && !empty($ut_parallax_image) ) {
$ut_parallax_image = $ut_parallax_image;
} else {
$ut_parallax_image = NULL;
}
if( empty($ut_parallax_image) ) {
/* check if a background color is available */
$ut_section_background_color = get_post_meta( get_the_ID() , 'ut_section_background_color' , true);
/* no color available - handle this section as a parallax section*/
if( empty($ut_section_background_color) ) {
$ut_parallax_image = true;
}
}
/* visual composer style support */
$shortcodes_custom_css = get_post_meta( get_the_ID(), '_wpb_shortcodes_custom_css', true ); ?>
<?php if( $shortcodes_custom_css ) : ?>
<style type="text/css">
<?php echo ut_safe_output($shortcodes_custom_css); ?>
</style>
<?php endif; ?>
<?php
/*
|--------------------------------------------------------------------------
| Output for Parallax Section
|--------------------------------------------------------------------------
*/
?>
<?php if( $ut_parallax_section == 'on') : ?>
<section id="<?php echo esc_attr($post_name); ?>" data-effect="fadeIn" data-width="<?php echo esc_attr($data_width); ?>" class="page-id-<?php echo esc_attr($post->ID); ?> entry-content parallax-banner parallax-section <?php echo esc_attr($ut_section_width_class); ?> <?php echo esc_attr($ut_section_skin); ?> <?php echo esc_attr($ut_section_class); ?> <?php echo esc_attr($shadow); ?>">
<div data-parallax-bottom data-parallax-factor="8" class="parallax-scroll-container parallax-scroll-container-hide"></div>
<?php if( $ut_overlay_section == 'on') : ?>
<?php $ut_overlay_pattern = get_post_meta( $postID , 'ut_overlay_pattern' , true); ?>
<?php $ut_overlay_pattern = $ut_overlay_pattern == 'on' ? 'parallax-overlay-pattern' : ''; ?>
<?php $ut_overlay_pattern_style = get_post_meta( $postID , 'ut_overlay_pattern_style' , true); ?>
<div class="parallax-overlay <?php echo esc_attr($ut_overlay_pattern); ?> <?php echo esc_attr($ut_overlay_pattern_style); ?>">
<?php endif; ?>
<a class="ut-offset-anchor" <?php echo filter_var($post_parent); ?> id="section-<?php echo esc_attr($post_name); ?>" name="section-<?php echo esc_attr($post_name); ?>"><?php echo esc_html($post_name); ?></a>
<?php /* Output Split Content */ ?>
<?php if( $ut_section_width == 'split' ) : ?>
<?php /* Content Align Left */ ?>
<?php $ut_split_content_align = get_post_meta( $postID , 'ut_split_content_align' , true); ?>
<?php $poster_image = wp_get_attachment_url( get_post_thumbnail_id( $postID ) ); ?>
<?php if( $ut_split_content_align == 'left' ) : ?>
<div class="grid-40 prefix-5 suffix-5 tablet-grid-40 tablet-prefix-5 tablet-suffix-5 mobile-grid-100 ut-split-content-left">
<?php if( $ut_display_section_header == 'show' ) : ?>
<header class="<?php echo empty($ut_parallax_image) ? 'section-header' : 'parallax-header'; ?> <?php echo esc_attr($ut_section_header_style); ?> <?php echo esc_attr($ut_section_header_text_align); ?>">
<?php if( $ut_section_header_style == 'pt-style-1' ) : ?>
<h2 class="bklyn-divider-styles bklyn-divider-style-1 <?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php else : ?>
<h2 class="bklyn-divider-styles bklyn-divider-style-1 <?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php endif; ?>
<?php if(!empty($ut_section_slogan)) : ?>
<div class="lead"><?php echo do_shortcode( ut_translate_meta($ut_section_slogan) ); ?></div>
<?php endif; ?>
</header>
<?php endif; /* end $ut_display_section_header == 'show' */ ?>
<?php $content = get_the_content(); ?>
<?php if( !empty($content) || $template_name == 'templates/template-team.php' ) : ?>
<div class="section-content">
<?php the_content(); ?>
<?php if( $template_name == 'templates/template-team.php' ) : ?>
<?php get_template_part( 'templates/template' , 'team' ); ?>
<?php endif; /* $template_name == 'templates/template-team.php' */ ?>
</div>
<?php endif; ?>
</div> <!-- end /grid-40 prefix-5 -->
<div class="grid-50 <?php echo (!empty($poster_image)) ? 'tablet-grid-50 mobile-grid-100' : 'hide-on-tablet hide-on-mobile'; ?> tablet-grid-50 mobile-grid-100 ut-split-screen-poster" data-posterparent="<?php echo esc_attr($post_name); ?>"></div>
<?php /* Content Align Right */ ?>
<?php else :?>
<div class="grid-50 <?php echo (!empty($poster_image)) ? 'tablet-grid-50 mobile-grid-100' : 'hide-on-tablet hide-on-mobile'; ?> tablet-grid-50 mobile-grid-100 ut-split-screen-poster" data-posterparent="<?php echo esc_attr($post_name); ?>"></div>
<div class="grid-40 prefix-5 suffix-5 tablet-grid-40 tablet-prefix-5 tablet-suffix-5 mobile-grid-100 ut-split-content-right">
<?php if( $ut_display_section_header == 'show' ) : ?>
<header class="<?php echo empty($ut_parallax_image) ? 'section-header' : 'parallax-header'; ?> <?php echo esc_attr($ut_section_header_style); ?> <?php echo esc_attr($ut_section_header_text_align); ?>">
<?php if( $ut_section_header_style == 'pt-style-1' ) : ?>
<h2 class="bklyn-divider-styles bklyn-divider-style-1 <?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php else : ?>
<h2 class="<?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php endif; ?>
<?php if(!empty($ut_section_slogan)) : ?>
<div class="lead"><?php echo do_shortcode( ut_translate_meta($ut_section_slogan) ); ?></div>
<?php endif; ?>
</header>
<?php endif; /* end $ut_display_section_header == 'show' */ ?>
<?php $content = get_the_content(); ?>
<?php if( !empty($content) || $template_name == 'templates/template-team.php' ) : ?>
<div class="section-content">
<?php the_content(); ?>
<?php if( $template_name == 'templates/template-team.php' ) : ?>
<?php get_template_part( 'templates/template' , 'team' ); ?>
<?php endif; /* $template_name == 'templates/template-team.php' */ ?>
</div>
<?php endif; ?>
</div> <!-- end /grid-40 prefix-5 -->
<?php endif; ?>
<?php /* Output for Centered or FullWidth Section */ ?>
<?php else : ?>
<?php /* Output for left header align */ ?>
<?php if( !empty($ut_section_header_align) && $ut_section_header_align == 'left' ) : ?>
<div class="<?php if($ut_section_width == 'centered') : ?>grid-container<?php endif; ?> parallax-content section-header-holder">
<!-- parallax header -->
<div class="grid-50 mobile-grid-100 tablet-grid-50 ut-split-screen">
<?php if( $ut_display_section_header == 'show' ) : ?>
<header class="parallax-header <?php echo esc_attr($ut_section_header_style); ?> <?php echo esc_attr($ut_section_header_text_align); ?>">
<?php if( $ut_section_header_style == 'pt-style-1' ) : ?>
<h2 class="bklyn-divider-styles bklyn-divider-style-1 parallax-title <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php else : ?>
<h2 class="parallax-title <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php endif; ?>
<?php if(!empty($ut_section_slogan)) : ?>
<div class="lead"><?php echo do_shortcode( ut_translate_meta($ut_section_slogan) ); ?></div>
<?php endif; ?>
</header>
<?php endif; ?>
</div>
<!-- close parallax header -->
<div class="section-content">
<div class="grid-50 mobile-grid-100 tablet-grid-50">
<?php the_content(); ?>
<?php if( $template_name == 'templates/template-team.php' ) : ?>
<?php get_template_part( 'templates/template' , 'team' ); ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php /* End Output for left header align */ ?>
<?php /* Output for right header align */ ?>
<?php if( !empty($ut_section_header_align) && $ut_section_header_align == 'right' ) : ?>
<div class="<?php if($ut_section_width == 'centered') : ?>grid-container<?php endif; ?> parallax-content section-header-holder">
<?php
$the_content = get_the_content();
$push_pull = empty($the_content) ? 'push-50 tablet-push-50' : '';
?>
<?php if(!empty($the_content)) : ?>
<div class="section-content">
<div class="grid-50 mobile-grid-100 tablet-grid-50">
<?php the_content(); ?>
<?php if( $template_name == 'templates/template-team.php' ) : ?>
<?php get_template_part( 'templates/template' , 'team' ); ?>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<!-- parallax header -->
<div class="grid-50 mobile-grid-100 tablet-grid-50 ut-split-screen <?php echo esc_attr($push_pull); ?>">
<?php if( $ut_display_section_header == 'show' ) : ?>
<header class="parallax-header <?php echo esc_attr($ut_section_header_style); ?> <?php echo esc_attr($ut_section_header_text_align); ?>">
<?php if( $ut_section_header_style == 'pt-style-1' ) : ?>
<h2 class="bklyn-divider-styles bklyn-divider-style-1 parallax-title <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php else : ?>
<h2 class="parallax-title <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php endif; ?>
<?php if(!empty($ut_section_slogan)) : ?>
<div class="lead"><?php echo do_shortcode( ut_translate_meta($ut_section_slogan) ); ?></div>
<?php endif; ?>
</header>
<?php endif; ?>
</div>
<!-- close parallax header -->
</div>
<?php endif; ?>
<?php /* End Output for right header align */ ?>
<?php /* Output for center header align */ ?>
<?php if( !empty($ut_section_header_align) && $ut_section_header_align == 'center' ) : ?>
<?php if( $ut_display_section_header == 'show' ) : ?>
<div class="<?php if($ut_section_width == 'centered') : ?>grid-container<?php endif; ?> parallax-content section-header-holder">
<!-- parallax header -->
<div class="<?php echo esc_attr($ut_section_header_width); ?> mobile-grid-100 tablet-grid-100">
<header class="parallax-header <?php echo esc_attr($ut_section_header_style); ?> <?php echo esc_attr($ut_section_header_text_align); ?>">
<?php if( $ut_section_header_style == 'pt-style-1' ) : ?>
<h2 class="bklyn-divider-styles bklyn-divider-style-1 parallax-title <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php else : ?>
<h2 class="parallax-title <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php endif; ?>
<?php if(!empty($ut_section_slogan)) : ?>
<div class="lead"><?php echo do_shortcode( ut_translate_meta($ut_section_slogan) ); ?></div>
<?php endif; ?>
</header>
</div>
<!-- close parallax header -->
</div>
<div class="clear"></div>
<?php endif; ?>
<?php $content = get_the_content(); if( !empty($content) || $template_name == 'templates/template-team.php' ) : ?>
<?php if( $ut_section_width == 'centered' ) : ?>
<div class="grid-container section-content"><div class="grid-100 mobile-grid-100 tablet-grid-100">
<?php else : ?>
<div class="section-content">
<?php endif; ?>
<?php the_content(); ?>
<?php if( $template_name == 'templates/template-team.php' ) : ?>
<?php get_template_part( 'templates/template' , 'team' ); ?>
<?php endif; ?>
<?php if( $ut_section_width == 'centered' ) : ?>
</div></div>
<?php else : ?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endif; /* End Output for center header align */ ?>
<?php endif; ?>
<?php if( get_post_meta( $postID , 'ut_section_fancy_border' , true ) == 'on' ) : ?>
<div class="ut-fancy-border"></div>
<?php endif; ?>
<?php if( $ut_overlay_section == 'on') : ?>
<div class="clear"></div></div>
<?php endif; ?>
<div class="ut-scroll-up-waypoint" data-section="section-<?php echo esc_attr($post_name); ?>" <?php echo filter_var($post_parent); ?>></div>
</section>
<div class="clear"></div>
<?php
/*
|--------------------------------------------------------------------------
| Output for Normal Section
|--------------------------------------------------------------------------
*/
?>
<?php else : ?>
<section id="<?php echo esc_attr($post_name); ?>" data-effect="fadeIn" data-width="<?php echo esc_attr($ut_section_width); ?>" class="page-id-<?php echo esc_attr($post->ID); ?> entry-content normal-background <?php echo esc_attr($ut_section_width_class); ?> <?php echo esc_attr($ut_section_skin); ?> <?php echo esc_attr($ut_section_class); ?> <?php echo esc_attr($shadow); ?> <?php echo esc_attr($ut_section_video_class); ?>">
<?php
/*
|--------------------------------------------------------------------------
| Section Video Player
|--------------------------------------------------------------------------
*/
if(!empty($ut_section_video_state) && $ut_section_video_state == 'on') :
$playerconfig = array();
if($ut_section_video_source == 'youtube') {
$ut_section_video = get_post_meta( $postID , 'ut_section_video' , true );
if(isset($ut_section_video) && $ut_section_video != '') { array_push($playerconfig, 'video="'.$ut_section_video.'"'); }
}
if($ut_section_video_source == 'selfhosted') {
$ut_section_video_mp4 = get_post_meta( $postID , 'ut_section_video_mp4' , true );
if(isset($ut_section_video_mp4) && $ut_section_video_mp4 != '') { array_push($playerconfig, 'mp4="'.$ut_section_video_mp4.'"'); }
$ut_section_video_ogg = get_post_meta( $postID , 'ut_section_video_ogg' , true );
if(isset($ut_section_video_ogg) && $ut_section_video_ogg != '') { array_push($playerconfig, 'ogg="'.$ut_section_video_ogg.'"'); }
$ut_section_video_webm = get_post_meta( $postID , 'ut_section_video_webm' , true );
if(isset($ut_section_video_webm) && $ut_section_video_webm != '') { array_push($playerconfig, 'webm="'.$ut_section_video_webm.'"'); }
$ut_section_video_preload = get_post_meta( $postID , 'ut_section_video_preload' , true );
if(isset($ut_section_video_preload) && $ut_section_video_preload != '') { array_push($playerconfig, 'preload="'.$ut_section_video_preload.'"'); }
}
$ut_section_video_loop = get_post_meta( $postID , 'ut_section_video_loop' , true );
if(isset($ut_section_video_loop) && $ut_section_video_loop != '') { array_push($playerconfig, 'loop="'.$ut_section_video_loop.'"'); }
$ut_section_video_volume = get_post_meta( $postID , 'ut_section_video_volume' , true );
if(isset($ut_section_video_volume) && $ut_section_video_volume != '') { array_push($playerconfig, 'volume="'.$ut_section_video_volume.'"'); }
$ut_section_video_sound = get_post_meta( $postID , 'ut_section_video_sound' , true );
if(isset($ut_section_video_sound) && $ut_section_video_sound != '') { array_push($playerconfig, 'sound="'.$ut_section_video_sound.'"'); }
$ut_section_video_mute_button = get_post_meta( $postID , 'ut_section_video_mute_button' , true );
if(isset($ut_section_video_mute_button) && $ut_section_video_mute_button != '') { array_push($playerconfig, 'mutebutton="'.$ut_section_video_mute_button.'"'); }
$ut_section_video_poster = get_post_meta( $postID , 'ut_section_video_poster' , true );
echo do_shortcode('[ut_section_video id="'.$postID.'" section="#'.$post_name.'" source="'.$ut_section_video_source.'" '.implode(" ", $playerconfig).']'); ?>
<?php endif; ?>
<?php if( $ut_overlay_section == 'on') : ?>
<?php $ut_overlay_pattern = get_post_meta( $postID , 'ut_overlay_pattern' , true); ?>
<?php $ut_overlay_pattern = $ut_overlay_pattern == 'on' ? 'parallax-overlay-pattern' : ''; ?>
<?php $ut_overlay_pattern_style = get_post_meta( $postID , 'ut_overlay_pattern_style' , true); ?>
<div class="parallax-overlay <?php echo esc_attr($ut_overlay_pattern); ?> <?php echo esc_attr($ut_overlay_pattern_style); ?>">
<?php endif; ?>
<a class="ut-offset-anchor" <?php echo filter_var($post_parent); ?> id="section-<?php echo esc_attr($post_name); ?>" name="section-<?php echo esc_attr($post_name); ?>"><?php echo esc_html($post_name); ?></a>
<?php if( $ut_section_width == 'split' ) : ?>
<?php /* Content Align Left */ ?>
<?php $ut_split_content_align = get_post_meta( $postID , 'ut_split_content_align' , true); ?>
<?php $poster_image = wp_get_attachment_url( get_post_thumbnail_id( $postID ) ); ?>
<?php if( $ut_split_content_align == 'left' ) : ?>
<div class="grid-40 prefix-5 suffix-5 tablet-grid-40 tablet-prefix-5 tablet-suffix-5 mobile-grid-100 ut-split-content-left">
<?php if( $ut_display_section_header == 'show' ) : ?>
<header class="<?php echo empty($ut_parallax_image) ? 'section-header' : 'parallax-header'; ?> <?php echo esc_attr($ut_section_header_style); ?> <?php echo esc_attr($ut_section_header_text_align); ?>">
<?php if( $ut_section_header_style == 'pt-style-1' ) : ?>
<h2 class="bklyn-divider-styles bklyn-divider-style-1 <?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php else: ?>
<h2 class="<?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php endif; ?>
<?php if(!empty($ut_section_slogan)) : ?>
<div class="lead"><?php echo do_shortcode( ut_translate_meta($ut_section_slogan) ); ?></div>
<?php endif; ?>
</header>
<?php endif; /* end $ut_display_section_header == 'show' */ ?>
<?php $content = get_the_content(); ?>
<?php if( !empty($content) || $template_name == 'templates/template-team.php' ) : ?>
<div class="section-content">
<?php the_content(); ?>
<?php if( $template_name == 'templates/template-team.php' ) : ?>
<?php get_template_part( 'templates/template' , 'team' ); ?>
<?php endif; /* $template_name == 'templates/template-team.php' */ ?>
</div>
<?php endif; ?>
</div> <!-- end /grid-40 prefix-5 -->
<div class="grid-50 <?php echo (!empty($poster_image)) ? 'tablet-grid-50 mobile-grid-100' : 'hide-on-tablet hide-on-mobile'; ?> ut-split-screen-poster" data-posterparent="<?php echo esc_attr($post_name); ?>"></div>
<?php /* Content Align Right */ ?>
<?php else :?>
<div class="grid-50 <?php echo (!empty($poster_image)) ? 'tablet-grid-50 mobile-grid-100' : 'hide-on-tablet hide-on-mobile'; ?> tablet-grid-50 mobile-grid-100 ut-split-screen-poster" data-posterparent="<?php echo esc_attr($post_name); ?>"></div>
<div class="grid-40 prefix-5 suffix-5 tablet-grid-40 tablet-prefix-5 tablet-suffix-5 mobile-grid-100 ut-split-content-right">
<?php if( $ut_display_section_header == 'show' ) : ?>
<header class="<?php echo empty($ut_parallax_image) ? 'section-header' : 'parallax-header'; ?> <?php echo esc_attr($ut_section_header_style); ?> <?php echo esc_attr($ut_section_header_text_align); ?>">
<?php if( $ut_section_header_style == 'pt-style-1' ) : ?>
<h2 class="bklyn-divider-styles bklyn-divider-style-1 <?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php else : ?>
<h2 class="<?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php endif; ?>
<?php if(!empty($ut_section_slogan)) : ?>
<div class="lead"><?php echo do_shortcode( ut_translate_meta($ut_section_slogan) ); ?></div>
<?php endif; ?>
</header>
<?php endif; /* end $ut_display_section_header == 'show' */ ?>
<?php $content = get_the_content(); ?>
<?php if( !empty($content) || $template_name == 'templates/template-team.php' ) : ?>
<div class="section-content">
<?php the_content(); ?>
<?php if( $template_name == 'templates/template-team.php' ) : ?>
<?php get_template_part( 'templates/template' , 'team' ); ?>
<?php endif; /* $template_name == 'templates/template-team.php' */ ?>
</div>
<?php endif; ?>
</div> <!-- end /grid-40 prefix-5 -->
<?php endif; ?>
<?php /* output for centered or fullwidth section */ ?>
<?php else : ?>
<?php /* Output for left header align */ ?>
<?php if( !empty($ut_section_header_align) && $ut_section_header_align == 'left' ) : ?>
<div class="<?php if($ut_section_width == 'centered') : ?>grid-container<?php endif; ?> section-header-holder">
<!-- section header -->
<div class="grid-50 mobile-grid-100 tablet-grid-50 ut-split-screen">
<?php if( $ut_display_section_header == 'show' ) : ?>
<header class="<?php echo empty($ut_parallax_image) ? 'section-header' : 'parallax-header'; ?> <?php echo esc_attr($ut_section_header_style); ?> <?php echo esc_attr($ut_section_header_text_align); ?>">
<?php if( $ut_section_header_style == 'pt-style-1' ) : ?>
<h2 class="bklyn-divider-styles bklyn-divider-style-1 <?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php else : ?>
<h2 class="<?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php endif; ?>
<?php if(!empty($ut_section_slogan)) : ?>
<div class="lead"><?php echo do_shortcode( ut_translate_meta($ut_section_slogan) ); ?></div>
<?php endif; ?>
</header>
<?php endif; ?>
</div>
<!-- close section header -->
<div class="section-content">
<div class="grid-50 mobile-grid-100 tablet-grid-50">
<?php the_content(); ?>
<?php if( $template_name == 'templates/template-team.php' ) : ?>
<?php get_template_part( 'templates/template' , 'team' ); ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php /* End Output for left header align */ ?>
<?php /* Output for right header align */ ?>
<?php if( !empty($ut_section_header_align) && $ut_section_header_align == 'right' ) : ?>
<div class="<?php if($ut_section_width == 'centered') : ?>grid-container<?php endif; ?> section-header-holder">
<?php
$the_content = get_the_content();
$push_pull = empty($the_content) ? 'push-50 tablet-push-50' : '';
?>
<?php if( !empty($the_content) ) : ?>
<div class="section-content">
<div class="grid-50 mobile-grid-100 tablet-grid-50">
<?php the_content(); ?>
<?php if( $template_name == 'templates/template-team.php' ) : ?>
<?php get_template_part( 'templates/template' , 'team' ); ?>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<!-- section header -->
<div class="grid-50 tablet-grid-50 mobile-grid-100 ut-split-screen <?php echo esc_attr($push_pull); ?>">
<?php if( $ut_display_section_header == 'show' ) : ?>
<header class="<?php echo empty($ut_parallax_image) ? 'section-header' : 'parallax-header'; ?> <?php echo esc_attr($ut_section_header_style); ?> <?php echo esc_attr($ut_section_header_text_align); ?>">
<?php if( $ut_section_header_style == 'pt-style-1' ) : ?>
<h2 class="bklyn-divider-styles bklyn-divider-style-1 <?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php else : ?>
<h2 class="<?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php endif; ?>
<?php if(!empty($ut_section_slogan)) : ?>
<div class="lead"><?php echo do_shortcode( ut_translate_meta($ut_section_slogan) ); ?></div>
<?php endif; ?>
</header>
<?php endif; ?>
</div>
<!-- close section header -->
</div>
<?php endif; ?>
<?php /* End Output for right header align */ ?>
<?php /* Output for center header align */ ?>
<?php if( !empty($ut_section_header_align) && $ut_section_header_align == 'center' ) : ?>
<?php if( $ut_display_section_header == 'show' && !empty( $pagequery ) ) : ?>
<div class="<?php if($ut_section_width == 'centered') : ?>grid-container<?php endif; ?> section-header-holder">
<!-- section header -->
<div class="<?php echo esc_attr($ut_section_header_width); ?> mobile-grid-100 tablet-grid-100">
<header class="<?php echo empty($ut_parallax_image) ? 'section-header' : 'parallax-header'; ?> <?php echo esc_attr($ut_section_header_style); ?> <?php echo esc_attr($ut_section_header_text_align); ?>">
<?php if( $ut_section_header_style == 'pt-style-1' ) : ?>
<h2 class="bklyn-divider-styles bklyn-divider-style-1 <?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php else: ?>
<h2 class="<?php echo empty($ut_parallax_image) ? 'section-title' : 'parallax-title'; ?> <?php echo esc_attr($ut_section_title_glow); ?>"><span><?php the_title(); ?></span></h2>
<?php endif; ?>
<?php if(!empty($ut_section_slogan)) : ?>
<div class="lead"><?php echo do_shortcode( ut_translate_meta($ut_section_slogan) ); ?></div>
<?php endif; ?>
</header>
</div>
<!-- close section header -->
</div>
<div class="clear"></div>
<?php endif; /* end $ut_display_section_header == 'show' */ ?>
<?php if( empty( $pagequery ) ) : ?>
<!-- Installation Notes -->
<?php ut_installation_note(); ?>
<?php endif; ?>
<?php $content = get_the_content();
if( !empty($content) && !empty( $pagequery ) || $template_name == 'templates/template-team.php' ) : ?>
<?php if( $ut_section_width == 'centered' ) : ?>
<div class="grid-container section-content"><div class="grid-100 mobile-grid-100 tablet-grid-100">
<?php else : ?>
<div class="section-content">
<?php endif; ?>
<?php the_content(); ?>
<?php if( $template_name == 'templates/template-team.php' ) : ?>
<?php get_template_part( 'templates/template' , 'team' ); ?>
<?php endif; ?>
<?php if( $ut_section_width == 'centered' ) : ?>
</div></div>
<?php else : ?>
</div>
<?php endif; ?>
<?php endif; /* End Output for left header center */ ?>
<?php endif; ?>
<?php endif; ?>
<?php if( get_post_meta( $postID , 'ut_section_fancy_border' , true ) == 'on' ) : ?>
<div class="ut-fancy-border"></div>
<?php endif; ?>
<?php if( $ut_overlay_section == 'on') : ?>
<div class="clear"></div></div>
<?php endif; ?>
<div class="ut-scroll-up-waypoint" data-section="section-<?php echo esc_attr($post_name); ?>" <?php echo filter_var($post_parent); ?>></div>
</section>
<div class="clear"></div>
<?php endif; ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'index' ); ?>
<?php endif; ?>
<?php wp_reset_query(); ?>