PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.2.5
Post Grid Gutenberg Blocks – PostX v2.2.5
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/template/data.php +14 -17 5.0.302.2.5 View file →
@@ -1,20 +1,17 @@
1 1 <?php
2 -defined( 'ABSPATH' ) || exit;
2 +defined('ABSPATH') || exit;
3 3
4 4 global $post;
5 -$post_id = get_the_ID();
6 -$title = esc_html( wp_trim_words( get_the_title( $post_id ), $attr['titleLength'] ? $attr['titleLength'] : 100 ) );
7 -$titlelink = get_permalink( $post_id );
8 -$post_thumb_id = get_post_thumbnail_id( $post_id );
9 -$user_id = $post->post_author;
10 -$author_link = get_author_posts_url( $user_id );
11 -$display_name = get_the_author_meta( 'display_name' );
12 -$time = get_the_date( ultimate_post()->get_format( $attr['metaDateFormat'] ) );
13 -$timeModified = get_the_modified_date( ultimate_post()->get_format( $attr['metaDateFormat'] ) );
14 -$comment = get_comments_number();
15 -$view = get_post_meta( get_the_ID(), '__post_views_count', true );
16 -$post_time = human_time_diff( get_the_time( 'U' ), current_time( 'U' ) );
17 -$word_read = apply_filters( 'ultp_word_read_min', 1200 );
18 -$reading_time = ceil( mb_strlen( wp_strip_all_tags( get_the_content() ) ) / $word_read ) . ( isset( $attr['metaMinText'] ) ? ' ' . wp_kses( $attr['metaMinText'], ultimate_post()->ultp_allowed_html_tags() ) : '' );
19 -$is_active = ultimate_post()->is_lc_active();
20 -$post_video = isset( $attr['vidIconEnable'] ) && $attr['vidIconEnable'] ? get_post_meta( $post_id, '__builder_feature_video', true ) : '';
5 +$post_id = get_the_ID();
6 +$title = get_the_title( $post_id );
7 +$titlelink = get_permalink( $post_id );
8 +$post_thumb_id = get_post_thumbnail_id( $post_id );
9 +$user_id = $post->post_author;
10 +$author_link = get_author_posts_url( $user_id );
11 +$display_name = get_the_author_meta('display_name');
12 +$time = get_the_date();
13 +$timeModified = get_the_modified_date();
14 +$comment = get_comments_number();
15 +$view = get_post_meta(get_the_ID(),'__post_views_count', true);
16 +$post_time = human_time_diff(get_the_time('U'),current_time('U'));
17 +$reading_time = ceil(mb_strlen(strip_tags(get_the_content()))/1200).__(' min read', 'ultimate-post');