PluginProbe
Getwid – Gutenberg Blocks / 1.8.7
Getwid – Gutenberg Blocks v1.8.7
3.0.2 3.0.1 3.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.2.0 trunk 1.8.7 1.9.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9
getwid / includes / templates / template-parts / post-content.php

post-content.php in Getwid – Gutenberg Blocks 1.8.7, at includes/templates/template-parts/post-content.php

16 lines 746 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 //extract styles & classes
4 extract($extra_attr);
5 ?>
6
7 <div class="<?php echo esc_attr( $wrapper_class ); ?>" <?php echo (!empty($wrapper_style) ? 'style="'.esc_attr($wrapper_style).'"' : '');?>><?php
8 if ( $attributes['showContent'] == 'excerpt' || has_getwid_nested_blocks() ) {
9 ?><p><?php echo esc_html( wp_trim_words( get_the_excerpt(), $contentLength ) ); ?></p><?php
10 } elseif ( $attributes['showContent'] == 'content' ) {
11 the_content();
12 } elseif ( $attributes['showContent'] == 'full' ) {
13 echo do_blocks( wp_kses_post( html_entity_decode( $current_post->post_content, ENT_QUOTES, get_option( 'blog_charset' ) ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
14 } ?>
15 </div>
16