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_List_3.php +10 -2 5.0.175.0.41 View file →
@@ -17,8 +17,9 @@
17 17 // --------------------------
18 18 // Layout
19 19 // --------------------------
20 20 'layout' => 'layout1',
21 + 'infiniteScroll' => false,
21 22
22 23 // --------------------------
23 24 // Query Setting
24 25 // --------------------------
@@ -254,15 +255,22 @@
254 255 $attr['popupAutoPlay'] = $attr['popupAutoPlay'] == true;
255 256 $attr['readMoreText'] = wp_kses( $attr['readMoreText'], ultimate_post()->ultp_allowed_html_tags() );
256 257 $attr['varticalAlign'] = sanitize_html_class( $attr['varticalAlign'] );
257 258
259 + $iscroll = '';
260 + $wrap_data = '';
261 + if ( $attr['infiniteScroll'] ) {
262 + $iscroll = 'ultp-iscroll-active';
263 + include ULTP_PATH . 'blocks/template/infinite_scroll_data.php';
264 + }
265 +
258 266 if ( $recent_posts->have_posts() ) {
259 267
260 268 // Pagination Block Html
261 269 include ULTP_PATH . 'blocks/template/pagination_block.php';
262 270
263 - $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'] : '' ) . '">';
264 - $wraper_before .= '<div class="ultp-block-wrapper">';
271 + $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 . '">';
272 + $wraper_before .= '<div class="ultp-block-wrapper" ' . $wrap_data . '>';
265 273
266 274 // Loading
267 275 $wraper_before .= ultimate_post()->postx_loading();
268 276