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-online-shop' ) .'' . esc_html__( 'Next page', 'bosa-online-shop' ) . '',
'prev_text' => ''.esc_html__( 'Prev', 'bosa-online-shop' ) .'' . esc_html__( 'Previous page', 'bosa-online-shop' ) . '',
'before_page_number' => ' ',
));
endif;
wp_reset_postdata();
?>