'; $content_area_class = $sidebar['class_main']; } echo "\r\n\t" . '
' . "\r\n\r\n"; wmhook_entry_before(); if ( have_posts() ) { the_post(); if ( $sidebar_none_posts ) { /** * Remove JetPack sharing when Sections used */ if ( $sections_layout ) { remove_filter( 'the_content', 'sharing_display', 19 ); } echo '
'; wmhook_entry_top(); the_content(); wmhook_entry_bottom(); echo '
'; } else { $content_type = ''; if ( is_singular( 'post' ) ) { $content_type = get_post_format(); } elseif ( get_post_type() ) { $content_type = 'type-' . get_post_type(); } get_template_part( 'content', apply_filters( 'wmhook_loop_singular_content_type', $content_type ) ); } wp_reset_query(); } // /have_posts() wmhook_entry_after(); echo "\r\n\r\n\t" . '
'; if ( ! $sections_layout ) { /** * Sidebar implementation * * Output */ echo $sidebar['output']; echo "\r\n" . ' ' . "\r\n\r\n"; } ?>