PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.1.1
Post Grid Gutenberg Blocks – PostX v5.1.1
5.1.1 5.1.0 5.0.41 5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 All 240 releases
ultimate-post / blocks / template / infinite_scroll_data.php

infinite_scroll_data.php in Post Grid Gutenberg Blocks – PostX 5.1.1, at blocks/template/infinite_scroll_data.php

22 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || exit;
3 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Included inside block render methods; variables are local.
4
5 $adv_filter_dataset = ultimate_post()->get_adv_data_attrs( $attr );
6
7 $pagi_datasets = array(
8 'for' => 'ultp-block-' . $attr['blockId'],
9 'blockid' => sanitize_html_class( $attr['blockId'] ),
10 'expost' => isset( $curr_post_id ) ? $curr_post_id : '',
11 'pagenum' => $paged,
12 'pages' => $pageNum,
13 'blockname' => 'ultimate-post_' . $block_name,
14 'postid' => ( isset( $attr['currentPostId'] ) && $attr['currentPostId'] ) ? sanitize_html_class( $attr['currentPostId'] ) : ultimate_post()->get_page_post_id( $attr['blockId'] ),
15 'selfpostid' => ( ( isset( $attr['currentPostId'] ) && $attr['currentPostId'] ) ? 'yes' : 'no' ),
16 );
17
18 $f_pagi_datasets = ultimate_post()->get_formatted_datasets( $pagi_datasets );
19
20
21 $wrap_data = ultimate_post()->get_builder_attr( $attr['queryType'] ) . $adv_filter_dataset . $f_pagi_datasets;
22