# getwid/2.2.0/includes/templates/post-slider/post.php

Getwid – Gutenberg Blocks, version 2.2.0. 28 lines.

- Page: https://pluginprobe.com/plugins/getwid/2.2.0/code/includes/templates/post-slider/post.php
- Raw: https://pluginprobe.com/plugins/getwid/2.2.0/raw/includes/templates/post-slider/post.php
- Modified: 2024-10-25T10:23:02+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.2.0/code/includes/templates/post-slider/post.php#L10-L20`.

```php
<?php
/**
 * The template for displaying all single posts in Post Slider block
 */

$base_class = $extra_attr['block_name'];

?>

<div class="<?php echo esc_attr( $base_class . '__post' ); ?> ">
    <?php if ( has_post_thumbnail() ) : ?>
        <div class="<?php echo esc_attr( $base_class . '__post-thumbnail' ); ?>">
            <?php the_post_thumbnail();?>
        </div>
    <?php endif; ?>
    <div class="<?php echo esc_attr( $base_class . '__post-overlay' ); ?> "></div>
    <div class="<?php echo esc_attr( $base_class . '__post-content-wrapper' ); ?>">
        <?php
		the_title(
			'<h3 class="' . esc_attr( $base_class ) . '__post-title"><a href="' . esc_url( get_permalink() ) . '">',
			'</a></h3>'
		); ?>
        <div class="<?php echo esc_attr( $base_class . '__post-excerpt' ); ?>"><?php
            the_excerpt();
        ?></div>
    </div>
</div>

```
