# getwid/2.0.9/includes/templates/template-parts/post-content.php

Getwid – Gutenberg Blocks, version 2.0.9. 16 lines.

- Page: https://pluginprobe.com/plugins/getwid/2.0.9/code/includes/templates/template-parts/post-content.php
- Raw: https://pluginprobe.com/plugins/getwid/2.0.9/raw/includes/templates/template-parts/post-content.php
- Modified: 2022-04-26T15:06:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/getwid/2.0.9/code/includes/templates/template-parts/post-content.php#L10-L20`.

```php
<?php

//extract styles & classes
extract($extra_attr);
?>

<div class="<?php echo esc_attr( $wrapper_class ); ?>" <?php echo (!empty($wrapper_style) ? 'style="'.esc_attr($wrapper_style).'"' : '');?>><?php
	if ( $attributes['showContent'] == 'excerpt' || has_getwid_nested_blocks() ) {
        ?><p><?php echo esc_html( wp_trim_words( get_the_excerpt(), $contentLength ) ); ?></p><?php
    } elseif ( $attributes['showContent'] == 'content' ) {
		the_content();
	} elseif ( $attributes['showContent'] == 'full' ) {
        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
    } ?>
</div>

```
