PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.0.34
Post Grid Gutenberg Blocks – PostX v5.0.34
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 5.0.17 2.1.1 2.1.2 All 237 releases
ultimate-post / blocks / template / infinite_scroll_data.php

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

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