PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.8
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.8
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / admin / blocks-settings / builder-template / page.php

page.php in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.8, at admin/blocks-settings/builder-template/page.php

44 lines 982 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 if ( wp_is_block_theme() ) {
5 ?><!DOCTYPE html>
6 <html <?php language_attributes(); ?>>
7 <head>
8 <meta charset="<?php bloginfo( 'charset' ); ?>" />
9 <?php
10 wp_head();
11 ?>
12 </head>
13 <body <?php body_class(); ?>>
14 <?php
15 wp_body_open();
16 } else {
17 get_header();
18 }
19 $content_post = get_post( $sp_page_builder_id );
20 $content = $content_post->post_content;
21
22 echo '<div class="sp-smart-post-page-builder">';
23
24 global $wp_embed;
25 $content = $wp_embed->autoembed( $content );
26 $content = do_blocks( $content );
27 $content = do_shortcode( $content );
28 $content = str_replace( ']]>', ']]&gt;', $content );
29 $content = preg_replace( '%<p>&nbsp;\s*</p>%', '', $content );
30 $content = preg_replace( '/^(?:<br\s*\/?>\s*)+/', '', $content );
31 echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
32 echo '</div>';
33
34 if ( wp_is_block_theme() ) {
35 ?>
36 </body>
37 </html>
38 <?php
39 wp_head();
40 wp_footer();
41 } else {
42 get_footer();
43 }
44