'; } function woocommerce_before_shop_loop_end(){ echo ''; } add_action( 'woocommerce_before_shop_loop', 'woocommerce_before_shop_loop_start' , 0 ); add_action( 'woocommerce_before_shop_loop', 'woocommerce_before_shop_loop_end' , 1000 ); /** * Register Woocommerce Vendor which will register list of shortcodes */ function basetheme_fnc_init_vc_woocommerce_vendor(){ $vendor = new Prestabase_VC_Woocommerce(); add_action( 'vc_after_set_mode', array( $vendor, 'load' ) ); } //add_action( 'after_setup_theme', 'basetheme_fnc_init_vc_woocommerce_vendor' , 9 ); /** * Processing hook layout content */ function basetheme_fnc_layout_main_class( $class ){ $sidebar = basetheme_fnc_theme_options( 'woo-sidebar-show', 1 ) ; if( is_single() ){ $sidebar = basetheme_fnc_theme_options('woo-single-sidebar-show'); ; } else { $sidebar = basetheme_fnc_theme_options('woo-sidebar-show'); } if( $sidebar ){ return $class; } return 'col-lg-12 col-md-12 col-xs-12'; } add_filter( 'basetheme_woo_layout_main_class', 'basetheme_fnc_layout_main_class', 4 ); /* * HOOK BREADSCRUMB */ /** Template pages ********************************************************/ if ( ! function_exists( 'woocommerce_content' ) ) { /** * Output WooCommerce content. * * This function is only used in the optional 'woocommerce.php' template * which people can add to their themes to add basic woocommerce support * without hooks or modifying core templates. * */ function woocommerce_content() { if ( is_singular( 'product' ) ) { while ( have_posts() ) : the_post(); wc_get_template_part( 'content', 'single-product' ); endwhile; } else { ?>
woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?>