|
@@ -56,14 +56,28 @@ add_action( 'after_setup_theme', 'radcliffe_2_jetpack_setup' );
|
|
* Custom render function for Infinite Scroll.
|
|
* Custom render function for Infinite Scroll.
|
|
*/
|
|
*/
|
|
function radcliffe_2_infinite_scroll_render() {
|
|
function radcliffe_2_infinite_scroll_render() {
|
|
|
|
+
|
|
|
|
+ if ( class_exists( 'WooCommerce' ) && ( radcliffe_2_woocommerce_is_shop_page() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) {
|
|
|
|
+ radcliffe_2_woocommerce_product_columns_wrapper();
|
|
|
|
+ woocommerce_product_loop_start();
|
|
|
|
+ }
|
|
|
|
+
|
|
while ( have_posts() ) {
|
|
while ( have_posts() ) {
|
|
the_post();
|
|
the_post();
|
|
|
|
+
|
|
if ( is_search() ) :
|
|
if ( is_search() ) :
|
|
get_template_part( 'template-parts/content', 'search' );
|
|
get_template_part( 'template-parts/content', 'search' );
|
|
|
|
+ elseif ( class_exists( 'WooCommerce' ) && ( radcliffe_2_woocommerce_is_shop_page() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) :
|
|
|
|
+ wc_get_template_part( 'content', 'product' );
|
|
else :
|
|
else :
|
|
get_template_part( 'template-parts/content', get_post_format() );
|
|
get_template_part( 'template-parts/content', get_post_format() );
|
|
endif;
|
|
endif;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if ( class_exists( 'WooCommerce' ) && ( radcliffe_2_woocommerce_is_shop_page() || is_product_taxonomy() || is_product_category() || is_product_tag() ) ) {
|
|
|
|
+ woocommerce_product_loop_end();
|
|
|
|
+ radcliffe_2_woocommerce_product_columns_wrapper_close();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|