PluginProbe
Post Grid Gutenberg Blocks – PostX / 4.0.3
Post Grid Gutenberg Blocks – PostX v4.0.3
5.1.1 5.1.0 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 All 240 releases
ultimate-post / blocks / template / navigation-before.php

navigation-before.php in Post Grid Gutenberg Blocks – PostX 4.0.3, at blocks/template/navigation-before.php

12 lines 921 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || exit;
3
4 $attr["blockId"] = sanitize_html_class($attr["blockId"]);
5 $page_post_id = (isset($attr['currentPostId']) && $attr['currentPostId']) ? sanitize_html_class($attr['currentPostId']) : ultimate_post()->get_page_post_id(ultimate_post()->get_ID(), $attr['blockId']);
6 $exclude_id = isset( $curr_post_id ) ? $curr_post_id : "";
7 $self_post_id = 'data-selfpostid="' .( (isset($attr['currentPostId']) && $attr['currentPostId']) ? "yes" : "no"). '"';
8 $wraper_before .= '<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.'>';
9 if ( 1 != $pageNum ) {
10 $wraper_before .= ultimate_post()->next_prev();
11 }
12 $wraper_before .= '</div>';