> $section ) : if ( empty( $section[ 'sortitem_hide' ] ) ): $key = apply_filters( 'hoot_frontpage_sections_switch', $key ); $module_bg = hoot_get_mod( "frontpage_sectionbg_{$key}-type" ); $module_bg = ( empty( $module_bg ) ) ? 'none' : $module_bg; $background_class = 'module-bg-' . $module_bg; $background_class .= ( $module_bg == 'highlight' ) ? ' area-highlight' : ''; $section['columns'] = isset( $section['columns'] ) ? $section['columns'] : '100'; $context = ( strpos( $key, 'area_' ) === 0 ) ? str_replace( 'area_', '', $key ) : ''; $key = ( empty( $context ) ) ? $key : 'widgetarea'; if ( $fpg_paged_hidemodules && $key != 'content' ) continue; switch( $key ): // Display Widget Areas case 'widgetarea': $areakey = 'area_' . $context; $structure = hoot_col_width_to_span( $section['columns'] ); $count = count( $structure ); $displayarea = false; for ( $c = 1; $c <= $count ; $c++ ) { if ( is_active_sidebar( "hoot-frontpage-{$areakey}_{$c}" ) ) { $displayarea = true; break; } } if ( $displayarea ) : ?>
>
>

' . wp_kses_post( $section['title'] ) . '

'; if ( have_posts() ) : ?>

' . wp_kses_post( $section['title'] ) . '

'; echo '
'; echo '
'; // Load the static page content while ( have_posts() ) : the_post(); hybridextend_get_content_template(); endwhile; echo '
'; echo '
'; ?>
slider = array(); $hoot_theme->sliderSettings = array( 'class' => 'fpg-slider', 'min_height' => intval( hoot_get_mod( 'wt_html_slider_min_height' ) ), ); /* Create slider object */ foreach ( $slides as $slide ) { if ( !empty( $slide['image'] ) || !empty( $slide['content'] ) || !empty( $slide['url'] ) ) { $hoot_theme->slider[] = $slide; } } /* Display Slider Template */ get_template_part( 'template-parts/slider-html' ); endif; } $slider_html = ob_get_clean(); if ( !empty( $slider_html ) ) : ?>
>
slider = array(); $hoot_theme->sliderSettings = array( 'class' => 'fpg-slider' ); /* Create slider object */ foreach ( $slides as $slide ) { if ( !empty( $slide['image'] ) ) { $hoot_theme->slider[] = $slide; } } /* Display Slider Template */ get_template_part( 'template-parts/slider-image' ); endif; } $slider_img = ob_get_clean(); if ( !empty( $slider_img ) ) : ?>
>