| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) || exit; |
| 3 |
|
| 4 |
// Adv Filter Integration |
| 5 |
$adv_filter_dataset = ultimate_post()->get_adv_data_attrs( $attr ); |
| 6 |
|
| 7 |
$attr['blockId'] = sanitize_html_class( $attr['blockId'] ); |
| 8 |
$page_post_id = ( isset( $attr['currentPostId'] ) && $attr['currentPostId'] ) ? sanitize_html_class( $attr['currentPostId'] ) : ultimate_post()->get_page_post_id( $attr['blockId'] ); |
| 9 |
$exclude_id = isset( $curr_post_id ) ? $curr_post_id : ''; |
| 10 |
$self_post_id = 'data-selfpostid="' . ( ( isset( $attr['currentPostId'] ) && $attr['currentPostId'] ) ? 'yes' : 'no' ) . '"'; |
| 11 |
$wraper_after .= '<div class="ultp-next-prev-wrap" data-pages="' . $pageNum . '" data-pagenum="1" data-blockid="' . $attr['blockId'] . '" data-blockname="ultimate-post_' . $block_name . '" data-expost="' . $exclude_id . '" data-postid="' . $page_post_id . '" ' . ultimate_post()->get_builder_attr( $attr['queryType'] ) . $self_post_id . $adv_filter_dataset . '>'; |
| 12 |
if ( 1 != $pageNum ) { |
| 13 |
$wraper_after .= ultimate_post()->next_prev(); |
| 14 |
} |
| 15 |
$wraper_after .= '</div>'; |
| 16 |
|