| 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 |
|