/**
* The template part for displaying post item for "grid" listing type
*
* @package BoomBox_Theme
*/
// Prevent direct script access.
if ( ! defined( 'ABSPATH' ) ) {
die( 'No direct script access allowed' );
}
$boombox_featured_image_size = 'boombox_image360x270';
$boombox_post_classes = 'post';
$boombox_has_post_thumbnail = true;
$boombox_template_options = boombox_get_template_grid_elements_options();
if ( !$boombox_template_options['media'] || !has_post_thumbnail() ):
$boombox_post_classes .= ' no-thumbnail';
$boombox_has_post_thumbnail = false;
endif;
if ( $boombox_template_options['badges'] || $boombox_template_options['post_type_badges'] ) :
$badges_list = boombox_get_post_badge_list();
endif;
$permalink = get_permalink();
$url = apply_filters( 'boombox_loop_item_url', $permalink, get_the_ID() );
$target = apply_filters( 'boombox_loop_item_url_target', '', $permalink, $url ); ?>
>
boombox_categories_list();
endif;
if ( comments_open() && $boombox_template_options['comments_count'] ) :
boombox_post_comments();
endif;
the_title( sprintf( '', $url, $target ), '
' );
if ( $boombox_template_options['subtitle'] ) :
boombox_the_post_subtitle();
endif;?>
boombox_post_author_meta( array(
'author' => $boombox_template_options['author'],
'author_args' => array( 'with_avatar' => true ),
'date' => $boombox_template_options['date']
) );
?>