| 1 |
<?php |
| 2 |
/** |
| 3 |
* The template for displaying all single posts in Post Slider block |
| 4 |
*/ |
| 5 |
|
| 6 |
$base_class = $extra_attr['block_name']; |
| 7 |
|
| 8 |
?> |
| 9 |
|
| 10 |
<div class="<?php echo esc_attr( $base_class . '__post' ); ?> "> |
| 11 |
<?php if ( has_post_thumbnail() ) : ?> |
| 12 |
<div class="<?php echo esc_attr( $base_class . '__post-thumbnail' ); ?>"> |
| 13 |
<?php the_post_thumbnail();?> |
| 14 |
</div> |
| 15 |
<?php endif; ?> |
| 16 |
<div class="<?php echo esc_attr( $base_class . '__post-overlay' ); ?> "></div> |
| 17 |
<div class="<?php echo esc_attr( $base_class . '__post-content-wrapper' ); ?>"> |
| 18 |
<?php |
| 19 |
the_title( |
| 20 |
'<h3 class="' . esc_attr( $base_class ) . '__post-title"><a href="' . esc_url( get_permalink() ) . '">', |
| 21 |
'</a></h3>' |
| 22 |
); ?> |
| 23 |
<div class="<?php echo esc_attr( $base_class . '__post-excerpt' ); ?>"><?php |
| 24 |
the_excerpt(); |
| 25 |
?></div> |
| 26 |
</div> |
| 27 |
</div> |
| 28 |
|