'', ] ); function p2020_echo_close_group_container() { echo ''; } $o2_data = [ 'data' => [] ]; $open_group = false; $has_open_container = false; $use_grouping = false; if ( class_exists( '\Automattic\P2\Plugins\Core\Pinned_Posts\Grouped_Posts' ) ) { $use_grouping = \Automattic\P2\Plugins\Core\Pinned_Posts\Grouped_Posts::should_group_pinned_posts(); } ?>
$current_group ] ); $has_open_container = true; $open_group = $current_group; } } get_template_part( 'partials/post-types/post', null, [ 'post_identifier' => $post_identifier ] ); // If not underscore template add to the o2 post data array. if ( 'underscore' !== $args['engine'] ) { if ( class_exists( '\Automattic\P2\Plugins\Core\Thirdparty\O2_Data' ) ) { $post_data = \Automattic\P2\Plugins\Core\Thirdparty\O2_Data::get_fragment_for_post( $post_identifier ); if ( $post_data ) { $o2_data['data'][] = $post_data; } } } } if ( $use_grouping ) { get_template_part( 'partials/posts-group', 'close' ); } ?>
' . $json . ''; } ); } ?>