<?php
add_filter( 'book_review_blog_loop_entry_content_classes', 'book_review_blog_add_row_in_entry_content' );
function book_review_blog_add_row_in_entry_content($classes){
	$classes .= ' row';
	return $classes;
}

add_action( 'book_review_blog_post_loop_thumbnail_before', 'book_review_blog_post_loop_thumbnail_wrapper_div_start' );
function book_review_blog_post_loop_thumbnail_wrapper_div_start(){
	?>
	<div class="col-md-12 col-lg-5 pr-lg-0">
	<?php
}

add_action( 'book_review_blog_post_loop_thumbnail_after', 'book_review_blog_post_loop_thumbnail_wrapper_div_close' );
function book_review_blog_post_loop_thumbnail_wrapper_div_close(){
	?>
	</div>
	<?php
}

add_action('book_review_blog_post_loop_content_before', 'book_review_blog_post_loop_before_content_wrapper_div_start');
function book_review_blog_post_loop_before_content_wrapper_div_start(){
	$colClass = 'col-12';
	if (has_post_thumbnail()) {
		$colClass = 'col-md-12 col-lg-7 pl-lg-1';
	}
	?>
	<div class="<?php echo esc_attr( $colClass );?>">
	<?php
}
add_action('book_review_blog_post_loop_content_after', 'book_review_blog_post_loop_before_content_wrapper_div_close');
function book_review_blog_post_loop_before_content_wrapper_div_close(){
	?>
	</div>
	<?php
}

add_filter('book_review_blog_article_tag_classes', 'book_review_blog_article_post_layout_class');
function book_review_blog_article_post_layout_class($classes){
	$classes .= ' post-loop-list-layout';
	return $classes;
}