astra_get_blog_post_thumbnail( string $type = 'archive' )
Blog post Thumbnail
Description
Parameters
- $type
-
(string) (Optional) Type of post.
Default value: 'archive'
Source
File: inc/blog/blog.php
function astra_get_blog_post_thumbnail( $type = 'archive' ) {
if ( 'archive' === $type ) {
// Blog Post Featured Image.
astra_get_post_thumbnail( '<div class="ast-blog-featured-section post-thumb ' . astra_attr( 'ast-grid-blog-col' ) . '">', '</div>' );
} elseif ( 'single' === $type ) {
// Single Post Featured Image.
astra_get_post_thumbnail();
}
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.0.8 | Introduced. |