field['shortcode'] ) && 'manage_view' === $this->field['shortcode'] ) {
echo ( ! empty( $post_id ) ) ? '
To display your show or view, add the following shortcode into your post, custom post types, page, widget or block editor. If adding the show to your theme files, additionally include the surrounding PHP code, see how .
[smart_post_show id="' . esc_attr( $post_id ) . '"] Shortcode Copied to Clipboard!
' : '';
} elseif ( ! empty( $this->field['shortcode'] ) && 'pro_notice' === $this->field['shortcode'] ) {
if ( ! empty( $post_id ) ) {
$features = array(
array(
'label' => __( 'Advanced Posts Query Builder', 'post-carousel' ),
),
array(
'label' => __( 'Smart Frontend Live Filter & Search', 'post-carousel' ),
'url' => 'https://wpsmartpost.com/blocks/#demoId3647',
),
array(
'label' => __( 'Custom Archive & Single Post Builder', 'post-carousel' ),
),
array(
'label' => __( 'Saved Templates for Post, Page, Builders', 'post-carousel' ),
),
array(
'label' => __( '250+ Ready Designs/Patterns Library', 'post-carousel' ),
'url' => 'https://wpsmartpost.com/patterns/',
),
array(
'label' => __( '60+ Gutenberg Blocks', 'post-carousel' ),
'url' => 'https://wpsmartpost.com/blocks/',
),
array(
'label' => __( 'Modern Post Grid, List & Slider Layouts', 'post-carousel' ),
'url' => 'https://wpsmartpost.com/blocks/#demoId3511',
),
array(
'label' => __( 'Post Featured Video & Gallery Images', 'post-carousel' ),
'url' => 'https://wpsmartpost.com/blocks/#demoId3514',
),
array(
'label' => __( 'Post Highlights & Badges', 'post-carousel' ),
'url' => 'https://wpsmartpost.com/blocks/#demoId3514',
),
array(
'label' => __( 'Custom Taxonomy Image & Color', 'post-carousel' ),
'url' => 'https://wpsmartpost.com/blocks/#demoId3604',
),
array(
'label' => __( 'Post Content Drag & Drop Sorting', 'post-carousel' ),
),
);
echo '';
echo '
' . sprintf(
/* translators: 1: start span tag wrapping the product name, 2: close tag. */
esc_html__( 'Go Pro & Unlock More! 🚀', 'post-carousel' ),
) . '
';
echo '
Unlock the full potential of Smart Post Pro and build beautiful blog & news layouts in minutes.
';
echo '
';
foreach ( $features as $feature ) {
echo '';
echo '';
echo ' '; // phpcs:ignore -- No user input.
echo ' ';
if ( ! empty( $feature['url'] ) ) {
echo '';
echo esc_html( $feature['label'] );
echo ' ';
echo ' ';
} else {
echo '' . esc_html( $feature['label'] ) . ' ';
}
echo ' ';
}
echo ' ';
echo '
';
echo '
';
}
} else {
echo ( ! empty( $post_id ) ) ? 'Smart Post Show has seamless integration with Gutenberg, Classic Editor, Elementor, Divi, Bricks, Beaver, Oxygen, WPBakery Builder, etc.
' : '';
}
}
}
}