have_posts() ) :
if ( is_home() && !is_front_page() ) :
?>
have_posts() ) :
$query->the_post();
/*
* Include the Post-Type-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Type name) and that will be used instead.
*/
if( get_theme_mod( 'archive_post_layout', 'grid-thumbnail' ) == 'grid-thumbnail'){
if( $on_full ){
if( $i <= $full_end ) {
$on_full = true;
}else{
$full_end = $full_end + $increment;
$on_full = false;
$on_small = true;
}
}
if( $on_small ){
if( $i <= $small_end ) {
$on_small = true;
}else{
$small_end = $small_end + $increment ;
$on_small = false;
$on_full = true;
}
}
$args = array(
'on_full' => $on_full,
'on_small' => $on_small,
);
$i++;
get_template_part( 'template-parts/grid', 'thumbnail', $args );
}else{
get_template_part( 'template-parts/content', get_post_type() );
}
endwhile;
elseif ( !is_sticky() && ! $query->have_posts() ):
get_template_part( 'template-parts/content', 'none' );
endif;
?>
$query->max_num_pages,
'next_text' => ''.esc_html__( 'Next', 'bosa-storefront' ) .'' . esc_html__( 'Next page', 'bosa-storefront' ) . '',
'prev_text' => ''.esc_html__( 'Prev', 'bosa-storefront' ) .'' . esc_html__( 'Previous page', 'bosa-storefront' ) . '',
'before_page_number' => '',
));
endif;
wp_reset_postdata();
?>
'post',
'post_status' => 'publish',
'cat' => $latest_posts_category,
'paged' => get_query_var( 'paged', 1 ),
'posts_per_page' => $archive_post_per_page,
)));
$posts_array = $query->get_posts();
$show_latest_posts = count( $posts_array ) > 0;
if( !get_theme_mod( 'disable_latest_posts_section', false ) && $show_latest_posts ){
$latest_title_desc_align = get_theme_mod( 'latest_posts_section_title_desc_alignment', 'left' );
if ( $latest_title_desc_align == 'left' ){
$latest_title_desc_align = 'text-left';
}else if ( $latest_title_desc_align == 'center' ){
$latest_title_desc_align = 'text-center';
}else{
$latest_title_desc_align = 'text-right';
} ?>