fFV <05FVpfFV 9Kp5FVfFV X AH5FVfFV ;Н5FV fFV !~H5FVfFV 2 Co05FV@fFV fȤE`5FVВfFV :ɖ{i5FV`fFV ßzfW0(FVfFV 쭨 05FVfFV ֆv‚P5FVfFV r*p5FVfFV fny*5FV0fFV Qʨ@5FVfFV oNjO5FVPfFV uTn5FVfFV J>"5FVpfFV N`5FVfFV [ g05FVfFV BRjfא5FV fFV  5FV`fFV +@5FVfFV qb5FVfFV ߮S5FVfFV d z\ְ(FVfFV TBA"(FV0fFV '(Zˆ`5FVfFV W2E5FVPfFV av5FVfFV 3_o5FVpfFV "5FVfFV 8:B 5FVfFV צt b`5FV fFV {53Wh5FVfFV z\@iu5FV@fFV қ㈀5FVжfFV NJWl95FV`fFV ! B" (FVfFV )nEX>5FVfFV Jw5FVfFV _q$05FVfFV [s+\P5FV0fFV b P5FVfFV &Zy)p5FVPfFV ^Ȝ5FVfFV c )5FVpfFV 9n 5FVfFV ?Y`5FVfFV F6FV fFV 32f6FVfFV  ϰ@6FV@fFV [`6FVпfFV І,ul܀6FV`fFV +GDp6FVfFV R6FVfFV u3 6FVfFV ,|R@ 6FVfFV tE` 6FV0fFV GSLԄ` 6FVfFV _|` 6FVPfFV EĀ6FVfFV N,36FVpfFV R?Wx6FVfFV 9*aĕ 6FVfFV 1T@6FV fFV Wr{IF6FVfFV ]3L%(`(FV@fFV AOGJ 6FVfFV g N[6FV`fFV w,`6FVfFV !lk6FVfFV WjX^@(FVfFV 3]~p(FVfFV D &(FV0fFV Cnc{硧(FVfFV '{v뾘(FVPfFV ;9 >w@(FVfFV e^(FVpfFV fH.6FVfFV ?=(FVfFV eLۚ16FV fFV fhݡwP26FVfFV zݡw36FV@fFV q46FVfFV Gq`66FV`fFV 9I76FVfFV eݡw(FVfFV {q0(FVfFV q`(FVfFV }H(FV0fFV ^)LO@>6FVfFV 桹w(FVPfFV xDݡw(FV function plugin_row_meta( $links, $file ) { if ( $file == RT_THE_POST_GRID_PLUGIN_ACTIVE_FILE_NAME ) { $report_url = 'https://www.radiustheme.com/contact/'; $row_meta['issues'] = sprintf( '%2$s %3$s', esc_url( $report_url ), esc_html__( 'Facing issue?', 'the-post-grid' ), '' . esc_html__( 'Please open a support ticket.', 'the-post-grid' ) . '' ); return array_merge( $links, $row_meta ); } return (array) $links; } /** * ACF content filter * * @param string $content Content. * * @return string */ public static function tpg_acf_content_filter( $content ) { // Check if we're inside the main loop in a post or page. if ( is_single() && in_the_loop() && is_main_query() && rtTPG()->hasPro() ) { $settings = get_option( rtTPG()->options['settings'] ); $data = [ 'show_acf' => isset( $settings['show_acf_details'] ) && $settings['show_acf_details'] ? 'show' : false, 'cf_group' => isset( $settings['cf_group_details'] ) ? $settings['cf_group_details'] : [], 'cf_hide_empty_value' => isset( $settings['cf_hide_empty_value_details'] ) ? $settings['cf_hide_empty_value_details'] : false, 'cf_show_only_value' => isset( $settings['cf_show_only_value_details'] ) ? $settings['cf_show_only_value_details'] : false, 'cf_hide_group_title' => isset( $settings['cf_hide_group_title_details'] ) ? $settings['cf_hide_group_title_details'] : false, ]; return $content . Fns::tpg_get_acf_data_elementor( $data, null, false ); } return $content; } /** * Add exceptions in wp_kses_post tags. * * @param array $tags Allowed tags, attributes, and/or entities. * @param string $context Context to judge allowed tags by. Allowed values are 'post'. * * @return array */ public static function custom_wpkses_post_tags( $tags, $context ) { if ( 'post' === $context ) { $tags['iframe'] = [ 'src' => true, 'height' => true, 'width' => true, 'frameborder' => true, 'allowfullscreen' => true, ]; $tags['input'] = [ 'type' => true, 'class' => true, 'placeholder' => true, 'name' => true, ]; $tags['style'] = [ 'src' => true, ]; $tags['svg'] = [ 'class' => true, 'aria-hidden' => true, 'aria-labelledby' => true, 'role' => true, 'xmlns' => true, 'width' => true, 'height' => true, 'viewbox' => true, 'stroke' => true, 'fill' => true, ]; $tags['g'] = [ 'fill' => true, ]; $tags['title'] = [ 'title' => true, ]; $tags['path'] = [ 'd' => true, 'fill' => true, 'stroke-width' => true, 'stroke-linecap' => true, 'stroke-linejoin' => true, 'fill-rule' => true, 'clip-rule' => true, 'stroke' => true, 'transform' => true, ]; } return $tags; } /** * Prevent false 404 on paginated archive pages built with Elementor. * * When an Elementor-built archive template contains a TPG widget with normal * pagination, the generated page URLs (e.g. /category/news/page/2/) are handled * by the main WP_Query. If the main query has fewer pages than the widget's * custom query, WordPress triggers a 404 before the template renders. * * @param bool $preempt Whether to short-circuit default 404 handling. * @param \WP_Query $wp_query The main WP_Query instance. * * @return bool */ public static function prevent_pagination_404( $preempt, $wp_query ) { if ( $wp_query->is_archive() && get_query_var( 'paged' ) > 1 && class_exists( '\Elementor\Plugin' ) ) { return true; } return $preempt; } }