= $current_id ) ) { // at last or after max
$html = alpus_wc_get_loop_prop( 'single_in_products', '' );
if ( $html ) {
$wrap_class = 'product-wrap product-single-wrap';
if ( isset( $repeater_ids[ $current_id + 1 ] ) ) {
$wrap_class .= ' ' . $repeater_ids[ $current_id + 1 ];
}
echo '
' . alpus_escaped( $html ) . '';
wc_set_loop_prop( 'single_in_products', '' );
}
}
// Print banner in products
if ( 'last' == $banner_insert || ( (int) $sp_insert >= $current_id ) ) { // at last or after max
$html = alpus_wc_get_loop_prop( 'product_banner', '' );
if ( $html ) {
wc_set_loop_prop( 'product_banner', '' );
echo alpus_escaped( $html );
}
}
// Close multiple slider
$row_cnt = alpus_wc_get_loop_prop( 'row_cnt' );
if ( $row_cnt && 1 != $row_cnt ) {
if ( 0 != $current_id % $row_cnt ) {
echo '';
}
}
}
echo '';
// Load More
$loadmore_type = alpus_wc_get_loop_prop( 'loadmore_type' );
$loadmore_btn_style = alpus_wc_get_loop_prop( 'loadmore_btn_style' );
if ( $loadmore_type ) {
$page = absint( empty( $_GET['product-page'] ) ? alpus_wc_get_loop_prop( 'current_page', 1 ) : $_GET['product-page'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
$total_pages = alpus_wc_get_loop_prop( 'total_pages' );
if ( $total_pages > 1 ) {
if ( 'page' === $loadmore_type ) {
if ( alpus_wc_get_loop_prop( 'widget', false ) && empty( $alpus_layout['is_shop_builder_rendering'] ) ) {
echo alpus_get_pagination_html( $page, $total_pages, 'pagination-load' );
}
} else {
alpus_loadmore_html( '', $loadmore_type, alpus_wc_get_loop_prop( 'loadmore_label' ), $loadmore_btn_style );
}
}
}
if ( alpus_is_shop() && ! alpus_wc_get_loop_prop( 'widget' ) ) {
echo ''; // end of div.product-archive
}
/**
* Hook: alpus_after_shop_loop_end.
*
* @hooked vendor_store_tab_end - 10
*/
do_action( 'alpus_after_shop_loop_end' );