>
>
<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>
$section ) : if ( empty( $section[ 'sortitem_hide' ] ) ): // Set section type / context $context = ( strpos( $key, 'area_' ) === 0 ) ? str_replace( 'area_', '', $key ) : ''; if ( ! empty( $context ) ) $areatype = 'widgetarea'; elseif ( $key == 'content' ) $areatype = ( is_home() ) ? 'content-blog' : 'content-page'; else $areatype = $key; $areatype = apply_filters( 'hootdu_frontpage_sections_switch', $areatype, $key, $sections ); // Exit the loop except main content for a paged post list (blog) if ( $areatype != 'content-blog' && apply_filters( 'hootdu_paged_frontpage_hidemodules', is_paged() ) ) continue; // Set section background $module_bg = hoot_get_mod( "frontpage_sectionbg_{$key}-type" ); $module_bg = ( empty( $module_bg ) ) ? 'none' : $module_bg; $section_class = 'module-bg-' . $module_bg; $section_class .= ' module-font-' . hoot_get_mod( "frontpage_sectionbg_{$key}-font" ); $section_class .= ( !empty( $section['grid'] ) && $section['grid'] == 'stretch' ) ? ' frontpage-area-stretch' : ' frontpage-area-boxed'; // Allow child themes to have templates $custom_template = hoot_get_template_part( 'front-page-' . $key, $context ); if ( $custom_template ): include( $custom_template ); else: switch( $areatype ): // Display Widget Areas case 'widgetarea': $areakey = 'area_' . $context; $section['columns'] = isset( $section['columns'] ) ? $section['columns'] : '100'; $structure = hootdu_get_column_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'] ) . '

'; ?>
>
> '; // Template modification Hook do_action( 'hootdu_loop_start', 'frontpage.php' ); while ( have_posts() ) : the_post(); // Loads the template-parts/content-{$post_type}.php template. hoot_get_content_template(); endwhile; // Template modification Hook do_action( 'hootdu_loop_end', 'frontpage.php' ); echo '
'; // Loads the template-parts/loop-nav.php template. get_template_part( 'template-parts/loop-nav' ); else : // Loads the template-parts/error.php template. get_template_part( 'template-parts/error' ); endif; ?>
>

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

'; ?>
>
>