PluginProbe
Getwid – Gutenberg Blocks / 2.0.14
Getwid – Gutenberg Blocks v2.0.14
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 / custom-post-type / post.php

post.php in Getwid – Gutenberg Blocks 2.0.14, at includes/templates/custom-post-type/post.php

31 lines 941 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Post template for Custom Post Type block
4 */
5
6 $base_class = $extra_attr['block_name'];
7
8 ?>
9
10 <div class="<?php echo esc_attr( $base_class . '__post-wrapper' ); ?>">
11 <?php if (has_post_thumbnail()): ?>
12 <div class="<?php echo esc_attr( $base_class . '__post-thumbnail' ); ?>">
13 <a href="<?php the_permalink(); ?>"><?php
14 the_post_thumbnail();
15 ?></a>
16 </div>
17 <?php endif; ?>
18 <div class="<?php echo esc_attr( $base_class . '__content-wrapper' ); ?>">
19 <div class="<?php echo esc_attr( $base_class . '__post-header' ); ?>">
20 <?php
21 the_title(
22 '<h3 class="' . esc_attr( $base_class . '__post-title' ) . '"><a href="' . esc_url( get_permalink() ) . '">',
23 '</a></h3>'
24 ); ?>
25 </div>
26 <div class="<?php echo esc_attr( $base_class . '__post-excerpt' ); ?> "><?php
27 the_excerpt();
28 ?></div>
29 </div>
30 </div>
31