get_adv_data_attrs( $attr ); $attr['blockId'] = sanitize_html_class( $attr['blockId'] ); $allowed_html_tags = ultimate_post()->ultp_allowed_html_tags(); $attr['loadMoreText'] = isset( $attr['loadMoreText'] ) ? wp_kses( $attr['loadMoreText'], $allowed_html_tags ) : 'Load More'; $page_post_id = ( isset( $attr['currentPostId'] ) && $attr['currentPostId'] ) ? sanitize_html_class( $attr['currentPostId'] ) : ultimate_post()->get_page_post_id( $attr['blockId'] ); $self_post_id = 'data-selfpostid="' . ( ( isset( $attr['currentPostId'] ) && $attr['currentPostId'] ) ? 'yes' : 'no' ) . '"'; $exclude_id = isset( $curr_post_id ) ? $curr_post_id : ''; $wraper_after .= '
'; if ( 1 != $pageNum ) { $wraper_after .= 'get_builder_attr( $attr['queryType'] ) . $self_post_id . $adv_filter_dataset . '>' . $attr['loadMoreText'] . ' ' . ultimate_post()->get_svg_icon( 'refresh' ) . ''; } $wraper_after .= '
';