PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.1.0
Post Grid Gutenberg Blocks – PostX v5.1.0
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 / addons / beaver_builder / includes / frontend.php

frontend.php in Post Grid Gutenberg Blocks – PostX 5.1.0, at addons/beaver_builder/includes/frontend.php

27 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || exit;
3 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Included by Beaver Builder inside the module render method; variables are local.
4 $id = $settings->template;//phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?>
5 <div class="ultp-shortcode" data-postid="<?php echo esc_attr( $id ); ?>">
6 <?php
7 if ( $id ) {
8 $args = array(
9 'p' => $id,
10 'post_type' => 'ultp_templates',
11 );
12 $the_query = new \WP_Query( $args );
13 if ( $the_query->have_posts() ) {
14 while ( $the_query->have_posts() ) {
15 $the_query->the_post();
16 the_content();
17 }
18 wp_reset_postdata();
19 }
20 } elseif ( isset( $_GET['fl_builder'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only Beaver Builder editor detection.
21 //phpcs:ignore
22 echo '<p style="text-align:center;">' . sprintf( esc_html__( 'Pick a Template from your saved ones. Or create a template from: %s.', 'ultimate-post' ) . ' ', '<strong><i>' . esc_html__( 'Dashboard > PostX > Saved Templates', 'ultimate-post' ) . '</i></strong>' ) . '</p>'; //phpcs:ignore
23
24 }
25 ?>
26 </div>
27