PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.0.41
Post Grid Gutenberg Blocks – PostX v5.0.41
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 5.0.17 2.1.1 All 238 releases
← All changes | blocks/Post_Grid_3.php +10 -2 5.0.225.0.41 View file →
@@ -18,8 +18,9 @@
18 18 'advFilterEnable' => false,
19 19 'advPaginationEnable' => false,
20 20 'defQueryTax' => array(),
21 21 'advRelation' => 'AND',
22 + 'infiniteScroll' => false,
22 23
23 24 // --------------------------
24 25 // Layout
25 26 // --------------------------
@@ -255,15 +256,22 @@
255 256 $attr['readMoreText'] = wp_kses( $attr['readMoreText'], ultimate_post()->ultp_allowed_html_tags() );
256 257 $attr['titleAnimation'] = sanitize_html_class( $attr['titleAnimation'] );
257 258 $attr['overlayContentPosition'] = sanitize_html_class( $attr['overlayContentPosition'] );
258 259
260 + $iscroll = '';
261 + $wrap_data = '';
262 + if ( $attr['infiniteScroll'] ) {
263 + $iscroll = 'ultp-iscroll-active';
264 + include ULTP_PATH . 'blocks/template/infinite_scroll_data.php';
265 + }
266 +
259 267 if ( $recent_posts->have_posts() ) {
260 268
261 269 // Pagination Block Html
262 270 include ULTP_PATH . 'blocks/template/pagination_block.php';
263 271
264 - $wraper_before .= '<div ' . ( $attr['advanceId'] ? 'id="' . $attr['advanceId'] . '" ' : '' ) . ' class="ultp-post-grid-block wp-block-ultimate-post-' . $block_name . ' ultp-block-' . $attr['blockId'] . '' . ( $attr['align'] ? ' align' . $attr['align'] : '' ) . '' . ( $attr['className'] ? ' ' . $attr['className'] : '' ) . '">';
265 - $wraper_before .= '<div class="ultp-block-wrapper">';
272 + $wraper_before .= '<div ' . ( $attr['advanceId'] ? 'id="' . $attr['advanceId'] . '" ' : '' ) . ' class="ultp-post-grid-block wp-block-ultimate-post-' . $block_name . ' ultp-block-' . $attr['blockId'] . '' . ( $attr['align'] ? ' align' . $attr['align'] : '' ) . '' . ( $attr['className'] ? ' ' . $attr['className'] : '' ) . ' ' . $iscroll . '">';
273 + $wraper_before .= '<div class="ultp-block-wrapper" ' . $wrap_data . '>';
266 274
267 275 // Loading
268 276 $wraper_before .= ultimate_post()->postx_loading();
269 277